:root {
  --bg: #f6f3ec; --surface: #fffdf8; --ink: #1d2a22; --muted: #5d6b62; --line: #e2ddd0;
  --green: #234b35; --green-2: #2f6a48; --accent: #c9a24a; --accent-soft: #f3e8cc;
  --ok: #2f6a48; --err: #a33a2b; --radius: 14px;
  --serif: "Fraunces", Georgia, serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--green-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Kopf */
header.top { background: var(--green); color: #f1ede2; position: sticky; top: 0; z-index: 10; }
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-family: var(--serif); font-size: 1.35rem; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo svg, .logo img { width: 44px; height: 44px; border-radius: 50%; }
nav.main { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
nav.main a { color: #e6e1d3; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
nav.main a:hover, nav.main a.on { background: rgba(255,255,255,.1); color: #fff; }
nav.main a.cta { background: var(--accent); color: #1d2a22; font-weight: 600; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #3c7a55 0%, transparent 60%), var(--green); color: #f1ede2; padding: 90px 0 110px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; color: #fff; }
.hero p.lead { font-size: 1.2rem; max-width: 52ch; color: #d9d3c2; }
.hero .btns { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); font-weight: 600; margin-bottom: 14px; }

.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-weight: 600; padding: 12px 20px; border-radius: 10px; text-decoration: none; background: var(--green); color: #fff; }
.btn:hover { background: var(--green-2); }
.btn.gold { background: var(--accent); color: var(--ink); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.small { padding: 7px 12px; font-size: .88rem; border-radius: 8px; }

section { padding: 70px 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: -70px; }
.fact { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: 0 10px 30px rgba(29,42,34,.08); }
.fact .num { font-family: var(--serif); font-size: 2.2rem; color: var(--green); }
.fact p { margin: 4px 0 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.step { border-top: 3px solid var(--accent); padding-top: 14px; }
.step b { font-family: var(--serif); font-size: 1.15rem; display: block; margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; }

/* Produkte */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 28px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .92rem; }
.chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .img { height: 170px; position: relative; display: grid; place-items: center; }
.card .img .ini { font-family: var(--serif); font-size: 3.2rem; color: rgba(255,255,255,.85); }
.card .img .badge { position: absolute; top: 12px; left: 12px; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.3rem; }
.meta { display: flex; gap: 14px; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.meta b { color: var(--ink); }
.price { font-family: var(--serif); font-size: 1.35rem; color: var(--green); }
.price.locked { font-family: var(--sans); font-size: .92rem; color: var(--muted); background: var(--accent-soft); padding: 8px 12px; border-radius: 8px; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--green); }
details.ask summary { list-style: none; }
details.ask summary::-webkit-details-marker { display: none; }
details.ask[open] summary { display: none; }
.ask form { display: grid; gap: 8px; margin-top: 6px; }

/* Formulare */
label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 4px; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-2); outline-offset: 0; border-color: transparent; }
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.check input { width: auto; margin-top: 4px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.narrow { max-width: 520px; margin: 50px auto; }

.flash { padding: 12px 16px; border-radius: 10px; margin: 16px 0; background: #e5f0e8; color: var(--ok); font-weight: 500; }
.flash.err { background: #f6e1dc; color: var(--err); }

footer.foot { background: #17241c; color: #a9b3ab; padding: 40px 0; margin-top: 60px; font-size: .9rem; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.foot a { color: #cfd6cf; margin-right: 16px; }

/* Altersfreigabe */
#age { position: fixed; inset: 0; background: rgba(23,36,28,.92); display: none; place-items: center; z-index: 100; padding: 20px; }
#age .panel { max-width: 440px; text-align: center; }

/* ---------- Intern ---------- */
body.intern { background: #f2f1ec; }
.ilayout { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
aside.side { background: #17241c; color: #cfd6cf; padding: 22px 14px; position: sticky; top: 0; height: 100vh; }
aside.side .logo { margin: 0 8px 26px; }
aside.side a { display: flex; justify-content: space-between; align-items: center; color: #cfd6cf; text-decoration: none; padding: 9px 12px; border-radius: 8px; margin-bottom: 2px; }
aside.side a:hover, aside.side a.on { background: rgba(255,255,255,.08); color: #fff; }
aside.side .sep { height: 1px; background: rgba(255,255,255,.1); margin: 14px 8px; }
aside.side .who { font-size: .85rem; color: #8d998f; padding: 0 12px; }
.pill { white-space: nowrap; background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
main.imain { padding: 28px 34px 60px; min-width: 0; }
.ihead { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.ihead h1 { margin: 0; font-size: 1.9rem; }
.ihead .sp { flex: 1; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { background: #fff; border-radius: 12px; padding: 16px 18px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.kpi .n { font-family: var(--serif); font-size: 2rem; }
.kpi .l { color: var(--muted); font-size: .88rem; }
.kpi.hot .n { color: var(--err); }
.pipe { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 22px; }
.pipe a { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; text-decoration: none; color: var(--ink); border-top: 4px solid var(--c); }
.pipe .n { font-family: var(--serif); font-size: 1.6rem; }
.pipe .l { font-size: .85rem; color: var(--muted); }
.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.box h2 { font-size: 1.15rem; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid #efece3; vertical-align: top; }
tr.click:hover td { background: #faf8f2; cursor: pointer; }
.st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: color-mix(in srgb, var(--c) 16%, white); color: var(--c); }
.feed { list-style: none; padding: 0; margin: 0; }
.feed li { padding: 8px 0; border-bottom: 1px solid #efece3; font-size: .9rem; }
.feed small { color: var(--muted); display: block; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { width: auto; }
.thread { display: flex; flex-direction: column; gap: 12px; }
.msg { border-radius: 12px; padding: 14px 16px; max-width: 85%; border: 1px solid var(--line); }
.msg.out { align-self: flex-end; background: #eaf2ec; }
.msg.in { align-self: flex-start; background: #fff; border-left: 4px solid var(--accent); }
.msg .h { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.msg .b { white-space: pre-wrap; }
.testnote { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; font-size: .88rem; margin-bottom: 14px; }
.muted { color: var(--muted); }

@media (max-width: 860px) {
  .split, .cols { grid-template-columns: 1fr; }
  .ilayout { grid-template-columns: 1fr; }
  aside.side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; }
  aside.side .sep, aside.side .who { display: none; }
  .pipe { grid-template-columns: repeat(3, 1fr); }
  main.imain { padding: 20px 16px; }
  header.top .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .form .row { grid-template-columns: 1fr; }
}

/* v0.3: Mail-Fenster */
button.chip { cursor: pointer; font: inherit; font-size: .88rem; }
#bausteine .chip { background: var(--accent-soft); border-color: #e8d9b0; }
.sigprev { white-space: pre-wrap; background: #f7f5ef; border: 1px dashed var(--line); border-radius: 9px; padding: 10px 12px; color: var(--muted); font-size: .92rem; }
code { background: #efece3; padding: 1px 5px; border-radius: 4px; font-size: .88em; }
.pipe.l6 { grid-template-columns: repeat(6, 1fr); }
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.boxes a { background: #f7f5ef; border-radius: 10px; padding: 10px 12px; text-decoration: none; color: var(--ink); }
.boxes b { display: block; }

/* Demo */
.demobar { background: #f2c94c; color: #3a2e00; font-weight: 600; padding: 10px 16px; border-radius: 10px; margin-bottom: 16px; font-size: .92rem; }
.demobar a { color: #3a2e00; }

/* Logo im Startbereich */
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.hero-badge { width: 340px; height: 340px; border-radius: 50%; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-badge { width: 200px; height: 200px; order: -1; } }

/* Produktfotos */
.foto-img { background-size: cover; background-position: center; cursor: zoom-in; }
.card .img .anzahl { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
#lb { position: fixed; inset: 0; background: rgba(10,18,13,.92); z-index: 90; display: none; align-items: center; justify-content: center; }
#lb img { max-width: 92vw; max-height: 86vh; border-radius: 10px; }
#lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 1.6rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lbx { top: 16px; right: 16px; } .lbp { left: 16px; } .lbnx { right: 16px; }
#lbz { position: absolute; bottom: 18px; color: #ddd; font-size: .9rem; }
.fotos { margin-bottom: 14px; }
.fotoleiste { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.foto { position: relative; width: 120px; height: 120px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto.titel { outline: 3px solid var(--accent); }
.foto .ft { position: absolute; left: 6px; top: 6px; background: var(--accent); color: var(--ink); font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.foto .fa { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 4px; }
.foto .fa button { border: 0; background: rgba(0,0,0,.6); color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.fotoadd { width: 120px; height: 120px; border: 2px dashed var(--line); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); margin: 0; }
.fotoadd span { font-size: 2rem; line-height: 1; } .fotoadd:hover { border-color: var(--green-2); color: var(--green-2); }
