/* Blumenatelier Mohnblüte – Demo-Shop, ruhig und edel
   Farben nach Gefühl (kevin-ordner/10-farben-und-gefuehle.md): Papier/Creme = Natürlichkeit (Grundton),
   Tannengrün = Frische (Hauptfarbe), gedämpftes Mohnrot = Leidenschaft (Akzent). Kontraste prüft check.py. */
:root {
  --cream: #f7f3ec;
  --paper: #ffffff;
  --blush: #efe8dd;     /* helle Tönung des Grundtons */
  --sand: #e3dacb;      /* feine Linien */
  --green: #2f4a3a;
  --green-soft: #5f7d55;
  --poppy: #9a3f2c;     /* Akzent: Schrift, Linien, Knöpfe */
  --poppy-dark: #7e3323;
  --poppy-light: #e0a894;/* Akzent auf Grün */
  --ink: #2b2a26;
  --muted: #625d54;
  --radius: 2px;
  --shadow: 0 30px 60px -36px rgba(43, 42, 38, .4);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.65; }
main { overflow-x: clip; }
body.no-scroll { overflow: hidden; }
a { color: inherit; }
svg { display: block; max-width: 100%; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--poppy); outline-offset: 2px; }

.demo-bar { background: #1f3328; color: var(--cream); text-align: center; font-size: .8rem; letter-spacing: .04em; padding: 8px 16px; }

/* Kopfzeile – kein backdrop-filter/transform (Lektion: festes Handy-Menü) */
.header { position: sticky; top: 0; z-index: 40; background: var(--cream); border-bottom: 1px solid var(--sand); }
.header .container { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo svg { width: 36px; height: 36px; }
.logo small { display: block; font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); line-height: 1; }
.logo b { font: 400 1.45rem/1.1 var(--serif); }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--poppy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.lang-toggle { border: 1px solid var(--sand); background: transparent; color: inherit; border-radius: 2px; font-family: inherit; font-weight: 600; font-size: .74rem; line-height: 1; letter-spacing: .14em; padding: 8px 12px; min-height: 36px; cursor: pointer; }
.lang-toggle:hover { border-color: var(--green); }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--green); background: transparent; color: var(--green); cursor: pointer; display: grid; place-items: center; }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--poppy); color: #fff; font-size: .7rem; font-weight: 600; display: grid; place-items: center; }
.cart-btn.bump { animation: bump .5s ease; }
@keyframes bump { 40% { scale: 1.18; } }

/* Knöpfe */
.btn { display: inline-block; border: 1px solid var(--green); border-radius: 2px; background: var(--green); color: #fff; font: 600 .76rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 15px 26px; text-decoration: none; cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.btn:hover { background: var(--poppy); border-color: var(--poppy); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--cream); }
.btn-small { padding: 10px 14px; font-size: .7rem; }
.btn-wide { width: 100%; }

/* Start */
.hero { padding: 70px 0 90px; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.eyebrow { color: var(--poppy); font-weight: 600; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 18px; }
h1 em, h2 em { color: var(--poppy); font-style: italic; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 12px; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.perks { list-style: none; display: flex; gap: 10px 28px; flex-wrap: wrap; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--sand); padding-top: 18px; }
.hero-photo { margin: 0; aspect-ratio: 4 / 5; max-height: 76vh; outline: 1px solid var(--sand); outline-offset: 14px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

section { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p:not(.eyebrow) { color: var(--muted); }

/* Baukasten */
.builder { background: var(--paper); }
.builder-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.preview { position: sticky; top: 96px; background: var(--cream); border: 1px solid var(--sand); padding: 24px; text-align: center; }
.preview-art svg { width: min(100%, 340px); margin-inline: auto; }
.preview figcaption { color: var(--muted); font-size: .92rem; }
.controls { display: grid; gap: 22px; }
fieldset { border: 0; }
legend, .field > span { font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: flex; align-items: center; gap: 8px; flex-direction: row; padding: 10px 16px; border-radius: 2px; border: 1px solid var(--sand); cursor: pointer; background: var(--paper); }
.chip small { display: block; color: var(--muted); font-size: .78rem; }
#sizes .chip span { flex-direction: column; align-items: flex-start; gap: 0; }
.chip i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.chip input:checked + span { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.chip input:focus-visible + span { outline: 2px solid var(--poppy); outline-offset: 2px; }
.flower-list { list-style: none; display: grid; border-top: 1px solid var(--sand); }
.flower-list li { display: grid; grid-template-columns: 40px 1fr 38px 32px 38px; align-items: center; gap: 8px; padding: 8px 2px; border-bottom: 1px solid var(--sand); }
.f-icon svg { width: 34px; height: 34px; }
.f-name small { display: block; color: var(--muted); font-size: .8rem; }
.step { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--green); background: #fff; color: var(--green); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.step:disabled { opacity: .35; cursor: not-allowed; }
.flower-list output { text-align: center; font-weight: 700; }
.field textarea, .field input { width: 100%; font: inherit; padding: 11px 14px; border-radius: 2px; border: 1px solid var(--sand); background: #fff; }
.builder-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; background: var(--green); color: var(--cream); flex-wrap: wrap; }
.builder-total span, .builder-total small { display: block; font-size: .85rem; opacity: .85; }
.builder-total b { font: 400 2rem/1.1 var(--serif); }
.msg { min-height: 1.4em; color: var(--green); font-weight: 600; }
.msg.error { color: var(--poppy-dark); }

/* Sortiment */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product { display: flex; flex-direction: column; }
.p-art { background: var(--blush); margin-bottom: 16px; overflow: hidden; }
.p-art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.product:hover .p-art img { transform: scale(1.03); }
.product h3 { font-size: 1.25rem; }
.product p { color: var(--muted); font-size: .92rem; flex: 1; }
.p-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sand); gap: 10px; }
.p-foot b { font: 400 1.35rem var(--serif); }

.steps-band { background: var(--green); color: var(--cream); padding: 56px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps > div { border-top: 1px solid rgba(224, 168, 148, .4); padding-top: 20px; }
.steps b { display: block; font: italic 400 1.3rem var(--serif); color: var(--poppy-light); margin-bottom: 8px; }
.steps p { color: #d9d4c8; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact p { margin-bottom: 12px; }
.hours { border-collapse: collapse; width: 100%; border-top: 1px solid var(--green); }
.hours caption { text-align: left; font: 400 1.4rem var(--serif); margin-bottom: 10px; }
.hours th, .hours td { text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--sand); font-weight: 400; }

.footer { background: #1f3328; color: var(--cream); padding: 28px 0; font-size: .9rem; }
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* Warenkorb */
.overlay { position: fixed; inset: 0; background: rgba(43, 42, 38, .45); z-index: 60; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); z-index: 70; display: flex; flex-direction: column; box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .5); animation: slide .3s ease; overflow-y: auto; }
@keyframes slide { from { translate: 100% 0; } }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--sand); position: sticky; top: 0; background: var(--paper); z-index: 1; }
.cart-close { width: 44px; height: 44px; border: 1px solid var(--sand); background: transparent; border-radius: 50%; font-size: 1.4rem; font-weight: 300; cursor: pointer; }
.cart-view, .checkout, .done { padding: 18px 22px 28px; display: grid; gap: 16px; }
.cart-items { list-style: none; display: grid; gap: 12px; }
.cart-items li { display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "art text price" "art qty price"; gap: 4px 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--sand); }
.ci-art { grid-area: art; background: var(--cream); overflow: hidden; }
.ci-art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.ci-text { grid-area: text; }
.ci-text small, .ci-text em { display: block; color: var(--muted); font-size: .82rem; }
.ci-text em:empty { display: none; }
.ci-qty { grid-area: qty; display: flex; align-items: center; gap: 8px; }
.ci-qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--green); background: #fff; cursor: pointer; }
.ci-price { grid-area: price; }
.cart-empty { color: var(--muted); padding: 20px 0; text-align: center; }
.cart-sum { display: grid; gap: 16px; }
.delivery { display: grid; gap: 8px; }
.delivery label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--sand); cursor: pointer; }
.cart dl div { display: flex; justify-content: space-between; padding: 4px 0; }
.cart dl .total { border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.link-back { justify-self: start; border: 0; background: none; color: var(--green); font: inherit; text-decoration: underline; cursor: pointer; }
.checkout h3, .done h3 { font-size: 1.5rem; }
.pay { background: var(--cream); border-left: 2px solid var(--poppy); padding: 10px 14px; font-size: .9rem; }
.fine { font-size: .85rem; color: var(--muted); }
.co-items { list-style: none; border-top: 1px solid var(--sand); font-size: .92rem; }
.co-items li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--sand); }
.co-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; }
.done { text-align: center; justify-items: center; }
.tick { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--green); color: var(--green); font-size: 1.6rem; display: grid; place-items: center; }

/* Rechtsseiten */
.legal { padding: 50px 0 80px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: 2.4rem; }
.legal h2 { font-size: 1.35rem; margin: 28px 0 8px; }
.legal p, .legal li { margin-bottom: 8px; }
.legal ul, .legal ol { padding-left: 22px; }
.note { background: var(--blush); border-left: 2px solid var(--poppy); padding: 14px 18px; margin-bottom: 22px; }
.ph { background: #fff3b0; padding: 0 3px; border-radius: 3px; }
html:not([lang="en"]) .en-only { display: none; }

@media (max-width: 900px) {
  .hero .container, .builder-grid, .contact { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; outline-offset: 8px; margin: 0 8px; }
  .preview { position: static; }
  .preview-art svg { width: 220px; }
  .products { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .products, .steps { grid-template-columns: 1fr; }
  .header .container { gap: 12px; }
  .logo b { font-size: 1.2rem; }
  .flower-list li { grid-template-columns: 34px 1fr 38px 26px 38px; gap: 6px; }
  .builder-total { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.builder-total .btn { background: var(--cream); color: var(--green); border-color: var(--cream); }
.builder-total .btn:hover { background: transparent; color: var(--cream); }
