/* Kaffee Fenster Passau
   Rot auf Papier, Korn drüber. Farben und Schriften ganz oben ändern. */

@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-latin-opsz-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Reenie Beanie"; src: url("../fonts/reenie-beanie-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --rot: #b3141c;
  --rot-tief: #7c0e14;
  --creme: #f3ead8;
  --gruen: #3f5a32;
  --gruen-tief: #1e2a17;
  --tinte: #1a2114;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --hand: "Reenie Beanie", "Bradley Hand", cursive;
  --rand: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme) url("../img/papier.webp");
  color: var(--tinte);
  font: 500 clamp(1.02rem, 0.96rem + 0.3vw, 1.2rem)/1.38 var(--sans);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Filmkorn über allem */
body::after {
  content: "";
  position: fixed;
  inset: -256px;
  z-index: 40;
  pointer-events: none;
  background: url("../img/korn.png") 0 0 / 128px;
  opacity: 0.2;
  animation: korn 0.9s steps(5) infinite;
}
@keyframes korn {
  20% { transform: translate(-48px, 30px); }
  40% { transform: translate(36px, -64px); }
  60% { transform: translate(-90px, -18px); }
  80% { transform: translate(70px, 54px); }
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--creme); }
.sprung:focus { top: 12px; }

/* Zwei Punkte, das kleine Markenzeichen */
.pp { display: inline-block; width: 1.5em; height: 0.66em; vertical-align: -0.02em;
  background: radial-gradient(circle at 0.33em 50%, currentColor 0.31em, transparent 0.33em), radial-gradient(circle at 1.13em 50%, currentColor 0.31em, transparent 0.33em); }

.klammer { font-weight: 500; }
.klein { font-size: 0.8rem; font-weight: 600; line-height: 1.16; text-transform: uppercase; letter-spacing: -0.004em; }

h1, h2, .gross, .marke { font-variation-settings: "opsz" 30; }
h2 { font-family: var(--serif); font-weight: 500; font-style: italic; letter-spacing: -0.022em; line-height: 0.98; }

[data-auf] { transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-auf]:not(.da) { opacity: 0; transform: translateY(26px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #3f0a0e;
  color: var(--creme);
  isolation: isolate;
}
.buehne {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, 160vh);
  width: max(100vw, 160svh);
  aspect-ratio: 8 / 5;
  transform: translate(-50%, -50%);
  perspective: 1900px;
  perspective-origin: 65% 42%;
  z-index: -1;
}
.wand { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Prozentwerte passen zu BW/BH und FX/FY in werkzeuge/kunst.py */
.joschi { position: absolute; left: 54.1667%; top: 20%; width: 20.8333%; height: 50.667%; overflow: hidden; }
.joschi img { position: absolute; left: -3%; bottom: 0; width: 106%; max-width: none; opacity: 0; animation: 7s step-end infinite; }
.joschi img:nth-child(1) { opacity: 1; animation-name: joschi-ruhe; }
.joschi img:nth-child(2) { animation-name: joschi-ein; }
.joschi img:nth-child(3) { animation-name: joschi-blinzeln; }
.joschi img:nth-child(4) { animation-name: joschi-aus; }
@keyframes joschi-ruhe { 0% { opacity: 1; } 24% { opacity: 0; } 36% { opacity: 1; } 48% { opacity: 0; } 60% { opacity: 1; } 78% { opacity: 0; } 80.5% { opacity: 1; } }
@keyframes joschi-ein { 0% { opacity: 0; } 24% { opacity: 1; } 36% { opacity: 0; } }
@keyframes joschi-aus { 0% { opacity: 0; } 48% { opacity: 1; } 60% { opacity: 0; } }
@keyframes joschi-blinzeln { 0% { opacity: 0; } 78% { opacity: 1; } 80.5% { opacity: 0; } }
.waesche { position: absolute; left: 25%; width: 26%; top: 6.5%; max-width: none; opacity: 0.92; }
.laden { position: absolute; top: 20%; width: 10.4167%; height: 50.667%; transform-style: preserve-3d; transition: transform 2.2s cubic-bezier(0.32, 0.02, 0.18, 1); box-shadow: 0 0 2px rgba(0, 0, 0, 0.5); }
.laden img { width: 100%; height: 100%; }
.laden-l { left: 54.1667%; transform-origin: 0 50%; }
.laden-r { left: 64.5833%; transform-origin: 100% 50%; }
.js .hero:not(.auf) .laden-l { transform: rotateY(-2deg); }
.js .hero:not(.auf) .laden-r { transform: rotateY(2deg); }
.laden-l, .hero.auf .laden-l { transform: rotateY(-168deg); }
.laden-r, .hero.auf .laden-r { transform: rotateY(168deg); }
.hero.auf .laden-r { transition-delay: 0.14s; }
.js .hero:not(.auf) .laden-r { transition-delay: 0.14s; }
.fenster-knopf { position: absolute; left: 54.1667%; top: 20%; width: 20.8333%; height: 50.667%; z-index: 3; padding: 0; border: 0; background: transparent; cursor: pointer; }
.fenster-knopf:focus-visible { outline: 3px solid var(--creme); outline-offset: 6px; }
.fenster-hinweis { position: absolute; left: 54.1667%; width: 20.8333%; top: 74%; text-align: center; color: var(--creme); opacity: 0.85; }

.kopf {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 20px var(--rand);
  font-size: 1rem;
  font-weight: 500;
}
.kopf a { text-decoration: none; }
.kopf ul { display: flex; gap: 0.4em; }
.kopf li:not(:last-child)::after { content: ","; }
.kopf li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.marke { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--serif); font-style: italic; font-size: 1.32rem; font-weight: 600; letter-spacing: -0.02em; }
.status { display: flex; align-items: center; gap: 0.5em; }
.kopf .status { justify-self: end; }

.hero-text { position: absolute; left: var(--rand); bottom: clamp(28px, 6vh, 64px); z-index: 2; }
h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(3.5rem, 8vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.cue { position: absolute; right: var(--rand); bottom: 22px; z-index: 2; font-size: 1rem; }

/* ---------- Laufband ---------- */
.laufband { display: flex; overflow: hidden; background: var(--gruen-tief); color: var(--creme); font: italic 500 clamp(1.3rem, 2.4vw, 1.9rem)/1 var(--serif); padding: 13px 0 15px; }
.band-reihe { display: flex; flex: none; align-items: center; gap: 0.7em; padding-right: 0.7em; white-space: nowrap; animation: band 46s linear infinite; }
.band-reihe .pp { font-size: 0.56em; }
@keyframes band { to { transform: translateX(-100%); } }

/* ---------- Über uns ---------- */
.ueber { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; padding: clamp(64px, 9vw, 130px) var(--rand); }
.ueber-text { align-self: start; }
.ueber h2 { margin-top: 22px; font-size: clamp(2.3rem, 5.2vw, 5.4rem); color: var(--rot); line-height: 1.04; }
.markiert { display: inline-block; background: url("../logo/strich-rot.svg") no-repeat 0 100% / 100% 0.24em; padding-bottom: 0.14em; }

/* Fotos mit kleiner weißer Schrift */
.foto-tafel { position: relative; overflow: hidden; color: var(--creme); }
.foto-tafel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.foto-tafel figcaption { position: absolute; inset: auto 0 0; padding: clamp(60px, 9vw, 120px) clamp(16px, 2vw, 28px) clamp(16px, 2vw, 26px); background: linear-gradient(to bottom, transparent, rgba(16, 24, 12, 0.76) 55%); font-size: 0.98rem; line-height: 1.28; }
.foto-tafel h3 { font-size: inherit; font-weight: 700; margin-bottom: 4px; }

.bild-voll { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; color: #fff; isolation: isolate; }
.bild-voll > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bild-voll::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(20, 22, 12, 0.24); }
.bild-voll .klein { position: absolute; }
.cl-1 { left: 38%; top: 30%; }
.cl-2 { left: 56%; top: 46%; }
.cl-3 { left: 30%; top: 62%; }

.bild-band { position: relative; height: clamp(240px, 42vh, 420px); overflow: hidden; color: #fff; }
.bild-band img { width: 100%; height: 100%; object-fit: cover; }
.bild-band .klein { position: absolute; left: var(--rand); bottom: 20px; }


/* ---------- Karte ---------- */
.karte { padding: 28px var(--rand) clamp(70px, 10vw, 140px); }
.karte-kopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-bottom: 3px solid var(--rot); padding-bottom: 14px; color: var(--rot); }
.karte-kopf h2 { font-size: clamp(4.4rem, 16.5vw, 18rem); line-height: 0.82; }
.karte-kopf .klein { flex: none; text-align: right; padding-bottom: 0.6em; }
.karte-liste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4.5vw, 72px); margin-top: 34px; }
.gruppe h3 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--gruen); margin-bottom: 14px; }
.gruppe li { padding: 12px 0; border-top: 1px solid rgba(124, 14, 20, 0.3); }
.zeile { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: clamp(1.45rem, 2.3vw, 2.15rem); font-weight: 500; font-variation-settings: "opsz" 11; font-feature-settings: "lnum"; line-height: 1.1; letter-spacing: -0.02em; }
.zeile sup { font: 600 0.78rem var(--sans); margin-left: 2px; color: var(--rot); vertical-align: super; line-height: 0; }
.punkte { flex: 1; min-width: 12px; border-bottom: 2px dotted rgba(124, 14, 20, 0.5); transform: translateY(-0.2em); }
.preis { font-style: italic; color: var(--rot); white-space: nowrap; font-feature-settings: "lnum"; }
.preis-kreis { position: relative; }
.preis-kreis::after { content: ""; position: absolute; inset: -0.5em -0.55em -0.5em -0.6em; background: url("../logo/kreis-rot.svg") no-repeat center / 100% 100%; pointer-events: none; }
.notiz { font: 400 1.5rem/1 var(--hand); letter-spacing: 0; color: var(--gruen); margin-top: 7px; transform: rotate(-0.8deg); transform-origin: 0 50%; }
.hafer { margin-top: 30px; font: italic 500 clamp(1.5rem, 2.4vw, 2.2rem)/1.1 var(--serif); color: var(--gruen); font-variation-settings: "opsz" 18; }
.fuss { margin-top: 14px; font-size: 0.92rem; }
.fuss sup { line-height: 0; }

/* ---------- Maschine ---------- */
.maschine, .finden { position: relative; overflow: hidden; isolation: isolate; }
.grund { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.maschine { background: #2a070a; color: var(--creme); padding: clamp(64px, 8vw, 120px) var(--rand); }
.maschine-innen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.maschine h2 { margin: 18px 0 20px; font-size: clamp(2.5rem, 5.2vw, 5.2rem); }
.maschine-text > p:not(.klammer) { max-width: 27em; }
.rezept { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px clamp(18px, 3vw, 40px); margin: 36px 0 0; padding-top: 14px; border-top: 1px solid rgba(243, 234, 216, 0.4); }
.rezept dt { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; }
.rezept dd { font: italic 500 clamp(1.5rem, 2.6vw, 2.3rem)/1.1 var(--serif); white-space: nowrap; font-variation-settings: "opsz" 11; font-feature-settings: "lnum"; }
.maschine-bild { position: relative; }
.maschine-bild img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; filter: drop-shadow(0 26px 34px rgba(20, 0, 2, 0.6)); }
.maschine-bild li { position: absolute; }
.maschine-bild li:nth-child(1) { right: 2%; top: 7%; }
.maschine-bild li:nth-child(2) { left: 6%; bottom: 13%; }
.maschine-bild li:nth-child(3) { right: 2%; top: 56%; text-align: right; }

/* ---------- Joschi ---------- */
.team { position: relative; }
.team-spur { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.team-spur::-webkit-scrollbar { display: none; }
.team-spur > .typ { flex: 0 0 100%; scroll-snap-align: start; }
.typ-orange { background: #5a2a10; }
.team-nav { position: absolute; left: var(--rand); bottom: clamp(20px, 3vw, 36px); z-index: 2; display: flex; gap: 6px; }
.team-nav button { font: 600 0.8rem/1 var(--sans); text-transform: uppercase; color: var(--creme); background: transparent; border: 1px solid rgba(243, 234, 216, 0.55); padding: 9px 14px; cursor: pointer; }
.team-nav button[aria-current="true"] { background: var(--creme); color: var(--gruen-tief); }
.team-nav .weiter { font-size: 1rem; }
.typ { position: relative; overflow: hidden; isolation: isolate; background: var(--gruen-tief); color: var(--creme); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 100px); align-items: center; padding: clamp(70px, 10vw, 150px) var(--rand) clamp(100px, 12vw, 170px); }
.typ-bild img { width: 100%; max-width: 560px; margin-inline: auto; }
.typ h2 { margin: 14px 0 10px; font-size: clamp(4rem, 9vw, 9rem); line-height: 0.9; }
.typ-sub { font: italic 500 clamp(1.6rem, 2.8vw, 2.6rem)/1.1 var(--serif); letter-spacing: -0.02em; margin-bottom: 18px; font-variation-settings: "opsz" 18; }
.typ-text p { max-width: 28em; }

/* ---------- Finden ---------- */
.finden .grund { object-position: 64% 0; }
.finden { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(600px, 42vw, 900px); padding: clamp(36px, 4vw, 56px) var(--rand) var(--rand); }
.finden h2 { color: var(--rot); font-size: clamp(3rem, 8.6vw, 9.5rem); line-height: 0.95; }
.zettel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); width: min(100%, 52rem); margin-left: auto; padding: clamp(22px, 3vw, 40px); background: var(--creme) url("../img/papier.webp"); box-shadow: 0 18px 50px rgba(20, 28, 14, 0.4); }
.zettel h3 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--rot); margin: 0 0 8px; }
.zettel p + h3 { margin-top: 18px; }
.zeiten { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin-bottom: 8px; }
.zeiten dt { font-weight: 700; }
.zettel a { color: var(--rot); font-weight: 600; text-underline-offset: 3px; }
.zettel address { font: italic 500 1.55rem/1.12 var(--serif); margin-bottom: 8px; font-variation-settings: "opsz" 11; font-feature-settings: "lnum"; }

/* ---------- Fuß ---------- */
.fuss-seite { background: var(--rot); color: var(--creme); padding: clamp(50px, 7vw, 90px) var(--rand) 26px; }
.fuss-seite > img { width: clamp(120px, 15vw, 190px); }
.gross { font: italic 500 8.5vw/1 var(--serif); letter-spacing: -0.03em; margin: 24px 0 30px; white-space: nowrap; }
.fuss-zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 12px; border-top: 1px solid rgba(244, 234, 214, 0.5); }
.fuss-zeile ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.fuss-zeile a { text-underline-offset: 3px; }

/* ---------- Rechtstexte ---------- */
.seite-kopf { display: flex; justify-content: space-between; align-items: baseline; padding: 20px var(--rand); color: var(--rot); }
.seite-kopf a { text-decoration: none; }
.recht { max-width: 46rem; margin: 0 auto; padding: clamp(32px, 6vw, 70px) var(--rand) clamp(70px, 9vw, 120px); box-sizing: content-box; }
.recht h1 { color: var(--rot); font-size: clamp(3rem, 8vw, 5.6rem); margin-bottom: 30px; }
.recht h2 { font: 700 1.1em/1.25 var(--sans); letter-spacing: -0.012em; color: var(--rot-tief); margin: 34px 0 6px; }
.recht h3 { font-size: 1em; margin: 18px 0 4px; }
.recht p, .recht ul { margin-bottom: 10px; }
.recht ul { list-style: disc; padding-left: 1.2em; }
.recht address { font-style: normal; margin-bottom: 10px; }
.recht small { opacity: 0.75; }
.recht table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; }
.recht th, .recht td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid rgba(124, 14, 20, 0.3); vertical-align: top; }
.recht th { font-size: 0.8rem; text-transform: uppercase; color: var(--rot); }
/* ---------- Schmal ---------- */
@media (max-width: 1000px) {
  .karte-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .maschine-innen, .typ, .ueber { grid-template-columns: minmax(0, 1fr); }
  .maschine-bild { max-width: 640px; margin-inline: auto; width: 100%; }
  .typ-bild img { max-width: 440px; }
  .foto-tafel { max-width: 560px; }
}

@media (max-width: 720px) {
  .kopf { grid-template-columns: auto auto; justify-content: space-between; gap: 12px; padding-block: 16px; }
  .kopf ul { display: none; }
  .kopf .status { font-size: 0.74rem; white-space: nowrap; }
  .kopf .marke { font-size: 1.12rem; gap: 8px; }
  .kopf .marke img { width: 29px; height: 24px; }
  /* Fenster nach oben, Schrift darunter auf ruhigem Grund */
  .buehne { top: 0; left: 50%; width: auto; height: 74svh; transform: translateX(-64.6%); }
  .hero::after { content: ""; position: absolute; inset: 52% 0 0; z-index: 0; background: linear-gradient(to bottom, transparent, #3f0a0e 56%); pointer-events: none; }
  .hero-text { right: var(--rand); bottom: 54px; }
  .cue { display: none; }
  h1 { font-size: clamp(3.3rem, 17vw, 5.4rem); }
  .cl-1 { left: var(--rand); top: 29%; }
  .cl-2 { left: 44%; top: 44%; }
  .cl-3 { left: var(--rand); top: 74%; }
  .waesche { display: none; }
  .karte-liste { grid-template-columns: minmax(0, 1fr); }
  .karte-kopf { flex-direction: column; align-items: flex-start; }
  .karte-kopf .klein { text-align: left; padding: 0; }
  .rezept { grid-template-columns: repeat(2, auto); }
  .maschine-bild li { position: static; text-align: left !important; }
  .maschine-bild ul { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; }
  .maschine-bild br { display: none; }
  .zettel { grid-template-columns: minmax(0, 1fr); }
  .fuss-zeile { flex-direction: column; }
}

@media (max-width: 420px) {
  .kopf .status { display: none; }
  .seite-kopf { flex-wrap: wrap; gap: 6px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body::after { animation: none; }
  .js [data-auf]:not(.da) { opacity: 1; transform: none; }
}
