/* ------------------------------------------------------------------
   noahschaub.ch – globales Stylesheet
   ------------------------------------------------------------------ */

:root {
  --paper: #f6f4ee;
  --paper-raised: #fffdf8;
  --ink: #14120c;
  --ink-soft: #4c4739;
  --ink-faint: #6e6857;
  --line: #ddd7c9;
  --accent: #b0451c;
  --accent-deep: #8d3312;

  --night: #0e0d0b;
  --night-raised: #161411;
  --night-line: #2b2823;
  --night-text: #f0ebdf;
  --night-soft: #a89f8c;
  --amber: #e3a455;

  --font-display: "Clash Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Switzer", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --max: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 6rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Feines Korn über der ganzen Seite */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: #fff; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.theme-night :focus-visible, .hero :focus-visible { outline-color: var(--amber); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Scroll-Reveal (nur mit JS aktiv) */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
   Header (dunkel auf allen Seiten)
   ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 13, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--night-text);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark span { color: var(--amber); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.site-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--night-soft);
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--night-text); }

.nav-cta {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--night) !important;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover { background: #eeb96e; transform: translateY(-1px); }

/* Burger-Button, nur auf schmalen Screens sichtbar */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.5rem;
  margin-left: 0.75rem;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--night-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Skip-Link für Tastatur-Navigation */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 300;
  padding: 0.7rem 1.2rem;
  background: var(--amber);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 12px 12px;
}

.skip-link:focus-visible { top: 0; }

/* ------------------------------------------------------------------
   Typografie
   ------------------------------------------------------------------ */

.kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.theme-night .kicker, .hero .kicker, .band-appnity .kicker { color: var(--amber); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.9rem, 8vw, 6.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }

.lede {
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36em;
}

.theme-night .lede, .hero .lede, .band-appnity .lede { color: var(--night-soft); }

/* Buttons & Links */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn-amber { background: var(--amber); color: var(--night); }
.btn-amber:hover { background: #eeb96e; }

.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.link-arrow .arr { transition: transform 0.2s ease; }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ------------------------------------------------------------------
   Hero (dunkel)
   ------------------------------------------------------------------ */

.hero {
  position: relative;
  background: var(--night);
  color: var(--night-text);
  padding: clamp(4rem, 11vh, 7.5rem) 0 clamp(3.5rem, 9vh, 6.5rem);
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(227, 164, 85, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 { max-width: 11em; hyphens: manual; font-size: clamp(2.8rem, 7.2vw, 5.6rem); }

.hero .lede { margin-top: 1.75rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--night-line);
  font-size: 0.9rem;
  color: var(--night-soft);
}

.hero-meta strong {
  color: var(--night-text);
  font-weight: 600;
}

.hero-figure {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
}

.hero-figure::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(closest-side, rgba(227, 164, 85, 0.16), transparent 74%);
}

.hero-figure img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------------
   Faktenband
   ------------------------------------------------------------------ */

.stat-strip {
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
}

.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
}

.stat span { font-size: 0.85rem; color: var(--ink-faint); }

/* ------------------------------------------------------------------
   Sektionen
   ------------------------------------------------------------------ */

.section { padding: clamp(4rem, 10vh, 7.5rem) 0; }

.section + .section { border-top: 1px solid var(--line); }

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
}

.section-grid > .sticky-col { position: sticky; top: 7rem; }

.prose p + p { margin-top: 1.2em; }

.prose .em { font-weight: 600; color: var(--ink); }

/* Rechtsseiten (Impressum, Datenschutz) */

.legal .prose { max-width: 44rem; }

.legal-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.6em;
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal .prose h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
  margin-bottom: 0.6em;
}

.legal .prose a { color: var(--accent); }

.legal-stand {
  margin-top: 3em;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* Timeline */

.timeline { list-style: none; }

.timeline li {
  position: relative;
  padding: 1.6rem 0 1.6rem 2.5rem;
  border-left: 1px solid var(--line);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 2.45rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--paper);
}

.timeline .year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.timeline h3 { margin: 0.4rem 0 0.45rem; }

.timeline p { color: var(--ink-soft); font-size: 0.99rem; }

/* ------------------------------------------------------------------
   Bild-Bausteine
   ------------------------------------------------------------------ */

figure.shot { margin: 0; }

figure.shot img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

figure.shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.83rem;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------------
   Appnity-Band (dunkel)
   ------------------------------------------------------------------ */

.band-appnity {
  background: var(--night);
  color: var(--night-text);
  padding: clamp(4rem, 10vh, 7.5rem) 0;
}

.appnity-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.appnity-logo { height: 42px; width: auto; }

.band-appnity .lede { margin-top: 1.25rem; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.25rem;
}

.chip {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--night-soft);
  background: var(--night-raised);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.chip:hover { border-color: var(--amber); color: var(--night-text); }

.gallery-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-row figure.shot figcaption { color: var(--night-soft); }

.gallery-row img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--night-line);
  transition: transform 0.4s ease;
}

.gallery-row figure.shot { overflow: hidden; border-radius: var(--radius); }

.gallery-row figure.shot:hover img { transform: scale(1.025); }

.appnity-quote {
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--night-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.appnity-quote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  letter-spacing: -0.01em;
  max-width: 24em;
}

.values-line {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: -0.01em;
  color: var(--night-text);
}

.values-line span { color: var(--amber); }

.clients-note {
  margin-top: 1.5rem;
  font-size: 0.87rem;
  color: var(--night-soft);
  max-width: 60em;
}

.clients-note strong { color: var(--night-text); font-weight: 600; }

/* ------------------------------------------------------------------
   Facetten & Zitat
   ------------------------------------------------------------------ */

.facets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.facet:only-child {
  grid-column: 1 / -1;
  max-width: 720px;
}

.mfa-panel {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.mfa-panel h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.mfa-state { margin: 0 0 .75rem; opacity: .85; }

.mfa-secret {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  letter-spacing: .12em;
  background: rgba(0, 0, 0, .25);
  padding: .5rem .75rem;
  border-radius: 8px;
  margin: .5rem 0 1rem;
  word-break: break-all;
}

.site-stats { margin: 2rem 0; }
.site-stats > h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.stat-pages { margin-top: 1rem; opacity: .85; font-size: .95rem; }

.facet {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.facet:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 18, 12, 0.08);
}

.facet .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.facet h3 { margin-bottom: 0.65rem; }

.facet p { font-size: 0.98rem; color: var(--ink-soft); }

.facet a { color: var(--accent-deep); font-weight: 500; }

.quote-band {
  padding: clamp(3.5rem, 9vh, 6rem) 0;
  border-top: 1px solid var(--line);
}

.quote-band blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.8vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 26em;
}

.quote-band cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* Teaser */

.teaser {
  background: var(--night);
  color: var(--night-text);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem;
  align-items: center;
  position: relative;
  overflow: clip;
}

.teaser::before {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 55%;
  height: 100%;
  background: radial-gradient(closest-side, rgba(227, 164, 85, 0.12), transparent 70%);
  pointer-events: none;
}

.teaser > div { position: relative; }

.teaser p { color: var(--night-soft); margin-top: 1rem; max-width: 34em; }

.teaser .btn { margin-top: 1.75rem; }

.teaser-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--night-line);
}

/* ------------------------------------------------------------------
   Afterwork-Seite
   ------------------------------------------------------------------ */

.theme-night { background: var(--night); color: var(--night-text); }

.theme-night ::selection { background: var(--amber); color: var(--night); }

.theme-night .section + .section { border-top-color: var(--night-line); }

.aw-hero {
  position: relative;
  padding: clamp(4rem, 11vh, 7rem) 0 clamp(3rem, 7vh, 5rem);
  border-bottom: 1px solid var(--night-line);
  overflow: clip;
}

.aw-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -5%;
  width: 50%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(227, 164, 85, 0.13), transparent 70%);
  pointer-events: none;
}

.aw-hero .wrap { position: relative; }

.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--night-soft);
  margin-bottom: 1.6rem;
  background: var(--night-raised);
}

.time-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 164, 85, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(227, 164, 85, 0); }
}

.aw-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.fact {
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.2s ease;
}

.fact:hover { border-color: rgba(227, 164, 85, 0.4); }

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.015em;
}

.fact span { font-size: 0.9rem; color: var(--night-soft); }

.aw-photo { margin-top: 3rem; overflow: hidden; border-radius: calc(var(--radius) + 4px); }

.aw-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--night-line);
  transition: transform 0.5s ease;
}

.aw-photo:hover img { transform: scale(1.02); }

.steps { list-style: none; counter-reset: step; margin-top: 3rem; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }

.steps li {
  counter-increment: step;
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--amber);
}

.steps h3 { margin: 0.85rem 0 0.5rem; }

.steps p { font-size: 0.95rem; color: var(--night-soft); }

.include-list { list-style: none; margin-top: 2rem; }

.include-list li {
  display: flex;
  gap: 0.9rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--night-line);
  color: var(--night-soft);
}

.include-list li:first-child { border-top: 1px solid var(--night-line); }

.include-list .tick {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.15rem;
  color: var(--amber);
}

.include-list strong { color: var(--night-text); font-weight: 600; }

/* FAQ */

.faq { margin-top: 2rem; }

.faq details { border-bottom: 1px solid var(--night-line); }

.faq details:first-child { border-top: 1px solid var(--night-line); }

.faq summary {
  padding: 1.15rem 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--amber);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 0 1.25rem;
  color: var(--night-soft);
  max-width: 44em;
}

/* ------------------------------------------------------------------
   Formular
   ------------------------------------------------------------------ */

.booking-panel {
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-top: 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.25rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field.span-2 { grid-column: span 2; }

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--night-text);
}

.field label .opt { font-weight: 400; color: var(--night-soft); }

.field input,
.field textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--night-text);
  background: var(--night);
  border: 1px solid var(--night-line);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.15s ease;
  width: 100%;
}

.field input::placeholder,
.field textarea::placeholder { color: #6b6455; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #c4553d; }

.field .err {
  font-size: 0.8rem;
  color: #d8846f;
  display: none;
}

.field input[aria-invalid="true"] ~ .err,
.field textarea[aria-invalid="true"] ~ .err { display: block; }

.field input[type="date"] { color-scheme: dark; }

/* Paket-Karten (Pricing-Sektion) */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: calc(var(--radius) + 6px);
  padding: 2rem 1.75rem;
}

.plan-featured { border-color: var(--amber); }

.plan-badge {
  position: absolute;
  top: -0.8rem;
  right: 1.5rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--night);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan h3 { color: var(--night-text); }

.plan-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--night-text);
  margin-top: 0.75rem;
  letter-spacing: -0.02em;
}

.plan-price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--night-soft);
  letter-spacing: 0;
}

.plan-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  flex: 1;
}

.plan-list li {
  padding: 0.65rem 0;
  border-top: 1px solid var(--night-line);
  color: var(--night-soft);
  font-size: 0.95rem;
}

.plan-btn { justify-content: center; }

@media (max-width: 860px) {
  .pricing { grid-template-columns: 1fr; }
}

/* Buchungs-Overlay */

.booking-cta { text-align: center; }

.booking-cta .lede { margin: 0 auto 2rem; }

.booking-cta h2 { margin-bottom: 1rem; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0.75rem, 3vh, 3rem) var(--gutter);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 5, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  margin-top: 0 !important;
}

.modal-title { margin-bottom: 1.5rem; }

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--night-text);
  background: none;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.modal-close:hover { border-color: var(--amber); }

body.modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .modal { padding: 0; align-items: stretch; }
  .modal-panel { border-radius: 0; border-left: 0; border-right: 0; min-height: 100%; }
}

/* Paketwahl im Formular */

.package-choice,
.meal-plan {
  grid-column: span 2;
  border: 0;
  padding: 0;
  margin: 0;
}

.package-choice legend,
.meal-plan legend {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--night-text);
  margin-bottom: 0.6rem;
}

.package-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.package-option { display: block; cursor: pointer; }

.package-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.package-option .pkg-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  height: 100%;
  padding: 0.9rem 1rem;
  background: var(--night);
  border: 1px solid var(--night-line);
  border-radius: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.package-option:hover .pkg-body { border-color: #4a453c; }

.package-option input:checked + .pkg-body {
  border-color: var(--amber);
  background: rgba(227, 164, 85, 0.08);
}

.package-option input:focus-visible + .pkg-body {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.pkg-name { font-weight: 600; color: var(--night-text); }

.pkg-price { font-size: 0.9rem; color: var(--amber); font-weight: 600; }

.pkg-hint { font-size: 0.8rem; color: var(--night-soft); }

.package-choice[aria-invalid="true"] .pkg-body { border-color: #c4553d; }

.package-choice .err { font-size: 0.8rem; color: #d8846f; display: none; margin-top: 0.5rem; }

.package-choice[aria-invalid="true"] .err { display: block; }

/* Menüplan */

.meal-note { font-size: 0.88rem; color: var(--night-soft); margin-bottom: 1rem; }

.meal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}

.meal-day { display: flex; flex-direction: column; gap: 0.35rem; }

.meal-day label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--night-text);
}

.meal-day select {
  font: inherit;
  font-size: 0.95rem;
  color: var(--night-text);
  background: var(--night);
  border: 1px solid var(--night-line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  width: 100%;
  color-scheme: dark;
}

.meal-day select:focus {
  outline: none;
  border-color: var(--amber);
}

@media (max-width: 640px) {
  .package-options { grid-template-columns: 1fr; }
  .meal-grid { grid-template-columns: 1fr; }
  .package-choice, .meal-plan { grid-column: span 1; }
}

.consent {
  grid-column: span 2;
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  background: var(--night);
  border: 1px solid var(--night-line);
  border-radius: 14px;
  margin-top: 0.4rem;
}

.consent input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--amber);
}

.consent label {
  font-size: 0.9rem;
  color: var(--night-soft);
  line-height: 1.55;
}

.consent label strong { color: var(--night-text); }

.form-footer {
  grid-column: span 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.form-note { font-size: 0.85rem; color: var(--night-soft); max-width: 26em; }

.form-error {
  grid-column: span 2;
  display: none;
  background: #2a1712;
  border: 1px solid #6d3323;
  color: #e6a08d;
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  font-size: 0.92rem;
}

.form-error.visible { display: block; }

.btn[disabled] { opacity: 0.55; cursor: wait; }

/* ------------------------------------------------------------------
   Footer (dunkel, gross)
   ------------------------------------------------------------------ */

.site-footer {
  background: var(--night);
  color: var(--night-soft);
  padding: clamp(3rem, 7vh, 4.5rem) 0 2.5rem;
}

.theme-night .site-footer { border-top: 1px solid var(--night-line); }

.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
  color: var(--night-text);
  margin-bottom: 2rem;
}

.footer-name span { color: var(--amber); }

.site-footer .footer-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--night-line);
  font-size: 0.9rem;
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--night-text); }

.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }

/* ------------------------------------------------------------------
   Buch-Seite
   ------------------------------------------------------------------ */

.buch-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.buch-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }

.buch-meta {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--night-soft);
}

.buch-cover {
  margin: 0;
  justify-self: end;
  width: min(100%, 380px);
  position: relative;
}

.buch-cover::before {
  content: "";
  position: absolute;
  inset: -14%;
  background: radial-gradient(closest-side, rgba(227, 164, 85, 0.22), transparent 72%);
  pointer-events: none;
}

.buch-cover img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  transform: rotate(1.5deg);
  transition: transform 0.4s ease;
}

.buch-cover:hover img { transform: rotate(0deg) scale(1.015); }

.buch-order {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--night-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.buch-order p { color: var(--night-soft); max-width: 32em; }

/* Buch-Teaser auf der Startseite */

.buch-teaser {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.buch-teaser-cover {
  margin: 0;
  width: min(100%, 300px);
}

.buch-teaser-cover img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(20, 18, 12, 0.22);
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease;
}

.buch-teaser-cover:hover img { transform: rotate(0deg) scale(1.015); }

.buch-teaser .lede { margin-top: 1.25rem; }

.buch-teaser .btn { margin-top: 2rem; }

/* ------------------------------------------------------------------
   Danke-Seite
   ------------------------------------------------------------------ */

.thanks-hero {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: clamp(4rem, 12vh, 8rem) 0;
}

.thanks-hero .lede { margin-top: 1.5rem; }

.thanks-hero .btn { margin-top: 2.25rem; }

/* ------------------------------------------------------------------
   Admin
   ------------------------------------------------------------------ */

.admin-main { padding: clamp(2.5rem, 6vh, 4.5rem) 0 5rem; min-height: 70vh; }

.admin-login {
  max-width: 420px;
  margin: 8vh auto 0;
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.admin-login h1 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-bar h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }

.admin-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--night-line);
  color: var(--night-text);
  font-size: 0.92rem;
  padding: 0.65rem 1.3rem;
}

.btn-ghost:hover { border-color: var(--amber); }

.admin-cards { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }

.admin-empty { color: var(--night-soft); padding: 2rem 0; }

.booking-card {
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.booking-card.is-paid { border-color: rgba(122, 190, 120, 0.45); }

.booking-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.booking-head strong { font-size: 1.08rem; }

.booking-ref {
  font-size: 0.8rem;
  color: var(--night-soft);
  letter-spacing: 0.04em;
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem 1.5rem;
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--night-soft);
}

.booking-grid strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--night-text);
  margin-bottom: 0.15rem;
}

.booking-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--night-line);
}

.badge {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--night-line);
  color: var(--night-soft);
}

.badge.paid { border-color: rgba(122, 190, 120, 0.6); color: #9fd49d; }

.booking-foot .row-actions { display: flex; gap: 0.6rem; }

.mini-btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--night-line);
  background: transparent;
  color: var(--night-text);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.mini-btn:hover { border-color: var(--amber); }

.mini-btn.danger:hover { border-color: #c4553d; color: #d8846f; }

.admin-note { margin-top: 2.5rem; font-size: 0.88rem; color: var(--night-soft); }

.admin-note a { color: var(--amber); }

/* Dashboard-Statistiken */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.stat-card {
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--night-text);
}

.stat-card span { font-size: 0.8rem; color: var(--night-soft); }

.stat-card.ok strong { color: #7abe78; }

.stat-card.warn strong { color: var(--amber); }

/* Menü-Woche */

.meal-week {
  margin-top: 1.5rem;
  background: var(--night-raised);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem 1.5rem;
}

.meal-week h2 { font-size: 1.15rem; margin-bottom: 1.1rem; }

.meal-week-hint {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--night-soft);
  letter-spacing: 0;
}

.meal-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.9rem;
}

.meal-col h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--night-soft);
  margin-bottom: 0.4rem;
}

.meal-item {
  font-size: 0.84rem;
  color: var(--night-text);
  padding: 0.35rem 0;
  border-top: 1px solid var(--night-line);
}

.meal-item.none { color: var(--night-soft); }

@media (max-width: 860px) {
  .meal-week-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Filter-Chips */

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }

.chip-btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--night-soft);
  background: none;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.chip-btn:hover { color: var(--night-text); }

.chip-btn.active {
  color: var(--night);
  background: var(--amber);
  border-color: var(--amber);
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */

@media (max-width: 860px) {
  .section-grid { grid-template-columns: 1fr; }
  .section-grid > .sticky-col { position: static; }
  .teaser { grid-template-columns: 1fr; }
  .aw-facts, .steps { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { justify-self: start; width: min(100%, 330px); }
  .stat-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .facets, .gallery-row { grid-template-columns: 1fr; }
  .aw-photo img { aspect-ratio: 4 / 3; }
  .buch-hero-grid, .buch-teaser { grid-template-columns: 1fr; }
  .buch-cover { justify-self: start; width: min(100%, 300px); }
}

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .nav-toggle { display: inline-flex; }

  /* Offenes Menü: Nav wird zum Panel unter dem Header */
  .nav-open .site-nav {
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--night);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-open .site-nav a:not(.nav-cta) {
    display: block;
    padding: 0.9rem 0;
    font-size: 1.05rem;
    color: var(--night-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-open .site-nav .nav-cta {
    margin-top: 1.25rem;
    text-align: center;
  }

  .form-grid { grid-template-columns: 1fr; }
  .field.span-2, .consent, .form-footer, .form-error { grid-column: span 1; }
}
/* ------------------------------------------------------------------
   Hero v2 – Editorial Split
   ------------------------------------------------------------------ */

.hero2 {
  position: relative;
  background: var(--night);
  color: var(--night-text);
  border-bottom: 1px solid var(--night-line);
  overflow: clip;
}

.hero2-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 36vw, 500px);
  align-items: stretch;
  margin-left: max(var(--gutter), calc((100% - var(--max)) / 2));
}

.hero2-copy {
  padding: clamp(2.5rem, 6.5vh, 4rem) clamp(2.25rem, 5vw, 4.5rem) clamp(2.5rem, 6vh, 3.75rem) 0;
}

.hero2 .kicker {
  color: var(--night-soft);
  margin-bottom: clamp(1.5rem, 3.5vh, 2.25rem);
}

.hero2-title {
  font-size: clamp(3.1rem, 7.6vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero2-title span { display: block; }

.hero2-title .dot {
  font-style: normal;
  color: var(--amber);
}

.hero2 .lede {
  margin-top: clamp(1.5rem, 3.5vh, 2rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--night-line);
  color: var(--night-soft);
  max-width: 44rem;
}

.hero2-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-top: 2rem;
}

.hero2-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1.75rem;
  margin-top: clamp(2rem, 4.5vh, 2.75rem);
  border-top: 1px solid var(--night-line);
  max-width: 44rem;
}

.hero2-facts > div { padding-top: 1.15rem; }

.hero2-facts > div + div {
  border-left: 1px solid var(--night-line);
  padding-left: 1.75rem;
}

.hero2-facts dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--night-soft);
}

.hero2-facts dd {
  margin: 0.35rem 0 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--night-text);
}

.hero2-figure {
  margin: 0;
  position: relative;
  border-left: 1px solid var(--night-line);
}

.hero2-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 0;
}

@media (max-width: 860px) {
  .hero2-grid {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .hero2-copy {
    padding: 2.75rem var(--gutter) 2.5rem;
  }

  .hero2-figure {
    border-left: 0;
    border-top: 1px solid var(--night-line);
    aspect-ratio: 4 / 5;
    max-height: 70vh;
  }
}

@media (max-width: 430px) {
  .hero2-title {
    font-size: clamp(2.6rem, 14vw, 3.4rem);
  }

  .hero2-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero2-facts {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 0;
  }

  .hero2-facts > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid var(--night-line);
  }

  .hero2-facts > div + div {
    border-left: 0;
    padding-left: 0;
  }

  .hero2-facts dd {
    margin-top: 0;
    text-align: right;
  }

  .hero2-figure {
    aspect-ratio: 1 / 1;
  }
}
