/* Bäckerei Kornblume: Stil „hof / karte“
   Weiß und Roggen, Slab-Überschriften, Öffnungszeiten als Etikett direkt im Hero. */

@font-face { font-family: 'Zilla Slab'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/zilla-slab-600.woff2') format('woff2'); }
@font-face { font-family: 'Zilla Slab'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/zilla-slab-700.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/work-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/work-sans-600.woff2') format('woff2'); }

:root {
  --weiss: #FFFFFF;
  --roggen: #F1E6D6;
  --roggen-tief: #E4D3BB;
  --tinte: #2B1E16;
  --tinte-weich: #5A4638;
  --blau: #3E5BA9;
  --blau-tief: #2F4787;
  --gold: #D9A441;
  --linie: rgba(43, 30, 22, 0.18);

  --slab: 'Zilla Slab', Rockwell, Georgia, serif;
  --text: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --breite: 1200px;
  --rand: clamp(1rem, 4vw, 2.5rem);
  --abschnitt: clamp(4rem, 8vw, 7rem);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--tinte);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--blau); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--slab); font-weight: 700; margin: 0; line-height: 1.1; text-wrap: balance; color: var(--tinte); }
p { margin: 0 0 1em; text-wrap: pretty; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.kicker {
  margin: 0 0 0.9rem;
  font-family: var(--slab);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--blau);
}
.kicker--hell { color: var(--gold); }

.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0.7rem 1.4rem;
  font: 600 1.02rem var(--text);
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.knopf--blau { background: var(--blau); color: #fff; }
.knopf--blau:hover { background: var(--blau-tief); }
.knopf--linie { border-color: var(--tinte); color: var(--tinte); }
.knopf--linie:hover { background: var(--roggen); }
.knopf--hell { background: #fff; color: var(--blau-tief); }
.knopf--hell:hover { background: var(--roggen); }
.knopf--hell-linie { border-color: rgba(255, 255, 255, 0.8); color: #fff; }
.knopf--hell-linie:hover { background: rgba(255, 255, 255, 0.1); }

.abschnitt-kopf { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.abschnitt-kopf h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
.abschnitt-kopf p:last-child { margin: 1rem 0 0; color: var(--tinte-weich); }

/* ---------- Kopf ---------- */
.kopf { position: relative; z-index: 20; background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf__innen {
  max-width: var(--breite); margin: 0 auto; padding: 0.85rem var(--rand);
  display: flex; align-items: center; gap: 2rem;
}
.marke { display: grid; text-decoration: none; line-height: 1; margin-right: auto; }
.marke__name { font-family: var(--slab); font-weight: 700; font-size: 2rem; color: var(--blau); letter-spacing: -0.01em; }
.marke__zusatz { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tinte-weich); margin-top: 0.3rem; }
.navi { display: flex; gap: 0.25rem 1.5rem; }
.navi a { display: inline-flex; align-items: center; min-height: 44px; color: var(--tinte); text-decoration: none; font-weight: 600; font-size: 1rem; }
.navi a:hover { color: var(--blau); text-decoration: underline; }
.kopf__aktionen { display: flex; align-items: center; gap: 0.5rem; }
.kopf__tel {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0 1rem;
  border-radius: var(--radius); background: var(--roggen); color: var(--tinte); font-weight: 600; text-decoration: none; white-space: nowrap;
}
.kopf__tel svg { color: var(--blau); flex: none; }
.menue-knopf {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: transparent; border: 2px solid var(--tinte); border-radius: var(--radius); color: var(--tinte); cursor: pointer;
}
.menue-knopf__striche, .menue-knopf__striche::before, .menue-knopf__striche::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
}
.menue-knopf__striche::before { position: absolute; top: -6px; }
.menue-knopf__striche::after { position: absolute; top: 6px; }

/* ---------- Held: H1 links, Foto rechts, Etikett mit Zeiten auf dem Foto ---------- */
.held {
  max-width: var(--breite);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--rand) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(2rem, 5vw, 4.5rem);
}
.held__text { grid-column: 1; grid-row: 1; align-self: end; }
.held h1 { font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: 1.02; letter-spacing: -0.015em; }
.held__lead { font-size: 1.25rem; margin: 1.4rem 0 0; color: var(--tinte-weich); max-width: 34rem; }
.held__knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.held__bild { grid-column: 2; grid-row: 1 / span 2; position: relative; }
.held__bild img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius); }
.held__karte {
  grid-column: 1; grid-row: 2;
  align-self: start;
  margin: 2.25rem calc(-1 * (clamp(2rem, 5vw, 4.5rem) + 3.5rem)) 0 0;
  position: relative;
  z-index: 2;
}
@media (min-width: 861px) {
  .held__karte { padding: 1.1rem 1.5rem 1.2rem; }
  .held__karte .etikett__titel { font-size: 1.5rem; padding-bottom: 0.55rem; }
  .held__karte .etikett__zeiten tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .held__karte .etikett__zeiten tr { display: flex; flex-direction: column; padding: 0.8rem 1rem 0.2rem 0; }
  .held__karte .etikett__zeiten tr + tr { border-left: 1px solid var(--linie); padding-left: 1rem; }
  .held__karte .etikett__zeiten th, .held__karte .etikett__zeiten td { border: 0; padding: 0; text-align: left; }
  .held__karte .etikett__zeiten th { font-weight: 400; color: var(--tinte-weich); font-size: 1rem; }
  .held__karte .etikett__zeiten td { font-weight: 600; font-size: 1.15rem; }
  .held__karte .etikett__fuss { border-top: 1px solid var(--linie); padding-top: 0.75rem; margin-top: 0.75rem; }
  .held__karte .etikett__fuss br { display: none; }
  .held__karte .etikett__fuss a { margin-left: 0.75rem; }
}

/* ---------- Etikett (typografisch) ---------- */
.etikett {
  background: var(--weiss);
  border: 2px solid var(--tinte);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem 1.35rem;
  box-shadow: 8px 8px 0 var(--roggen-tief);
}
.etikett__kopf {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blau);
}
.etikett__titel { font-size: 1.75rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--tinte); }
.etikett__zeiten { width: 100%; border-collapse: collapse; font-size: 1.1rem; }
.etikett__zeiten th, .etikett__zeiten td { padding: 0.6rem 0; border-bottom: 1px solid var(--linie); vertical-align: top; }
.etikett__zeiten th { text-align: left; font-weight: 600; padding-right: 1rem; white-space: nowrap; }
.etikett__zeiten td { text-align: right; font-variant-numeric: tabular-nums; }
.etikett__fuss { margin: 0.9rem 0 0; font-size: 1rem; color: var(--tinte-weich); line-height: 1.5; }
.etikett__fuss a { font-weight: 600; }

/* ---------- Sortiment ---------- */
.sortiment { max-width: var(--breite); margin: 0 auto; padding: var(--abschnitt) var(--rand) 0; }
.sortiment__raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "brot bild weckle"
    "brot laugen unterwegs";
  gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.75rem, 3.5vw, 3rem);
}
.gruppe--brot { grid-area: brot; background: var(--roggen); border-radius: var(--radius); padding: 1.75rem 1.75rem 1.25rem; }
.sortiment__bild { grid-area: bild; }
.sortiment__bild img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.gruppe--laugen { grid-area: laugen; }
.gruppe--weckle { grid-area: weckle; }
.gruppe--unterwegs { grid-area: unterwegs; }
.gruppe__titel {
  font-size: 1.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--tinte);
  margin-bottom: 0.25rem;
}
.gruppe ul { list-style: none; margin: 0; padding: 0; }
.gruppe li { padding: 0.75rem 0; border-bottom: 1px solid var(--linie); color: var(--tinte-weich); line-height: 1.45; }
.gruppe li:last-child { border-bottom: 0; }
.gruppe li b { display: block; color: var(--tinte); font-weight: 600; }
.gruppe--brot .gruppe__titel { font-size: 2rem; }
.gruppe--brot li { border-bottom-color: rgba(43, 30, 22, 0.22); }

/* ---------- Café ---------- */
.cafe { background: var(--roggen); margin-top: var(--abschnitt); padding: var(--abschnitt) var(--rand); }
.cafe__innen {
  max-width: var(--breite); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.cafe__bilder { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: start; }
.cafe__bild { border-radius: var(--radius); object-fit: cover; width: 100%; }
.cafe__bild--hoch { aspect-ratio: 4 / 5; }
.cafe__bild--quer { aspect-ratio: 4 / 5; margin-top: 4.5rem; }
.cafe__text h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 1.1rem; }
.karte-klein { width: 100%; border-collapse: collapse; margin: 1.5rem 0 1rem; }
.karte-klein caption { text-align: left; font-family: var(--slab); font-weight: 700; font-size: 1.3rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--tinte); }
.karte-klein th, .karte-klein td { padding: 0.7rem 0; border-bottom: 1px solid rgba(43, 30, 22, 0.22); vertical-align: top; }
.karte-klein th { text-align: left; font-weight: 600; }
.karte-klein th span { display: block; font-weight: 400; color: var(--tinte-weich); font-size: 1rem; margin-top: 0.1rem; }
.karte-klein td { text-align: right; white-space: nowrap; padding-left: 1rem; font-variant-numeric: tabular-nums; }
.cafe__klein { color: var(--tinte-weich); margin: 0; }

/* ---------- Vorbestellen (Hausfarbe als Fläche) ---------- */
.vorbestellen { background: var(--blau); color: #fff; padding: var(--abschnitt) var(--rand); }
.vorbestellen__innen {
  max-width: var(--breite); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.vorbestellen h2 { color: #fff; font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 1.1rem; }
.vorbestellen p { color: #fff; }
.vorbestellen__knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.vorbestellen__liste { list-style: none; margin: 0; padding: 0; border-top: 2px solid #fff; }
.vorbestellen__liste li { padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35); color: #fff; line-height: 1.45; }
.vorbestellen__liste b { display: block; font-family: var(--slab); font-weight: 700; font-size: 1.3rem; margin-bottom: 0.15rem; }
.vorbestellen :focus-visible { outline-color: #fff; }

/* ---------- Stempelkarte (Baustein) ---------- */
.stempel { background: var(--roggen); padding: var(--abschnitt) var(--rand); }
.stempel__innen {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.stempel h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 1.1rem; }
.stempel__text p:last-child { margin-bottom: 0; }
#stempelkarte .hcard {
  --hc-accent: #D9A441;
  --hc-accent-ink: #2B1E16;
  --hc-card: #3E5BA9;
  --hc-card-ink: #FFFFFF;
  --hc-muted: #5A4638;
  --hc-radius: 10px;
  --hc-font: 'Work Sans', system-ui, sans-serif;
}
#stempelkarte .hcard__badge { color: var(--blau); font-size: 0.875rem; }
#stempelkarte .hcard__card { box-shadow: 10px 10px 0 var(--roggen-tief); }
#stempelkarte .hcard__who strong { font-family: var(--slab); font-size: 1.3rem; }
#stempelkarte .hcard__who span { font-size: 0.875rem; opacity: 0.9; }
#stempelkarte .hcard__stamp { border-color: rgba(255, 255, 255, 0.55); }
#stempelkarte .hcard__count { font-size: 1rem; }
#stempelkarte .hcard__reward { font-size: 1rem; opacity: 0.92; }
#stempelkarte .hcard__btn { min-height: 48px; border-radius: var(--radius); font-size: 1rem; }
#stempelkarte .hcard__hint { font-size: 1rem; }

/* ---------- Backstube ---------- */
.backstube {
  max-width: var(--breite); margin: 0 auto; padding: var(--abschnitt) var(--rand);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.backstube__bild img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius); }
.backstube h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 1.1rem; }

/* ---------- Filialen ---------- */
.filialen { max-width: var(--breite); margin: 0 auto; padding: var(--abschnitt) var(--rand); }
.filialen__raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.filialen .etikett__titel { font-size: 1.55rem; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0.4rem; font-weight: 600; }
.kontakt { padding-top: 0.5rem; }
.kontakt h3 { font-size: 1.55rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--tinte); margin-bottom: 1rem; }
.kontakt p { margin-bottom: 0.6rem; }
.kontakt p:last-child { color: var(--tinte-weich); margin-top: 1rem; }
.kontakt__tel { font-family: var(--slab); font-weight: 700; font-size: 1.9rem; text-decoration: none; color: var(--tinte); }
.kontakt a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Fuß ---------- */
.fuss { background: var(--tinte); color: var(--roggen); padding: 3rem var(--rand); }
.fuss__innen { max-width: var(--breite); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 3rem; align-items: center; }
.fuss p { margin: 0; }
.fuss__name { font-family: var(--slab); font-weight: 700; font-size: 1.6rem; color: #fff; }
.fuss a { color: var(--roggen); }
.fuss__links { display: flex; gap: 1.5rem; }
.fuss__links a { display: inline-flex; align-items: center; min-height: 44px; }
.fuss :focus-visible { outline-color: var(--gold); }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .navi { gap: 0.25rem 1.1rem; }
  .kopf__nummer { display: none; }
  .kopf__tel { width: 44px; padding: 0; justify-content: center; }
  .sortiment__raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "brot bild" "brot laugen" "weckle unterwegs";
  }
  .filialen__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kontakt { grid-column: 1 / -1; }
}

/* ---------- Handy ---------- */
@media (max-width: 860px) {
  body { font-size: 1.0625rem; }
  .menue-knopf { display: inline-flex; }
  .navi {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: var(--weiss); border-bottom: 1px solid var(--linie);
    padding: 0.25rem var(--rand) 0.75rem;
  }
  .navi.ist-offen { display: flex; }
  .navi a { min-height: 48px; border-bottom: 1px solid var(--linie); }
  .marke__name { font-size: 1.7rem; }
  .marke__zusatz { font-size: 0.8rem; }

  .held { grid-template-columns: 1fr; padding-top: 0; padding-left: 0; padding-right: 0; }
  .held__bild { grid-column: 1; grid-row: 1; }
  .held__bild img { aspect-ratio: 16 / 7; height: auto; max-height: none; border-radius: 0; }
  .held__text { grid-row: 2; padding: 1.5rem var(--rand) 0; }
  .held h1 { font-size: 2.5rem; }
  .held__lead { font-size: 1.1rem; margin-top: 0.9rem; }
  .held__knoepfe { margin-top: 1.4rem; }
  .held__knoepfe .knopf { flex: 1 1 100%; }
  .held__karte { grid-row: 3; margin: 1.75rem var(--rand) 0; box-shadow: 6px 6px 0 var(--roggen-tief); }

  .sortiment__raster { grid-template-columns: 1fr; grid-template-areas: "bild" "laugen" "brot" "weckle" "unterwegs"; }
  .sortiment__bild img { aspect-ratio: 16 / 10; }
  .gruppe--brot { padding: 1.4rem 1.25rem 1rem; }

  .cafe__innen, .vorbestellen__innen, .stempel__innen, .backstube { grid-template-columns: 1fr; }
  .cafe__bild--quer { margin-top: 2.5rem; }
  .vorbestellen__knoepfe .knopf { flex: 1 1 100%; }

  .filialen__raster { grid-template-columns: 1fr; }
  .fuss__innen { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .held h1 { font-size: 2.25rem; }
}
