/* ==========================================================
   SNUG PIZZA — Stylesheet
   Farben & Typo zentral hier anpassen
   ========================================================== */

@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Black.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/Lora-Italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --flour: #f2ede4;      /* Hintergrund */
  --paper: #faf7f2;      /* helle Flächen */
  --ink:   #161412;      /* Text */
  --char:  #2a2622;      /* dunkle Flächen */
  --red:   #ad594d;      /* Terracotta – einziger Akzent */
  --muted: #6f675e;
  --line:  rgba(22,20,18,.16);
  --on-red:  #faf7f2;    /* Text auf Rot – bleibt immer hell */
  --on-dark: #faf7f2;    /* Text auf dunklen Sektionen */
  --deep:    #161412;    /* Footer */
  --body2:   #3b3632;    /* Fließtext Rechtstexte */
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23161412' stroke-width='1.5'/%3E%3C/svg%3E");
  color-scheme: light;

  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, serif;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
}

/* Dunkelmodus: manuell (data-theme="dark") oder automatisch nach System */
:root[data-theme="dark"] {
  --flour: #141210; --paper: #141210; --ink: #f0eae0; --char: #1f1b18;
  --muted: #a39a8f; --line: rgba(240,234,224,.16); --deep: #0b0a09; --body2: #cfc7bc; --red: #ad594d;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f0eae0' stroke-width='1.5'/%3E%3C/svg%3E");
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --flour: #141210; --paper: #141210; --ink: #f0eae0; --char: #1f1b18;
  --muted: #a39a8f; --line: rgba(240,234,224,.16); --deep: #0b0a09; --body2: #cfc7bc; --red: #ad594d;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f0eae0' stroke-width='1.5'/%3E%3C/svg%3E");
  color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  transition: background-color .35s, color .35s;
  margin: 0; background: var(--flour); color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--red); color: var(--on-red); }

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

/* ---------- Typo ---------- */
.display {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.035em; line-height: .86; margin: 0;
}
.it { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; }
.eyebrow {
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  display: flex; gap: 14px; align-items: center; margin: 0 0 28px;
}
.eyebrow .num { color: var(--red); font-variant-numeric: tabular-nums; }
.lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; letter-spacing: -.01em; max-width: 34ch; margin: 0; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--flour) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font: 900 20px/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--red); }
.logo-mark, .badge-logo, .footer-logo {
  display: inline-block; background: currentColor;
  -webkit-mask: url("../img/logo-mask.png") center / contain no-repeat; mask: url("../img/logo-mask.png") center / contain no-repeat;
}
.logo-mark { width: 52px; height: 52px; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.logo:hover .logo-mark { transform: rotate(-12deg); }
.logo-text { font: 900 18px/1 var(--display); letter-spacing: -.02em; }
.badge-logo { width: 78%; height: 78%; color: var(--on-red); }
.footer-logo { width: 110px; height: 110px; color: var(--on-dark); margin-bottom: 28px; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { font: 500 14px/1 var(--sans); text-decoration: none; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle { display: none; background: none; border: 0; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; padding: 8px 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 600 14px/1 var(--sans); padding: 14px 20px; border-radius: 999px; border: 0; cursor: pointer;
  transition: background .25s, transform .25s;
}
.btn:hover { background: var(--red); color: var(--on-red); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-red { background: var(--red); color: var(--on-red); }
.btn-red:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(32px, 6vw, 80px); }
.hero-title { font-size: min(15.6vw, 226px); white-space: nowrap; display: block; margin-left: -.04em; }
.hero-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 18px 0 0; border-top: 1px solid var(--ink); padding-top: 14px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.hero-sub .it { font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -.01em; text-transform: none; color: var(--red); }
.hero-meta {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
  margin: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 40px);
}
.hero-tag { font-size: clamp(20px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.02em; margin: 0; max-width: 22ch; font-weight: 500; }
.hero-img { position: relative; aspect-ratio: 16/8; overflow: hidden; background: var(--char); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.06); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.hero-img.in img { transform: scale(1); }
.badge {
  position: absolute; right: clamp(16px, 3vw, 40px); top: clamp(16px, 3vw, 40px);
  width: clamp(96px, 11vw, 150px); aspect-ratio: 1; border-radius: 50%;
  background: var(--red); color: var(--on-red); display: grid; place-items: center; text-align: center;
  font: 900 clamp(13px, 1.2vw, 16px)/1.05 var(--display); text-transform: uppercase; letter-spacing: -.01em;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.hero-img:hover .badge { transform: rotate(-10deg) scale(1.04); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--red); color: var(--on-red); overflow: hidden; white-space: nowrap; border-block: 1px solid var(--ink); }
.ticker-track { display: inline-flex; animation: tick 38s linear infinite; padding: 18px 0; }
.ticker-track span { font: 900 clamp(22px, 2.6vw, 38px)/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; padding-right: 28px; }
.ticker-track span.it { font-weight: 400; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { scroll-margin-top: 68px; }
.section { padding: clamp(80px, 11vw, 160px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.h2 { font-size: clamp(48px, 8.4vw, 132px); }

/* Teig / Haltung */
.craft { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.craft-img { aspect-ratio: 4/5; overflow: hidden; background: var(--char); }
.craft-img img { width: 100%; height: 100%; object-fit: cover; }
.craft-text p { margin: 0 0 1.1em; max-width: 52ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); margin-top: clamp(40px, 5vw, 72px); }
.stat { padding: 22px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b { display: block; font: 900 clamp(40px, 5vw, 76px)/.9 var(--display); letter-spacing: -.04em; }
.stat small { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Menü */
.menu { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.menu li {
  display: grid; grid-template-columns: 70px 1.1fr 1.4fr auto; gap: 24px; align-items: baseline;
  padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line);
  transition: padding .35s, color .35s;
}
.menu li:hover { padding-left: 14px; }
.menu li:hover .menu-name { color: var(--red); }
.menu-no { font: 600 13px var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.menu-name { font: 900 clamp(30px, 3.8vw, 56px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.03em; transition: color .35s; }
.menu-desc { color: var(--muted); font-size: 16px; }
.menu-tag { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 7px 10px; white-space: nowrap; }
.menu-note { margin-top: 28px; font-size: 15px; }
#pizza { position: relative; }
.menu-preview {
  position: fixed; left: 0; top: 0; width: 300px; aspect-ratio: 4/3; pointer-events: none; z-index: 40;
  overflow: hidden; border-radius: 4px; opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-4deg);
  transition: opacity .25s, transform .35s cubic-bezier(.2,.7,.2,1); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
}
.menu-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.menu-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 960px) { .menu-preview { display: none; } }

/* Services – dunkel */
.dark { background: var(--char); color: var(--on-dark); }
.dark .muted, .dark .menu-desc { color: #b5ada3; }
.dark .section-head .lead { color: #d9d2c8; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(250,247,242,.25); }
.service { padding: 32px 32px 0 0; }
.service + .service { padding-left: 32px; border-left: 1px solid rgba(250,247,242,.18); }
.service h3 { font: 900 clamp(32px, 3.4vw, 52px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.03em; margin: 18px 0 18px; }
.service p { margin: 0 0 1em; color: #d9d2c8; max-width: 36ch; }
.service .num { font: 600 13px var(--sans); color: var(--red); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(48px, 6vw, 80px); }
.fact { border: 1px solid rgba(250,247,242,.3); border-radius: 999px; padding: 10px 16px; font-size: 14px; }

/* Über uns */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.timeline li { padding: 24px 24px 0 0; }
.timeline li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.timeline b { display: block; font: 900 clamp(44px, 5.4vw, 84px)/.9 var(--display); letter-spacing: -.04em; }
.timeline li:last-child b { color: var(--red); }
.timeline h3 { font: 600 17px/1.3 var(--sans); margin: 18px 0 8px; }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; max-width: 30ch; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 10px; margin-top: clamp(56px, 7vw, 100px); }
.member { margin: 0; }
.member-img { aspect-ratio: 4/5; overflow: hidden; background: var(--char); }
.member-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); transition: filter .6s, transform 1s cubic-bezier(.2,.7,.2,1); }
.member:hover .member-img img { filter: none; transform: scale(1.03); }
.member figcaption { border-top: 1px solid var(--ink); margin-top: 14px; padding-top: 12px; }
.member-role { font: 600 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.member h3 { font: 900 clamp(28px, 2.8vw, 42px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.03em; margin: 10px 0 0; }
.team-note { margin: 24px 0 0; font-size: 15px; }

/* Öfen */
.product { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--ink); }
.product:nth-of-type(even) .product-img { order: 2; }
.product-img { margin: 0; aspect-ratio: 3/2; overflow: hidden; background: var(--char); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-text h2 { font-size: clamp(36px, 4.4vw, 66px); margin: 12px 0 24px; }
.product-text p { color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.specs { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.specs li { padding: 14px 12px 0 0; }
.specs b { display: block; font: 900 clamp(22px, 2vw, 30px)/1 var(--display); letter-spacing: -.02em; }
.specs span { font-size: 12px; color: var(--muted); }
@media (max-width: 960px) { .product { grid-template-columns: 1fr; } .product:nth-of-type(even) .product-img { order: 0; } }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.gallery figure { margin: 0; overflow: hidden; background: var(--char); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.gallery figure:hover img { transform: scale(1.035); }
.g1 { grid-column: span 7; aspect-ratio: 7/5; }
.g2 { grid-column: span 5; }
.g2 img { object-position: 60% 50%; }
.g3 { grid-column: span 4; aspect-ratio: 4/5; }
.g4 { grid-column: span 4; aspect-ratio: 4/5; margin-top: 60px !important; }
.g5 { grid-column: span 4; aspect-ratio: 4/5; }
.g6 { grid-column: 3 / span 8; aspect-ratio: 16/9; }
.gallery-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; flex-wrap: wrap; }

/* Booking */
.booking { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); }
.booking-aside p { max-width: 38ch; }
.booking-aside .contact-line { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 15px; }
.booking-aside .contact-line a { font-weight: 600; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font: 400 17px/1.4 var(--sans); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0; outline: none; width: 100%;
  transition: border-color .2s;
}
.field select option { background: var(--flour); color: var(--ink); }
.field select { appearance: none; background: var(--chev) right 2px center no-repeat; padding-right: 22px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--red); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips label { font: 500 15px/1 var(--sans); letter-spacing: 0; text-transform: none; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; border: 1px solid var(--ink); border-radius: 999px; padding: 11px 16px; transition: background .2s, color .2s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form-foot small { color: var(--muted); max-width: 46ch; font-size: 13px; }
.form-status { grid-column: 1 / -1; font-weight: 600; margin: 0; min-height: 1.5em; }
.form-status.ok { color: #2e7d32; }
.form-status.err { color: var(--red); }

/* Theme-Schalter Hell / Auto / Dunkel */
.theme-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.theme-switch button {
  font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  background: none; border: 0; border-radius: 999px; padding: 8px 10px; cursor: pointer; transition: background .2s, color .2s;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.theme-switch button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-dark); padding: clamp(64px, 8vw, 110px) 0 32px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: clamp(48px, 6vw, 80px); }
.footer-grid h4 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #9c948a; margin: 0 0 16px; }
.footer-grid a { display: block; text-decoration: none; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--red); }
.footer-claim { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.02em; margin: 0; max-width: 18ch; }
.footer-word { font: 900 clamp(40px, 12.4vw, 190px)/.8 var(--display); display: block; width: 100%; text-transform: uppercase; letter-spacing: -.035em; margin: 0 0 24px; color: var(--on-dark); white-space: nowrap; }
.footer-word .dot { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(250,247,242,.18); padding-top: 22px; font-size: 13px; color: #9c948a; flex-wrap: wrap; }
.footer-bottom a { text-decoration: none; margin-left: 20px; }
.footer-bottom a:hover { color: var(--on-dark); }

/* Rechtstexte */
.legal { padding: clamp(56px, 8vw, 120px) 0; }
.legal-body { max-width: 72ch; }
.legal-body h2 { font: 600 20px/1.3 var(--sans); margin: 2.2em 0 .6em; letter-spacing: -.01em; }
.legal-body h3 { font: 600 17px/1.3 var(--sans); margin: 1.6em 0 .4em; }
.legal-body p, .legal-body li { color: var(--body2); }

/* Reveal-Animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .team { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .timeline li:nth-child(4) { border-left: 0; padding-left: 0; }
  .timeline li:nth-child(n+4) { margin-top: 28px; }
  .section-head, .craft, .booking { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 28px 0; border-left: 0; border-bottom: 1px solid rgba(250,247,242,.18); }
  .menu li { grid-template-columns: 44px 1fr; gap: 6px 14px; }
  .menu-desc { grid-column: 2; }
  .menu-tag { grid-column: 2; justify-self: start; margin-top: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .g1, .g2, .g6 { grid-column: span 12; }
  .g2 { aspect-ratio: 1; }
  .g3, .g4, .g5 { grid-column: span 6; }
  .g4 { margin-top: 0 !important; }
  .g5 { grid-column: span 12; aspect-ratio: 16/10; }
}
@media (max-width: 720px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li, .timeline li + li, .timeline li:nth-child(n+4) { border-left: 0; padding-left: 0; margin-top: 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--flour); flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--pad) 24px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s; z-index: -1; }
  .nav.open { transform: none; }
  .nav a { font-size: 22px; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .theme-switch { margin-top: 18px; }
  .nav a.btn { margin-top: 16px; width: auto; border: 0; font-size: 15px; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-img { aspect-ratio: 4/5; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); margin-top: 20px; }
  .form { grid-template-columns: 1fr; }
  .footer-bottom a { margin: 0 16px 0 0; }
}

/* ---------- Galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(40px, 5vw, 72px); position: sticky; top: 68px; z-index: 20; padding: 12px 0; background: var(--flour); }
.filter { font: 500 14px/1 var(--sans); color: var(--ink); background: none; border: 1px solid var(--ink); border-radius: 999px; padding: 11px 16px; cursor: pointer; transition: background .2s, color .2s; }
.filter sup { font-size: 10px; color: var(--muted); margin-left: 2px; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filter[aria-pressed="true"] sup { color: inherit; opacity: .6; }
.g-group { margin-bottom: clamp(64px, 8vw, 120px); }
.g-group[hidden] { display: none; }
.g-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-top: 1px solid var(--ink); padding-top: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.g-head h2 { font-size: clamp(32px, 4.4vw, 64px); }
.masonry { columns: 4 260px; column-gap: 10px; }
.tile { display: block; margin-bottom: 10px; break-inside: avoid; overflow: hidden; background: var(--char); cursor: zoom-in; }
.tile img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.tile:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,11,10,.96); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lb-img { max-width: 92vw; max-height: 86vh; object-fit: contain; user-select: none; }
.lb-btn { position: absolute; background: none; border: 0; color: #faf7f2; font: 600 15px/1 var(--sans); cursor: pointer; padding: 18px; }
.lb-btn:hover { color: var(--red); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #9c948a; font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .masonry { columns: 2; column-gap: 6px; } .tile { margin-bottom: 6px; } .filters { top: 68px; overflow-x: auto; flex-wrap: nowrap; } .filter { white-space: nowrap; } }
