/* Silabaal-App – Gestaltung angelehnt an mebcon.net (Creme #FDFBF5, Braun #483E39, Orange #EC6707, Grün #94BF20) */
@font-face { font-family: "Encode Sans"; font-weight: 400; font-display: swap; src: url(fonts/encode-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Encode Sans"; font-weight: 600; font-display: swap; src: url(fonts/encode-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Encode Sans"; font-weight: 700; font-display: swap; src: url(fonts/encode-sans-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Encode Sans"; font-weight: 400; font-display: swap; src: url(fonts/encode-sans-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Encode Sans"; font-weight: 600; font-display: swap; src: url(fonts/encode-sans-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Encode Sans"; font-weight: 700; font-display: swap; src: url(fonts/encode-sans-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Noto Sans Arabic"; font-weight: 100 900; font-display: swap; src: url(fonts/NotoSansArabic-Variable.ttf) format("truetype"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --bg: #FDFBF5; --card: #FFFFFF; --soft: #F4F0E8; --line: #E6E1DA; --line2: #C9C2B8;
  --text: #483E39; --strong: #241E1B; --muted: #6E645E;
  --orange: #EC6707; --orange-dark: #8A3D00; --orange-soft: #FDE6D3;
  --green: #94BF20; --green-dark: #406343; --green-soft: #EEF3E4; --teal: #20C19E; --teal-soft: #D6F3EC;
  --red: #B42318; --red-soft: #FDECEA;
  --radius: 14px; --font: "Encode Sans", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font); }
[dir="rtl"] body { font-family: "Noto Sans Arabic", var(--font); }
a { color: var(--text); text-underline-offset: 2px; }
a:hover { color: var(--strong); }
h1, h2, h3 { color: var(--strong); line-height: 1.25; margin: 0 0 .25em; }
h1 { font-size: 1.55rem; font-weight: 700; }
h2, .h2 { font-size: 1.15rem; font-weight: 700; color: var(--strong); }
p { margin: 0 0 .75em; }
img, video { max-width: 100%; }
code { font-size: .9em; background: var(--soft); padding: .1em .35em; border-radius: 4px; word-break: break-all; }
.small { font-size: .85rem; } .muted { color: var(--muted); } .warn { color: var(--orange-dark); font-weight: 600; }
.center { text-align: center; } .nowrap { white-space: nowrap; } .grow { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: -100px; inset-inline-start: 8px; background: var(--strong); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { top: 0; }
bdi, .amounts td, .totals b { unicode-bidi: plaintext; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* App-Rahmen (mobil zuerst) */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.mode-app .app, .mode-conv .app { box-shadow: 0 0 0 1px var(--line); }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: rgba(253,251,245,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .logo img { height: 36px; display: block; }
.top-right { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--text); }
.icon-btn:hover { background: var(--soft); }
.bell .dot { position: absolute; top: 9px; inset-inline-end: 10px; width: 10px; height: 10px; border-radius: 99px; background: var(--orange); border: 2px solid var(--bg); }
.langs { display: flex; gap: 4px; flex-wrap: wrap; }
.langs a { min-width: 40px; height: 32px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line2); border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; background: #fff; }
.langs a[aria-current] { background: var(--text); border-color: var(--text); color: #fff; }
.langs.small a { min-width: 32px; height: 28px; font-size: 12px; }
.content { flex: 1 1 auto; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.mode-app .content { padding-bottom: 96px; }
.pad { padding: 0 2px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero { margin: -14px -16px 0; height: 210px; overflow: hidden; background: #EAF0DF; }
.hero svg { width: 100%; height: 100%; display: block; }
.greet { margin: 4px 0 0; }

/* Untere Navigation */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 600; text-decoration: none; color: var(--text); }
.tabbar a[aria-current] { color: var(--orange-dark); font-weight: 700; }
.tabbar .badge { position: absolute; top: 0; inset-inline-end: calc(50% - 22px); }

/* Karten und Listen */
.card { background: var(--card); border-radius: var(--radius); padding: 14px 16px; border: 2px solid transparent; box-shadow: 0 1px 0 var(--line); }
.card.soft { background: var(--soft); box-shadow: none; }
.card.narrow { max-width: 520px; width: 100%; margin: 8px auto; }
.card.hl, .card.next-card { border-color: var(--orange); }
.card h2 { margin-bottom: .4em; }
a.card { text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 12px; }
a.card:hover { box-shadow: 0 2px 10px rgba(72,62,57,.08); }
.item { display: flex; align-items: center; gap: 12px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.kicker { font-size: 12px; font-weight: 700; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .04em; }
.kicker.warn { color: var(--red); }
.datebox { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; background: var(--orange); color: var(--strong); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.datebox b { font-size: 20px; } .datebox small { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.datebox.plus { font-size: 28px; font-weight: 700; }
.chev { flex: 0 0 auto; }
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border-radius: var(--radius); padding: 14px 6px; text-decoration: none; font-size: 13px; font-weight: 700; color: var(--strong); box-shadow: 0 1px 0 var(--line); }
.ticon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); display: inline-flex; align-items: center; justify-content: center; }
.ticon.sm { width: 32px; height: 32px; vertical-align: middle; }
.ticon.crop-wein, .ticon.crop-obst { background: var(--teal-soft); color: #0E6B57; }
.ticon.crop-mais { background: var(--orange-soft); color: var(--orange-dark); }
.tile .badge { position: absolute; top: 8px; inset-inline-end: 8px; }
.news-line { padding: 12px 14px; }
.avatar { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 99px; background: var(--green-soft); color: var(--green-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.avatar.orange { background: var(--orange); color: var(--strong); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 99px; padding: 3px 10px; background: var(--soft); color: var(--text); white-space: nowrap; }
.pill.orange { background: var(--orange-soft); color: var(--strong); }
.pill.green { background: var(--green-dark); color: #fff; }
.pill.teal { background: var(--teal-soft); color: #0E5446; }
.pill.tiny { font-size: 11px; padding: 1px 7px; }
.badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 99px; background: var(--orange); color: var(--strong); font-size: 12px; font-weight: 700; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 13px; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line2); text-decoration: none; }
.note { background: var(--green-soft); border-radius: 10px; padding: 10px 12px; font-size: .95rem; }
.big-check { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 99px; background: var(--teal); color: #0B3D32; font-size: 34px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.link { text-decoration: underline; }

/* Plan */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0; font-size: .95rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.dose-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dmark { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-weight: 700; border: 2px solid var(--line2); }
.dose-next { border-color: var(--orange); }
.dose-next .dmark { background: var(--orange); border-color: var(--orange); color: var(--strong); }
.dose-next .status { color: var(--orange-dark); font-weight: 700; }
.dose-done .dmark { background: var(--teal); border-color: var(--teal); color: #0B3D32; }
.dose-done { opacity: .9; }
.amounts { width: 100%; border-collapse: collapse; font-size: .95rem; }
.amounts th { text-align: start; font-weight: 400; color: var(--muted); padding: 3px 0; }
.amounts td { padding: 3px 0 3px 10px; text-align: end; white-space: nowrap; }
.totals { font-size: 1rem; }
.media-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.media-row figure { margin: 0; width: 120px; }
.media-row img, .media-row video { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; display: block; }
details.inline-form { margin-top: 10px; }
details.inline-form > summary { cursor: pointer; font-weight: 600; text-decoration: underline; list-style: none; display: inline-block; }
details.inline-form > summary.btn { text-decoration: none; display: inline-flex; }
details.inline-form > summary::-webkit-details-marker { display: none; }
details.inline-form[open] > summary.btn { display: none; }
details.card > summary { cursor: pointer; }
.row-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 10px 0 6px; }
.row-form label { flex: 1 1 200px; }

/* Karte */
.map { height: 260px; border-radius: var(--radius); overflow: hidden; background: #E9EEDC; z-index: 0; }
.map.tall { height: 340px; }
.map-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.map-label { background: #fff; border: 0; border-radius: 6px; padding: 2px 8px; font: 700 12px var(--font); color: var(--strong); box-shadow: 0 1px 3px rgba(0,0,0,.2); }

/* Formulare */
.stack { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--strong); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line2); border-radius: 9px; padding: 9px 12px; font: 400 16px var(--font); color: var(--strong); background: #fff; }
textarea { min-height: 90px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--text); outline: 2px solid rgba(236,103,7,.35); outline-offset: 0; }
input[type=file] { font: inherit; font-weight: 400; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .grid2 { grid-template-columns: 1fr; } }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 14px; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: 13px; font-weight: 700; color: var(--strong); margin-bottom: 6px; }
.checklist { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow: auto; }
.panel { background: var(--soft); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.switch-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.switch-row > span { display: flex; flex-direction: column; gap: 2px; }
.switch-row small { font-weight: 400; font-size: 13px; color: var(--text); line-height: 1.4; }
.switch { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 56px; height: 32px; border-radius: 99px; background: var(--line2); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 26px; height: 26px; border-radius: 99px; background: #fff; transition: inset-inline-start .15s; }
.switch:checked { background: var(--green-dark); }
.switch:checked::after { inset-inline-start: 27px; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; }
.segmented label { position: relative; font-size: 15px; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: flex; align-items: center; justify-content: center; height: 44px; background: #fff; cursor: pointer; }
.segmented input:checked + span { background: var(--text); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: -3px; }
.segmented.small { border: 0; grid-auto-flow: column; grid-auto-columns: max-content; gap: 6px; align-items: center; }
.segmented.small span { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line2); font-size: 13px; }
.seg-label { font-size: 13px; font-weight: 600; }
.qty-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 0 var(--line); }
.qty { flex-direction: row; align-items: center; gap: 4px; }
.qty input { width: 76px; text-align: center; min-height: 40px; padding: 6px; }
.qty .step { width: 36px; height: 40px; border: 1px solid var(--line2); background: #fff; border-radius: 8px; font-size: 18px; cursor: pointer; color: var(--text); }
.qty .unit { min-width: 30px; font-weight: 400; }
.lang-inputs { display: flex; flex-direction: column; gap: 6px; }
.lt-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.lt-tabs button { height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: #fff; font: 600 13px var(--font); color: var(--text); cursor: pointer; }
.lt-tabs button[aria-selected="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.search { display: flex; gap: 6px; align-items: center; }
.search input { min-height: 40px; }

/* Schaltflächen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; color: var(--strong); font: 700 15px var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--text); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--strong); }
.btn-primary:hover { background: #F27A22; border-color: #F27A22; }
.btn-ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.danger, .btn-link.danger { color: var(--red); }
.btn.danger { border-color: #F1B5AF; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--text); text-decoration: underline; cursor: pointer; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }

/* Meldungen */
.flash { border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.flash ul { margin: 0; padding-inline-start: 18px; }
.flash-ok { background: var(--green-soft); color: var(--green-dark); }
.flash-info { background: var(--orange-soft); color: var(--strong); }
.flash-err { background: var(--red-soft); color: var(--red); }

/* Chat */
.mode-conv .content { padding-bottom: 0; }
.messages { display: flex; flex-direction: column; gap: 10px; padding: 6px 2px 12px; flex: 1 1 auto; }
.msg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 82%; align-self: flex-start; }
.msg.mine { align-items: flex-end; align-self: flex-end; }
.bubble { background: #fff; color: var(--strong); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 15px; line-height: 1.45; box-shadow: 0 1px 0 var(--line); overflow-wrap: anywhere; }
.msg.mine .bubble { background: var(--green-dark); color: #fff; border-radius: 14px 14px 4px 14px; }
[dir="rtl"] .bubble { border-radius: 14px 14px 4px 14px; } [dir="rtl"] .msg.mine .bubble { border-radius: 14px 14px 14px 4px; }
.from { font-size: 12px; font-weight: 700; }
.meta { font-size: 11px; color: var(--muted); }
.composer { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); margin: 0 -16px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 46px; max-height: 160px; resize: none; }
.composer .btn { width: 50px; padding: 0; flex: 0 0 auto; }
.admin-msgs { max-height: 50vh; overflow: auto; background: var(--soft); border-radius: 12px; padding: 12px; margin: 10px 0; }
.clamp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Neuigkeiten */
.news { padding: 0; overflow: hidden; }
.news-img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.news-body { padding: 14px 16px; }

/* Öffentliche Seiten */
.mode-public .content { justify-content: flex-start; }
.pub-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; font-size: 13px; }
.pub-foot img { height: 44px; }
.checks { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
.checks .ok { color: var(--green-dark); } .checks .bad { color: var(--red); font-weight: 700; } .checks .warn { color: var(--orange-dark); }
.steps { padding-inline-start: 20px; }

/* Verwaltung */
.mode-admin { background: #F7F4EC; }
.admin-wrap { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: #fff; border-inline-end: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.admin-brand { display: flex; flex-direction: column; gap: 4px; } .admin-brand img { height: 38px; align-self: flex-start; }
.admin-brand span { font-weight: 700; color: var(--strong); }
.admin-me { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.admin-me small { display: block; color: var(--muted); }
.admin-me .avatar { width: 38px; height: 38px; }
.admin-side nav { display: flex; flex-direction: column; gap: 2px; }
.admin-side nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; }
.admin-side nav a:hover { background: var(--soft); }
.admin-side nav a[aria-current] { background: var(--orange-soft); color: var(--strong); }
.admin-side .count { background: var(--orange); color: var(--strong); border-radius: 99px; font-size: 12px; padding: 1px 8px; }
.admin-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.admin-main { padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.admin-main .card { box-shadow: 0 1px 2px rgba(72,62,57,.06); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tabs a { padding: 8px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600; }
.tabs a[aria-current] { background: var(--text); color: #fff; border-color: var(--text); }
.tab-sep { width: 1px; height: 24px; background: var(--line2); margin: 0 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.split.wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(72,62,57,.06); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FBFAF6; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr.sel td { background: var(--orange-soft); }
.table tr.muted td { color: var(--muted); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters label { min-width: 150px; }
.filters select, .filters input { min-height: 40px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 2px rgba(72,62,57,.06); }
.kpi span { font-size: 13px; color: var(--muted); } .kpi b { font-size: 1.5rem; color: var(--strong); }
.admin-form .card { display: flex; flex-direction: column; gap: 12px; }
.detail { position: sticky; top: 16px; }
.copy { display: block; padding: 10px; user-select: all; }
.danger-zone summary { color: var(--red); font-weight: 600; }
@media (max-width: 980px) {
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; }
  .admin-side nav { flex-direction: row; flex-wrap: wrap; }
  .split, .split.wide-left { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .admin-main { padding: 16px; }
  .detail { position: static; }
}
@media (prefers-reduced-motion: reduce) { .hero * { animation: none !important; } }

/* Animation Startseite */
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes drop { 0% { transform: translateY(-30px); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(120px); opacity: 0; } }
@keyframes sun { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes grow { 0% { transform: scaleY(.2); } 100% { transform: scaleY(1); } }
.sw1, .sw2, .sw3, .gr { transform-box: fill-box; transform-origin: 50% 100%; }
.sw1 { animation: sway 4s ease-in-out infinite; } .sw2 { animation: sway 5s ease-in-out infinite -1.5s; } .sw3 { animation: sway 4.5s ease-in-out infinite -3s; }
.gr { animation: grow 1.6s ease-out both; }
.dr1 { animation: drop 2.4s linear infinite; } .dr2 { animation: drop 2.4s linear infinite .8s; } .dr3 { animation: drop 2.4s linear infinite 1.6s; }
.sun { transform-box: fill-box; transform-origin: 50% 50%; animation: sun 6s ease-in-out infinite; }

/* Rentabilitäts- und Tankrechner (1.1.0) */
.pf-big { font-size: 28px; font-weight: 800; color: var(--strong); line-height: 1.2; margin: 4px 0; }
.pf-big.neg { color: var(--red); }
.pf-big.pos { color: var(--green-dark); }
.pf-result p { margin: 2px 0; }
.amounts tr.pf-sum th, .amounts tr.pf-sum td { border-top: 1px solid var(--line); padding-top: 8px; color: var(--strong); font-weight: 700; }
.pf-tank > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pf-tank > summary::-webkit-details-marker { display: none; }
.pf-tank > summary::after { content: '+'; font-size: 22px; font-weight: 700; color: var(--green-dark); }
.pf-tank[open] > summary::after { content: '–'; }
.pf-tank[open] > summary { margin-bottom: 10px; }
.chip[aria-pressed="true"] { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
button.chip { font: inherit; font-size: 13px; cursor: pointer; }
@media print { .tabbar, .top .icon-btn, .pf-noprint, .skip { display: none !important; } body { background: #fff; } }
