/* ==========================================================================
   Anleashed - warm & handcrafted, Logo palette
   Tokens aus logo/logo.json: Navy + Creme + Gold, Teal nur für "frei/erledigt".
   Auto light/dark via prefers-color-scheme.
   Radius system: 12px on cards/inputs/buttons/images (one scale everywhere).
   ========================================================================== */

@import url('/fonts/fonts.css');

:root {
  --paper: #f4f1e0;          /* Logo Creme */
  --paper-raised: #faf8ee;
  --ink: #1a314d;            /* Logo Navy */
  --ink-soft: #4f5e73;
  --navy: #24406a;
  --navy-deep: #1a314d;
  --on-navy: #f4f1e0;
  --tint: #e6ecde;           /* Creme + etwas Teal */
  --gold: #c7a25a;           /* Logo Gold, Flächen und Linien */
  --gold-strong: #7f6020;    /* Gold für Text auf Creme (Kontrast 5:1) */
  --teal: #3f7358;           /* Status "frei/erledigt" */
  --line: rgba(26, 49, 77, 0.16);
  --line-soft: rgba(26, 49, 77, 0.08);
  --shadow: 0 18px 40px -18px rgba(26, 49, 77, 0.3);
  --radius: 12px;
  --font: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1b2b;
    --paper-raised: #16253a;
    --ink: #f4f1e0;
    --ink-soft: #aeb6c2;
    --navy: #2e4d78;
    --navy-deep: #0a1422;
    --on-navy: #f4f1e0;
    --tint: #142638;
    --gold: #d4b06a;
    --gold-strong: #e0c083;
    --teal: #8bb8a0;
    --line: rgba(244, 241, 224, 0.16);
    --line-soft: rgba(244, 241, 224, 0.08);
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }

/* hidden gilt immer, auch wenn eine Klasse ein display setzt (.form-grid, .field, .btn ...) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

::selection { background: var(--gold); color: #1a314d; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1, h2 { hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0 0 1em; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34em;
}

.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 560;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--navy-deep);
  color: var(--on-navy);
}
.btn-primary:hover { background: var(--navy); }
@media (prefers-color-scheme: dark) {
  .btn-primary { background: var(--gold); color: #1a314d; }
  .btn-primary:hover { background: var(--gold-strong); }
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 76px;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { height: 52px; width: auto; }
.brand-suffix { color: var(--ink-soft); font-weight: 480; font-size: 1rem; }
.footer .brand img { height: 60px; margin-bottom: 1rem; }
@media (max-width: 820px) {
  .brand img { height: 44px; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  font-weight: 480;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current='page'] { color: var(--ink); }
.nav-links .btn { padding: 0.55rem 1.1rem; font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line-soft); }
  .nav-links a:not(.btn) { display: block; padding: 0.9rem 0; }
  .nav-links .btn { margin-top: 0.9rem; justify-content: center; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-strong);
  margin-bottom: 0.9rem;
}
@media (prefers-color-scheme: dark) {
  .eyebrow { color: var(--gold); }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy .lede { margin-bottom: 1.8rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  height: auto;
  max-height: 66dvh;
}
.hero-media img.hero-hunde { object-position: 50% 45%; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 16 / 11; }
}

/* ---------- Duo tiles (the two halves) ---------- */

.duo {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 1.5rem;
}
.duo-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--on-navy);
  text-decoration: none;
  isolation: isolate;
}
.duo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.5s ease;
}
.duo-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 20, 34, 0.85) 12%, rgba(10, 20, 34, 0.12) 55%);
}
.duo-tile:hover img { transform: scale(1.04); }
.duo-body { padding: 1.75rem; }
.duo-body h3 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.duo-body p { margin: 0 0 0.75rem; color: rgba(244, 241, 224, 0.82); max-width: 30em; }
.duo-more { font-weight: 600; color: var(--on-navy); }

@media (max-width: 820px) {
  .duo { grid-template-columns: 1fr; }
  .duo-tile { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .duo-tile img, .duo-tile:hover img { transition: none; transform: none; }
}

/* ---------- Quote ---------- */

.quote {
  max-width: 46em;
  margin-inline: auto;
  text-align: center;
}
.quote blockquote {
  margin: 0 0 1.2rem;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 520;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.quote figcaption { color: var(--ink-soft); }
.quote figcaption strong { color: var(--ink); font-weight: 600; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy-deep);
  color: var(--on-navy);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band h2 { margin: 0; }
.cta-band p { margin: 0.4rem 0 0; color: rgba(244, 241, 224, 0.75); }
.cta-band .btn-primary { background: var(--gold); color: #1a314d; }
.cta-band .btn-primary:hover { background: #d8b673; }

/* ---------- Cards / grids ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.price { color: var(--gold-strong); font-weight: 700; white-space: nowrap; }
@media (prefers-color-scheme: dark) {
  .price { color: var(--gold); }
}

/* ---------- Termine ---------- */

.slot-groups { display: grid; gap: 2rem; }
.slot-date {
  font-weight: 640;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}
.slot-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.slot {
  font: inherit;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink);
  cursor: pointer;
  font-weight: 520;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.slot:hover { border-color: var(--navy); background: var(--tint); }
.slot:active { transform: translateY(1px); }
.slot.selected {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--on-navy);
}
@media (prefers-color-scheme: dark) {
  .slot.selected { background: var(--gold); border-color: var(--gold); color: #1a314d; }
}
.slot[disabled] {
  cursor: not-allowed;
  color: var(--ink-soft);
  background: transparent;
  border-style: dashed;
}

.slots-empty, .slots-loading {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: var(--ink-soft);
}

.skeleton-card { min-height: 20rem; }
.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--line-soft) 40%, var(--line) 50%, var(--line-soft) 60%);
  background-size: 200% 100%;
  min-height: 3rem;
}
@media (prefers-reduced-motion: no-preference) {
  .skeleton { animation: shimmer 1.4s infinite linear; }
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 560; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  width: 100%;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field .error { color: #a33224; font-size: 0.9rem; }
@media (prefers-color-scheme: dark) {
  .field .error { color: #e8896f; }
}

.form-status { border-radius: var(--radius); padding: 1rem 1.25rem; font-weight: 520; }
.form-status.ok { background: var(--tint); border: 1px solid var(--teal); }
.form-status.err {
  background: rgba(163, 50, 36, 0.08);
  border: 1px solid rgba(163, 50, 36, 0.4);
}

.form-success {
  border: 1px solid var(--teal);
  background: var(--tint);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.form-success h3 { margin-bottom: 0.4rem; }
.form-success p { margin: 0; color: var(--ink-soft); }

/* ---------- Products ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-grid .product:nth-child(6n + 1),
.product-grid .product:nth-child(6n + 5) {
  grid-row: span 1;
}
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--paper-raised);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.product img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.product-media { position: relative; aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-flag {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--navy-deep); color: var(--on-navy);
  font-size: 0.8rem; font-weight: 620; padding: 0.3rem 0.7rem; border-radius: var(--radius);
}
.product.is-reserved .product-media img { opacity: 0.6; }
.product-kind { margin: 0; font-size: 0.8rem; font-weight: 620; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.product-desc { margin: 0.25rem 0 0; font-size: 0.95rem; }
/* Flex statt festem Raster: "32 bis 40 cm" bleibt in einer Zeile, zu lange Angaben rutschen in eine eigene Zeile */
.product-facts { margin: 0.25rem 0 0.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; }
.product-facts div { flex: 1 1 auto; min-width: 5rem; }
.product-facts dt { font-size: 0.78rem; color: var(--ink-soft); }
.product-facts dd { margin: 0; font-weight: 600; }
.product-body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-body h3 { display: flex; justify-content: space-between; gap: 1rem; margin: 0; }
.product-body .meta { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.product-body .btn { margin-top: auto; align-self: flex-start; }
.product-body .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Bildergalerie der Produktkarten (gallery.js) ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Spur mit Scroll-Snap: wischen auf Touch, Trackpad auf Desktop, ein Foto pro Breite.
   1 px breiter als der Bildbereich auf jeder Seite: Scrollpositionen sind ganze Pixel, die Karten
   oft nicht, ohne den Rand blitzte sonst ein Streifen vom Nachbarfoto auf (.product-media schneidet ab). */
.gallery-track {
  display: flex;
  height: 100%;
  margin-inline: -1px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: zoom-in;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus { outline: none; }
.gallery-track:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.gallery-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery-slide img { -webkit-user-drag: none; user-select: none; }

/* Runde Knöpfe (Pfeile, Schließen): Creme, leicht transparent, feiner Schatten */
.gallery-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(26, 49, 77, 0.1);
  border-radius: var(--radius);
  background: rgba(244, 241, 224, 0.8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #1a314d;
  box-shadow: 0 6px 18px -8px rgba(10, 20, 34, 0.5);
  cursor: pointer;
  transition: opacity 0.25s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.gallery-btn:hover { background: rgba(244, 241, 224, 0.96); border-color: var(--gold); }
.gallery-btn:active { transform: scale(0.96); }
.gallery-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gallery-btn[disabled] { opacity: 0 !important; pointer-events: none; }

.gallery-arrow { position: absolute; top: 50%; z-index: 2; margin-top: -1.25rem; }
.gallery-arrow.prev { left: 0.75rem; }
.gallery-arrow.next { right: 0.75rem; }
/* Desktop: Pfeile erst bei Hover oder Tastaturfokus. Touch: wischen, keine Pfeile. */
@media (hover: hover) and (pointer: fine) {
  .has-gallery .gallery-arrow { opacity: 0; }
  .has-gallery:hover .gallery-arrow,
  .has-gallery:focus-within .gallery-arrow { opacity: 1; }
}
@media (hover: none), (pointer: coarse) {
  .gallery-arrow, .lb-arrow { display: none; }
}

.gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  padding: 0.15rem 0.3rem;
  border-radius: 999px;
  background: rgba(10, 20, 34, 0.32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.gallery-dots button {
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.gallery-dots button::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(244, 241, 224, 0.72);
  transition: width 0.25s ease, background-color 0.25s ease;
}
.gallery-dots button:hover::before { background: #f4f1e0; }
.gallery-dots button[aria-current='true']::before { width: 14px; background: var(--gold); }
.product-flag { z-index: 2; }

/* Lightbox: Foto groß, wischen, Pfeile, Esc */
html.lb-lock { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 20, 34, 0.97);
  color: #f4f1e0;
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 20, 34, 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lb-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem clamp(0.75rem, 6vw, 5.5rem);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.lb-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  user-select: none;
}
.lb-count {
  position: absolute;
  top: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.92rem;
  font-weight: 560;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: rgba(244, 241, 224, 0.85);
}
.lb-close { position: absolute; top: 0.9rem; right: 0.9rem; }
.lb-arrow { position: absolute; top: 50%; margin-top: -1.5rem; width: 3rem; height: 3rem; }
.lb-arrow.prev { left: 1.25rem; }
.lb-arrow.next { right: 1.25rem; }
.lightbox.is-single .lb-count,
.lightbox.is-single .lb-arrow { display: none; }
/* Foto mit Bildunterschrift (Galerie): Platz für zwei Zeilen Text unter dem Foto */
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; max-width: 100%; max-height: 100%; }
.lb-fig img { max-height: calc(100dvh - 8rem - 3.6rem); }
.lb-caption {
  margin: 0;
  max-width: 42em;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(244, 241, 224, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .gallery-track { scroll-behavior: smooth; }
  .lightbox[open] { animation: lb-in 0.22s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-btn, .gallery-dots button::before { transition: none; }
}
@keyframes lb-in {
  from { opacity: 0; }
}

/* ---------- Kundenrezensionen ---------- */

/* Karten wie .product, unterschiedlich hoch je nach Textlänge (align-items: start) */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 2rem;
}
@media (max-width: 1000px) {
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .review-grid { grid-template-columns: 1fr; }
}
/* Kundenfotos im eigenen Seitenverhältnis (Hochformat nicht auf 4:3 beschneiden), sehr hohe begrenzt */
.review .product-media { aspect-ratio: auto; min-height: 12rem; }
.review .product-media img { aspect-ratio: auto; height: auto; max-height: 32rem; object-position: center 30%; }
.review-text {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 60ch;
}

/* ---------- Galerie (/galerie, galerie.js) ---------- */

.g-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  align-items: end;
  gap: 1.25rem clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}
.g-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 9.5vw, 7rem);
  font-weight: 620;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.g-total {
  margin-left: 0.35em;
  font-size: clamp(0.78rem, 0.2em, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: 2.9em;
  color: var(--gold-strong);
  font-variant-numeric: tabular-nums;
}
.g-total:empty { display: none; }
.g-hero .lede { margin: 0 0 1.1rem; font-size: clamp(1.02rem, 1.4vw, 1.15rem); }
.g-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.2rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.g-cta svg { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.g-cta:hover { border-color: var(--ink); }
.g-cta:hover svg { transform: translateX(3px); }
.g-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
@media (prefers-color-scheme: dark) {
  .g-total { color: var(--gold); }
}
@media (max-width: 820px) {
  .g-hero { grid-template-columns: 1fr; }
}

/* Die Leiste hält ihren Platz schon vor dem Laden (sonst rutschte das Raster beim Einblenden nach unten) */
.g-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 2.6rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.g-bar.is-pending { visibility: hidden; }
.g-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.g-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 560;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.g-chip:hover { color: var(--ink); border-color: var(--ink); }
.g-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.g-chip[aria-pressed='true'] { color: var(--on-navy); background: var(--navy-deep); border-color: var(--navy-deep); }
.g-chip-n { font-size: 0.75rem; font-weight: 600; opacity: 0.6; font-variant-numeric: tabular-nums; }
@media (prefers-color-scheme: dark) {
  .g-chip[aria-pressed='true'] { color: #1a314d; background: var(--gold); border-color: var(--gold); }
}
.g-count { margin: 0 0 0 auto; font-size: 0.92rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Schmal: Leiste bleibt einzeilig, die Anzahl steht ohnehin an der Überschrift (nur noch für Screenreader) */
@media (max-width: 560px) {
  .g-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .g-chip { padding: 0.5rem 0.8rem; }
}

/* Raster: Positionen setzt galerie.js (kürzeste Spalte), Größen kommen aus den Pixelmaßen */
.g-grid { position: relative; list-style: none; margin: 0; padding: 0; }
.g-item { position: absolute; top: 0; left: 0; }
.g-tile {
  --sk: color-mix(in srgb, var(--ink) 7%, var(--paper));
  --sk-hi: color-mix(in srgb, var(--ink) 2%, var(--paper));
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(100deg, var(--sk) 40%, var(--sk-hi) 50%, var(--sk) 60%) 0 0 / 200% 100%;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.g-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.g-tile.is-loaded { background: var(--sk); }
.g-tile.is-loaded img { opacity: 1; }
.g-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* Bildunterschrift beim Überfahren/Fokus: Verlauf von unten, Text gleitet leicht hoch */
.g-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 20, 34, 0.78) 0%, rgba(10, 20, 34, 0.32) 30%, rgba(10, 20, 34, 0) 58%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.g-cap {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem 1.05rem;
  text-align: left;
  color: #f4f1e0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.g-cap-kind { font-size: 0.7rem; font-weight: 620; letter-spacing: 0.16em; text-transform: uppercase; color: #c7a25a; }
.g-cap-text {
  font-size: 0.98rem;
  font-weight: 520;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.g-tile:has(.g-cap):hover::after, .g-tile:has(.g-cap):focus-visible::after,
.g-tile:hover .g-cap, .g-tile:focus-visible .g-cap { opacity: 1; transform: none; }
@media (hover: none) {
  .g-tile::after, .g-cap { display: none; }
}

/* Platzhalter, bis die Daten da sind */
.g-skeleton { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.g-skeleton div { display: grid; gap: 24px; }
.g-skeleton span { display: block; border-radius: var(--radius); background: color-mix(in srgb, var(--ink) 7%, var(--paper)); }
@media (max-width: 879px) {
  .g-skeleton { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .g-skeleton div { gap: 12px; }
  .g-skeleton div:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .g-tile:not(.is-loaded), .g-skeleton span { animation: shimmer 1.6s infinite linear; }
  .g-skeleton span { background: linear-gradient(100deg, color-mix(in srgb, var(--ink) 7%, var(--paper)) 40%, color-mix(in srgb, var(--ink) 2%, var(--paper)) 50%, color-mix(in srgb, var(--ink) 7%, var(--paper)) 60%) 0 0 / 200% 100%; }
  .g-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .g-item.in { opacity: 1; transform: none; }
  .g-item.no-anim { transition: none; }
  @media (hover: hover) {
    .g-tile:hover img, .g-tile:focus-visible img { transform: scale(1.045); }
  }
  /* Filtern (View Transitions): Kacheln gleiten an ihren Platz, verschwindende blenden aus */
  ::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  ::view-transition-old(*):only-child { animation: g-out 0.3s ease both; }
  ::view-transition-new(*):only-child { animation: g-in 0.45s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  .g-tile img, .g-tile::after, .g-cap { transition: none; }
  .g-cap { transform: none; }
}
@keyframes g-out { to { opacity: 0; transform: scale(0.94); } }
@keyframes g-in { from { opacity: 0; transform: scale(0.94); } }

/* Leer: noch nichts veröffentlicht */
.g-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(2.5rem, 7vw, 5rem) 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-raised);
}
.g-empty-art {
  display: grid;
  grid-template-columns: repeat(3, 2.6rem);
  grid-template-rows: repeat(3, 1.4rem);
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}
.g-empty-art span { border: 1.5px solid var(--gold); border-radius: 6px; opacity: 0.75; }
.g-empty-art span:nth-child(1) { grid-row: 1 / 3; }
.g-empty-art span:nth-child(2) { grid-row: 1 / 2; opacity: 0.45; }
.g-empty-art span:nth-child(3) { grid-row: 1 / 4; }
.g-empty-art span:nth-child(4) { grid-row: 2 / 4; grid-column: 2; }
.g-empty-art span:nth-child(5) { grid-row: 3 / 4; grid-column: 1; opacity: 0.45; }
.g-empty-title { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 620; letter-spacing: -0.015em; }
.g-empty-text { margin: 0.35rem 0 1.5rem; color: var(--ink-soft); }

/* 404: Seitenlinks unter dem Button */
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin-top: 1.75rem; }
.notfound-links a { color: var(--ink-soft); font-weight: 480; text-decoration: none; }
.notfound-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Footer ---------- */

.footer {
  background: var(--navy-deep);
  color: rgba(244, 241, 224, 0.78);
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-block: 3.5rem 2rem;
}
.footer a { color: var(--on-navy); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer a[aria-current='page'] { color: var(--gold); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer .brand { color: var(--on-navy); }
.footer h4 { color: var(--on-navy); margin: 0 0 0.75rem; font-size: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-legal {
  border-top: 1px solid rgba(244, 241, 224, 0.18);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Prose (legal pages) ---------- */

.prose { max-width: 46em; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { margin: 0 0 1em; padding-left: 1.25em; }
.prose li { margin-bottom: 0.3em; }
.prose a { overflow-wrap: anywhere; }

/* Instagram-Link mit Umriss-Icon (Footer) */
.ig-link { display: inline-flex; align-items: center; gap: 0.45rem; }
.ig-icon { flex: none; }

/* Instagram-Block über dem Footer: heller Kasten, bewusst kein zweiter Navy-Kasten.
   Reiner Link, nichts wird von Instagram geladen. */
.ig-band { padding-top: 0; }
.ig-band + .footer { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.ig-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
.ig-card-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  border: 1.5px solid var(--gold);
  color: var(--gold-strong);
}
.ig-card-text h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.ig-card-text p { margin: 0.35rem 0 0; color: var(--ink-soft); max-width: 36em; }
.ig-card .btn:focus-visible { outline: 2px solid var(--gold-strong); outline-offset: 3px; }
@media (max-width: 720px) {
  .ig-card { grid-template-columns: auto 1fr; }
  .ig-card-badge { width: 52px; height: 52px; }
  .ig-card .btn { grid-column: 1 / -1; justify-content: center; }
}

/* Anfrage-Dialog (request-dialog.js) */
.req-dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(36rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
.req-dialog::backdrop { background: rgba(15, 27, 43, 0.55); }
.req-dialog form, .req-dialog .form-success { padding: 1.5rem; margin: 0; }
.req-dialog .form-success .btn { margin-top: 1.25rem; }
.req-dialog .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .req-dialog .form-row { grid-template-columns: 1fr; } }
/* Hals- und Kopfumfang: kurze Zahlen, bleiben auch auf dem Handy nebeneinander */
.form-row.umfang-row, .req-dialog .form-row.umfang-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.req-head { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; }
.req-head img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--tint); }
.req-head h3 { margin: 0; }
.req-head .muted { margin: 0.2rem 0 0; }
.unit { display: flex; align-items: center; gap: 0.5rem; }
.unit input { flex: 1; min-width: 0; }
.unit span { color: var(--ink-soft); }
.dialog-actions { display: flex; gap: 0.6rem; justify-content: flex-end; flex-wrap: wrap; }
.req-dialog fieldset.field, .request-form fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.req-dialog legend, .request-form legend { font-weight: 560; font-size: 0.95rem; padding: 0; margin-bottom: 0.4rem; }
.choice-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-block; padding: 0.6rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised); font-weight: 560; }
.choice input:checked + span { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: var(--tint); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice small { font-weight: 400; color: var(--ink-soft); margin-left: 0.25rem; }

html { scroll-padding-top: 5.5rem; }

/* Hinweis auf die freie Anfrage unter "Nach Maß" */
.more-link { margin: 0; }
.more-link a { font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 0.2em; }
.more-link a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.section-note { margin-top: calc(-1 * clamp(1.5rem, 3vw, 2.5rem)); }

/* Freie Anfrage auf /kontakt */
.request-form, .request-success { max-width: 40rem; }
.request-form { margin-top: 2rem; }
.request-form .btn[type='submit'] { justify-self: start; }
.request-success { margin-top: 1.5rem; }
.request-success h3:focus { outline: none; }
/* Honeypot: für Menschen unsichtbar, aber nicht per hidden, das erkennen Bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
