/* Yamabane — Navy, Zinnoberrot, Creme; Jost für Text, Cormorant Garamond für Titel. */

@font-face { font-family: "Jost"; src: url("fonts/jost-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #1C2B4A;
  --navy-tief: #142039;
  --rot: #C8452D;
  --rot-hell: #E06A4F;
  --creme: #F3EEE3;
  --papier: #FBF8F2;
  --tinte: #1C2B4A;
  --leise: #5B6478;
  --linie: rgba(28, 43, 74, 0.14);
  --creme-leise: rgba(243, 238, 227, 0.74);
  --rand: max(1rem, env(safe-area-inset-left), min(6vw, 3rem));
  --breite: 72rem;
  --rund: 1.25rem;
  --kopf: 3.75rem;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf) + 1rem); }

body {
  margin: 0;
  background: var(--creme);
  color: var(--tinte);
  font: 300 1.0625rem/1.6 "Jost", system-ui, sans-serif;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.08; }
p, ul { margin: 0; }
strong { font-weight: 500; }

.rahmen { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.klein { font-size: 0.875rem; }

.sprung { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--creme); padding: 0.6rem 1rem; border-radius: 999px; }
.sprung:focus { top: 0.75rem; }

.ueber {
  font: 500 0.75rem/1.2 "Jost", sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rot);
}
h2 { font-family: var(--serif); font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); letter-spacing: -0.005em; margin-top: 0.6rem; }
.einleitung { max-width: 38rem; margin-top: 1.1rem; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--leise); }

/* Knöpfe */

.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.6rem;
  border-radius: 999px;
  font-weight: 500; font-size: 0.95rem; letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.knopf:active { transform: scale(0.97); }
.knopf.rot { background: var(--rot); color: #fff; }
.knopf.rot:hover { background: var(--rot-hell); }
.knopf.hohl { color: var(--creme); box-shadow: inset 0 0 0 1px var(--creme-leise); }
.knopf.hohl:hover { background: rgba(243, 238, 227, 0.1); }
.knopf.navy { background: var(--navy); color: var(--creme); }
.knopf.navy:hover { background: var(--navy-tief); }

/* Kopf: bleibt oben, mattes Glas über dem Inhalt */

.kopf {
  position: sticky; top: 0; z-index: 10;
  height: calc(var(--kopf) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--rand) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(28, 43, 74, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  color: var(--creme);
  border-bottom: 1px solid rgba(243, 238, 227, 0.08);
}
.marke img { width: 8.75rem; }
.kopf nav { display: flex; align-items: center; gap: clamp(0.9rem, 3vw, 2rem); font-size: 0.875rem; letter-spacing: 0.06em; }
.kopf nav a { text-decoration: none; }
.kopf nav a:not(.shop-knopf):hover { text-decoration: underline; }
.shop-knopf { padding: 0.45rem 1rem; border-radius: 999px; background: var(--creme); color: var(--navy); font-weight: 500; }
@media (max-width: 26rem) {
  .kopf nav a[href="#geschichte"] { display: none; }
}

/* Bühne */

.buehne {
  position: relative;
  min-height: calc(100svh - var(--kopf));
  background: radial-gradient(120% 70% at 50% 18%, #26385E 0%, var(--navy) 55%, var(--navy-tief) 100%);
  color: var(--creme);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(1.25rem, 4vh, 2.5rem);
  padding: clamp(2rem, 6vh, 4rem) var(--rand) clamp(7rem, 16vw, 11rem);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.wappen { width: min(64vw, 22rem, 40svh); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.28)); }
.buehne h1 { font-family: var(--serif); font-size: clamp(2.3rem, 1.5rem + 4.2vw, 4.6rem); letter-spacing: -0.01em; max-width: 14ch; margin: 0 auto; }
.buehne-text > p { margin: 1rem auto 0; max-width: 30rem; color: var(--creme-leise); font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); }
.buehne .knoepfe { justify-content: center; }

.grat { position: absolute; inset: auto 0 0; width: 100%; height: clamp(5.5rem, 15vw, 10rem); }
.grat .linie { fill: none; stroke: var(--creme); stroke-opacity: 0.45; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.grat .ball { fill: var(--rot); }

@media (prefers-reduced-motion: no-preference) {
  .wappen { animation: auftauchen 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .buehne-text { animation: auftauchen 1.1s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .grat .linie { stroke-dasharray: 1; animation: zeichnen 2.4s 0.3s ease-out both; }
}
@keyframes auftauchen { from { opacity: 0; transform: translateY(1.25rem); } }
@keyframes einblenden { from { opacity: 0; } }
@keyframes zeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Geschichte */

.geschichte { padding: clamp(4.5rem, 12vw, 8rem) 0; }
.zeichen { display: grid; gap: 1.25rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 46rem) { .zeichen { grid-template-columns: 1fr 1fr; } }
.zeichen-eins {
  background: var(--papier);
  border-radius: var(--rund);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 1px 0 var(--linie), 0 18px 40px -28px rgba(28, 43, 74, 0.35);
}
.gross { font-family: var(--serif); font-weight: 600; font-size: clamp(4rem, 2.8rem + 6vw, 6.5rem); line-height: 1; color: var(--navy); }
.gross.rot { color: var(--rot); }
.zeichen-eins h3 { margin-top: 1.25rem; font: 500 0.8rem/1.4 "Jost", sans-serif; letter-spacing: 0.22em; text-transform: uppercase; }
.zeichen-eins p:last-child { margin-top: 0.6rem; color: var(--leise); }
.zusammen {
  margin-top: 1.25rem;
  background: var(--navy);
  color: var(--creme);
  border-radius: var(--rund);
  padding: clamp(1.75rem, 5vw, 3rem);
  display: grid; gap: 1rem;
}
@media (min-width: 46rem) { .zusammen { grid-template-columns: auto 1fr; align-items: center; gap: 3rem; } }
.gross-wort { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 1.6rem + 3.5vw, 3.6rem); line-height: 1; display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.zusammen p:last-child { color: var(--creme-leise); }

/* Haltung */

.haltung { background: var(--papier); border-top: 1px solid var(--linie); padding: clamp(4.5rem, 12vw, 8rem) 0; }
.grundsaetze { list-style: none; margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding: 0; display: grid; gap: clamp(2rem, 5vw, 3rem) 3.5rem; }
@media (min-width: 46rem) { .grundsaetze { grid-template-columns: 1fr 1fr; } }
.grundsaetze li { border-top: 1px solid var(--linie); padding-top: 1.25rem; }
.zahl { font-family: var(--serif); font-weight: 600; font-size: 2.2rem; line-height: 1; color: var(--rot); }
.grundsaetze h3 { margin-top: 0.9rem; font: 500 0.8rem/1.4 "Jost", sans-serif; letter-spacing: 0.22em; text-transform: uppercase; }
.grundsaetze h3 + p { margin-top: 0.6rem; color: var(--leise); }
.leitsatz {
  margin-top: clamp(3rem, 8vw, 5rem);
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3rem); line-height: 1.15;
  text-align: center; color: var(--navy);
}
.leitsatz span { color: var(--rot); }

/* Kollektion */

.kollektion { padding: clamp(4.5rem, 12vw, 8rem) 0; background: var(--papier); }
.raster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 3vw, 1.75rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 52rem) { .raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.produkt { display: flex; flex-direction: column; min-width: 0; }
.bild { position: relative; border-radius: var(--rund); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--linie); }
.bild img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity 0.25s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.produkt:hover .bild img { transform: scale(1.03); }
.bild img.laedt { opacity: 0.4; }
.drehen {
  position: absolute; right: 0.6rem; bottom: 0.6rem;
  min-height: 2.25rem; padding: 0 0.9rem;
  border: 0; border-radius: 999px;
  background: rgba(28, 43, 74, 0.86); color: var(--creme);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 0.78rem/1 "Jost", sans-serif; letter-spacing: 0.06em;
  cursor: pointer;
}
.drehen::before { content: "↻ "; }
.text { padding: 0.9rem 0.15rem 0; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.text h3 { font-family: var(--serif); font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); line-height: 1.1; }
.text p { font-size: 0.92rem; color: var(--leise); }
.text .preis { color: var(--tinte); font-weight: 500; letter-spacing: 0.03em; margin-top: auto; padding-top: 0.25rem; }
.kaufen { font-weight: 500; font-size: 0.92rem; color: var(--rot); text-decoration: none; padding: 0.35rem 0; }
.kaufen::after { content: " →"; transition: margin 0.2s ease; }
.kaufen:hover::after { margin-left: 0.25rem; }

.farben { display: flex; flex-wrap: wrap; gap: 0.15rem; margin: -0.3rem 0 0 -0.3rem; }
.farbe {
  width: 2.25rem; height: 2.25rem; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.farbe::before {
  content: ""; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--farbe); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.2s ease;
}
.farbe[aria-pressed="true"]::before { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18), 0 0 0 2px var(--papier), 0 0 0 3.5px var(--navy); }
.farbe span, .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.farbname { font-size: 0.8rem !important; letter-spacing: 0.06em; }

@media (max-width: 30rem) {
  .text p:not(.preis):not(.farbname) { display: none; }
}

/* Club */

.club { background: var(--navy); color: var(--creme); padding: clamp(4rem, 10vw, 6.5rem) 0; }
.club .ueber { color: var(--rot-hell); margin: 0; }
.fakten { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: 2rem; }
@media (min-width: 46rem) { .fakten { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.fakten li { color: var(--creme-leise); border-top: 1px solid rgba(243, 238, 227, 0.2); padding-top: 1.25rem; }
.fakten strong { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); line-height: 1.1; color: var(--creme); margin-bottom: 0.5rem; }

/* Aufruf */

.aufruf { padding: clamp(4.5rem, 12vw, 8rem) var(--rand); text-align: center; display: grid; justify-items: center; }
.aufruf img { width: 4.5rem; }
.aufruf h2 { margin-top: 1.5rem; }
.aufruf p { margin: 1rem 0 2rem; color: var(--leise); max-width: 26rem; }

/* Fuss */

.fuss {
  background: var(--navy-tief); color: var(--creme-leise);
  padding: 3rem var(--rand) calc(2.5rem + env(safe-area-inset-bottom));
  display: grid; justify-items: center; gap: 0.75rem; text-align: center; font-size: 0.95rem;
}
.fuss img { width: 2.5rem; margin-bottom: 0.5rem; }
.fuss nav { display: flex; gap: 1.5rem; }
.fuss a { color: var(--creme); }

/* Scroll: Abschnitte gleiten sanft herein, wo der Browser es kann */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .zeichen-eins, .zusammen, .grundsaetze li, .produkt, .fakten li {
      animation: auftauchen linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

/* Rechtliche Seiten */

.seite-kopf { position: static; }
.seite { max-width: 44rem; margin: 0 auto; padding: clamp(2.5rem, 8vw, 4.5rem) var(--rand) 4rem; }
.seite h1 { font-family: var(--serif); font-size: clamp(2.3rem, 1.6rem + 3vw, 3.2rem); margin-bottom: 1.5rem; }
.seite h2 { font: 500 0.8rem/1.4 "Jost", sans-serif; letter-spacing: 0.22em; text-transform: uppercase; margin: 2.25rem 0 0.6rem; }
.seite p, .seite address { margin-bottom: 0.8rem; font-style: normal; }
.seite .klein { color: var(--leise); margin-top: 2.5rem; }
