/* BienenWaagenManager – Homepage
   Farben = Material-3-Palette der App (Seed #F6A623 „Honig"), hell + dunkel.
   Bewusst KEINE externen Ressourcen (Fonts/CDNs/Tracking) → keine
   Drittlandübermittlung, kein Cookie-Banner nötig. */

:root {
  --honey: #F6A623;
  --primary: #855300;
  --on-primary: #FFFFFF;
  --primary-container: #FFDDB7;
  --on-primary-container: #2A1700;
  --secondary: #715A41;
  --secondary-container: #FDDDBD;
  --tertiary: #56633B;
  --tertiary-container: #DAE9B6;
  --bg: #FFF8F4;
  --surface: #FFFFFF;
  --surface-container: #F9ECE1;
  --surface-high: #F3E6DB;
  --text: #211A13;
  --text-muted: #51453A;
  --outline: #D5C4B5;
  --shadow: 0 1px 2px rgba(60, 40, 10, .08), 0 6px 20px rgba(60, 40, 10, .08);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1140px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #FFB95C;
    --on-primary: #472A00;
    --primary-container: #653E00;
    --on-primary-container: #FFDDB7;
    --secondary: #E0C1A3;
    --secondary-container: #584430;
    --tertiary: #BECC9C;
    --tertiary-container: #3F4B26;
    --bg: #19120C;
    --surface: #211A13;
    --surface-container: #261E17;
    --surface-high: #312821;
    --text: #EFE0D5;
    --text-muted: #D5C4B5;
    --outline: #51453A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
section { padding: 72px 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: .6em;
}
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 46em; }
.muted { color: var(--text-muted); }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--outline);
}
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--text-muted); margin-top: -3px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--primary); }
.nav a.lang { border: 1.5px solid var(--outline); border-radius: 8px; padding: 0 8px; font-size: .85rem; }
@media (max-width: 860px) { .nav a.lang { border-radius: 0; border-width: 1px 0 0; padding: 14px 16px; } }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--outline);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--outline); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1rem; border: 1.5px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--outline); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
  background:
    radial-gradient(1000px 500px at 85% -10%, color-mix(in srgb, var(--honey) 35%, transparent), transparent 70%),
    radial-gradient(700px 400px at -10% 110%, color-mix(in srgb, var(--tertiary-container) 70%, transparent), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 .accent { color: var(--primary); }
.hero-note { font-size: .85rem; color: var(--text-muted); margin-top: 14px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- Handy-Mockup ---------- */
.phone {
  width: 290px; max-width: 100%; margin: 0 auto; padding: 12px; border-radius: 40px;
  background: #1b1511; box-shadow: 0 30px 60px rgba(60, 35, 0, .25);
}
.screen { border-radius: 30px; overflow: hidden; background: var(--bg); padding: 14px 12px 12px; min-height: 520px; }
.screen-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin: 4px 4px 10px; }
.chips { display: flex; gap: 5px; margin-bottom: 10px; flex-wrap: wrap; }
.chip { font-size: .66rem; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--outline); color: var(--text-muted); }
.chip.on { background: var(--secondary-container); border-color: transparent; color: var(--text); font-weight: 700; }
.tile { background: var(--surface-container); border-radius: 16px; padding: 10px 12px 8px; margin-bottom: 8px; }
.tile-head { display: flex; justify-content: space-between; font-size: .72rem; }
.tile-head b { font-size: .8rem; }
.tile-weight { font-size: 1.35rem; font-weight: 800; }
.tile svg { width: 100%; height: 34px; }
.delta-up { color: #2E7D32; font-weight: 700; font-size: .72rem; }
.delta-down { color: #C62828; font-weight: 700; font-size: .72rem; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .delta-up { color: #81C784; }
  :root:not([data-theme="light"]) .delta-down { color: #EF9A9A; }
}
/* Klickbarer Prototyp: feste Bildschirmhöhe, Seiten scrollen innen */
.screen { height: 560px; display: flex; flex-direction: column; }
.screen [data-page] { flex: 1; overflow-y: auto; scrollbar-width: none; }
.screen [data-page]::-webkit-scrollbar { display: none; }
.screen [data-page][hidden] { display: none; }
.screen .tile[data-hive-tile] { cursor: pointer; transition: transform .12s; }
.screen .tile[data-hive-tile]:hover { transform: translateY(-1px); outline: 1.5px solid var(--honey); }
.screen button.chip { background: none; font: inherit; font-size: .66rem; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.screen button.chip.on { background: var(--secondary-container); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot.big { width: 14px; height: 14px; border: 1px solid rgba(0,0,0,.25); margin-right: 6px; vertical-align: -2px; }
.m-select select {
  width: 100%; margin-bottom: 8px; padding: 6px 10px; border-radius: 10px; font: inherit; font-size: .8rem; font-weight: 700;
  border: 1px solid var(--outline); background: var(--surface); color: var(--text);
}
.m-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.m-stat { background: var(--surface-container); border-radius: 12px; padding: 7px 9px; line-height: 1.25; }
.m-stat small { display: block; font-size: .6rem; color: var(--text-muted); }
.m-stat b { display: block; font-size: .95rem; }
.m-card { background: var(--surface-container); border-radius: 14px; padding: 9px 10px; margin-bottom: 8px; font-size: .74rem; }
.m-card-head { display: flex; justify-content: space-between; font-weight: 800; font-size: .78rem; margin-bottom: 4px; }
.m-sub { color: var(--text-muted); font-size: .66rem; margin: -2px 0 6px; }
.m-chart { width: 100%; height: 110px; display: block; }
.m-chart polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.m-weight { stroke: #F6A623; }
.m-temp { stroke: #C0532E; stroke-dasharray: 4 3; }
.m-grid { stroke: var(--outline); stroke-width: .5; vector-effect: non-scaling-stroke; }
.m-axis { display: flex; justify-content: space-between; font-size: .58rem; color: var(--text-muted); }
.m-queen { font-weight: 700; }
.m-note { border-top: 1px solid var(--outline); padding: 5px 0 3px; }
.m-note small { display: block; color: var(--text-muted); font-size: .6rem; }
.m-row { display: flex; justify-content: space-between; padding: 3px 0; }
.m-bar { height: 5px; border-radius: 3px; background: var(--outline); margin: 0 0 4px; overflow: hidden; }
.m-bar i { display: block; height: 100%; }
.navbar button { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.navbar button.on { color: var(--text); font-weight: 700; }
.navbar button.on span { background: var(--secondary-container); border-radius: 12px; padding: 1px 12px; display: inline-block; }
.phone-hint { text-align: center; font-size: .8rem; color: var(--text-muted); margin-top: 12px; }

.navbar { display: flex; justify-content: space-around; margin-top: 10px; padding: 8px 0 2px; border-top: 1px solid var(--outline); font-size: .62rem; color: var(--text-muted); text-align: center; }
.navbar .on { color: var(--text); font-weight: 700; }
.navbar .on span { background: var(--secondary-container); border-radius: 12px; padding: 1px 12px; display: inline-block; }

/* ---------- Kennzahlen ---------- */
.stats { padding: 0; margin-top: -36px; position: relative; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--outline);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--outline);
}
.stat { background: var(--surface); padding: 22px 18px; text-align: center; }
.stat b { display: block; font-size: 1.7rem; color: var(--primary); }
.stat span { font-size: .88rem; color: var(--text-muted); }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Systemablauf ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; counter-reset: step; }
.flow-step { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 22px; position: relative; }
.flow-step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--honey); color: #2A1700; font-weight: 800; margin-bottom: 12px;
}
.flow-step p { font-size: .95rem; color: var(--text-muted); margin: 0; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .flow { grid-template-columns: 1fr; } }

/* ---------- Feature-Karten ---------- */
.alt { background: var(--surface-container); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 960px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--outline); }
.card p { color: var(--text-muted); font-size: .96rem; margin: 0; }
.card .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-container); color: var(--on-primary-container); margin-bottom: 14px;
}
.card .ico svg { width: 24px; height: 24px; }
.card.hl { border: 2px solid var(--honey); }
.badge {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--honey); color: #2A1700; border-radius: 6px; padding: 2px 7px; margin-left: 6px; vertical-align: 2px;
}

/* ---------- Spotlight NFC + Sprache ---------- */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .spot { grid-template-columns: 1fr; } }
.dialog { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.bubble { width: fit-content; max-width: 85%; padding: 10px 14px; border-radius: 16px; margin-bottom: 10px; font-size: .95rem; }
.bubble.app { background: var(--surface-high); border-bottom-left-radius: 4px; }
.bubble.me { background: var(--primary); color: var(--on-primary); margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.sys { background: none; border: 1px dashed var(--outline); color: var(--text-muted); font-size: .85rem; max-width: 100%; text-align: center; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--tertiary-container) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%2356633B'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* ---------- Technische Daten ---------- */
.specs { width: 100%; border-collapse: collapse; margin-top: 28px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--outline); vertical-align: top; font-size: .95rem; }
.specs th { width: 32%; color: var(--text-muted); font-weight: 600; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) { .specs th, .specs td { display: block; width: 100%; } .specs th { border-bottom: 0; padding-bottom: 0; } }

/* ---------- Angebot ---------- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
@media (max-width: 860px) { .offers { grid-template-columns: 1fr; } }
.offer { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.offer .price { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin: 6px 0 12px; }
.offer ul { padding-left: 18px; color: var(--text-muted); font-size: .95rem; flex: 1; }
.offer.featured { border: 2px solid var(--honey); }

/* ---------- FAQ ---------- */
details.faq { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-sm); padding: 0 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--primary); font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--text-muted); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-box { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 26px; }
.contact > * { min-width: 0; }
.contact-box dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; }
.contact-box dd { overflow-wrap: anywhere; }
.contact-box dt { color: var(--text-muted); }
.contact-box dd { margin: 0; font-weight: 600; }

/* ---------- Fußzeile ---------- */
footer { background: #1b1511; color: #D5C4B5; padding: 44px 0 28px; font-size: .92rem; }
footer a { color: #FFB95C; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr; } }
.foot h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.copy { border-top: 1px solid #3a2f26; margin-top: 30px; padding-top: 18px; font-size: .8rem; color: #9c8b7c; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 820px; padding: 48px 16px 80px; margin: 0 auto; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5em; }
.legal p, .legal li { color: var(--text); }
.legal .box { background: var(--surface-container); border-radius: var(--radius-sm); padding: 16px 20px; margin: 1em 0; }

/* ---------- WebUI-Vorschau (Browserfenster) ---------- */
.browser { border: 1px solid var(--outline); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); margin-top: 32px; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--surface-high); border-bottom: 1px solid var(--outline); font-size: .82rem; color: var(--text-muted); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--outline); display: inline-block; }
.browser-bar .url { flex: 1; background: var(--surface); border-radius: 8px; padding: 3px 12px; margin-left: 8px; font-family: ui-monospace, Consolas, monospace; }
.browser iframe { display: block; width: 100%; height: 640px; border: 0; background: #f0f2f5; }
@media (max-width: 600px) { .browser iframe { height: 560px; } }

/* ---------- Quickstart ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 8px; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; font-size: .85rem; font-weight: 700; }
.chain span { background: var(--primary-container); color: var(--on-primary-container); border-radius: 8px; padding: 3px 9px; }
.chain b { color: var(--text-muted); font-weight: 400; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; border-radius: 6px; padding: 2px 8px; vertical-align: 3px; margin-left: 6px; }
.tag.lora { background: var(--tertiary-container); color: var(--text); }
.tag.wifi { background: var(--secondary-container); color: var(--text); }
.tag.all  { background: var(--surface-high); color: var(--text-muted); }
.qs-step { position: relative; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); padding: 22px 24px 18px 72px; margin: 16px 0; }
.qs-step .num {
  position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--honey); color: #2A1700; font-weight: 800;
}
.qs-step h2 { font-size: 1.3rem; margin: 2px 0 10px; }
.qs-step ol, .qs-step ul { padding-left: 20px; margin: 0 0 10px; }
.qs-step li { margin-bottom: 5px; }
@media (max-width: 600px) { .qs-step { padding: 64px 18px 16px; } .qs-step .num { left: 18px; top: 16px; } }
.path-sel { font-weight: 700; }
code, .kbd { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: var(--surface-high); border-radius: 5px; padding: 1px 5px; }
.ui-path { font-weight: 600; background: var(--primary-container); color: var(--on-primary-container); border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
@media (max-width: 600px) { .ui-path { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; } }
.note { border-left: 4px solid var(--honey); background: var(--surface-container); border-radius: 8px; padding: 10px 14px; margin: 10px 0; font-size: .94rem; }
.dl-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.dl-row .btn { padding: 8px 16px; font-size: .92rem; }
.fields { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 6px 0 10px; }
.fields th, .fields td { border-bottom: 1px solid var(--outline); padding: 6px 8px; text-align: left; }
.fields th { color: var(--text-muted); font-weight: 600; }
.qs-hidden { display: none; }

/* Platzhalter – vor Veröffentlichung ausfüllen */
.todo {
  background: #FFE08A; color: #3a2800; border-radius: 4px; padding: 0 4px; font-weight: 600;
  outline: 1px dashed #B07A00;
}
.draft-banner {
  background: #FFE08A; color: #3a2800; text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 16px;
}
