/* Schienenbäcker – Bäckerei Heinz Riethmüller, Bad Berka
   Modernes Layout in den Hausfarben Gelb und Weiß.
   Schriften liegen im Ordner /schriften (kein Abruf bei Google). */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("../schriften/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../schriften/figtree.woff2") format("woff2"); }

:root {
  --gelb: #f7d117;          /* Logo-Gelb */
  --gelb-tief: #e0b800;
  --gelb-zart: #fff8d6;
  --weiss: #ffffff;
  --flaeche: #f7f6f2;       /* helle Fläche, leicht warm */
  --schwarz: #17150f;
  --grau: #615d54;
  --linie: #e9e6de;
  --gruen: #2f8a4e;
  --radius: 22px;
  --radius-klein: 12px;
  --schatten: 0 1px 2px rgba(23,21,15,.06), 0 12px 32px -12px rgba(23,21,15,.18);
  --font-titel: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-text: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--weiss); color: var(--schwarz);
  font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--gelb-tief); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--schwarz); }
:focus-visible { outline: 3px solid var(--schwarz); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 72rem; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--font-titel); text-wrap: balance; margin: 0; line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; max-width: 62ch; }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem; justify-self: start;
  font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--grau);
}
.kicker::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gelb); box-shadow: 0 0 0 3px var(--gelb-zart); }

/* Kopf */
.kopf {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--linie);
}
.kopf .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; padding-block: .75rem; }
.logo { display: block; text-decoration: none; }
.logo img { width: 190px; max-width: 55vw; }
.logo .logo-text { display: none; font-family: var(--font-titel); font-weight: 800; font-size: 1.6rem; font-style: italic; }
.logo.fehlt img { display: none; }
.logo.fehlt .logo-text { display: inline; }
.menue { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.menue a {
  display: block; font-weight: 600; font-size: .98rem; text-decoration: none; color: var(--grau);
  padding: .45rem .85rem; border-radius: 999px; transition: background .2s, color .2s;
}
.menue a:hover { color: var(--schwarz); background: var(--flaeche); }
.menue a[aria-current="page"] { color: var(--schwarz); background: var(--gelb-zart); }
.menue a.cta { background: var(--gelb); color: var(--schwarz); }
.menue a.cta:hover { background: var(--schwarz); color: var(--gelb); }

/* Start */
.start .wrap {
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.start-text { display: grid; gap: 1.4rem; }
.start h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.start h1 mark { background: var(--gelb); color: var(--schwarz); padding: 0 .12em; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; color: var(--grau); }
.knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.knopf {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1rem; text-decoration: none;
  background: var(--schwarz); color: var(--weiss); border: 2px solid var(--schwarz); border-radius: 999px; padding: .8rem 1.4rem;
  transition: transform .2s, background .2s, color .2s;
}
.knopf:hover { transform: translateY(-2px); }
.knopf.gelb { background: var(--gelb); border-color: var(--gelb); color: var(--schwarz); }
.knopf.rand { background: transparent; color: var(--schwarz); }
.knopf.rand:hover { background: var(--schwarz); color: var(--weiss); }

.start-bild { position: relative; margin: 0; }
.start-bild img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius);
  background: var(--gelb-zart); box-shadow: var(--schatten);
}
.start-bild::before {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 55%; height: 55%;
  background: var(--gelb); border-radius: var(--radius); z-index: -1;
}
.status-karte {
  display: grid; align-content: center; gap: .05rem; line-height: 1.25;
  padding: .5rem 1.1rem .5rem .95rem; border-radius: 16px;
  background: #fbe7e5; border: 2px solid #e8b4ae; color: #6e1a14;
}
.status-karte.offen { background: #e3f3e8; border-color: #9fd0ae; color: #164a2a; box-shadow: 0 6px 18px -8px rgba(47,138,78,.45); }
.status-karte .zeile { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.05rem; }
.status-karte .punkt { width: .65rem; height: .65rem; border-radius: 50%; background: #b3261e; flex: none; }
.status-karte.offen .punkt { background: var(--gruen); box-shadow: 0 0 0 4px rgba(47,138,78,.22); animation: puls 2.4s ease-in-out infinite; }
@keyframes puls { 50% { box-shadow: 0 0 0 7px rgba(47,138,78,.08); } }
.status-karte .info { color: inherit; opacity: .85; font-size: .9rem; font-weight: 600; padding-left: 1.15rem; }

/* Abschnitte */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.kopfzeile { display: grid; gap: .75rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.kopfzeile p { color: var(--grau); font-size: 1.1rem; }
.flaeche { background: var(--flaeche); }

/* Sortiment */
.waren { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ware {
  background: var(--weiss); border-radius: var(--radius); padding: 1.6rem 1.4rem 1.5rem;
  display: grid; gap: .6rem; align-content: start; border: 1px solid var(--linie);
  transition: transform .25s, box-shadow .25s;
}
.ware:hover { transform: translateY(-4px); box-shadow: var(--schatten); }
.ware .marke {
  width: 2.75rem; height: 2.75rem; border-radius: 14px; background: var(--gelb); display: grid; place-items: center;
  font-family: var(--font-titel); font-weight: 800; font-size: 1.25rem; margin-bottom: .4rem;
}
.ware p { color: var(--grau); font-size: 1rem; }
.ware.hervor { background: var(--gelb); border-color: var(--gelb); }
.ware.hervor .marke { background: var(--schwarz); color: var(--gelb); }
.ware.hervor p { color: var(--schwarz); }

/* Öffnungszeiten */
.zeiten-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.zeiten-karte { background: var(--schwarz); color: var(--weiss); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--schatten); }
.zeiten-karte table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.zeiten-karte td { padding: .8rem .9rem; font-size: 1.08rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.zeiten-karte tr:last-child td { border-bottom: 0; }
.zeiten-karte td.zeit { text-align: right; white-space: nowrap; font-weight: 600; }
.zeiten-karte tr.zu td { color: rgba(255,255,255,.45); }
.zeiten-karte tr.heute-zeile td { background: var(--gelb); color: var(--schwarz); font-weight: 700; border-bottom-color: transparent; }
.zeiten-karte tr.heute-zeile td:first-child { border-radius: 10px 0 0 10px; }
.zeiten-karte tr.heute-zeile td:last-child { border-radius: 0 10px 10px 0; }
.zeiten-karte tr.heute-zeile td:first-child::after { content: "Heute"; margin-left: .6rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; background: var(--schwarz); color: var(--gelb); padding: .15rem .5rem; border-radius: 999px; vertical-align: .1em; }
.hinweis { font-size: .95rem; color: var(--grau); }

/* Album */
.album { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 15rem; grid-auto-flow: dense; gap: 1rem; }
.album figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--linie); }
.album img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.album figure:hover img { transform: scale(1.04); }
.album figcaption {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.1rem 1rem; color: var(--weiss);
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0)); font-size: .95rem; line-height: 1.4;
}
.album figcaption strong { display: block; font-family: var(--font-titel); font-size: 1.15rem; font-weight: 700; }
.album .hoch { grid-row: span 2; }
.album .breit { grid-column: span 2; }
.album .hoch img { object-position: center 40%; }

/* Kontakt */
.kontakt-raster { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.kontakt-info { display: grid; gap: 1.25rem; justify-items: start; }
.info-liste { display: grid; gap: .9rem; width: 100%; }
.info-punkt { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: .9rem; align-items: center; }
.info-punkt .marke { width: 2.75rem; height: 2.75rem; border-radius: 14px; background: var(--gelb-zart); display: grid; place-items: center; }
.info-punkt .marke svg { width: 1.3rem; height: 1.3rem; stroke: var(--schwarz); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info-punkt small { display: block; color: var(--grau); font-size: .85rem; }
address { font-style: normal; }
.alt-foto { margin: .75rem 0 0; max-width: 24rem; }
.alt-foto img { border-radius: var(--radius-klein); filter: sepia(.3) contrast(1.05); }
.alt-foto figcaption { font-size: .9rem; color: var(--grau); margin-top: .6rem; }

.formular { display: grid; gap: 1rem; background: var(--flaeche); border-radius: var(--radius); padding: clamp(1.25rem, 3.5vw, 2.25rem); }
.formular h3 { font-size: 1.6rem; }
.formular-hinweis { color: var(--grau); }
.reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.formular label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.optional { color: var(--grau); font-weight: 400; }
.formular input, .formular textarea {
  font: inherit; font-size: 1rem; color: var(--schwarz); background: var(--weiss);
  border: 1.5px solid var(--linie); border-radius: var(--radius-klein); padding: .8rem .95rem; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--schwarz); box-shadow: 0 0 0 4px var(--gelb-zart); }
.formular textarea { min-height: 9rem; resize: vertical; }
.formular .zustimmung { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; font-size: .93rem; color: var(--grau); }
.formular .zustimmung input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; accent-color: var(--schwarz); padding: 0; }
.formular button {
  justify-self: start; font: inherit; font-weight: 700; font-size: 1.02rem;
  background: var(--gelb); color: var(--schwarz); border: 0; border-radius: 999px; padding: .9rem 1.6rem; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.formular button:hover { background: var(--schwarz); color: var(--gelb); transform: translateY(-2px); }
.falle { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.meldung { padding: .8rem 1rem; border-radius: var(--radius-klein); }
.meldung.ok { background: #e3f3e8; color: #1d5a33; }
.meldung.fehler { background: #fbe7e5; color: #8a1f17; }

/* Rechtstexte */
.rechtstext .wrap { max-width: 48rem; }
.rechtstext h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -.03em; }
.rechtstext h2 { font-size: 1.35rem; margin-top: 2.25rem; margin-bottom: .5rem; letter-spacing: -.01em; }
.rechtstext p, .rechtstext ul { margin-bottom: .75rem; }
.rechtstext ul { padding-left: 1.25rem; max-width: 62ch; }
.offen-feld { background: var(--gelb-zart); outline: 1px dashed var(--schwarz); padding: 0 .25em; border-radius: 3px; }
.foerderung { margin-top: 2.5rem; padding: 1.5rem; background: var(--flaeche); border-radius: var(--radius); display: grid; gap: 1rem; }
.foerderung img { width: 100%; max-width: 380px; }

/* Fuß */
.fuss { background: var(--schwarz); color: rgba(255,255,255,.75); }
.fuss .wrap { padding-block: 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; font-size: .95rem; }
.fuss .marke-fuss { font-family: var(--font-titel); font-weight: 800; font-size: 1.4rem; color: var(--gelb); font-style: italic; letter-spacing: -.01em; }
.fuss a { color: var(--weiss); text-decoration-color: var(--gelb); }
.fuss nav { display: flex; gap: 1.25rem; }

/* Responsiv */
@media (max-width: 960px) {
  .waren { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .album { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 13rem; }
}
@media (max-width: 800px) {
  .start .wrap, .zeiten-raster, .kontakt-raster { grid-template-columns: minmax(0, 1fr); }
  .start-bild { margin-right: 14px; }
}
@media (max-width: 560px) {
  .menue { width: 100%; justify-content: space-between; }
  .menue a { padding: .4rem .55rem; font-size: .9rem; }
  .nur-breit { display: none !important; }
  .waren { grid-template-columns: minmax(0, 1fr); }
  .album { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 15rem; }
  .album .hoch { grid-row: span 2; }
  .album .breit { grid-column: span 1; }
  .reihe { grid-template-columns: 1fr; }
}

/* Google-Bewertungen */
.bewertung-kopf { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; }
.bewertung-titel { display: grid; gap: .75rem; }
.gesamtnote { display: flex; align-items: center; gap: 1rem; background: var(--weiss); border-radius: var(--radius); padding: .9rem 1.4rem; box-shadow: var(--schatten); }
.gesamtnote .note { font-family: var(--font-titel); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.note-rest { display: grid; gap: .15rem; color: var(--grau); font-size: .95rem; font-weight: 600; }
.sterne { color: var(--gelb-tief); letter-spacing: .12em; font-size: 1.15rem; line-height: 1; }
.bewertungen { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.bewertung { margin: 0; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .8rem; align-content: start; }
.bew-kopf { display: flex; align-items: center; gap: .75rem; }
.initial { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gelb); display: grid; place-items: center; font-weight: 800; flex: none; }
.bewertung figcaption { display: grid; line-height: 1.3; min-width: 0; }
.bew-name { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
a.bew-name:hover { text-decoration: underline; }
.bew-wann { color: var(--grau); font-size: .88rem; }
.bewertung blockquote {
  white-space: pre-line;
  margin: 0; color: var(--schwarz); font-size: 1rem; line-height: 1.6;
}
.bew-knoepfe { margin-top: 2rem; }
.quelle { margin-top: 1rem; font-size: .88rem; color: var(--grau); }

/* Google-Karte (Zwei-Klick-Lösung) */
.karte { margin-top: clamp(2rem, 5vw, 3rem); border-radius: var(--radius); overflow: hidden; background: var(--flaeche); border: 1px solid var(--linie); }
.karte-platzhalter {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  background: radial-gradient(circle at 86% 50%, var(--gelb) 0 9px, var(--weiss) 10px 13px, var(--gelb-zart) 14px 70px, transparent 71px),
              repeating-linear-gradient(35deg, transparent 0 46px, var(--linie) 46px 48px),
              repeating-linear-gradient(-55deg, transparent 0 70px, var(--linie) 70px 72px), var(--flaeche);
}
.karte-text { display: grid; gap: .5rem; max-width: 40rem; min-width: 0; }
.karte-text p { color: var(--grau); font-size: .95rem; }
.karte button.knopf { cursor: pointer; font: inherit; font-weight: 700; }
.karte-merken { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--grau); }
.karte-merken input { width: 1.1rem; height: 1.1rem; accent-color: var(--schwarz); }
.karte.geladen iframe { display: block; width: 100%; height: clamp(320px, 50vw, 460px); border: 0; }
.bewertungen:empty { display: none; }
.bewertungen:empty + .bew-knoepfe { margin-top: 0; }
[hidden] { display: none !important; }
.sterne-skala { position: relative; display: inline-block; font-size: 1.15rem; line-height: 1; letter-spacing: .12em; color: var(--linie); }
.sterne-skala::before { content: "★★★★★"; }
.sterne-voll { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--gelb-tief); }
.sterne-voll::before { content: "★★★★★"; }

/* Link zur Tortenbild-Druckerei */
.partner {
  margin-top: 1.5rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.75rem;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.6rem 1.1rem 1.1rem;
  text-decoration: none; transition: transform .25s, box-shadow .25s;
}
.partner:hover { transform: translateY(-3px); box-shadow: var(--schatten); }
.partner img { width: 6.5rem; height: auto; }
.partner-text { display: grid; gap: .3rem; min-width: 0; }
.partner-text strong { font-family: var(--font-titel); font-size: 1.35rem; line-height: 1.15; letter-spacing: -.01em; }
.partner-text span:last-child { color: var(--grau); }
.partner-pfeil { font-weight: 700; white-space: nowrap; border-bottom: 2px solid var(--gelb); padding-bottom: .1rem; }
.partner-fuss img { width: 4.5rem; height: auto; opacity: .9; transition: opacity .2s; }
.partner-fuss:hover img { opacity: 1; }
@media (max-width: 640px) {
  .partner { grid-template-columns: auto minmax(0, 1fr); padding: 1rem; }
  .partner img { width: 4.5rem; }
  .partner-pfeil { grid-column: 1 / -1; justify-self: start; }
}

/* Saison-Banner Weihnachtsstollen */
.aktion {
  background:
    radial-gradient(circle at 12% 30%, rgba(255,255,255,.08) 0 2px, transparent 3px) 0 0 / 46px 46px,
    radial-gradient(circle at 60% 70%, rgba(255,255,255,.06) 0 1.5px, transparent 2.5px) 0 0 / 31px 31px,
    var(--schwarz);
  color: var(--weiss);
}
.aktion-innen { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 2rem; padding-block: 1.1rem; padding-right: max(3.5rem, env(safe-area-inset-right, 0px)); }
.aktion-bild { width: 11rem; height: 8rem; object-fit: cover; object-position: 70% 62%; border-radius: 16px; border: 3px solid var(--gelb); transform: rotate(-3deg); background: #3a342a; }
.aktion-text { display: grid; gap: .3rem; min-width: 0; }
.aktion-marke { justify-self: start; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--schwarz); background: var(--gelb); border-radius: 999px; padding: .2rem .65rem; }
.aktion-titel { font-family: var(--font-titel); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.05; letter-spacing: -.02em; max-width: none; }
.aktion-titel span { color: var(--gelb); }
.aktion-info { color: rgba(255,255,255,.75); font-size: .98rem; }
.aktion-knopf { white-space: nowrap; }
.aktion-zu {
  position: absolute; top: .6rem; right: max(.75rem, env(safe-area-inset-right, 0px));
  width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.1); color: var(--weiss); font-size: 1.4rem; line-height: 1;
}
.aktion-zu:hover { background: rgba(255,255,255,.2); }
@media (max-width: 760px) {
  .aktion-innen { grid-template-columns: auto minmax(0, 1fr); padding-block: 1rem 1.2rem; }
  .aktion-bild { width: 5.5rem; height: 5.5rem; grid-row: 1 / span 2; }
  .aktion-info { grid-column: 1 / -1; }
  .aktion-knopf { grid-column: 1 / -1; justify-self: start; }
  .aktion-text { display: contents; }
  .aktion-marke { grid-column: 2; grid-row: 1; align-self: end; justify-self: start; white-space: nowrap; }
  .aktion-titel { grid-column: 2; }
}
