/* ==========================================================
   Bäckerei Zum Brotkörbchen – Stylesheet
   Reines CSS3: Custom Properties, Flexbox, Grid, mobile first
   ========================================================== */

:root {
  /* Farben */
  --gold: #F9B033;          /* Logo-Gold */
  --gold-soft: #FCEBCB;
  --sand: #FFF4E0;
  --cream: #FFFDF8;
  --ink: #2B2620;           /* Haupttext, dunkle Flächen */
  --muted: #5E5750;         /* Nebentext (Kontrast 6,9:1 auf Creme) */
  --brown: #8F560B;         /* Gold-Ton als Textfarbe (Kontrast 5,6:1) */
  --line: #EDE5D8;
  --green: #1F6B3C;
  --green-soft: #DDF0E2;
  --white: #FFFFFF;

  /* Schriften */
  --font-head: "Rubik", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-script: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  /* Maße */
  --container: 1240px;
  --radius-s: 16px;
  --radius-m: 24px;
  --radius-l: 32px;
  --gap: clamp(16px, 2.5vw, 24px);
  --section-y: clamp(64px, 9vw, 112px);
  --shadow: 0 10px 30px rgba(43, 38, 32, 0.10);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  padding-bottom: 92px; /* Platz für die Schnellleiste auf dem Handy */
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.section { padding-block: var(--section-y); }
.section-tight { padding-top: 0; }
.section-sand {
  background: var(--sand) url("../img/skizzen-band.webp") center top / 1600px auto no-repeat;
}

.section-head { display: grid; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 720px; }
.section-head h2, .faq h2, .contact h2 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); font-weight: 800; }
.section-intro { color: var(--muted); font-size: 1.125rem; }

.eyebrow, .tile-label, .offer-day {
  font-weight: 700; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brown);
}
.script, .offer-script { font-family: var(--font-script); font-size: 1.75rem; line-height: 1.1; font-weight: 700; color: var(--brown); }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 0.9375rem; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #F2A21A; color: var(--ink); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #17552F; color: var(--white); }
.btn-outline-green { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline-green:hover { background: var(--green); color: var(--white); }

/* ---------- Header & Navigation ---------- */
.hero-wrap { background: var(--gold); padding: 16px 16px 0; overflow: hidden; }

.site-header { max-width: var(--container); margin-inline: auto; position: relative; z-index: 20; }
.nav-pill {
  background: var(--white); border-radius: 28px; padding: 8px 8px 8px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: var(--shadow); position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-tag { font-family: var(--font-script); font-size: 1.375rem; font-weight: 700; color: var(--brown); display: none; }
@media (min-width: 420px) { .brand-tag { display: inline; } }

.nav-toggle {
  width: 48px; height: 48px; border: none; border-radius: 16px; background: var(--sand); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}

.main-nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); }
.main-nav.is-open { display: block; }
.main-nav ul {
  background: var(--white); border-radius: var(--radius-m); padding: 10px; box-shadow: var(--shadow);
  display: grid; gap: 4px;
}
.main-nav a {
  display: block; padding: 12px 16px; border-radius: 14px; text-decoration: none;
  color: var(--ink); font-weight: 600;
}
.main-nav a:hover { background: var(--sand); }
.main-nav .nav-phone { background: var(--ink); color: var(--white); text-align: center; }

@media (min-width: 960px) {
  .nav-pill { border-radius: 999px; padding-left: 24px; }
  .nav-toggle { display: none; }
  .main-nav, .main-nav.is-open { display: block; position: static; }
  .main-nav ul { display: flex; align-items: center; gap: 2px; background: none; box-shadow: none; padding: 0; }
  .main-nav a { padding: 10px 16px; border-radius: 999px; }
  .main-nav .nav-phone { padding-inline: 22px; }
  .main-nav .nav-phone:hover { background: #000; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--container); margin-inline: auto;
  display: grid; gap: 40px; align-items: end; padding-top: clamp(40px, 7vw, 80px);
}
.hero-text { display: grid; gap: 24px; padding-inline: 4px; }
.hero h1 { font-size: clamp(3.5rem, 11vw, 7rem); font-weight: 900; line-height: 0.92; letter-spacing: -0.035em; }
.hero-kicker {
  display: block; margin-bottom: 18px; font-size: clamp(1rem, 1.6vw, 1.125rem); font-weight: 600;
  letter-spacing: 0; line-height: 1.4; font-family: var(--font-body);
}
.hero-lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 30em; }

.hero-media { position: relative; display: flex; justify-content: center; }
.hero-img {
  width: min(100%, 540px); aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 999px 999px 0 0; border: 10px solid var(--white); border-bottom: 0;
}
.today-badge {
  position: absolute; top: 8%; right: 2%; width: 132px; height: 132px; border-radius: 50%;
  background: var(--ink); color: var(--white); text-decoration: none; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px;
  font-size: 0.8125rem; transform: rotate(-10deg); box-shadow: var(--shadow); transition: transform .2s ease;
}
.today-badge:hover { color: var(--white); transform: rotate(-4deg) scale(1.04); }
.today-badge strong { font-family: var(--font-head); font-size: 1.125rem; line-height: 1.1; color: var(--gold); margin-block: 2px; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; }
  .hero-text { padding-bottom: 80px; }
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--ink); color: var(--white); font-family: var(--font-head); font-weight: 700;
  font-size: clamp(0.9375rem, 1.6vw, 1.25rem); padding: 16px 20px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; letter-spacing: 0.02em;
}
.ticker i { font-style: normal; color: var(--gold); }
@media (max-width: 640px) { .ticker i { display: none; } .ticker { gap: 6px 18px; } }

/* ---------- Wochenangebote ---------- */
.tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: thin; }
.tab {
  flex: none; min-height: 48px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  background: var(--white); color: var(--ink); border: 2px solid #D8CDBC;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tab .tab-today {
  margin-left: 8px; background: var(--gold); color: var(--ink); border-radius: 999px;
  padding: 2px 8px; font-size: 0.75rem; vertical-align: 2px;
}

.offer { display: grid; gap: var(--gap); align-items: stretch; margin-bottom: var(--gap); }
.offer[hidden] { display: none; }
.offer-img { width: 100%; max-width: 420px; margin-inline: auto; border-radius: var(--radius-l); box-shadow: var(--shadow); }
.offer-card {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-l);
  padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.offer-card h3 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; }
.offer-card p:last-child { color: var(--muted); font-size: 1.125rem; max-width: 32em; }
@media (min-width: 900px) {
  .offer { grid-template-columns: 380px 1fr; }
  .offer-img { max-width: none; }
}

.permanent {
  margin-top: clamp(32px, 5vw, 56px); background: var(--ink); color: var(--white);
  border-radius: var(--radius-l); overflow: hidden; display: grid;
}
.permanent img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.permanent-text { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.permanent-text .offer-script { color: var(--gold); }
.permanent-text h3 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
.permanent-text p:last-child { color: #D9D2C8; }
@media (min-width: 900px) { .permanent { grid-template-columns: 1.6fr 1fr; } }

/* ---------- Bento: Kundenkarte, WhatsApp, Bewertung ---------- */
.bento { display: grid; gap: var(--gap); }
.tile { margin: 0; border-radius: var(--radius-l); padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.tile h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; }
.tile-gold { background: var(--gold-soft); }
.tile-gold p:last-child { color: #4A4540; }
.tile-green { background: var(--green-soft); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px; }
.tile-green .tile-label { color: var(--green); }
.wa-text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; }
.checklist { display: grid; gap: 6px; color: #2F4A38; }
.checklist li { display: flex; gap: 10px; align-items: baseline; }
.checklist li::before { content: "✓"; font-weight: 800; color: var(--green); }
.wa-qr { margin: 0; background: var(--white); border-radius: var(--radius-s); padding: 14px; text-align: center; }
.wa-qr img { width: 150px; image-rendering: pixelated; }
.wa-qr figcaption { font-size: 0.875rem; font-weight: 700; margin-top: 6px; }
.tile-quote { background: var(--white); border: 1px solid var(--line); }
.stars { color: #B57210; font-size: 1.375rem; letter-spacing: 2px; }
.tile-quote blockquote { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; line-height: 1.15; }
.tile-quote figcaption { margin-top: auto; color: var(--muted); }

@media (min-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr 1fr; }
  .tile-green { grid-column: span 2; grid-row: span 1; }
  .tile-gold { grid-row: span 1; }
}

/* ---------- Filialen ---------- */
.stores { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.store { background: var(--white); border-radius: var(--radius-m); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 0 var(--line); }
.store img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.store-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.store-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.store h3 { font-size: 1.625rem; font-weight: 800; }
.store address { font-style: normal; color: var(--muted); }
.hours { margin: 0; display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 0.9375rem; }
.hours div { display: flex; justify-content: space-between; gap: 12px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 700; text-align: right; }
.store .btn-row { margin-top: auto; }

.status { font-size: 0.8125rem; font-weight: 700; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.status:empty { display: none; }
.status.is-open { background: var(--green-soft); color: var(--green); }
.status.is-closed { background: #F4E4E1; color: #8A2F1E; }

/* ---------- Über uns ---------- */
.about { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about img { width: 100%; max-width: 520px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-l); }
.about-text { display: grid; gap: 16px; }
.about-text h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.about-text > p:not(.script) { color: var(--muted); font-size: 1.125rem; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.facts li { background: var(--sand); border-radius: var(--radius-s); padding: 14px 20px; display: flex; flex-direction: column; color: var(--muted); font-size: 0.9375rem; }
.facts strong { font-family: var(--font-head); font-size: 1.75rem; color: var(--ink); line-height: 1.1; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; display: grid; gap: 12px; }
.faq h2 { margin-bottom: 16px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brown); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact {
  background: var(--ink); color: var(--white); border-radius: 40px;
  padding: clamp(28px, 5vw, 64px); display: grid; gap: 40px;
}
.contact-info { display: grid; gap: 14px; align-content: start; }
.contact-info p { color: #D9D2C8; }
.contact-phone { font-family: var(--font-head); font-weight: 800; font-size: 1.875rem; color: var(--gold); text-decoration: none; }
.contact-phone:hover { color: var(--white); }
.contact-mail { color: var(--white); }
.contact-mail:hover { color: var(--gold); }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.2fr; } }

.contact-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--white); border: 2px solid transparent;
  border-radius: var(--radius-s); padding: 14px 18px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: #F28B6E; }
.field-check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: #D9D2C8; }
.field-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.field-check a { color: var(--gold); }
.form-msg { min-height: 1.5em; font-weight: 600; color: var(--gold); }
.contact-form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--sand); padding-top: 56px; color: var(--muted); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-bottom: 40px; }
.footer-logo { height: 84px; width: auto; }
.footer-title { font-family: var(--font-body); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin-bottom: 10px; }
.site-footer ul { display: grid; gap: 6px; }
.footer-bottom { border-top: 1px solid #E6D9C4; padding-block: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Schnellleiste (nur Smartphone) ---------- */
.quickbar {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 50;
  background: var(--ink); border-radius: 22px; padding: 8px; box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
}
.quickbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; min-height: 56px;
  color: var(--white); text-decoration: none; font-size: 0.8125rem; font-weight: 700; border-radius: 16px;
}
.quickbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quickbar .quickbar-main { background: var(--gold); color: var(--ink); }
@media (min-width: 768px) { .quickbar { display: none; } }

/* ---------- Einblend-Animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Social-Media-Icons ---------- */
.social { display: flex; gap: 10px; margin-top: 14px; }
.social-link {
  width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white); transition: transform .15s ease, background-color .15s ease;
}
.social-link:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.social-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social-link svg .dot { fill: currentColor; stroke: none; }
.social-link[hidden] { display: none; }
.social-dark .social-link { background: var(--gold); color: var(--ink); }
.social-dark .social-link:hover { background: var(--white); color: var(--ink); }

/* Social-Icons in der Navigation */
.main-nav .nav-social { display: flex; align-items: center; gap: 8px; padding: 8px 16px; }
.main-nav .nav-social .social-link {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--sand); color: var(--ink);
}
.main-nav .nav-social .social-link:hover { background: var(--gold); color: var(--ink); }
.main-nav .nav-social .social-link svg { width: 20px; height: 20px; display: block; }
@media (min-width: 960px) {
  .main-nav .nav-social { padding: 0 6px; gap: 6px; }
  .main-nav .nav-social .social-link { width: 40px; height: 40px; }
}

/* Spam-Schutz: unsichtbares Feld im Kontaktformular */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.contact-form button:disabled { opacity: .6; cursor: wait; }

/* ---------- Kundenbewertungen ---------- */
.reviews { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.review {
  margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px;
}
.review blockquote { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.3125rem; line-height: 1.35; letter-spacing: -0.01em; }
.review figcaption { margin-top: auto; color: var(--muted); font-size: 0.9375rem; }
.star-off { color: #D8CDBC; }
.reviews-more { margin-top: 20px; font-weight: 700; }
@media (min-width: 900px) { .bento { grid-template-columns: 1fr 2fr; } .tile-green { grid-column: auto; } }
