/* Statzinger Brot – Gestaltung
   Farben: Dunkelrot aus dem Logo, Creme als Papiergrund, warmes Braun für Text */
:root {
  --rot: #7a0e12;
  --rot-dunkel: #5c0a0d;
  --creme: #f7f0e3;
  --creme-dunkel: #efe4d0;
  --papier: #fffaf1;
  --braun: #3b2a1e;
  --braun-hell: #6e5744;
  --gold: #c9a24a;
  --schrift-titel: "Lora", Georgia, "Times New Roman", serif;
  --schrift-text: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --breite: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--schrift-text);
  font-size: 18px;
  line-height: 1.6;
  color: var(--braun);
  background: var(--creme);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(122,14,18,.05), transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: var(--rot); }
h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; color: var(--braun); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.innen { max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.abschnitt { padding: 80px 0; }
.abschnitt.dunkel { background: var(--braun); color: var(--creme); }
.abschnitt.dunkel h2, .abschnitt.dunkel h3 { color: var(--creme); }
.abschnitt.papier { background: var(--papier); }
.vorzeile {
  display: inline-block; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rot); margin-bottom: .6em; font-weight: 600;
}
.dunkel .vorzeile { color: var(--gold); }
.einleitung { max-width: 680px; font-size: 1.15rem; color: var(--braun-hell); }
.dunkel .einleitung { color: #e9dcc4; }
.zentriert { text-align: center; }
.zentriert .einleitung { margin: 0 auto 2em; }

/* Knöpfe */
.knopf {
  display: inline-block; padding: 14px 28px; border-radius: 4px; font-weight: 600;
  text-decoration: none; letter-spacing: .02em; transition: background .2s, transform .1s;
  border: 2px solid var(--rot); background: var(--rot); color: #fff;
}
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.knopf.hell { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.knopf.hell:hover { background: rgba(255,255,255,.15); }
.knopf.umriss { background: transparent; color: var(--rot); }
.knopf.umriss:hover { background: var(--rot); color: #fff; }

/* Kopfzeile */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,240,227,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(59,42,30,.12);
}
.kopf .innen { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { text-decoration: none; color: var(--braun); padding: 8px 12px; border-radius: 4px; font-weight: 600; }
.nav a:hover { background: var(--creme-dunkel); }
.nav a.knopf { color: #fff; padding: 10px 18px; margin-left: 8px; }
.nav a.knopf:hover { background: var(--rot-dunkel); }
.menue-knopf { display: none; background: none; border: 2px solid var(--braun); border-radius: 4px; padding: 6px 10px; font: inherit; color: var(--braun); }

/* Einstiegsbild */
.einstieg {
  position: relative; min-height: 88vh; display: grid; place-items: center;
  color: #fff; text-align: center; overflow: hidden; isolation: isolate;
}
.einstieg video, .einstieg .einstieg-bild {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.einstieg .einstieg-bild { z-index: -3; }
/* harter Schnitt zwischen den Clips: nur der aktive Clip ist sichtbar, der nächste wird unsichtbar vorbereitet */
.einstieg video, .einstieg .einstieg-bild { inset: auto 0 auto 0; top: -14%; height: 128%; transform: translateY(var(--par, 0px)); will-change: transform; }
.einstieg video.clip { visibility: hidden; z-index: -2; }
.einstieg video.clip.aktiv { visibility: visible; z-index: -1; }
.einstieg::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30,15,8,.35), rgba(30,15,8,.65));
}
.einstieg .innen { padding: 100px 20px; }
.einstieg .seit { font-family: var(--schrift-titel); font-style: italic; font-size: 1.3rem; color: var(--gold); margin-bottom: .5em; }
.einstieg h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: .3em; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.einstieg p { font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 640px; margin: 0 auto 1.6em; color: #f3eadb; }
.einstieg .knoepfe { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Werte-Leiste */
.werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.wert { background: var(--papier); border: 1px solid rgba(59,42,30,.1); border-radius: 6px; overflow: hidden; box-shadow: 0 8px 30px rgba(59,42,30,.06); }
.wert img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.wert div { padding: 22px 24px 26px; }
.wert h3 { color: var(--rot); }

/* Produkte */
.produkte { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.produkt { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4/5; background: var(--braun); }
.produkt img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.produkt:hover img { transform: scale(1.04); }
.produkt div {
  position: absolute; inset: auto 0 0 0; padding: 22px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(30,15,8,.85));
}
.produkt h3 { color: #fff; margin-bottom: .2em; }
.produkt p { margin: 0; color: #eadfcd; font-size: .98rem; }
.hinweis-klein { font-size: .95rem; color: var(--braun-hell); margin-top: 24px; }

/* Backstube bei Nacht */
.nacht { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.uhrzeiten { list-style: none; padding: 0; margin: 1.5em 0 0; border-left: 2px solid var(--gold); }
.uhrzeiten li { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 12px 0 12px 22px; position: relative; }
.uhrzeiten li::before { content: ""; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.uhrzeiten b { font-family: var(--schrift-titel); color: var(--gold); font-size: 1.1rem; }
.nacht-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nacht-bilder img { border-radius: 6px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }

/* Filialen */
.filialen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.filiale { background: var(--papier); border: 1px solid rgba(59,42,30,.12); border-radius: 6px; padding: 28px 30px; box-shadow: 0 8px 30px rgba(59,42,30,.05); }
.filiale.haupt { border-color: var(--rot); border-width: 2px; }
.filiale .ort { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rot); font-weight: 700; }
.filiale h3 { margin: .2em 0 .5em; font-size: 1.5rem; }
.filiale address { font-style: normal; margin-bottom: .8em; color: var(--braun-hell); }
.filiale address a { text-decoration: none; font-weight: 600; }
.zeiten { width: 100%; border-collapse: collapse; font-size: 1rem; }
.zeiten td { padding: 5px 0; border-top: 1px dashed rgba(59,42,30,.18); vertical-align: top; }
.zeiten td:first-child { width: 42%; font-weight: 600; }
.zeiten tr:first-child td { border-top: 0; }
.filiale .karte { display: inline-block; margin-top: 14px; font-size: .95rem; }

/* Geschichte */
.geschichte { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.geschichte img { border-radius: 6px; width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: 0 20px 50px rgba(59,42,30,.18); }
.zeitstrahl { list-style: none; padding: 0; margin: 1.5em 0 0; }
.zeitstrahl li { display: grid; grid-template-columns: 84px 1fr; gap: 18px; padding: 10px 0; border-top: 1px dashed rgba(59,42,30,.2); }
.zeitstrahl b { font-family: var(--schrift-titel); color: var(--rot); font-size: 1.2rem; }
.zitat { font-family: var(--schrift-titel); font-style: italic; font-size: 1.35rem; color: var(--rot); border-left: 3px solid var(--gold); padding-left: 18px; margin: 1.4em 0; }

/* Vorbestellen + Jobs */
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.zweispaltig img { border-radius: 6px; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.liste-haken { list-style: none; padding: 0; margin: 0 0 1.4em; }
.liste-haken li { padding-left: 30px; position: relative; margin-bottom: .5em; }
.liste-haken li::before { content: "✓"; position: absolute; left: 0; color: var(--rot); font-weight: 700; }
.kontaktzeile { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.kontaktzeile .tel { font-family: var(--schrift-titel); font-size: 1.5rem; text-decoration: none; color: var(--braun); }

/* Bilderleiste */
.leiste { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.leiste img { aspect-ratio: 3/4; object-fit: cover; width: 100%; border-radius: 4px; }

/* Fußzeile */
.fuss { background: var(--braun); color: #d9c9af; padding: 60px 0 30px; font-size: .98rem; }
.fuss .spalten { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.fuss h4 { color: var(--creme); font-family: var(--schrift-titel); margin: 0 0 .7em; font-size: 1.15rem; }
.fuss a { color: #f1e6d2; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: .4em; }
.fuss .logo-fuss { filter: brightness(0) invert(1) opacity(.9); width: 240px; margin-bottom: 14px; }
.fuss .unten { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .9rem; }

/* Unterseiten (Impressum, Datenschutz) */
.text-seite { max-width: 760px; margin: 0 auto; padding: 60px 20px; }
.text-seite h1 { font-size: 2.2rem; }
.text-seite h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* Schmale Bildschirme */
@media (max-width: 960px) {
  .werte, .produkte { grid-template-columns: 1fr 1fr; }
  .nacht, .geschichte, .zweispaltig { grid-template-columns: 1fr; }
  .leiste { grid-template-columns: repeat(3, 1fr); }
  .fuss .spalten { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .abschnitt { padding: 56px 0; }
  .werte, .produkte, .filialen { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--creme); padding: 14px 20px 20px; border-bottom: 1px solid rgba(59,42,30,.15); }
  .nav.offen { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav a.knopf { margin: 8px 0 0; text-align: center; }
  .menue-knopf { display: block; }
  .einstieg { min-height: 78vh; }
  .leiste { grid-template-columns: repeat(2, 1fr); }
  .fuss .spalten { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .produkt img { transition: none; }
}


/* ============ Bewegung beim Scrollen ============ */
.logo img { transition: height .3s ease; }
.kopf .innen { transition: min-height .3s ease; }
.kopf { transition: box-shadow .3s ease; }
.kopf.klein { box-shadow: 0 6px 22px rgba(59,42,30,.14); }
.kopf.klein .innen { min-height: 58px; }
.kopf.klein .logo img { height: 36px; }

/* Fortschrittsbalken ganz oben */
.fortschritt { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; z-index: 100; pointer-events: none; }

/* Seitenkopf: Text steigt beim Scrollen langsam nach unten und blendet aus */
.einstieg .innen { transform: translateY(var(--text-y, 0px)); opacity: var(--text-o, 1); }
.js .einstieg .innen > * { animation: auftauchen .9s cubic-bezier(.2,.7,.2,1) both; }
.js .einstieg .innen > :nth-child(1) { animation-delay: .1s; }
.js .einstieg .innen > :nth-child(2) { animation-delay: .3s; }
.js .einstieg .innen > :nth-child(3) { animation-delay: .5s; }
.js .einstieg .innen > :nth-child(4) { animation-delay: .7s; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Hüpfender Pfeil im Seitenkopf */
.scroll-hinweis { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: #fff; text-decoration: none; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: .85; }
.scroll-hinweis::after { content: ""; width: 14px; height: 14px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); animation: huepfen 1.6s ease-in-out infinite; }
@keyframes huepfen { 0%, 100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(9px) rotate(45deg); } }

/* Einblenden beim Hinunterscrollen (Klassen setzt das Skript) */
.js .anim { opacity: 0; transform: translateY(38px); transition: opacity .8s ease, transform .85s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .anim.links { transform: translateX(-70px); }
.js .anim.rechts { transform: translateX(70px); }
.js .anim.zoom { transform: translateY(24px) scale(.92); }
.js .anim.sichtbar { opacity: 1; transform: none; }

/* Punkte im Ablauf poppen auf */
.js .uhrzeiten li.anim::before { transform: scale(0); transition: transform .5s cubic-bezier(.3,1.6,.5,1) .25s; }
.js .uhrzeiten li.anim.sichtbar::before { transform: scale(1); }

/* Karten heben sich beim Darüberfahren leicht an */
.wert, .filiale { transition: transform .3s ease, box-shadow .3s ease; }
.wert:hover, .filiale:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(59,42,30,.16); }

@media (prefers-reduced-motion: reduce) {
  .scroll-hinweis::after { animation: none; }
  .wert:hover, .filiale:hover { transform: none; }
}

/* ============ Feinschliff: hochwertigere Anmutung ============ */
::selection { background: var(--gold); color: var(--braun); }

/* feine Papierstruktur über der ganzen Seite */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23k)'/></svg>");
}

/* Schrift und Rhythmus */
h1, h2, h3 { font-weight: 500; letter-spacing: -.012em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.1; }
.abschnitt { padding: 96px 0; }
.abschnitt h2::after { content: ""; display: block; width: 54px; height: 2px; background: var(--gold); margin: .55em 0 0; }
.zentriert h2::after { margin-left: auto; margin-right: auto; }
.abschnitt h2 + .einleitung { margin-top: 1.1em; }
.vorzeile::before { content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor; margin: 0 10px 4px 0; vertical-align: middle; opacity: .8; }

/* Knöpfe: gesetzter, mit leichtem Heben */
.knopf { text-transform: uppercase; letter-spacing: .09em; font-size: .9rem; padding: 15px 30px; border-radius: 3px; box-shadow: 0 6px 18px rgba(122,14,18,.18); transition: background .2s, transform .2s, box-shadow .2s; }
.knopf:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(122,14,18,.26); }
.knopf.hell, .knopf.umriss { box-shadow: none; }
.nav a.knopf { padding: 11px 20px; font-size: .82rem; box-shadow: none; }
.nav a.knopf:hover { transform: none; }

/* Kopfzeile mit goldener Haarlinie */
.kopf { border-bottom: 1px solid rgba(201,162,74,.55); }

/* Seitenkopf: tieferer Verlauf, Vignette, Zierlinien um die Jahreszahl */
.einstieg::after {
  background:
    radial-gradient(ellipse at 50% 60%, transparent 40%, rgba(20,10,5,.45) 100%),
    linear-gradient(180deg, rgba(30,15,8,.28) 0%, rgba(30,15,8,.38) 45%, rgba(30,15,8,.78) 100%);
}
.einstieg .seit { display: inline-flex; align-items: center; gap: 16px; letter-spacing: .04em; }
.einstieg .seit::before, .einstieg .seit::after { content: ""; width: 44px; height: 1px; background: var(--gold); opacity: .85; }
.einstieg h1 { font-weight: 500; line-height: 1.06; text-shadow: 0 3px 28px rgba(0,0,0,.45); }
.einstieg p { text-shadow: 0 1px 12px rgba(0,0,0,.4); }

/* Karten: feiner Doppelrahmen, mehr Luft */
.wert, .filiale {
  border-radius: 10px; border: 1px solid rgba(201,162,74,.38);
  box-shadow: 0 12px 34px rgba(59,42,30,.08), inset 0 0 0 1px rgba(255,255,255,.7);
}
.wert div { padding: 26px 28px 30px; }
.wert h3 { font-size: 1.45rem; margin-bottom: .45em; }
.wert h3::after { content: ""; display: block; width: 34px; height: 2px; background: var(--gold); margin-top: .5em; }
.filiale { padding: 32px 34px; border-top: 3px solid var(--gold); }
.filiale.haupt { border: 1px solid rgba(201,162,74,.38); border-top: 3px solid var(--rot); background: linear-gradient(180deg, #fffdf7, var(--papier)); }
.filiale h3 { font-size: 1.7rem; }
.zeiten td:first-child { color: var(--braun-hell); font-weight: 600; }
.zeiten td { padding: 7px 0; }

/* Produktkacheln: zarter Innenrahmen wie bei einem Etikett */
.produkt { border-radius: 10px; box-shadow: 0 14px 36px rgba(59,42,30,.14); }
.produkt::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; pointer-events: none; transition: inset .4s ease, border-color .4s ease; }
.produkt:hover::after { inset: 8px; border-color: rgba(201,162,74,.75); }
.produkt div { padding: 28px 26px 26px; background: linear-gradient(180deg, transparent, rgba(30,15,8,.55) 35%, rgba(30,15,8,.9)); }
.produkt h3 { font-size: 1.5rem; }
.produkt p { font-size: 1rem; line-height: 1.5; }

/* Dunkler Abschnitt: warmer Lichtschein statt flacher Fläche */
.abschnitt.dunkel {
  background:
    radial-gradient(900px 520px at 85% 0%, rgba(201,162,74,.16), transparent 65%),
    radial-gradient(700px 500px at 5% 100%, rgba(122,14,18,.22), transparent 60%),
    var(--braun);
}
.abschnitt.dunkel h2::after { background: var(--gold); }
.nacht-bilder { gap: 16px; }
.nacht-bilder img { border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08); }
.uhrzeiten { border-left-color: rgba(201,162,74,.55); }
.uhrzeiten li::before { box-shadow: 0 0 0 4px rgba(201,162,74,.18); }
.uhrzeiten b { font-size: 1.15rem; letter-spacing: .02em; }

/* Fotos als aufgelegte Abzüge */
.geschichte > img, .zweispaltig > img {
  padding: 10px; background: #fffdf8; border-radius: 4px;
  box-shadow: 0 24px 60px rgba(59,42,30,.22), 0 2px 6px rgba(59,42,30,.12);
}
.geschichte > img { transform: rotate(-1.4deg); }
.zweispaltig > img { transform: rotate(1.2deg); }
.dunkel .zweispaltig > img { background: #f3e9d6; }
.zitat { position: relative; padding-left: 26px; font-size: 1.5rem; line-height: 1.35; border-left: 0; }
.zitat::before { content: "„"; position: absolute; left: -6px; top: -.55em; font-size: 4.2rem; color: var(--gold); opacity: .55; line-height: 1; }
.zeitstrahl li { padding: 13px 0; }
.zeitstrahl b { font-size: 1.3rem; }

/* Bilderleiste */
.leiste { gap: 12px; }
.leiste img { border-radius: 8px; box-shadow: 0 10px 26px rgba(59,42,30,.14); transition: transform .4s ease, box-shadow .4s ease; }
.leiste img:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 18px 40px rgba(59,42,30,.22); }

/* Fußzeile */
.fuss { border-top: 4px solid var(--gold); padding-top: 70px; }
.fuss h4 { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; font-family: var(--schrift-text); color: var(--gold); }
.fuss .logo-fuss { width: 260px; }

/* Einblendung beim Scrollen darf das gedrehte Foto nicht zurückdrehen */
.js .geschichte > img.anim.sichtbar { transform: rotate(-1.4deg); }
.js .zweispaltig > img.anim.sichtbar { transform: rotate(1.2deg); }

@media (max-width: 680px) {
  .abschnitt { padding: 64px 0; }
  .filiale { padding: 26px 24px; }
  .geschichte > img, .zweispaltig > img { transform: none; }
  .js .geschichte > img.anim.sichtbar, .js .zweispaltig > img.anim.sichtbar { transform: none; }
  .einstieg .seit::before, .einstieg .seit::after { width: 22px; }
}

/* Telefon-Knöpfe zum Vorbestellen: zwei nebeneinander */
.kontaktzeile { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; }
.kontaktzeile .knopf { text-align: center; padding: 14px 16px; font-size: .84rem; letter-spacing: .06em; }
@media (max-width: 480px) { .kontaktzeile { grid-template-columns: 1fr; } }
