/*
Theme Name: Tlausl – Augenblicke des Verfalls
Theme URI: https://www.tlausl.de
Author: tlausl
Description: Dunkles, atmosphärisches Theme für Urban Exploring & Lost Places Fotografie.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: tlausl
*/

/* ─── RESET & VARIABLEN ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:  #0e0d0b;
  --dark:   #161410;
  --mid:    #2a2520;
  --muted:  #6b6259;
  --warm:   #8c7b6e;
  --text:   #d9d0c4;
  --bright: #e8e2d9;
  --rust:   #c8763a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--bright); }

/* ─── NAV ───────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(to bottom, rgba(14,13,11,0.95), transparent);
  backdrop-filter: blur(2px);
}

.nav-logo {
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--rust);
  text-transform: uppercase;
}

.nav-links {
  display: flex; gap: 2rem; list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links .current-menu-item a { color: var(--bright); }

/* ─── HERO (Startseite) ─────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: grid;
  grid-template-columns: 52px 1fr;
  overflow: hidden;
}

.hero-spine {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  background: var(--rust);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  gap: 2rem; padding: 2rem 0;
  z-index: 2; flex-shrink: 0;
}

.hero-spine-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--black); opacity: 0.7;
}
.hero-spine-title {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--black); font-weight: bold;
}

.hero-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 3fr 1.5fr 1.5fr;
  grid-template-rows: 3fr 2fr;
  gap: 3px; height: 100%;
}

.mosaic-img {
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.mosaic-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,13,11,0.3), transparent);
}
.mosaic-img:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.mosaic-img:nth-child(2) { grid-column: 2; grid-row: 1; }
.mosaic-img:nth-child(3) { grid-column: 3; grid-row: 1; }
.mosaic-img:nth-child(4) { grid-column: 2; grid-row: 2; }
.mosaic-img:nth-child(5) { grid-column: 3; grid-row: 2; }

.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 4rem 3.5rem;
  background: linear-gradient(to top, rgba(14,13,11,0.92) 0%, rgba(14,13,11,0.3) 40%, transparent 70%);
  z-index: 3;
}

.hero-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--rust);
  margin-bottom: 1rem;
}

.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400; line-height: 1.05;
  color: var(--bright); max-width: 700px;
  margin-bottom: 1.2rem;
}
.hero-h1 em { font-style: italic; color: var(--rust); }

.hero-sub {
  font-size: 0.95rem; color: var(--warm);
  max-width: 480px; line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex; align-items: center; gap: 2rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem; letter-spacing: 0.1em; color: var(--muted);
}
.hero-meta-count { color: var(--rust); font-size: 1.1rem; font-weight: bold; }

.scroll-hint {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
  margin-top: 0.5rem; transition: color 0.2s;
}
.scroll-hint::before {
  content: ''; display: block;
  width: 30px; height: 1px; background: var(--muted);
  transition: width 0.3s, background 0.2s;
}
.scroll-hint:hover { color: var(--rust); }
.scroll-hint:hover::before { width: 50px; background: var(--rust); }

/* ─── TOPICS BANNER ─────────────────────────────────────── */
.topics-banner {
  overflow-x: auto; white-space: nowrap;
  border-top: 1px solid var(--mid);
  border-bottom: 1px solid var(--mid);
  padding: 1.2rem 2.5rem;
  display: flex; align-items: center;
}
.topic-tag {
  display: inline-block;
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  padding: 0.4rem 1.2rem;
  border-right: 1px solid var(--mid);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.topic-tag:first-child { border-left: 1px solid var(--mid); }
.topic-tag:hover { color: var(--bright); background: var(--mid); }

/* ─── SECTION HEADER ────────────────────────────────────── */
.section-header {
  display: flex; align-items: baseline;
  justify-content: space-between;
  padding: 4rem 2.5rem 2rem;
  border-bottom: 1px solid var(--mid);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 400; color: var(--bright);
}
.section-link {
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--rust);
  display: flex; align-items: center; gap: 0.5rem;
}
.section-link::after { content: '→'; }
.section-link:hover { color: var(--bright); }

/* ─── POSTS GRID ────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px; padding: 3px;
  background: var(--mid);
}

.post-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden; cursor: pointer;
  background: var(--dark);
}
.post-card:first-child {
  grid-column: span 2;
  aspect-ratio: auto; min-height: 460px;
}

.post-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s;
  filter: saturate(0.7) brightness(0.85);
}
.post-card:hover .post-img {
  transform: scale(1.04);
  filter: saturate(0.9) brightness(1);
}

.post-info {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  background: linear-gradient(to top, rgba(14,13,11,0.9) 0%, transparent 60%);
  transition: background 0.3s;
}
.post-card:hover .post-info {
  background: linear-gradient(to top, rgba(14,13,11,0.95) 0%, rgba(14,13,11,0.1) 70%);
}

.post-tag {
  display: inline-block;
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rust);
  margin-bottom: 0.5rem;
  background: rgba(200,118,58,0.12);
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(200,118,58,0.25);
  width: fit-content;
}
.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 400;
  color: var(--bright); line-height: 1.3;
  margin-bottom: 0.5rem;
}
.post-card:first-child .post-title { font-size: 1.9rem; }
.post-date {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem; color: var(--muted); letter-spacing: 0.1em;
}

/* ─── SINGLE POST ───────────────────────────────────────── */
.single-hero {
  position: relative; height: 70vh; min-height: 400px;
  overflow: hidden; margin-top: 0;
}
.single-hero img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.7) brightness(0.75);
}
.single-hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 4rem;
  background: linear-gradient(to top, rgba(14,13,11,0.95) 0%, transparent 60%);
}
.single-hero-overlay .post-tag { margin-bottom: 1rem; }
.single-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400; color: var(--bright); line-height: 1.1;
  margin-bottom: 1rem;
}
.single-meta {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em;
}

.single-content {
  max-width: 740px; margin: 4rem auto;
  padding: 0 2rem;
}
.single-content p {
  font-size: 1rem; line-height: 1.85;
  color: var(--text); margin-bottom: 1.5rem;
}
.single-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 400;
  color: var(--bright); margin: 2.5rem 0 1rem;
}
.single-content img {
  width: 100%; margin: 2rem 0;
  filter: saturate(0.8);
}
.single-content .wp-caption-text {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem; color: var(--muted);
  letter-spacing: 0.1em; margin-top: -1.5rem;
  margin-bottom: 2rem;
}

/* Galerie */
.single-content .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3px; margin: 2rem 0;
}
.single-content .gallery-item img {
  width: 100%; height: 240px; object-fit: cover;
  margin: 0; filter: saturate(0.75);
  transition: filter 0.3s;
}
.single-content .gallery-item img:hover { filter: saturate(1); }

.post-nav {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--mid);
  padding: 2rem 0; margin-top: 3rem;
}
.post-nav a {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  transition: color 0.2s;
}
.post-nav a:hover { color: var(--rust); }

/* Tags unter dem Beitrag */
.post-tags-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--mid);
}
.post-tags-list a {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--mid); color: var(--muted);
  transition: all 0.2s;
}
.post-tags-list a:hover {
  border-color: var(--rust); color: var(--rust);
}

/* ─── ARCHIV ────────────────────────────────────────────── */
.archive-header {
  padding: 8rem 2.5rem 3rem;
  border-bottom: 1px solid var(--mid);
}
.archive-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rust);
  margin-bottom: 0.8rem;
}
.archive-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400; color: var(--bright);
}
.archive-count {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem; color: var(--muted);
  letter-spacing: 0.1em; margin-top: 0.5rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px; padding: 3px;
  background: var(--mid);
}
.archive-grid .post-card { aspect-ratio: 4/3; }
.archive-grid .post-card:first-child {
  grid-column: span 1; min-height: auto;
}

/* ─── KATEGORIEN GRID ───────────────────────────────────── */
.categories-section { padding: 4rem 2.5rem; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; margin-top: 2rem;
  background: var(--mid);
}
.cat-item {
  background: var(--dark);
  padding: 1.8rem 1.5rem;
  display: flex; flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: background 0.2s; min-height: 110px;
}
.cat-item:hover { background: var(--mid); }
.cat-name { font-size: 0.85rem; color: var(--text); letter-spacing: 0.04em; }
.cat-count {
  font-family: 'Courier Prime', monospace;
  font-size: 1.4rem; color: var(--rust);
  margin-top: 0.8rem; line-height: 1;
}

/* ─── SEITE (page.php) ──────────────────────────────────── */
.page-header {
  padding: 8rem 2.5rem 3rem;
  border-bottom: 1px solid var(--mid);
}
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; color: var(--bright);
}
.page-content {
  max-width: 740px; margin: 4rem auto;
  padding: 0 2rem;
}
.page-content p {
  font-size: 1rem; line-height: 1.85;
  color: var(--text); margin-bottom: 1.5rem;
}
.page-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 400;
  color: var(--bright); margin: 2.5rem 0 1rem;
}

/* ─── ABOUT SECTION ─────────────────────────────────────── */
.about-section {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--mid);
}
.about-img-side {
  position: relative; min-height: 400px; overflow: hidden;
}
.about-img-side img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.5) brightness(0.7);
}
.about-text-side {
  padding: 4rem 3rem;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--mid);
}
.about-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--rust);
  margin-bottom: 1.5rem;
}
.about-h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 400;
  color: var(--bright); line-height: 1.2;
  margin-bottom: 1.5rem;
}
.about-p { font-size: 0.9rem; color: var(--warm); line-height: 1.8; margin-bottom: 1rem; }
.stats-row { display: flex; gap: 3rem; margin-top: 2rem; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; color: var(--rust); line-height: 1;
}
.stat-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.3rem;
}

/* ─── PAGINATION ────────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center;
  gap: 0.5rem; padding: 3rem 2.5rem;
  border-top: 1px solid var(--mid);
}
.pagination .page-numbers {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem; letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  border: 1px solid var(--mid); color: var(--muted);
  transition: all 0.2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  border-color: var(--rust); color: var(--rust);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  padding: 3rem 2.5rem;
  border-top: 1px solid var(--mid);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem; letter-spacing: 0.15em; color: var(--muted);
}
.footer-copy {
  font-family: 'Courier Prime', monospace;
  font-size: 0.65rem; color: var(--muted); letter-spacing: 0.1em;
}
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a {
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); transition: color 0.2s;
}
.footer-links a:hover { color: var(--rust); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 40px 1fr; }
  .hero-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 2fr 1fr 1fr;
  }
  .mosaic-img:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .mosaic-img:nth-child(2) { grid-column: 1; grid-row: 2; }
  .mosaic-img:nth-child(3) { grid-column: 2; grid-row: 2; }
  .mosaic-img:nth-child(4) { grid-column: 1; grid-row: 3; }
  .mosaic-img:nth-child(5) { grid-column: 2; grid-row: 3; }
  .posts-grid, .archive-grid { grid-template-columns: 1fr 1fr; }
  .post-card:first-child, .archive-grid .post-card:first-child { grid-column: span 2; }
  .about-section { grid-template-columns: 1fr; }
  .about-img-side { min-height: 260px; }
  .about-text-side { border-left: none; border-top: 1px solid var(--mid); padding: 2.5rem 1.5rem; }
  .single-hero-overlay { padding: 2rem 2rem; }
  .site-footer { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 600px) {
  .hero-spine { display: none; }
  .hero { grid-template-columns: 1fr; }
  .posts-grid, .archive-grid { grid-template-columns: 1fr; }
  .post-card:first-child, .archive-grid .post-card:first-child { grid-column: span 1; }
  .nav-links { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { gap: 1.5rem; }
  .section-header { padding: 2.5rem 1.2rem 1.2rem; }
  .categories-section { padding: 2.5rem 1.2rem; }
  .single-content, .page-content { padding: 0 1.2rem; }
  .single-hero-overlay { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .post-img { transition: none; }
}
