/* ==========================================================
   Keks-Glück – statische Website
   FARBEN / SCHRIFTEN: bitte hier oben anpassen (CI).
   Alle Farben der Seite hängen an diesen Variablen.
   ========================================================== */
:root {
  --accent: #a8d432;       /* CI-Grün (Buttons, Leisten, Akzente) */
  --accent-hover: #93bd25; /* CI-Grün beim Darüberfahren */
  --accent-ink: #1f2418;   /* Textfarbe AUF dem Grün (hell → dunkler Text) */
  --link: #5b7a10;         /* dunkleres Grün für Links/Symbole auf hellem Grund */
  --link-hover: #455d0a;

  --bg: #ffffff;           /* Seitenhintergrund */
  --surface: #ffffff;      /* Karten */
  --cream: #f3f8e4;        /* abgesetzte Flächen (zartes Grün) */
  --ink: #1f2418;          /* Haupttext, dunkle Flächen */
  --muted: #5d6552;        /* Nebentext */
  --line: #dfe6cc;         /* Linien */
  --on-dark: #ffffff;      /* Text auf dunklen Flächen */

  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;

  --radius: 14px;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.section { padding: 64px 0; }
.section-alt { background: var(--cream); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.section-head p { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--on-dark); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Ankündigungsleiste */
.announce { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: .92rem; font-weight: 600; padding: 8px 16px; }
.announce a { color: var(--accent-ink); text-decoration: none; }
.announce a:hover { text-decoration: underline; color: var(--accent-ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.brand:hover { color: var(--link); }
.brand-logo { height: 52px; width: auto; max-width: 220px; object-fit: contain; display: none; }
.brand.has-logo .brand-logo { display: block; }
.brand.has-logo .brand-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 1rem; }
.nav a:hover { background: var(--cream); color: var(--ink); }
.nav a.nav-cta { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.nav a.nav-cta:hover { background: var(--accent-hover); color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; text-align: center; cursor: pointer; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); padding: 11px 22px; border-radius: 999px; transition: background .15s, color .15s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: #000; border-color: #000; color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(31,36,24,.45), rgba(31,36,24,.72)); }
.hero-inner { position: relative; z-index: 1; padding: clamp(80px, 16vw, 170px) 0; text-align: center; max-width: 760px; margin-inline: auto; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; margin-bottom: 1.6em; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Bild + Text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* Filter */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.chip { font: inherit; background: var(--surface); border: 1px solid #c9d3b0; color: var(--ink); padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-hover); font-weight: 700; }

/* Cookie-Karten */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card-img { aspect-ratio: 1 / 1; background: var(--cream); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3em; }
.card-body p.desc { color: var(--muted); font-size: .98rem; flex: 1; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 .6em; padding: 0; list-style: none; }
.badge { font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #eceee4; color: var(--ink); }
.badge-vegan { background: var(--accent); color: var(--accent-ink); }
.badge-off { background: #f1ddd5; color: #7a2d12; }
.price { font-weight: 700; margin-bottom: .8em; }
.price small { font-weight: 400; color: var(--muted); }
.card .btn { width: 100%; padding: 9px 14px; }
.note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 28px; }

/* Galerie dekorierte Kekse */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 28px 0; }
.g-item { padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: var(--ink); }
.g-item img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; border-radius: 10px; background: var(--cream); }
.g-item span { display: block; font-size: .88rem; margin-top: 6px; color: var(--muted); }
.center { text-align: center; }
dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 820px); max-height: 92vh; overflow: visible; }
dialog#lightbox::backdrop { background: rgba(20,24,14,.84); }
dialog#lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 10px; }
dialog#lightbox p { color: #fff; text-align: center; margin: 10px 0 0; }
.lb-close { position: absolute; top: -14px; right: -6px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 1.4rem; cursor: pointer; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 18px 6px; color: var(--muted); }

/* Anfrage */
.request { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .request { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 1em; }
.contact-list li { margin-bottom: .4em; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h3 { margin-bottom: .6em; }
.req-list { list-style: none; margin: 0 0 1.2em; padding: 0; }
.req-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.req-list .name { flex: 1; font-weight: 600; }
.req-list .unit { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #c9d3b0; background: var(--bg); font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--accent); border-color: var(--accent-hover); }
.qty output { min-width: 26px; text-align: center; font-weight: 700; }
.req-remove { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.2rem; }
.req-empty { color: var(--muted); margin: 0 0 1.2em; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
input[type="text"], textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #b9c2a6; border-radius: 10px; background: #fff; color: var(--ink); margin-bottom: 14px; }
textarea { min-height: 110px; resize: vertical; }
.send-row { display: flex; flex-wrap: wrap; gap: 10px; }
.send-row .btn { flex: 1 1 200px; }
.form-hint { font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.form-error { color: #9b1c1c; font-weight: 600; min-height: 1.4em; margin: 6px 0 0; }

/* schwebende Anfrage-Leiste */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--accent); color: var(--accent-ink); text-decoration: none; padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.fab:hover { background: var(--accent-hover); color: var(--accent-ink); }
.fab[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 36px 0; text-align: center; font-size: .95rem; border-top: 6px solid var(--accent); }
.site-footer a { color: var(--on-dark); margin: 0 10px; }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: .6em 0 0; opacity: .8; }

/* Rechtstexte */
.legal { max-width: 820px; padding: 48px 0 72px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.todo { background: #fff3c4; padding: 0 4px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
