/* Lisa's Haarstüberl & Decoeck, Konzept-Prototyp.
   Farben gemessen an der Salonwand (quelle/wand.jpg), Stufen im selben Farbton. */

@font-face { font-family: "Grenze"; font-weight: 500; font-display: swap; src: url(fonts/grenze-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Grenze"; font-weight: 600; font-display: swap; src: url(fonts/grenze-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Grenze"; font-weight: 700; font-display: swap; src: url(fonts/grenze-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Switzer"; font-weight: 400; font-display: swap; src: url(fonts/switzer-400.woff2) format("woff2"); }
@font-face { font-family: "Switzer"; font-weight: 500; font-display: swap; src: url(fonts/switzer-500.woff2) format("woff2"); }
@font-face { font-family: "Switzer"; font-weight: 600; font-display: swap; src: url(fonts/switzer-600.woff2) format("woff2"); }

:root {
  --wand: #1D1719;        /* Tapetengrund */
  --wand-hell: #2B2225;   /* eine Stufe heller */
  --knospe: #F2E8E3;      /* helle Pfingstrose und Knospen */
  --rose: #D09B97;        /* Pfingstrose */
  --rose-hell: #E8C9C4;
  --lilie: #4B2035;       /* Lilie, Pflaume */
  --hortensie: #A3AB90;   /* Hortensie, Salbei */
  --hortensie-tief: #6E7860;
  --holz: #6D5946;        /* Lichtschein auf der Wand, gemessen */

  --anzeige: "Grenze", "Rockwell", Georgia, serif;
  --text: "Switzer", "Helvetica Neue", Arial, sans-serif;

  --s-klein: 0.9375rem;
  --s-text: 1.125rem;
  --s-anlauf: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --s-unter: clamp(1.625rem, 0.9rem + 1.6vw, 2.25rem);
  --s-titel: clamp(2.75rem, 1.6rem + 4.8vw, 5.5rem);
  --s-riesig: clamp(4.25rem, 2rem + 7.4vw, 7.5rem);

  --rand: clamp(1.25rem, 3.2vw, 3rem);
  --luft: clamp(6rem, 12vw, 11rem);
  --kopf-h: 4.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--wand); color: var(--knospe);
  font: 400 var(--s-text)/1.55 var(--text); letter-spacing: -0.005em;
  overflow-x: clip;
  scrollbar-color: var(--rose) var(--wand);
}
::selection { background: var(--rose); color: var(--wand); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: var(--rand); top: -4rem; z-index: 60; background: var(--knospe); color: var(--wand); padding: .6rem 1rem; }
.sprung:focus { top: .6rem; }

.gw { width: 1.75em; height: 1.2em; flex: none; }

/* Schrift */
.titel { font: 600 var(--s-titel)/.98 var(--anzeige); letter-spacing: -0.012em; text-wrap: balance; }
.unter { font: 600 var(--s-unter)/1.08 var(--anzeige); letter-spacing: -0.005em; text-wrap: balance; }
.anlauf { font-size: var(--s-anlauf); line-height: 1.35; max-width: 34em; text-wrap: pretty; }
.hinweis { font-size: var(--s-klein); line-height: 1.45; }
p { text-wrap: pretty; }

/* Knöpfe: rund wie der Ring im Logo, überall gleich */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .7rem 1.6rem;
  border: 0; border-radius: 999px; font: 600 var(--s-text)/1.2 var(--text); text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}
.knopf:active { transform: scale(0.97); }
.knopf--hell { background: var(--knospe); color: var(--wand); }
.knopf--dunkel { background: var(--wand); color: var(--knospe); }
.knopf--breit { width: 100%; }
.knopf[aria-disabled="true"], .knopf:disabled { background: var(--hortensie-tief); color: var(--wand); cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .knopf--hell:hover { background: var(--rose-hell); }
  .knopf--dunkel:hover { background: var(--lilie); }
}
.verweis { color: inherit; text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .2em; transition: text-decoration-color 180ms ease, color 180ms ease; }
.verweis--knopf { background: none; border: 0; padding: .5rem 0; font: inherit; }
a[href^="tel:"] { white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .verweis:hover { text-decoration-thickness: .14em; } }

main > section, .fuss { overflow: clip; }

/* Kopf */
.kopf {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem);
  height: var(--kopf-h); padding-inline: var(--rand); background: var(--wand); color: var(--knospe);
}
.kopf__marke { display: flex; align-items: center; gap: .75rem; color: var(--knospe); margin-right: auto; text-decoration: none; }
.kopf__marke .gw { width: 3.25rem; height: 2.5rem; color: var(--rose); }
.kopf__marke .wort { width: 6.5rem; height: 2.5rem; stroke: currentColor; stroke-width: 14; overflow: visible; }
.kopf__nav { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.kopf__nav a { text-decoration: none; padding-block: .6rem; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .kopf__nav a:hover { color: var(--rose-hell); } .kopf__korb:hover { color: var(--rose-hell); } }
.kopf__korb { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0; padding: .6rem .25rem; font-weight: 500; transition: color 180ms ease; }
.kopf .knopf { min-height: 2.75rem; padding-inline: 1.25rem; }
.zahl {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding-inline: .3em; border-radius: 999px;
  background: var(--rose); color: var(--wand); font-size: var(--s-klein); font-weight: 600; font-variant-numeric: tabular-nums;
}
.zahl.ist-frisch { animation: zahl-gib 320ms var(--ease-out); }
@keyframes zahl-gib { from { transform: scale(.72); } }

/* Held: das Geweih steht riesig rechts im Bild */
.held {
  position: relative; min-height: calc(100svh - var(--kopf-h)); overflow: clip;
  display: grid; align-items: center; padding: clamp(2rem, 5vh, 4rem) var(--rand);
}
.held__wand { position: absolute; z-index: 0; right: 0; top: 0; width: 74%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.held__text { position: relative; z-index: 2; max-width: 29rem; }
.held__titel { font: 600 var(--s-riesig)/.92 var(--anzeige); letter-spacing: -0.015em; }
.zeile { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.zeile > span { display: block; }
.held__satz { margin-top: 2rem; font-size: var(--s-anlauf); line-height: 1.35; max-width: 26rem; }
.held__tun { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
.proto-bewegung { margin-top: 1.5rem; font-size: var(--s-klein); max-width: 26rem; }
.proto-bewegung[hidden] { display: none; }
.proto-bewegung button { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: .2em; }

.motiv {
  --p: min(150vh, calc((106vw - 32.5rem) * 1.175));
  position: absolute; z-index: 1; left: 32.5rem; top: 50%; width: var(--p); aspect-ratio: 1680 / 1420;
  translate: 0 -58.2%; container-type: inline-size;
}
.motiv__platte { position: absolute; inset: 0; }
.motiv__platte img { width: 100%; height: 100%; }
.straehnen { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--rose); transform-origin: 50% 98%; scale: 1 .83; }
.straehnen path { fill: none; stroke: currentColor; stroke-linecap: round; vector-effect: none; }

/* Türschild hängt an den inneren Geweihspitzen */
.schild {
  position: absolute; left: 47.9%; top: 39%; width: 22cqw; min-width: 10rem; translate: -50% 0;
  text-decoration: none; color: var(--wand); transform-origin: 50% -9cqw;
}
.schild__brett { position: relative; display: block; background: var(--knospe); padding: 1rem .9rem .95rem; text-align: center; }
.schild__brett strong { display: block; font: 600 var(--s-unter)/1 var(--anzeige); }
.schild__brett span { display: block; margin-top: .3rem; font-size: var(--s-klein); font-weight: 500; line-height: 1.25; }
.schild__schnur { position: absolute; bottom: 100%; width: 2px; height: 10.1cqw; background: var(--knospe); transform-origin: 50% 100%; }
.schild__schnur--l { left: 12%; rotate: -25deg; }
.schild__schnur--r { right: 12%; rotate: 25deg; }
@media (hover: hover) and (pointer: fine) { .schild:hover .schild__brett { background: var(--rose-hell); } }
.schild__brett { transition: background-color 180ms ease; }

.stange {
  position: absolute; top: 90.5%; font: 600 var(--s-anlauf)/1 var(--anzeige); color: var(--knospe);
  padding: .25rem .4rem; text-underline-offset: .18em; text-decoration: underline; text-decoration-thickness: .05em; text-decoration-color: var(--rose);
}
.stange--l { left: 33%; translate: -50% 0; }
.stange--r { left: 61%; translate: -50% 0; }

/* Aussage mit Bildwörtern */
.sagen { padding: clamp(4rem, 7vw, 6.5rem) var(--rand); }
.aussage { font: 500 clamp(1.5rem, 0.9rem + 1.6vw, 2.25rem)/1.32 var(--text); letter-spacing: -0.015em; max-width: 46em; }
.wandband { overflow: clip; background: var(--wand); }
.wandband img { width: 100%; height: auto; }

/* Linke Stange im Haare-Kapitel, rechte im Decoeck */
.stange-gross { position: absolute; z-index: 0; pointer-events: none; }
.stange-gross--l { left: -7vw; bottom: -7vw; width: min(62vw, 58rem); aspect-ratio: 595 / 872; height: auto; color: #C48C88; }
.stange-gross--r { right: -1.5rem; top: -2rem; width: min(24vw, 21rem); aspect-ratio: 596 / 870; height: auto; color: #96A083; }
.karte > *:not(.stange-gross), .decoeck > *:not(.stange-gross) { position: relative; z-index: 1; }

/* Karte: ganzes Feld in Pfingstrose */
.karte { position: relative; background: var(--rose); color: var(--wand); padding: var(--luft) var(--rand); }
.karte__kopf { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--rand); align-items: center; }
.karte__kopf .anlauf { margin-top: 1.5rem; }
.karte__kopf .hinweis { margin-top: .75rem; }
.ring { position: relative; aspect-ratio: 1; }
.ring > img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.ring__str { position: absolute; inset: -9%; width: 118%; height: 118%; max-width: none; overflow: visible; color: var(--wand); }
.ring--karte { width: min(100%, 26rem); justify-self: end; margin: 2rem 2.5rem 2rem 0; }
.karte__spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(2rem, 5vw, 5rem); margin-top: clamp(3rem, 6vw, 5rem); }
.karte__gruppenkopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.karte__gruppenkopf span { font-size: var(--s-klein); white-space: nowrap; }
.posten { list-style: none; margin: 0; padding: 0; }
.posten button {
  display: grid; grid-template-columns: 2.5rem 1fr auto; column-gap: .75rem; align-items: start; width: calc(100% + 1rem);
  padding: .85rem .5rem; margin-inline: -.5rem; background: none; border: 0; text-align: left; border-radius: 4px;
  transition: background-color 180ms ease;
}
.posten .gw { width: 2.25rem; height: 1.6rem; margin-top: .05rem; }
.posten b { font-weight: 600; line-height: 1.3; text-decoration: underline; text-decoration-thickness: .07em; text-underline-offset: .2em; }
.posten em { grid-column: 2 / 4; font-style: normal; font-size: var(--s-klein); line-height: 1.4; }
.posten .pr { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .posten button:hover { background: var(--rose-hell); } }
.posten button[aria-pressed="true"] { background: var(--wand); color: var(--knospe); }

/* Termin: das Terminkarterl */
.termin { background: var(--wand); padding: var(--luft) var(--rand); }
.termin__kopf { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.karterl { --kerbe: 1.75rem; position: relative; display: grid; grid-template-columns: minmax(16rem, 4fr) minmax(0, 8fr); color: var(--wand); min-height: 34rem; }
.karterl__abriss {
  position: relative; background: var(--rose); padding: clamp(1.5rem, 3vw, 2.75rem);
  display: flex; flex-direction: column; gap: 2rem; border-right: 6px dotted var(--wand);
  transition: transform 700ms var(--ease-out);
}
.karterl__abriss::before, .karterl__abriss::after {
  content: ""; position: absolute; right: calc(var(--kerbe) / -2 - 3px); width: var(--kerbe); height: var(--kerbe); border-radius: 50%; background: var(--wand); z-index: 2;
}
.karterl__abriss::before { top: calc(var(--kerbe) / -2); }
.karterl__abriss::after { bottom: calc(var(--kerbe) / -2); }
.karterl__titel { font: 600 var(--s-unter)/1 var(--anzeige); }
.karterl__daten { display: grid; gap: 1.25rem; }
.karterl__daten dt { font-size: var(--s-klein); }
.karterl__daten dd { font-weight: 600; line-height: 1.35; }
.karterl__gw { width: 7rem; height: 5rem; margin-top: auto; }
.karterl__arbeit { background: var(--knospe); padding: clamp(1.5rem, 3vw, 2.75rem); display: flex; flex-direction: column; gap: 1.5rem; }
.karterl.ist-abgerissen .karterl__abriss { transform: translate(-1rem, .75rem) rotate(-1.6deg); border-right-color: transparent; }
.karterl.ist-abgerissen .reiter { display: none; }

.reiter { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.reiter__k { background: none; border: 0; min-height: 2.75rem; padding: .35rem 0; color: inherit; text-decoration: none; }
.reiter__k[aria-current="step"], .reiter__k[aria-pressed="true"] { font-weight: 600; text-decoration: underline; text-decoration-thickness: .14em; text-underline-offset: .28em; }
.reiter__k:disabled { cursor: default; }

.schritt { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.schritt[hidden] { display: none; }
.schritt__t { font: 600 var(--s-unter)/1.02 var(--anzeige); }
.schritt__t:focus { outline: none; }
.wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: .5rem; width: 100%; }
.wahl__k {
  display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; min-height: 3.25rem; padding: .7rem 1.1rem;
  border: 0; border-radius: 999px; background: var(--rose-hell); text-align: left; font-weight: 500; line-height: 1.2;
  transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out);
}
.wahl__k:active { transform: scale(0.98); }
.wahl__k small { font-size: var(--s-klein); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wahl__k[aria-pressed="true"] { background: var(--wand); color: var(--knospe); }
@media (hover: hover) and (pointer: fine) { .wahl__k[aria-pressed="false"]:hover { background: var(--rose); } }

.tage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; width: 100%; max-width: 30rem; }
.tage__monat { font-weight: 600; }
.tage__kopf { text-align: center; font-size: var(--s-klein); font-weight: 500; padding-block: .2rem; }
.tag {
  min-height: 3.25rem; padding: .2rem 0; border: 2px solid transparent; border-radius: 1.5rem; background: var(--rose-hell);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05;
  transition: background-color 180ms ease, color 180ms ease;
}
.tag b { font: 600 var(--s-anlauf)/1 var(--anzeige); }
.tag span { font-size: var(--s-klein); }
.tag.ist-anfrage { background: none; border-color: var(--rose); }
.tag[aria-current="date"] b { text-decoration: underline; text-underline-offset: .14em; text-decoration-thickness: .08em; }
.tag:disabled { background: none; border-color: transparent; color: #6b5c5c; cursor: not-allowed; }
.tag[aria-pressed="true"] { background: var(--wand); border-color: var(--wand); color: var(--knospe); }
@media (hover: hover) and (pointer: fine) { .tag:not(:disabled):not([aria-pressed="true"]):hover { background: var(--rose); } }

.zeiten { width: 100%; min-height: 7rem; }
.zeiten__titel { font-weight: 600; margin-bottom: .6rem; }
.zeiten__raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr)); gap: .4rem; }
.zeit {
  min-height: 2.875rem; border: 0; border-radius: 999px; background: var(--rose-hell); font-weight: 500; font-variant-numeric: tabular-nums;
  transition: background-color 180ms ease, color 180ms ease;
}
.zeit[aria-pressed="true"] { background: var(--wand); color: var(--knospe); }
@media (hover: hover) and (pointer: fine) { .zeit[aria-pressed="false"]:hover { background: var(--rose); } }
.zeiten__leer { max-width: 34em; }

.feld { display: grid; gap: .35rem; width: 100%; max-width: 32rem; }
.feld label { font-weight: 500; }
.feld input, .feld textarea {
  width: 100%; min-height: 3.25rem; padding: .7rem 1.1rem; font: inherit; color: var(--wand); caret-color: var(--lilie);
  background: #fff; border: 2px solid var(--holz); border-radius: 1.625rem; transition: border-color 180ms ease;
}
.feld textarea { min-height: 5rem; resize: vertical; }
.feld input:focus, .feld textarea:focus { border-color: var(--lilie); outline: 2px solid var(--lilie); outline-offset: 1px; }
.feld [aria-invalid="true"] { border-color: #8C1D2F; }
.fehler { color: #8C1D2F; font-weight: 500; }
.fertig__tun { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.schritt--fertig:focus { outline: none; }

/* Bordüre: ein Trachtenband aus Geweihen */
.bordure { background: var(--lilie); color: var(--rose); overflow: clip; padding-block: 1.75rem; }
.bordure__lauf { display: flex; gap: 2.5rem; width: max-content; }
.bordure__lauf .gw { width: 5.5rem; height: 3.9rem; }
.bordure__lauf .gw:nth-child(even) { color: var(--hortensie); }

/* Decoeck: Hortensienfeld und Regale */
.decoeck { position: relative; background: var(--hortensie); color: var(--wand); padding: var(--luft) var(--rand); }
.decoeck__kopf { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.regal__titel { margin-bottom: 1.5rem; }
.preis { font: 600 var(--s-unter)/1 var(--anzeige); font-variant-numeric: tabular-nums; }

.regal__kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-top: clamp(4rem, 8vw, 7rem); margin-bottom: 2rem; }
.regal { display: grid; gap: clamp(2rem, 4vw, 3.25rem); }
.brett { display: grid; grid-template-rows: auto auto auto; }
.stueck { display: grid; grid-row: span 3; grid-template-rows: subgrid; min-width: 0; }
.stueck__bild { align-self: end; padding-inline: clamp(.25rem, .7vw, .625rem); }
.stueck__bild img { width: 100%; height: auto; }
.stueck__planke { height: 1rem; background: var(--holz); transform-origin: 0 50%; }
.stueck__schild { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; padding: .85rem clamp(.25rem, .7vw, .625rem) 0; }
.stueck__name { font-weight: 600; line-height: 1.25; }
.stueck__preis { font-variant-numeric: tabular-nums; font-weight: 500; }
.stueck__notiz { line-height: 1.35; }
.stueck__text { max-width: 30em; margin-block: .25rem; }
.stueck__kauf {
  margin-top: auto; display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1.1rem; border: 0; border-radius: 999px;
  background: var(--wand); color: var(--knospe); font-weight: 500; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 180ms ease;
}
.stueck__kauf:active { transform: scale(0.97); }
.stueck__kauf:disabled { background: var(--hortensie-tief); color: var(--wand); cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .stueck__kauf:not(:disabled):hover { background: var(--lilie); } }

/* Stammtisch: Pflaume */
.stamm { background: var(--lilie); color: var(--knospe); padding-bottom: var(--luft); }
.stamm__kopf { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--rand); padding: var(--luft) var(--rand) 0; align-items: end; }
.stamm__text { display: grid; gap: 1.5rem; align-content: start; padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.stamm__text p { max-width: 34em; font-size: var(--s-anlauf); line-height: 1.35; }
.trophaee { position: relative; aspect-ratio: 1245 / 872; margin-bottom: 1.5rem; container-type: inline-size; }
.trophaee__geweih { position: absolute; inset: 0; overflow: clip; }
.trophaee__geweih img { position: absolute; width: 134.94%; max-width: none; height: auto; left: -14.86%; top: -44.7%; }
.schild--trophaee { position: absolute; left: 49.7%; top: 34%; width: 38cqw; min-width: 10rem; transform-origin: 50% -18cqw; }
.schild--trophaee .schild__schnur { height: 23cqw; }
.schild--trophaee .schild__schnur--l { rotate: -7deg; }
.schild--trophaee .schild__schnur--r { rotate: 7deg; }
.stamm__gross { height: min(82svh, 56vw); overflow: clip; }
.stamm__gross img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }

/* Bilderwand: gerahmt wie alte Familienbilder in der Stube */
.bilderwand { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 5rem) var(--rand); padding: clamp(4rem, 7vw, 6.5rem) var(--rand) 0; align-items: start; }
.rahmen__oval { aspect-ratio: 4 / 5; overflow: clip; border-radius: 50%; background: var(--wand); }
.rahmen__oval img { width: 100%; height: 100%; object-fit: cover; }
.rahmen figcaption { margin-top: 1rem; text-align: center; font: 600 var(--s-anlauf)/1.15 var(--anzeige); text-wrap: balance; }
.rahmen--a { grid-column: 1 / span 4; }
.rahmen--b { grid-column: 5 / span 3; margin-top: 7rem; }
.rahmen--c { grid-column: 8 / span 5; }
.rahmen--c .rahmen__oval, .rahmen--a .rahmen__oval { aspect-ratio: 1; }
.rahmen--d { grid-column: 2 / span 3; margin-top: -4rem; }
.rahmen--e { grid-column: 5 / span 4; margin-top: 1rem; }
.rahmen--e .rahmen__oval { aspect-ratio: 1; }
.rahmen--f { grid-column: 9 / span 3; margin-top: -5rem; }
.rahmen--a img { object-position: 62% 50%; }
.rahmen--d img { object-position: 32% 50%; }

/* Wir: eingesetzte Tafel, die Rundung trägt das Foto */
.wir { background: var(--wand); padding: var(--rand); padding-block: var(--luft) var(--luft); }
.wir__tafel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--rand); background: var(--wand-hell); padding: clamp(1.5rem, 4vw, 3.5rem); overflow: clip; min-height: 100svh; }
.wir__links { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4.5rem); }
.wir__rechts { display: flex; flex-direction: column; gap: 2.5rem; align-items: flex-start; align-self: center; }
.wir__rechts p { margin-top: .75rem; max-width: 30em; }
.ring--wir { width: min(88%, 40rem); margin: 2rem 0 -6rem 3rem; }
.ring--wir .ring__str { color: var(--rose); }

/* Kontakt */
.kontakt { background: var(--knospe); color: var(--wand); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--rand); padding: var(--luft) var(--rand); }
.kontakt__text { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.kontakt__adresse { font-style: normal; font-size: var(--s-anlauf); line-height: 1.4; }
.zeiten-tabelle { border-collapse: collapse; width: 100%; max-width: 30rem; font-variant-numeric: tabular-nums; }
.zeiten-tabelle th { text-align: left; font-weight: 400; padding: .55rem 1rem .55rem .9rem; }
.zeiten-tabelle td { text-align: right; padding: .55rem .9rem .55rem 0; }
.zeiten-tabelle tr.heute { background: var(--rose); font-weight: 600; }
.zeiten-tabelle tr.heute th { font-weight: 600; }
.kontakt__bild { overflow: clip; align-self: stretch; min-height: 34rem; background: var(--holz); }
.kontakt__bild img { width: 100%; height: 100%; object-fit: cover; }

/* Fuß: das Geweih wächst von unten ins Bild */
.fuss { background: var(--wand); color: var(--knospe); padding: var(--luft) var(--rand) 0; overflow: clip; }
.fuss__oben { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem var(--rand); margin-bottom: clamp(3rem, 6vw, 5rem); }
.fuss__nav { display: grid; gap: .3rem; grid-column: span 2; align-content: start; }
.fuss__nav a { padding-block: .3rem; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .fuss__nav a:hover { color: var(--rose-hell); } }
.fuss__adr { grid-column: span 3; }
.fuss__notiz { grid-column: span 5; font-size: var(--s-klein); }
.fuss__marke { position: relative; color: var(--rose); height: clamp(16rem, 44vw, 42rem); }
.fuss__marke svg:first-child { width: 100%; height: auto; }
.fuss__wort { position: absolute; left: 50%; top: 20%; translate: -50% 0; width: clamp(7rem, 22vw, 20rem); height: clamp(3rem, 9vw, 8rem); color: var(--knospe); }

/* Handy-Leiste */
.leiste { display: none; }

/* Körberl */
.korb {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 34rem); max-width: none; height: 100dvh; max-height: none;
  padding: 0; border: 0; background: var(--knospe); color: var(--wand); overflow-y: auto; overscroll-behavior: contain;
}
.korb::backdrop { background: rgb(33 26 28 / .55); }
.korb__innen { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 2.5rem; min-height: 100%; }
.korb__kopf { display: flex; justify-content: space-between; align-items: center; }
.korb__zeile { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: .9rem; align-items: center; padding-block: .75rem; }
.korb__zeile img { width: 4.5rem; height: 4.5rem; object-fit: cover; }
.korb__zeile b { font-weight: 600; line-height: 1.25; display: block; }
.korb__zeile small { font-size: var(--s-klein); }
.menge { display: flex; align-items: center; gap: .25rem; margin-top: .25rem; }
.menge button { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--rose-hell); line-height: 1; transition: background-color 180ms ease, transform 140ms var(--ease-out); }
.menge button:active { transform: scale(.94); }
.menge button:disabled { background: none; color: #6b5c5c; cursor: not-allowed; }
.menge output { min-width: 2rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.korb__summe { display: flex; justify-content: space-between; align-items: baseline; font: 600 var(--s-unter)/1 var(--anzeige); padding-top: 1rem; font-variant-numeric: tabular-nums; }
.korb__leer { display: grid; gap: 1rem; justify-items: start; }
.korb__leer .gw { width: 6rem; height: 4.25rem; color: var(--rose); }
.korb__form { display: flex; flex-direction: column; gap: 1.25rem; }
.korb__form[hidden] { display: none; }
.uebergabe { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; }
.uebergabe legend { font: 600 var(--s-anlauf)/1.1 var(--anzeige); padding: 0; margin-bottom: .75rem; }
.wie { display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; align-items: start; padding: .85rem 1rem; background: var(--rose-hell); cursor: pointer; transition: background-color 180ms ease; margin-bottom: .5rem; }
.wie input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--wand); }
.wie b { font-weight: 600; display: block; line-height: 1.3; }
.wie small { font-size: var(--s-klein); line-height: 1.35; display: block; }
.wie:has(input:checked) { background: var(--rose); }
.wie.ist-gesperrt { background: none; cursor: not-allowed; color: #6b5c5c; }
.korb__fertig { display: grid; gap: 1rem; justify-items: start; }
.korb__fertig:focus { outline: none; }
.korb__fertig[hidden] { display: none; }
.korb__fertig .gw { width: 8rem; height: 5.75rem; color: var(--rose); }

/* Handy und kleine Tablets */
@media (max-width: 1200px) {
  .kopf__nav { display: none; }
  .held { display: flex; flex-direction: column; align-items: flex-start; padding-block: clamp(1.5rem, 4vh, 3rem) 2.5rem; min-height: 0; }
  .held__wand { width: 100%; }
  .held__text { display: contents; }
  .held__titel { order: 1; position: relative; z-index: 2; }
  .motiv {
    --p: min(120vw, 86vh); order: 2; position: relative; left: auto; top: auto; translate: none; align-self: center;
    margin-top: calc(var(--p) * -0.127); margin-bottom: calc(var(--p) * -0.015); clip-path: inset(15% -60vw 0 -60vw);
  }
  .held__satz { order: 3; position: relative; z-index: 2; max-width: 34rem; margin-top: 1.5rem; }
  .held__tun { order: 4; position: relative; z-index: 2; }
  .proto-bewegung { order: 5; position: relative; z-index: 2; }
  .wir__tafel { grid-template-columns: minmax(0, 1fr); min-height: 0; }
}
@media (max-width: 760px) {
  :root { --kopf-h: 3.75rem; }
  .kopf { position: static; }
  .kopf .knopf, .kopf__korb { display: none; }
  .kopf__marke .gw { width: 2.75rem; height: 2.1rem; }
  .kopf__marke .wort { width: 5.5rem; height: 2.1rem; }
  body { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }

  .held { padding-block: 1.25rem 2rem; }
  .held__satz { margin-top: 1rem; font-size: var(--s-text); }
  .held__tun { margin-top: 1rem; }
  .motiv { --p: 135vw; }
  .schild { width: 9.5rem; min-width: 0; top: 39%; transform-origin: 50% -3rem; }
  .schild__schnur { height: 3.1rem; }
  .schild__schnur--l { rotate: -11deg; }
  .schild__schnur--r { rotate: 11deg; }
  .schild__brett { padding: .6rem .5rem .65rem; }

  .karte__kopf, .karte__spalten, .stamm__kopf, .wir__tafel, .kontakt { grid-template-columns: minmax(0, 1fr); }
  .stange-gross { display: none; }
  .stamm__text { padding-bottom: 0; }
  .trophaee { width: 100%; }
  .schild--trophaee { width: 9.5rem; min-width: 0; transform-origin: 50% -5rem; }
  .schild--trophaee .schild__schnur { height: 5.5rem; }
  .bilderwand { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.25rem; }
  .rahmen--a, .rahmen--b, .rahmen--c, .rahmen--d, .rahmen--e, .rahmen--f { grid-column: auto; margin-top: 0; }
  .rahmen:nth-child(even) { margin-top: 3rem; }
  .karterl:not(.hat-auswahl) .karterl__daten { display: none; }
  .ring--karte { width: 72%; justify-self: center; margin: 2.5rem 0 1.5rem; }
  .karte__gruppe + .karte__gruppe { margin-top: 3rem; }

  .karterl { display: block; min-height: 0; }
  .karterl__abriss { flex-direction: column; border-right: 0; border-bottom: 6px dotted var(--wand); gap: 1.25rem; }
  .karterl__abriss::before, .karterl__abriss::after { top: auto; bottom: calc(var(--kerbe) / -2 - 3px); right: auto; }
  .karterl__abriss::before { left: calc(var(--kerbe) / -2); }
  .karterl__abriss::after { right: calc(var(--kerbe) / -2); }
  .karterl__gw { display: none; }
  .karterl.ist-abgerissen .karterl__abriss { transform: translate(-.25rem, -.75rem) rotate(-1.2deg); border-bottom-color: transparent; }
  .wahl { grid-template-columns: minmax(0, 1fr); }
  .karterl__arbeit { padding-inline: 1rem; }

  .hirschecke { min-height: 0; }
  .brett { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-template-rows: none; grid-auto-rows: auto; }
  .stueck.ist-quer { grid-column: 1 / -1; order: 2; }
  .stueck__bild img { aspect-ratio: 4 / 5; object-fit: cover; }
  .stueck.ist-quer .stueck__bild img { aspect-ratio: 16 / 10; }
  .stueck__schild { padding-bottom: 1.25rem; }

  .stamm__gross { height: 62vw; }
  .wir__tafel { min-height: 0; padding: 1.25rem; padding-bottom: 0; }
  .wir__rechts { order: 1; }
  .wir__links { display: contents; }
  .wir__links .titel { order: 0; }
  .ring--wir { order: 2; width: 86vw; margin: 1rem auto -4rem; }

  .kontakt__bild { min-height: 0; aspect-ratio: 4 / 5; }
  .fuss__nav { grid-column: span 6; }
  .fuss__adr, .fuss__notiz { grid-column: 1 / -1; }
  .fuss__marke { margin-inline: calc(var(--rand) * -1); height: 58vw; }

  .leiste {
    position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: 1.3fr 1fr 1fr;
    background: var(--wand); padding-bottom: env(safe-area-inset-bottom);
  }
  .leiste__k {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 4rem; background: none; border: 0;
    color: var(--knospe); font: 500 var(--s-text)/1 var(--text); text-decoration: none;
  }
  .leiste__k--haupt { background: var(--knospe); color: var(--wand); font-weight: 600; }
  .korb { width: 100%; }
}

/* Bewegung: Klasse .bewegt setzt das Skript im Kopf, wenn das Gerät Bewegung erlaubt (oder im Prototyp mit ?bewegung).
 Ohne Skript und bei reduzierter Bewegung steht alles fertig da. */
html:not(.bewegt) { scroll-behavior: auto; }
/* Ladefolge */
.bewegt .held__titel .zeile > span { transform: translateY(108%); animation: zeile-hoch 900ms var(--ease-expo) forwards; animation-delay: calc(100ms + var(--i) * 100ms); }
.bewegt [data-lade] { opacity: 0; transform: translateY(14px); animation: lade-rise 520ms var(--ease-out) forwards; animation-delay: var(--d); }
/* Das Geweih wächst von der Wurzel zur Spitze */
.bewegt .motiv__platte { clip-path: inset(100% 0 0 0); animation: wachsen 1250ms var(--ease-in-out) 120ms forwards; }
.bewegt .motiv__platte img { transform: scale(1.06); transform-origin: 50% 88%; animation: setzen 1500ms var(--ease-soft) 120ms forwards; }
.bewegt .straehnen path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: zeichnen 1500ms var(--ease-in-out) forwards; animation-delay: calc(500ms + var(--i) * 90ms); }
.bewegt .motiv .schild { opacity: 0; animation: schild-kommt 300ms var(--ease-out) 1050ms forwards, schwingen 2200ms cubic-bezier(.36,0,.3,1) 1050ms; }
.bewegt .stange { opacity: 0; animation: lade-rise 500ms var(--ease-out) 1250ms forwards; }
.bewegt .schild--trophaee { transform: rotate(5deg); }
.bewegt .trophaee.ist-da .schild--trophaee { transform: none; animation: schwingen 2200ms cubic-bezier(.36,0,.3,1) 500ms; }
.bewegt .schild.ist-angetippt { animation: schwingen-klein 1300ms cubic-bezier(.36,0,.3,1) !important; opacity: 1 !important; }

/* Beim Hereinscrollen, je Abschnitt anders */
.bewegt [data-reveal="hebt"] { transform: translateY(26px); transition: transform 900ms var(--ease-expo) var(--v, 0ms); }
.bewegt [data-reveal="hebt"].ist-da { transform: none; }
.bewegt [data-reveal]:not([data-reveal="oeffnen"]):not([data-reveal="hebt"]) { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out) var(--v, 0ms), transform 900ms var(--ease-expo) var(--v, 0ms); }
.bewegt [data-reveal].ist-da:not([data-reveal="oeffnen"]):not([data-reveal="hebt"]) { opacity: 1; transform: none; }
.bewegt [data-reveal="oeffnen"] { clip-path: inset(0 0 97% 0); transition: clip-path 900ms var(--ease-in-out); }
.bewegt [data-reveal="oeffnen"].ist-da { clip-path: inset(-12%); }
.bewegt .posten li { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out) var(--v, 0ms), transform 600ms var(--ease-out) var(--v, 0ms); }
.bewegt .posten.ist-da li { opacity: 1; transform: none; }

/* Regal: erst das Brett, dann stellen sich die Stücke drauf */
.bewegt .brett .stueck__planke { transform: scaleX(0); transition: transform 800ms var(--ease-in-out); }
.bewegt .brett .stueck__bild { opacity: 0; transform: translateY(-18px); transition: opacity 500ms var(--ease-out) var(--v, 0ms), transform 650ms var(--ease-out) var(--v, 0ms); }
.bewegt .brett .stueck__schild { opacity: 0; transition: opacity 500ms ease var(--v, 0ms); }
.bewegt .brett.ist-da .stueck__planke { transform: none; }
.bewegt .brett.ist-da .stueck__bild, .bewegt .brett.ist-da .stueck__schild { opacity: 1; transform: none; }

/* Zeilen in Überschriften */
.bewegt .ist-geteilt .zeile > span { transform: translateY(110%); }
.bewegt .ist-geteilt.ist-da .zeile > span { transform: none; transition: transform 900ms var(--ease-expo) calc(var(--i) * 90ms); }

/* Körberl fährt von der Seite herein */
.bewegt .korb[open] { animation: korb-rein 340ms var(--ease-out); }
.bewegt .korb[open]::backdrop { animation: abdunkeln 280ms ease; }
.bewegt .schritt:not([hidden]) { animation: schritt-rein 300ms var(--ease-out); }

@keyframes zeile-hoch { to { transform: none; } }
@keyframes lade-rise { to { opacity: 1; transform: none; } }
@keyframes wachsen { to { clip-path: inset(-5%); } }
@keyframes setzen { to { transform: none; } }
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
@keyframes schild-kommt { to { opacity: 1; } }
@keyframes schwingen { 0% { transform: rotate(7deg); } 22% { transform: rotate(-4.5deg); } 44% { transform: rotate(2.8deg); } 66% { transform: rotate(-1.4deg); } 84% { transform: rotate(.6deg); } 100% { transform: rotate(0); } }
@keyframes schwingen-klein { 0% { transform: rotate(0); } 18% { transform: rotate(3.2deg); } 42% { transform: rotate(-2deg); } 68% { transform: rotate(.9deg); } 100% { transform: rotate(0); } }
@keyframes korb-rein { from { transform: translateX(3rem); opacity: 0; } }
@keyframes abdunkeln { from { opacity: 0; } }
@keyframes schritt-rein { from { opacity: 0; transform: translateY(8px); } }

@media print { .kopf, .leiste, .bordure, .motiv { display: none; } }
