/* reith-privat.de — Drachen-Theme, statisch */
/* Schriften lokal unter /assets/fonts/ (OFL) — kein Google Fonts */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-deep: #070b12;
  --bg-overlay: rgba(7, 11, 18, 0.82);
  --glass: rgba(14, 22, 36, 0.72);
  --glass-border: rgba(212, 168, 75, 0.22);
  --text: #e8edf5;
  --text-muted: #9aa8bc;
  --accent: #d4a84b;
  --accent-soft: rgba(212, 168, 75, 0.15);
  --accent-glow: rgba(212, 168, 75, 0.35);
  --dragon-red: #8b2635;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --max: 1120px;
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg-deep);
  /* verhindert horizontales Scrollen durch den 100vw-Vollbild-Hero
     (clip statt hidden, damit position: sticky im Header erhalten bleibt) */
  overflow-x: clip;
}

/* Drachen-Hintergrund (Artikel-/Kategorieseiten): Drache tritt zurück,
   Position rechts/oben, damit der Kopf im freien Rand sichtbar bleibt. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url("/assets/images/dragon-hero.jpg") 78% 38% / cover no-repeat fixed;
  filter: saturate(0.8) brightness(0.42);
}

/* Startseite: der große Drachen-Hero übernimmt oben, darunter bleibt der
   Hintergrund ruhig — der Drache „tritt zurück", sobald man scrollt. */
body.is-home::before {
  display: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 38, 53, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.55) 0%, var(--bg-overlay) 45%, var(--bg-deep) 100%);
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: #f0c96a;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 18, 0.78);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  box-shadow: 0 0 20px var(--accent-glow);
}

.brand-text strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-sans);
  cursor: pointer;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* Drachen-Hero (nur Startseite): volle Breite, ganzer Drache sichtbar.
   Titel sitzt links über der ruhigen Bastei-Landschaft, der Drachenkopf
   rechts bleibt frei. Bricht aus dem zentrierten main-Container aus. */
.dragon-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -2rem;
  margin-bottom: 2.75rem;
  overflow: hidden;
}

.dragon-hero img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: cover;
  object-position: 78% center;
  border-radius: 0;
}

/* Lesbarkeits-Verlauf: dunkel links (Textzone) und unten, klar über dem
   Kopf rechts. */
.dragon-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 18, 0.82) 0%, rgba(7, 11, 18, 0.4) 34%, rgba(7, 11, 18, 0) 60%),
    linear-gradient(0deg, rgba(7, 11, 18, 0.8) 0%, rgba(7, 11, 18, 0) 42%);
  pointer-events: none;
}

.dragon-hero-content {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  max-width: min(92%, 40rem);
  padding: clamp(1.5rem, 5vw, 3.5rem);
}

.dragon-hero-content h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.75rem;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.65);
}

.dragon-hero-content p {
  max-width: 34rem;
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

@media (max-width: 620px) {
  .dragon-hero img {
    max-height: none;
    aspect-ratio: 4 / 5;
    object-position: 72% center;
  }
}

/* Hero */
.hero {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
  margin-bottom: 2rem;
}

.hero-kicker {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.hero p {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Glass cards */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: 1.5rem 1.75rem;
}

/* Blog grid */
.post-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--accent-glow);
}

.post-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.04);
}

.post-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cat-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
}

.cat-foto { background: rgba(56, 189, 148, 0.15); color: #6ee7b7; border-color: rgba(56, 189, 148, 0.3); }
.cat-phil { background: rgba(167, 139, 250, 0.15); color: #c4b5fd; border-color: rgba(167, 139, 250, 0.3); }
.cat-reisen { background: rgba(96, 165, 250, 0.15); color: #93c5fd; border-color: rgba(96, 165, 250, 0.3); }
.cat-tech { background: rgba(251, 146, 60, 0.15); color: #fdba74; border-color: rgba(251, 146, 60, 0.3); }
.cat-default { background: var(--accent-soft); color: var(--accent); border-color: var(--glass-border); }

.post-card h2 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.6rem;
}

.post-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--accent);
}

.post-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.read-more {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

/* Article page */
.article-header {
  margin-bottom: 2rem;
  text-align: center;
}

.article-header h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0.5rem 0 0.75rem;
}

.article-featured {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}

.article-featured img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.article-body {
  font-size: 1.08rem;
}

.article-body p {
  margin: 0 0 1.1rem;
}

.article-body h2,
.article-body h3,
.article-body strong {
  font-family: var(--font-sans);
  color: var(--text);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}

.article-body figure {
  margin: 1.5rem 0;
  text-align: center;
}

.article-body figcaption {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Block-Inhaltsmodell: Bild-Blöcke mit dynamischem Layout.
   Bilder werden ungeschnitten (height:auto) gezeigt — keine abgeschnittenen
   Köpfe mehr. focus (object-position) wirkt nur, falls ein Bild bewusst auf
   ein festes Verhältnis beschnitten wird. */
.article-body .post-image {
  margin: 1.75rem 0;
}

.article-body .post-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* Vollbreite über die Textspalte hinaus (dramatische Landschaften). */
.article-body .post-image--wide {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.article-body .post-image--wide img {
  border-radius: 0;
}

/* Um den Text fließende Bilder für den „Bild, Text, Bild"-Magazinlook.
   Erst ab Tablet-Breite gefloatet; auf dem Handy volle Breite. */
@media (min-width: 720px) {
  .article-body .post-image--left,
  .article-body .post-image--right {
    max-width: 46%;
    margin-top: 0.4rem;
  }
  .article-body .post-image--left {
    float: left;
    margin-right: 1.75rem;
    margin-bottom: 1rem;
  }
  .article-body .post-image--right {
    float: right;
    margin-left: 1.75rem;
    margin-bottom: 1rem;
  }
}

/* Floats am Ende des Artikels sauber abschließen. */
.article-body::after {
  content: "";
  display: block;
  clear: both;
}

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
}

/* Page (About, Impressum) */
.page-content h2,
.page-content h3 {
  font-family: var(--font-sans);
  margin-top: 1.75rem;
}

/* Contact form */
.contact-intro {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
  margin-top: 1.5rem;
}

.privacy-row {
  margin: 0;
}

.privacy-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text-muted);
  cursor: pointer;
}

.privacy-row input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  flex: 0 0 1.05rem;
  accent-color: var(--accent);
  transform: translateY(0.04em);
}

.form-row label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.form-row input:not([type="checkbox"]),
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1rem;
}

.form-row input:not([type="checkbox"]):focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #b8862e);
  color: #1a1208;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(7, 11, 18, 0.9);
  padding: 2rem 1.25rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(7, 11, 18, 0.96);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 1.25rem 1.25rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-header {
    position: relative;
  }
}
