/* =========================================================================
   Startseite & geteilte Layout-Bausteine (Header, Footer, Consent)
   Ergänzt styles.css — bewusst eigene Klassennamen, um Spezifitäts-
   Konflikte mit den Basis-Sektionen zu vermeiden.
   ========================================================================= */

/* ---------------------------- HEADER ---------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease),
              backdrop-filter var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 26, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 48px; height: auto; }
.brand__text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  color: var(--creme);
  display: flex;
  flex-direction: column;
}
.brand__sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--moos-light);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: var(--space-4); }
.nav__list { display: flex; align-items: center; gap: var(--space-3); }
.nav__list a {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  position: relative;
  padding-block: 0.4em;
  transition: color var(--t) var(--ease);
}
.nav__list a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.nav__list a:hover { color: var(--creme); }
.nav__list a:hover::after { transform: scaleX(1); }
.nav__cta { padding: 0.6em 1.2em; font-size: var(--step--1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--creme); border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------- HERO ----------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
  padding-bottom: var(--space-6);
  background:
    radial-gradient(ellipse 70% 55% at 28% 38%, rgba(58,90,44,0.28) 0%, transparent 68%),
    radial-gradient(ellipse 55% 75% at 75% 62%, rgba(44,24,16,0.45) 0%, transparent 70%),
    linear-gradient(180deg, #08160c 0%, var(--waldnacht) 55%, #07130b 100%);
}
.hero__atmosphere { position: absolute; inset: 0; pointer-events: none; }
.hero__fog { position: absolute; inset: 0; }
.fog-particle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,191,170,0.07) 0%, transparent 70%);
  animation: drift linear infinite;
}
@keyframes drift {
  0%   { transform: translateX(-120%) translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(120vw) translateY(-30px); opacity: 0; }
}
.hero__beam {
  position: absolute; inset: 0;
  background:
    linear-gradient(168deg, transparent 34%, rgba(232,223,192,0.07) 38%, transparent 43%),
    linear-gradient(162deg, transparent 52%, rgba(212,160,48,0.05) 55%, transparent 60%);
  animation: beamShift 14s ease-in-out infinite alternate;
}
@keyframes beamShift { from { opacity: 0.6; } to { opacity: 1; } }

.hero__inner { position: relative; z-index: 2; max-width: 820px; }
.hero__title {
  font-size: var(--step-5);
  margin: var(--space-3) 0 var(--space-4);
  letter-spacing: 0.005em;
}
.hero__sub { max-width: 56ch; margin-bottom: var(--space-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero__trust {
  margin-top: var(--space-4);
  font-size: var(--step-0);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--nebel);
}
.hero__scroll {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 1px; height: 54px;
  background: linear-gradient(to bottom, var(--nebel), transparent);
  animation: scrollPulse 2.6s ease-in-out infinite;
}
/* Strich nur auf großen, hohen Viewports zeigen — verhindert Überlappung mit dem Hero-Text */
@media (max-width: 820px), (max-height: 780px) {
  .hero__scroll { display: none; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; height: 48px; }
  50%      { opacity: 0.9; height: 64px; }
}

/* --------------------- PROBLEM-SPIEGELUNG ----------------------------- */
.center { text-align: center; }
.problem__turn { margin-top: var(--space-4); font-size: var(--step-2); color: var(--moos); }

/* ----------------------------- ÜBER MICH ------------------------------ */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.about__media { position: relative; }
.about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about__badge {
  position: absolute;
  bottom: -18px; right: -14px;
  width: 104px; height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  box-shadow: var(--shadow-sm);
}
/* Umgekehrte Reihe (Bild rechts) + Foto-Band */
.about--rev { grid-template-columns: 1.15fr 0.85fr; }
.about--rev .about__media { order: 2; }
.moments { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.moments img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .about--rev { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .moments { grid-template-columns: 1fr; } }
.about__body h2 { margin: var(--space-2) 0 var(--space-3); }
.about__body p { margin-bottom: var(--space-3); color: var(--text-soft); }
.about__body .link-arrow { margin-top: var(--space-1); }

/* Platzhalter (klar als austauschbar markiert) */
.placeholder {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 50% at 40% 30%, rgba(90,122,76,0.5) 0%, transparent 70%),
    linear-gradient(160deg, var(--rinde) 0%, var(--waldnacht) 60%, #050d07 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(165deg, transparent 45%, rgba(232,223,192,0.06) 48%, transparent 52%);
}
.placeholder--portrait { aspect-ratio: 4 / 5; }
.placeholder__tag {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 223, 192, 0.6);
  border: 1px dashed rgba(232, 223, 192, 0.3);
  padding: 0.5em 1em;
  border-radius: var(--radius-pill);
}

/* ----------------------------- ANGEBOTE ------------------------------- */
.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  align-items: stretch;
}
.offer {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-elev);
}
.offer__format {
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nebel);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.offer__name { margin-bottom: var(--space-2); color: var(--creme); }
.offer__line { color: var(--text-soft); font-size: var(--step-0); margin-bottom: var(--space-2); }
.offer__meta { font-size: var(--step--1); color: var(--text-faint); margin-bottom: var(--space-3); }
.offer__foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.offer__price { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; color: var(--goldlicht); }

.offer--featured {
  border-color: rgba(196, 98, 45, 0.45);
  box-shadow: 0 0 0 1px rgba(196, 98, 45, 0.15), var(--shadow-sm);
}
.offer__badge {
  position: absolute; top: -11px; left: var(--space-4);
  background: linear-gradient(135deg, var(--herbstfeuer), var(--herbstfeuer-hell));
  color: var(--creme);
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.35em 0.9em; border-radius: var(--radius-pill);
}
/* Privater Waldtag (mobil, bei dir vor Ort) — warm, dezent gold gehoben */
.offer--privat {
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(212,160,48,0.10) 0%, transparent 60%),
    var(--bg-elev);
  border-color: rgba(212, 160, 48, 0.32);
}

/* Specials — viertes, saisonales Angebot (bewusst abgesetzt, gold getönt) */
.specials {
  margin-top: var(--space-4);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 60% 140% at 100% 0%, rgba(212,160,48,0.12) 0%, transparent 60%),
    var(--bg-elev);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}
.specials:hover { border-color: var(--goldlicht); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.specials .eyebrow { color: var(--goldlicht); margin-bottom: var(--space-1); }
.specials__title { color: var(--creme); margin: var(--space-1) 0; }
.specials__text p:last-child { color: var(--text-soft); font-size: var(--step-0); max-width: 60ch; }
.specials__cta { color: var(--goldlicht); white-space: nowrap; }

/* ---------------------------- TESTIMONIAL ----------------------------- */
.testimonial { background: var(--waldnacht); }
.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.32;
  color: var(--creme);
  margin: var(--space-3) auto var(--space-3);
  max-width: 24ch;
  position: relative;
}
.testimonial__quote::before {
  content: '“';
  display: block;
  font-size: 4rem;
  line-height: 0.6;
  color: var(--moos);
  margin-bottom: 0.2em;
}
.testimonial__author { color: var(--goldlicht); font-weight: 600; margin-bottom: var(--space-3); }

/* ------------------------------- STEPS -------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  counter-reset: step;
}
.step { position: relative; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  color: var(--herbstfeuer);
  border: 1px solid rgba(196, 98, 45, 0.4);
  border-radius: 50%;
  margin-bottom: var(--space-2);
}
.step__title { font-size: var(--step-1); margin-bottom: var(--space-1); }
.step p { color: var(--text-soft); }
.steps__assurance {
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--herbstfeuer);
  background: rgba(196, 98, 45, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 70ch;
  color: var(--text-soft);
}

/* ----------------------------- NEWSLETTER ----------------------------- */
.newsletter h2 { margin: var(--space-2) 0 var(--space-3); }
.newsletter p { margin-inline: auto; margin-bottom: var(--space-4); color: var(--text-soft); }

/* ----------------------------- CLOSING -------------------------------- */
.closing {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(58,90,44,0.25) 0%, transparent 65%),
    linear-gradient(180deg, #07130b, var(--waldnacht));
  text-align: center;
}
.closing__atmosphere { position: absolute; inset: 0; }
.closing__inner { position: relative; z-index: 2; }
.closing h2 { margin-bottom: var(--space-4); }
.closing__sig { margin-top: var(--space-4); font-size: var(--step-2); color: var(--goldlicht); }

/* ------------------------------ FOOTER -------------------------------- */
.site-footer {
  background: #060f08;
  border-top: 1px solid var(--line);
  padding-top: var(--space-6);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}
.site-footer__brand img { margin-bottom: var(--space-2); }
.site-footer__claim { color: var(--text-faint); font-size: var(--step--1); line-height: 1.6; }
.site-footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moos-light);
  margin-bottom: var(--space-2);
}
.site-footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer__col a { color: var(--text-soft); font-size: var(--step--1); transition: color var(--t) var(--ease); }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-2);
  padding-block: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--text-faint);
}
.site-footer__legal { display: flex; gap: var(--space-3); }
.site-footer__legal a:hover { color: var(--accent); }

/* --------------------------- COOKIE-CONSENT --------------------------- */
.consent {
  position: fixed; left: 50%; bottom: var(--space-3);
  transform: translateX(-50%) translateY(20px);
  width: min(680px, calc(100% - 2rem));
  z-index: 150;
  background: rgba(18, 34, 24, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.consent.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.consent__inner { padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.consent__text { font-size: var(--step--1); color: var(--text-soft); max-width: none; }
.consent__text a { color: var(--accent); text-decoration: underline; }
.consent__actions { display: flex; gap: var(--space-2); justify-content: flex-end; }
.consent__actions .btn { padding: 0.7em 1.3em; font-size: var(--step--1); }

/* ------------------------------ RESPONSIVE ---------------------------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 360px; }
  .offers { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--space-3); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 26, 15, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: var(--space-2) var(--space-3) var(--space-3);
  }
  .nav.is-open .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav.is-open .nav__list a { padding: 0.9em 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__cta { margin-top: var(--space-2); text-align: center; }
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .site-footer__bar { justify-content: flex-start; }
  .consent__actions { flex-direction: column; }
  .consent__actions .btn { width: 100%; }
}

/* ===================================================================
   HOVER-EFFEKTE (nur bei Maus/feinem Zeiger; Touch behält Ruhe)
   =================================================================== */

/* Patch-/Abzeichen-Lupe: bei Hover/Fokus vergrößern, damit die Schrift
   lesbar wird. Wächst aus der unteren rechten Ecke, bleibt also auf dem
   Foto und ragt nicht aus dem Bild. Position bleibt unverändert. */
.about__badge {
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  transform-origin: bottom right;
  z-index: 2;
}
@media (hover: hover) and (pointer: fine) {
  .about__badge { cursor: zoom-in; }
  .about__badge:hover,
  .about__badge:focus-visible {
    transform: scale(2.4);
    box-shadow: var(--shadow);
    z-index: 6;
  }
}
/* Keyboard-Fokus überall (auch ohne Maus) */
.about__badge:focus-visible {
  transform: scale(2.4);
  outline: 2px solid var(--goldlicht);
  outline-offset: 4px;
  z-index: 6;
}

/* Momente-Band: die zwei Fotos bei Hover sanft um ~70 % vergrößern,
   z-index anheben, damit das Bild sauber über das Nachbarbild gleitet. */
.moments img {
  position: relative;
  z-index: 1;
  transform-origin: center;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .moments img { cursor: zoom-in; }
  .moments img:hover {
    transform: scale(1.7);
    box-shadow: var(--shadow);
    z-index: 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moments img:hover { transform: none; }
}
