/* Sennhütte — Käserestaurant, Stempelstreifen, Lochkarten. Kein Kartenraster. */
:root {
  --hoehle: #12352e;
  --hoehle-tief: #0b241f;
  --flaschengruen: #1a4a40;
  --sahne: #f3ead4;
  --sahne-alt: #e8dcc0;
  --zettel: #f8f1de;
  --stempelrot: #8b2e24;
  --holz: #7a5330;
  --holz-kern: #4a301c;
  --wachs: #c9a227;
  --tinte: #1a1612;
  --milch: #fbf6ea;
  --fehl: #9a261c;
  --gut: #2a5c48;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

.keller {
  margin: 0;
  min-height: 100vh;
  color: var(--sahne);
  background:
    radial-gradient(ellipse 90% 42% at 50% -10%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(circle at 8% 70%, rgba(255, 255, 255, 0.04), transparent 28%),
    repeating-linear-gradient(
      90deg,
      transparent 0 64px,
      rgba(0, 0, 0, 0.07) 64px 65px
    ),
    linear-gradient(180deg, #1a4a40 0%, var(--hoehle) 38%, var(--hoehle-tief) 100%);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 1.02rem;
  line-height: 1.6;
}

.keller.keller-halt { overflow: hidden; }

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

a { color: var(--wachs); }

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

.molkesprung {
  position: absolute;
  left: 1rem;
  top: -3.4rem;
  z-index: 90;
  background: var(--stempelrot);
  color: var(--sahne);
  padding: 0.4rem 0.75rem;
  text-decoration: none;
  font-size: 0.85rem;
}
.molkesprung:focus { top: 0.8rem; }

/* Header: dairy inspection stamp strip, perforated bottom */
.stempelstreifen {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 4vw 1.15rem;
  background:
    repeating-linear-gradient(
      90deg,
      var(--sahne) 0 11px,
      var(--sahne-alt) 11px 12px
    );
  color: var(--tinte);
  box-shadow: 0 12px 0 var(--hoehle-tief);
}

.stempelstreifen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 16px;
  background:
    radial-gradient(circle at 9px 0, var(--hoehle-tief) 5px, transparent 5.5px);
  background-size: 18px 16px;
  pointer-events: none;
}

.sennmarke {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--flaschengruen);
  min-width: 0;
}

.gummistempel {
  flex: 0 0 auto;
  width: 3.35rem;
  height: 3.35rem;
  border: 3px solid var(--stempelrot);
  border-radius: 50%;
  transform: rotate(-11deg);
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stempelrot);
  box-shadow: inset 0 0 0 2px var(--stempelrot);
  line-height: 1.15;
  padding: 0.25rem;
}

.markenzeile {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1;
}
.markenzeile small {
  display: block;
  margin-top: 0.28rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stempelrot);
}

.lochzange {
  width: 2.7rem;
  height: 2.7rem;
  border: 2px dashed var(--stempelrot);
  background: var(--milch);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: inherit;
}
.lochzange span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--flaschengruen);
}
.lochzange[aria-expanded="true"] span:nth-child(2) { width: 0.65rem; }

.pfadregal {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.pfadregal a {
  text-decoration: none;
  color: var(--flaschengruen);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.pfadregal a[aria-current="page"] {
  color: var(--stempelrot);
  box-shadow: 0 1px 0 var(--stempelrot);
}
.pfadregal .automat-ruf {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

@media (max-width: 880px) {
  .pfadregal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    flex-direction: column;
    justify-content: center;
    padding: 2.2rem 1.6rem;
    gap: 1.4rem;
    background:
      radial-gradient(circle at 80% 10%, rgba(201, 162, 39, 0.18), transparent 40%),
      var(--hoehle);
  }
  .pfadregal a {
    color: var(--sahne);
    font-size: 1.15rem;
  }
  .pfadregal a[aria-current="page"] {
    color: var(--wachs);
    box-shadow: none;
  }
  .pfadregal.pfad-offen { display: flex; }
  .lochzange { position: relative; z-index: 90; }
}

@media (min-width: 881px) {
  .lochzange { display: none; }
}

.hoehle {
  padding: 1.6rem 0 2.4rem;
}

/* Horizontal cheese-shelf rows — items sit on a plank, tickets hang below */
.regalreihe {
  margin: 0 0 2.1rem;
  padding: 0;
}

.regalgut {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 1.2rem;
  padding: 0.9rem 4vw 0.45rem;
  overflow-x: auto;
  background:
    linear-gradient(180deg, rgba(18, 53, 46, 0.2), rgba(11, 36, 31, 0.55));
}

.bretterbank {
  height: 1.15rem;
  margin: 0;
  background:
    repeating-linear-gradient(
      90deg,
      #8a5c36 0 10px,
      #6e4628 10px 18px,
      #9a6940 18px 26px
    );
  box-shadow:
    0 10px 0 var(--holz-kern),
    inset 0 2px 0 rgba(255, 220, 170, 0.28);
}

.zettelhange {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  padding: 0.55rem 4vw 0.2rem;
  overflow-x: auto;
  min-height: 5.2rem;
}

.kasefoto {
  margin: 0;
  flex: 0 0 min(42rem, 78vw);
  background: var(--holz-kern);
  padding: 0.4rem 0.4rem 0;
  transform: rotate(-0.6deg);
}
.kasefoto img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background:
    radial-gradient(circle at 28% 42%, #e8d9a8 0 9%, transparent 10%),
    radial-gradient(circle at 72% 58%, #d4c48a 0 7%, transparent 8%),
    radial-gradient(circle at 50% 50%, #c9a227 0 2%, transparent 3%),
    #163a32;
}
.kasefoto figcaption {
  padding: 0.4rem 0.15rem 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sahne-alt);
}
.kasefoto--breit { flex-basis: min(52rem, 88vw); transform: none; }

.regalschild {
  flex: 1 1 22rem;
  min-width: 18rem;
  max-width: 36rem;
  padding: 0.2rem 0.4rem 0.6rem;
  color: var(--sahne);
}
.regalschild h1,
.kammernote h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.85rem, 4.4vw, 3.15rem);
  line-height: 1.08;
  margin: 0 0 0.7rem;
  color: var(--milch);
}
.regalschild p { margin: 0 0 0.85rem; }
.regalschild h1 { color: var(--sahne); }

.sennstempel {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.32rem 0.55rem;
  border: 2px solid var(--stempelrot);
  border-radius: 2px;
  color: var(--stempelrot);
  background: rgba(243, 234, 212, 0.12);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  transform: rotate(-2deg);
}

.milchzettel {
  position: relative;
  flex: 0 0 auto;
  width: 10.4rem;
  background: var(--zettel);
  color: var(--tinte);
  padding: 1.05rem 0.7rem 0.75rem;
  border: 1px solid #d3c4a0;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.22);
}
.milchzettel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 12px;
  background:
    radial-gradient(circle at 8px 0, var(--hoehle) 4.5px, transparent 5px);
  background-size: 16px 12px;
  background-color: var(--zettel);
}
.milchzettel b {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0.15rem 0 0.2rem;
}
.milchzettel span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--flaschengruen);
}
.milchzettel em {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--stempelrot);
}

.stempelknopf {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.7rem 1.1rem;
  background: var(--stempelrot);
  color: var(--sahne);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 3px 3px 0 var(--holz-kern);
}

.kammernote {
  margin: 0 4vw 0;
  max-width: none;
  background: var(--zettel);
  color: var(--tinte);
  padding: 1.4rem 1.2rem 1.6rem;
  border: 1px solid #d3c4a0;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.28);
}
.kammernote h1 { color: var(--flaschengruen); }
.kammernote h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--flaschengruen);
}
.kammernote a { color: var(--stempelrot); }

@media (min-width: 900px) {
  .kammernote {
    margin-left: 8vw;
    margin-right: 18vw;
    padding: 1.8rem 2rem 2rem;
  }
}

.sortimentregal .regalgut {
  align-items: stretch;
}
.laibplatz {
  flex: 1 1 16rem;
  min-width: 15rem;
  max-width: 22rem;
  padding: 0.8rem 0.9rem 0.7rem;
  background: rgba(248, 241, 222, 0.08);
  border-left: 4px solid var(--wachs);
  color: var(--sahne);
}
.laibplatz h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.laibplatz p { margin: 0; font-size: 0.95rem; }

.hofbahn {
  display: grid;
  gap: 0;
}
@media (min-width: 920px) {
  .hofbahn {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(22rem, 1.2fr);
    align-items: end;
    gap: 0;
  }
  .hofbahn .regalreihe { margin-bottom: 0; }
}

.scheinzeile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
}
.scheinzeile span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flaschengruen);
}
.scheinzeile input,
.scheinzeile textarea {
  border: 0;
  border-bottom: 2px dotted var(--flaschengruen);
  background: rgba(255, 255, 255, 0.45);
  padding: 0.5rem 0.35rem;
  font: inherit;
  color: inherit;
}
.scheinzeile textarea { min-height: 7.5rem; resize: vertical; }

.molke-fehl {
  box-shadow: inset 0 -2px 0 var(--fehl);
}

.milchkreuz {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.7rem 0 1rem;
  font-size: 0.92rem;
}
.milchkreuz.molke-fehl {
  outline: 1px solid var(--fehl);
  padding: 0.3rem;
}

.scheinquittung {
  padding: 0.9rem 0.2rem 1rem;
  color: var(--gut);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.35;
}

/* Footer: carbon delivery slip */
.lieferschein {
  position: relative;
  margin: 1.4rem 4vw 6.5rem;
  padding: 1.7rem 1.3rem 1.2rem;
  background:
    repeating-linear-gradient(
      var(--zettel) 0 26px,
      #eadfb8 26px 27px
    );
  color: var(--tinte);
  border: 1px solid #cbbd96;
  box-shadow: 7px 9px 0 var(--hoehle-tief);
}
.lieferschein::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 16px;
  background:
    radial-gradient(circle at 9px 16px, var(--hoehle-tief) 5px, transparent 5.5px);
  background-size: 18px 16px;
  background-color: var(--zettel);
}
.lieferschein a { color: var(--stempelrot); }
.lieferschein nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.slipkopf {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flaschengruen);
  font-weight: 600;
}
.slipkopf b {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--stempelrot);
  transform: rotate(-4deg);
  border: 2px solid var(--stempelrot);
  padding: 0.15rem 0.4rem;
  font-weight: 600;
}

.slipgitter {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 760px) {
  .slipgitter {
    grid-template-columns: 1.5fr 1fr 1fr;
    align-items: start;
  }
}

.scheinjahr {
  margin: 1.1rem 0 0;
  font-size: 0.78rem;
  opacity: 0.8;
}

.milchtafel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: var(--zettel);
  color: var(--tinte);
  border-top: 3px dashed var(--stempelrot);
  padding: 1rem 4vw 1.15rem;
  box-shadow: 0 -8px 0 var(--hoehle-tief);
}
.milchwahl {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.65rem;
}
.milchwahl button {
  font: inherit;
  border: 0;
  padding: 0.48rem 0.9rem;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 600;
}
.milchwahl [data-cookie-accept] {
  background: var(--flaschengruen);
  color: var(--sahne);
}
.milchwahl [data-cookie-reject] {
  background: transparent;
  color: var(--flaschengruen);
  border: 1px dashed var(--flaschengruen);
}
