/* =========================================================================
   Gartenkompass – Design-System
   ========================================================================= */
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #f6f3ec; --bg-2: #efeadf; --surface: #ffffff; --surface-2: #fbfaf6;
  --ink: #1d2a21; --ink-2: #3c4a40; --muted: #6b766c; --line: #e2dccd; --line-2: #d4ccb8;
  --green: #2f6b47; --green-2: #255a3b; --green-soft: #e3eedf; --leaf: #7fb069; --sage: #dce6d5;
  --terra: #c8643b; --terra-soft: #f7e3d8; --sun: #e9b949; --water: #4a90b8; --water-soft: #e1eef6;
  --bad: #c2412d; --bad-soft: #fbe5e0; --warn: #c98316; --warn-soft: #fbf0d9; --ok: #2f8a4f; --ok-soft: #e1f2e6;
  --tox: #8a3fa0; --tox-soft: #f1e5f5; --cold: #3f7fb0; --cold-soft: #e2eef8;
  --r: 14px; --r-sm: 9px; --r-lg: 22px;
  --sh-1: 0 1px 2px rgba(35, 45, 30, .06), 0 1px 1px rgba(35, 45, 30, .04);
  --sh-2: 0 6px 20px -6px rgba(35, 45, 30, .18), 0 2px 6px rgba(35, 45, 30, .06);
  --sh-3: 0 22px 50px -18px rgba(25, 40, 25, .35), 0 6px 14px rgba(25, 40, 25, .08);
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --logo-bg: #2f6b47; --logo-ring: #9cc58a; --logo-n: #e9c46a; --logo-s: #f6f3ec; --logo-leaf: #9cd47a;
  --on-green: #ffffff;
  --a-beet: #8b6a4b; --a-hochbeet: #8b6a4b; --a-gewaechshaus: #d8ecef; --a-rasen: #9dc56f; --a-wiese: #a8c97a; --a-weg: #dcd5c6; --a-terrasse: #c9ad86; --a-haus: #a3a8ae; --a-teich: #7db4d3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131915; --bg-2: #18201b; --surface: #1c241f; --surface-2: #202a24;
    --ink: #e8efe6; --ink-2: #c8d3c8; --muted: #93a093; --line: #2c3830; --line-2: #3a473e;
    --green: #6fbf88; --green-2: #8fd4a4; --green-soft: #213428; --sage: #24342a;
    --terra: #e58a5f; --terra-soft: #3a2a21; --water-soft: #1d2c36;
    --bad: #f07a63; --bad-soft: #3a2420; --warn: #e8b04a; --warn-soft: #3a3020; --ok: #6fcf8f; --ok-soft: #1f3526;
    --tox: #cf8be3; --tox-soft: #33243a; --cold: #7fb7e0; --cold-soft: #1f2d3a;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .3); --sh-2: 0 6px 20px -6px rgba(0, 0, 0, .5); --sh-3: 0 22px 50px -18px rgba(0, 0, 0, .7);
    --logo-bg: #2f6b47; --logo-s: #e8efe6; --on-green: #0f1a12;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; display: flex; flex-direction: column; }
img, svg { max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-2); }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 650; letter-spacing: -.01em; line-height: 1.18; margin: 0 0 .5em; color: var(--ink); font-variation-settings: 'opsz' 72; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h3 { font-size: 1.18rem; }
h4 { font: 600 .78rem/1.3 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.4em 0 .6em; }
p { margin: 0 0 1em; }
code { font: .88em ui-monospace, Consolas, monospace; background: var(--bg-2); padding: .1em .35em; border-radius: 5px; }
.muted { color: var(--muted); } .sm { font-size: .86rem; } .center { text-align: center; } .pre { white-space: pre-line; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--surface); padding: 8px 14px; border-radius: 8px; box-shadow: var(--sh-2); }
:focus-visible { outline: 2.5px solid var(--terra); outline-offset: 2px; border-radius: 6px; }
.i { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.pad-y { padding-block: 40px 64px; } .pad { padding: 16px; } .mt { margin-top: 1.6em; }
.eyebrow { font: 600 .76rem/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .12em; color: var(--terra); margin: 0 0 .7em; }
main.main { flex: 1; }

/* ---------- Buttons ---------- */
.btn, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 20px; font: 600 .95rem/1.2 var(--f-body); cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn { background: var(--green); color: var(--on-green); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 4px 12px -4px rgba(47,107,71,.55); }
.btn:hover { background: var(--green-2); color: var(--on-green); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn.sm, .btn-ghost.sm { padding: 7px 14px; font-size: .86rem; }
.btn.lg, .btn-ghost.lg { padding: 14px 28px; font-size: 1.04rem; }
.btn.block { width: 100%; }
.btn.light { background: #fff; color: var(--green-2); }
.btn.danger { background: var(--bad); box-shadow: none; } .btn-ghost.danger, button.danger { color: var(--bad); }
.btn[disabled], .btn-ghost[disabled], .ib[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.ib { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; padding: 0; }
.ib:hover { background: var(--bg-2); color: var(--ink); }
.ib .i { width: 20px; height: 20px; }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.linkish:hover { color: var(--green); }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font: 600 .86rem/1.3 var(--f-body); color: var(--ink-2); }
.field small { font-weight: 400; color: var(--muted); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; font: 400 .98rem/1.4 var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.check input { margin-top: 3px; accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: .93rem; }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.tpl-pick { display: grid; gap: 8px; }
.tpl-pick label { display: flex; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; }
.tpl-pick label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.tpl-pick input { accent-color: var(--green); margin-top: 4px; }
.tpl-pick span { display: grid; } .tpl-pick small { color: var(--muted); }
.seg-radio { display: flex; gap: 6px; }
.seg-radio label { flex: 1; } .seg-radio input { position: absolute; opacity: 0; }
.seg-radio span { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 9px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer; font-weight: 600; font-size: .9rem; }
.seg-radio input:checked + span { border-color: var(--green); background: var(--green-soft); color: var(--green-2); }
.seg-radio input:focus-visible + span { outline: 2.5px solid var(--terra); }

/* ---------- Kopf / Navigation ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 500 1.28rem/1 var(--f-head); letter-spacing: -.01em; }
.brand b { font-weight: 700; color: var(--green); }
.brand.big { font-size: 1.5rem; margin-bottom: 18px; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav > a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.site-nav > a:hover { background: var(--bg-2); color: var(--ink); }
.site-nav > a[aria-current] { color: var(--green-2); background: var(--green-soft); }
.site-nav > a.btn { color: var(--on-green); margin-left: 6px; } .site-nav > a.btn:hover { background: var(--green-2); }
.nav-sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 8px; }
.burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger i { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.usermenu, .dd, .pl-more { position: relative; }
.usermenu summary, .dd summary, .pl-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; }
.usermenu summary::-webkit-details-marker, .dd summary::-webkit-details-marker, .pl-more summary::-webkit-details-marker { display: none; }
.usermenu summary { padding: 3px; border-radius: 999px; margin-left: 4px; }
.usermenu summary:hover .avatar { box-shadow: 0 0 0 3px var(--green-soft); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 6px; z-index: 60; display: grid; animation: pop .14s ease-out; }
.menu a, .menu button { display: flex; gap: 10px; align-items: center; text-align: left; width: 100%; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 500 .92rem/1.3 var(--f-body); background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--bg-2); }
.menu form { margin: 0; }
.menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; }
.menu-head small { color: var(--muted); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 6px; }
.menu-hint { padding: 8px 12px; font-size: .78rem; color: var(--muted); line-height: 1.5; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

.avatar { border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; flex: none; background: var(--sage); }
.avatar.ph { background: hsl(var(--h) 38% 86%); color: hsl(var(--h) 45% 26%); font-family: var(--f-head); font-weight: 650; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar.ph { background: hsl(var(--h) 25% 28%); color: hsl(var(--h) 50% 85%); } }

.flash { background: var(--green-soft); color: var(--green-2); border-bottom: 1px solid var(--line); padding: 11px 0; font-weight: 500; font-size: .95rem; animation: slidedown .3s ease-out; }
.flash.bad { background: var(--bad-soft); color: var(--bad); } .flash.info { background: var(--water-soft); color: var(--water); }
@keyframes slidedown { from { transform: translateY(-100%); opacity: 0; } }

/* ---------- Fuß ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 34px 0 40px; margin-top: auto; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand div { display: grid; } .foot-brand small { color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; }
.site-foot nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.site-foot nav a:hover { color: var(--green); }
.site-foot p { grid-column: 1 / -1; margin: 0; }

/* ---------- Startseite ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 80px; background:
  radial-gradient(900px 500px at 85% 10%, color-mix(in srgb, var(--leaf) 22%, transparent), transparent 60%),
  radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--sun) 16%, transparent), transparent 60%); }
.hero-in { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -.025em; font-variation-settings: 'opsz' 144; }
.hero h1 em { font-style: italic; color: var(--green); font-weight: 600; }
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.hero-art { position: relative; }
.plan-frame { position: relative; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 0 0 12px; border: 1px solid var(--line); transform: rotate(-1.2deg); transition: transform .5s; }
.plan-frame:hover { transform: rotate(0) scale(1.01); }
.plan-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.plan-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.plan-bar span:nth-child(1) { background: #e9806a; } .plan-bar span:nth-child(2) { background: #e9c46a; } .plan-bar span:nth-child(3) { background: #8cc67a; }
.plan-bar b { margin-left: 8px; } .score-chip { margin-left: auto; font-style: normal; background: var(--ok-soft); color: var(--ok); padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: .78rem; }
.plan-view { aspect-ratio: 14 / 10; padding: 10px 12px 0; }
.plan-view svg { width: 100%; height: 100%; display: block; }
.float-card { position: absolute; display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: var(--sh-2); max-width: 270px; font-size: .84rem; line-height: 1.35; animation: float 6s ease-in-out infinite; }
.float-card small { display: block; color: var(--muted); }
.float-card .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; }
.dot.good { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); } .dot.bad { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.fc1 { left: -34px; top: 32%; } .fc2 { right: -22px; bottom: 8%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.section-title { text-align: center; margin-bottom: 1.2em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head .section-title { text-align: left; margin: 0; }
.features { padding: 70px 0 30px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--sh-1); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.feature p { color: var(--ink-2); margin: 0; font-size: .96rem; }
.f-ic { width: 52px; height: 52px; border-radius: 15px; margin-bottom: 16px; background: var(--green-soft) center / 28px no-repeat; }
.ic-draw { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b47' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='m4 9 7-5 9 4-2 11H7z'/%3E%3C/svg%3E"); }
.ic-space { background-color: var(--water-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a90b8' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='8.5' stroke-dasharray='3 2.6'/%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3C/svg%3E"); }
.ic-pair { background-color: var(--terra-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8643b' stroke-width='1.8'%3E%3Ccircle cx='6' cy='17' r='3'/%3E%3Ccircle cx='18' cy='7' r='3'/%3E%3Cpath d='m8.5 15 7-6' stroke-dasharray='2.5 2'/%3E%3C/svg%3E"); }
.ic-sun { background-color: #fbf1d6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c98316' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E"); }
.ic-cal { background-color: var(--sage); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b47' stroke-width='1.8'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ic-comm { background-color: var(--tox-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a3fa0' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E"); }
.steps-band { padding: 60px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 26px 24px 24px 76px; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--terra); color: #fff; font: 700 1.1rem/1 var(--f-head); }
.steps b { display: block; font-family: var(--f-head); font-size: 1.12rem; margin-bottom: 4px; }
.steps span { color: var(--ink-2); font-size: .95rem; }
.cta-band { margin: 40px 0 0; background: linear-gradient(120deg, #2f6b47, #3f7f4f 55%, #5b8f45); color: #fff; padding: 52px 0; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; border-radius: 50%; border: 40px solid rgba(255,255,255,.07); }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: .3em; } .cta-band p { margin: 0; opacity: .88; }

/* ---------- Karten, Gärten ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.card + .card { margin-top: 18px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: .2em; } .page-head p { margin: 0; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.garden-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.garden-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--sh-1); transition: transform .2s, box-shadow .2s; position: relative; }
a.garden-card:hover, .garden-card.own:hover { transform: translateY(-3px); box-shadow: var(--sh-2); color: var(--ink); }
.gc-prev { display: block; aspect-ratio: 16 / 10; background: #e9e4d4; border-bottom: 1px solid var(--line); overflow: hidden; }
/* Eigene Gärten: Aktionsmenü darf über die Kachel hinausragen */
.garden-card.own { overflow: visible; }
.garden-card.own .gc-prev { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.garden-card.own:has(details[open]) { z-index: 20; transform: none; }
.gc-actions .menu { min-width: 210px; }
.gc-prev svg { width: 100%; height: 100%; display: block; }
.gc-tx { padding: 14px 16px 12px; display: grid; gap: 3px; }
.gc-tx b { font: 650 1.08rem/1.25 var(--f-head); } .gc-tx b a { color: inherit; text-decoration: none; }
.gc-tx small { color: var(--muted); }
.gc-owner { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .88rem; }
.gc-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.gc-meta time { margin-left: auto; }
.gc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 16px 14px; min-width: 0; }
.gc-actions .dd { flex: none; }
.gc-actions .dd { margin-left: auto; }
.pill { display: inline-flex; gap: 5px; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: .8rem; font-weight: 500; }
.pill .i { width: 14px; height: 14px; }
.pill.pub { background: var(--green-soft); color: var(--green-2); }
.pill.st-pending { background: var(--warn-soft); color: var(--warn); } .pill.st-disabled { background: var(--bad-soft); color: var(--bad); } .pill.st-active { background: var(--ok-soft); color: var(--ok); }
.empty { text-align: center; padding: 50px 20px; max-width: 480px; margin: 0 auto; }
.empty p { color: var(--muted); }
.empty-ill { width: 120px; height: 100px; margin: 0 auto 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Cellipse cx='60' cy='86' rx='48' ry='9' fill='%23e3dcc8'/%3E%3Cpath d='M60 84V44' stroke='%235d8f4a' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M60 58C60 40 46 30 30 32c0 16 12 26 30 26z' fill='%237fb069'/%3E%3Cpath d='M60 50c0-16 12-26 30-25 0 16-12 25-30 25z' fill='%239cc58a'/%3E%3Cpath d='M38 86c4-10 14-14 22-14s18 4 22 14' fill='%238b6a4b'/%3E%3C/svg%3E") center / contain no-repeat; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pager a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.pager a[aria-current] { background: var(--green); color: var(--on-green); border-color: var(--green); }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 4px; gap: 2px; }
.seg a, .seg button { padding: 7px 16px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .9rem; border: 0; background: none; cursor: pointer; }
.seg .on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }

/* ---------- Gartenansicht ---------- */
.owner { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink-2); }
.like { color: var(--ink-2); } .like.on { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: var(--bad-soft); }
.like.on .i { fill: currentColor; } .like.pop .i { animation: heart .45s; }
@keyframes heart { 40% { transform: scale(1.4); } }
.gv-grid { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.gv-plan { overflow: hidden; height: min(72vh, 680px); }
.gv-side { display: grid; gap: 18px; }
.gv-side .card + .card { margin: 0; }
.photos-sec { margin-top: 40px; }
.upload-inline { display: flex; gap: 8px; align-items: center; }
.upload-inline .caption-in { width: 260px; }
.upload-inline label.busy { opacity: .6; pointer-events: none; }
.photo-grid { columns: 4 230px; column-gap: 14px; }
.photo { break-inside: avoid; margin: 0 0 14px; position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.photo img { width: 100%; height: auto; display: block; }
.photo figcaption { padding: 9px 12px; font-size: .88rem; color: var(--ink-2); }
.photo .del { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff; opacity: 0; transition: opacity .15s; }
.photo:hover .del, .photo .del:focus { opacity: 1; }
.photo.new { animation: pop .3s; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 16, 12, .92); display: grid; place-items: center; padding: 30px; animation: fade .2s; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 10px; box-shadow: var(--sh-3); }
.lightbox p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; margin: 0; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb-x { top: 18px; right: 18px; } .lb-p { left: 18px; top: 50%; } .lb-n { right: 18px; top: 50%; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Lexikon & Pflanzenseite ---------- */
.lex-tools { position: sticky; top: 66px; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); padding: 12px 0 10px; margin-bottom: 18px; display: grid; gap: 10px; }
.lib-search { position: relative; }
.lib-search .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.lib-search input { padding-left: 40px !important; border-radius: 999px !important; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); padding: 6px 13px; border-radius: 999px; font: 500 .84rem/1.2 var(--f-body); cursor: pointer; transition: all .15s; white-space: nowrap; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.on { background: var(--green); border-color: var(--green); color: var(--on-green); }
.chips.sub .chip.on { background: var(--terra); border-color: var(--terra); }
.lex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lex-card { display: flex; gap: 14px; align-items: center; padding: 22px 14px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); position: relative; transition: transform .15s, box-shadow .15s, border-color .15s; }
.lex-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); color: var(--ink); }
.lex-card[hidden] { display: none; }
.lex-ic { width: 64px; height: 64px; flex: none; background: radial-gradient(circle, var(--bg-2) 60%, transparent 61%); border-radius: 50%; }
.lex-tx { display: grid; gap: 1px; min-width: 0; }
.lex-tx b { font: 650 1.02rem/1.2 var(--f-head); }
.lex-tx small { color: var(--muted); font-style: italic; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lex-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: .8rem; color: var(--ink-2); margin-top: 3px; }
.lex-meta span { white-space: nowrap; }
.lex-cat { position: absolute; top: 9px; right: 10px; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; } .crumbs a { color: var(--muted); }
.pp-head { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; margin-bottom: 36px; }
.pp-art { width: 260px; height: 260px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, var(--surface), var(--bg-2) 70%); box-shadow: inset 0 0 0 1px var(--line), var(--sh-2); }
.latin { font-style: italic; color: var(--muted); margin-top: -.3em; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--sage); color: var(--green-2); font-size: .78rem; font-weight: 600; }
.tag.cold { background: var(--cold-soft); color: var(--cold); } .tag.tox { background: var(--tox-soft); color: var(--tox); } .tag.ok { background: var(--ok-soft); color: var(--ok); }
.note { padding: 11px 14px; border-radius: var(--r-sm); background: var(--bg-2); font-size: .92rem; margin: 10px 0; border-left: 3px solid var(--line-2); }
.note.tip { background: var(--green-soft); border-color: var(--green); }
.note.tox { background: var(--tox-soft); border-color: var(--tox); }
.note.cold { background: var(--cold-soft); border-color: var(--cold); }
.pp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.pp-grid .card + .card { margin: 0; }
.pp-grid .card { padding: 24px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin: 0 0 18px; }
.facts > div { background: var(--surface); padding: 9px 12px; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 500; font-size: .93rem; display: flex; align-items: center; gap: 6px; }
.facts.big dd { font-size: 1rem; }
.nb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nb-list a { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.nb-list a:hover { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.nb-list.bad a:hover { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.nb-list a > span:last-child { display: grid; } .nb-list small { color: var(--muted); }
.prose { font-size: 1.02rem; } .prose h2 { margin-top: 1.6em; }

/* Pflanzenfotos */
.lex-ph { position: relative; width: 72px; height: 72px; flex: none; }
.lex-ph img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.lex-ic.mini { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); box-shadow: var(--sh-1); display: grid; place-items: center; }
.pp-photo { margin: 0; position: relative; width: 340px; }
.pp-photo img { width: 340px; height: 340px; object-fit: cover; border-radius: var(--r-lg); display: block; box-shadow: var(--sh-3); }
.pp-photo figcaption, .pd-photo figcaption { font-size: .72rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.pp-photo figcaption a, .pd-photo figcaption a { color: var(--muted); }
.pp-plan { position: absolute; right: -14px; top: 270px; width: 86px; height: 86px; border-radius: 50%; background: var(--surface); box-shadow: var(--sh-2); display: grid; place-items: center; }
.pd-photo { margin: 4px 0 12px; }
.pd-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r); display: block; }
.credits { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.credits li { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; font-size: .82rem; }
.credits img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.credits b { display: block; font-size: .92rem; } .credits b a { color: inherit; } .credits span { color: var(--muted); } .credits a { color: var(--muted); }

/* Wasser-Tropfen, Sonne */
.gk-drops { display: inline-flex; gap: 2px; vertical-align: middle; }
.gk-drops i { width: 8px; height: 11px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--line-2); transform: rotate(0); clip-path: polygon(50% 0, 100% 60%, 100% 100%, 0 100%, 0 60%); }
.gk-drops i.on { background: var(--water); }
.gk-sun { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.gk-sun-s { background: var(--sun); box-shadow: 0 0 0 2px #f8e3a3; }
.gk-sun-sh { background: linear-gradient(90deg, var(--sun) 50%, #b9c3b4 50%); }
.gk-sun-h { background: linear-gradient(90deg, #e7d7a2 50%, #9aa79a 50%); }
.gk-sun-c { background: #8c9a8f; }

/* Kalenderbalken */
.gk-cal { display: grid; gap: 3px; font-size: .74rem; margin: 6px 0 14px; }
.gk-cal-row { display: grid; grid-template-columns: 84px repeat(12, 1fr); gap: 2px; align-items: center; }
.gk-cal-row > span { color: var(--muted); white-space: nowrap; }
.gk-cal-head b { text-align: center; font-weight: 600; color: var(--muted); }
.gk-cal-head b.now { color: var(--terra); }
.gk-cal-row i { height: 12px; border-radius: 3px; background: var(--bg-2); }
.gk-cal-row i.now { box-shadow: inset 0 0 0 1.5px var(--terra); }
.gk-cal i.pre { background: #b9d7a8; } .gk-cal i.sow { background: #7fb069; } .gk-cal i.plant { background: #2f6b47; } .gk-cal i.harvest { background: #e0893c; } .gk-cal i.bloom { background: #c46fb2; }
.gk-cal.compact { margin: 0; } .gk-cal.compact .gk-cal-head { display: none; } .gk-cal.compact .gk-cal-row { grid-template-columns: 0 repeat(12, 1fr); } .gk-cal.compact .gk-cal-row > span { display: none; } .gk-cal.compact .gk-cal-row i { height: 6px; }

/* ---------- Auth ---------- */
.auth-page { background: radial-gradient(800px 500px at 100% 0, color-mix(in srgb, var(--leaf) 18%, transparent), transparent 60%), var(--bg); }
.auth { display: grid; place-items: center; padding: 50px 16px 70px; }
.auth-card { width: min(470px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); padding: 34px 32px; }
.auth-card h1 { font-size: 1.9rem; }

/* ---------- Modal, Toast ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(15, 25, 18, .45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s; }
.modal-wrap.in { opacity: 1; } .modal-wrap.out { opacity: 0; }
.modal { width: min(500px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-3); transform: translateY(10px) scale(.98); transition: transform .2s; }
.modal-wrap.in .modal { transform: none; }
.modal header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal header h3 { margin: 0; }
.modal .x { border: 0; background: var(--bg-2); width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; color: var(--ink-2); }
.modal-body { padding: 16px 22px 22px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-weight: 500; font-size: .92rem; box-shadow: var(--sh-3); animation: toastin .25s ease-out; transition: opacity .3s, transform .3s; }
.toast.bad { background: var(--bad); color: #fff; } .toast.out { opacity: 0; transform: translateY(8px); }
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Profil, Konto, Admin ---------- */
.profile-head { overflow: hidden; }
.ph-cover { height: 140px; background: linear-gradient(120deg, #2f6b47 0%, #5b8f45 50%, #c9b36a 100%); position: relative; }
.ph-cover::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 60V38M40 46c0-8-6-12-13-11 0 7 6 11 13 11zM40 42c0-7 5-11 12-10 0 7-5 10-12 10z' fill='none' stroke='rgba(255,255,255,.14)' stroke-width='2'/%3E%3C/svg%3E"); }
.ph-body { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 24px; padding: 0 28px 24px; align-items: end; }
.ph-avatar { margin-top: -48px; } .ph-avatar .avatar { border: 4px solid var(--surface); box-shadow: var(--sh-2); }
.ph-tx { padding-top: 14px; } .ph-tx h1 { margin-bottom: .1em; }
.ph-tx .i { width: 14px; height: 14px; }
.ph-stats { display: flex; gap: 22px; text-align: center; }
.ph-stats div { display: grid; } .ph-stats b { font: 650 1.5rem/1 var(--f-head); } .ph-stats small { color: var(--muted); font-size: .8rem; }
.ph-actions { grid-column: 3; justify-self: end; }
.avatar-edit { display: flex; gap: 16px; align-items: center; }
.avatar-edit > div { display: grid; gap: 6px; justify-items: start; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 10px 0 24px; }
.stat { padding: 16px; display: grid; } .stat b { font: 650 1.7rem/1 var(--f-head); } .stat small { color: var(--muted); }
.stat-row .card + .card { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { color: var(--green); border-color: var(--green); }
.badge { font-style: normal; background: var(--bad); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: .75rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border: 0; }
.user-cell { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.user-cell span { display: grid; } .user-cell small { color: var(--muted); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions form { margin: 0; }
.report-list { display: grid; gap: 12px; } .report-list .card + .card { margin: 0; }
.rep-img { max-width: 200px; border-radius: 8px; display: block; margin: 8px 0; }
.narrow-form { max-width: 620px; }

/* ---------- Community-Chat ---------- */
.community-page main { display: flex; }
.chat-wrap { display: grid; grid-template-columns: 290px 1fr; gap: 22px; padding: 26px 0; height: calc(100vh - 66px); min-height: 520px; }
.rooms { overflow: auto; }
.rooms h2 { font-size: 1.1rem; } .rooms h3 { font: 600 .76rem/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 10px; }
.rooms nav { display: grid; gap: 4px; }
.room { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.room:hover { background: var(--surface); border-color: var(--line); }
.room.on { background: var(--surface); border-color: var(--line); box-shadow: var(--sh-1); }
.room > span:nth-child(2) { display: grid; min-width: 0; } .room small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room em { margin-left: auto; font-style: normal; font-size: .75rem; color: var(--muted); background: var(--bg-2); border-radius: 999px; padding: 1px 8px; }
.room-ic { width: 38px; height: 38px; border-radius: 11px; flex: none; background: var(--green-soft); }
.r-gemuese { background: #e7f0d6; } .r-obst { background: #f8e0dc; } .r-zier { background: #f1e3f5; } .r-hilfe { background: var(--water-soft); } .r-fotos { background: #fbefd2; }
.room-ic { display: grid; place-items: center; } .room-ic::before { font-size: 18px; }
.r-allgemein::before { content: '☕'; } .r-gemuese::before { content: '🥕'; } .r-obst::before { content: '🍎'; } .r-zier::before { content: '🌸'; } .r-hilfe::before { content: '🩺'; } .r-fotos::before { content: '📷'; }
.online { display: flex; flex-wrap: wrap; gap: 6px; } .online a { position: relative; } .online a::after { content: ''; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid var(--bg); }
.rules { margin-top: 24px; padding: 12px; background: var(--bg-2); border-radius: 10px; }
.chat { display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.chat-head h1 { font-size: 1.35rem; margin: 0; } .chat-head p { margin: 0; }
.room-select { display: none; width: auto !important; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); }
.chat-load { text-align: center; margin-bottom: 10px; }
.day { text-align: center; margin: 14px 0 8px; position: relative; }
.day::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.day span { position: relative; background: var(--surface-2); padding: 0 12px; font-size: .78rem; color: var(--muted); font-weight: 500; }
.msg { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; padding: 7px 10px; border-radius: 12px; position: relative; animation: msgin .2s ease-out; }
.msg:hover { background: var(--surface); }
.msg-av { padding-top: 2px; }
.msg-h { display: flex; gap: 8px; align-items: baseline; } .msg-h a { color: var(--ink); text-decoration: none; } .msg-h time { font-size: .75rem; color: var(--muted); }
.msg.mine .msg-h b { color: var(--green); }
.msg p { margin: 2px 0 0; overflow-wrap: anywhere; }
.msg-img { display: inline-block; margin-top: 6px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); max-width: 320px; }
.msg-img img { display: block; height: auto; }
.msg-act { opacity: 0; display: flex; gap: 2px; transition: opacity .15s; }
.msg:hover .msg-act, .msg-act:focus-within { opacity: 1; }
.msg-act .ib { width: 30px; height: 30px; } .msg-act .i { width: 16px; height: 16px; }
.msg.deleted { opacity: .65; }
@keyframes msgin { from { opacity: 0; transform: translateY(4px); } }
.chat-empty { margin: auto; text-align: center; color: var(--muted); }
.chat-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-input { flex: 1; display: grid; gap: 6px; }
.chat-input textarea { border-radius: 20px; padding: 10px 16px; max-height: 160px; }
.attach { color: var(--muted); cursor: pointer; }
.attach-preview { position: relative; width: 84px; } .attach-preview img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; display: block; }
.attach-preview .ib { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; background: var(--ink); color: var(--bg); border-radius: 50%; }
.send { width: 46px; height: 46px; padding: 0; border-radius: 50%; }

/* =========================================================================
   Planer
   ========================================================================= */
.planner-page { overflow: hidden; height: 100vh; height: 100dvh; }
.main-full { flex: 1; display: flex; min-height: 0; }
.pl-app { flex: 1; display: flex; flex-direction: column; min-height: 0; height: 100%; width: 100%; background: var(--bg); }
.pl-app.embed { height: 100%; }
.pl-top { display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: var(--surface); border-bottom: 1px solid var(--line); z-index: 20; }
.pl-title { min-width: 0; flex: 1; }
.pl-name { border: 1px solid transparent !important; background: transparent !important; font: 650 1.12rem/1.2 var(--f-head) !important; padding: 3px 6px !important; margin-left: -6px; max-width: 420px; box-shadow: none !important; }
.pl-name:hover { border-color: var(--line) !important; } .pl-name:focus { border-color: var(--green) !important; background: var(--surface) !important; }
.pl-sub { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); align-items: center; }
.pl-sub .i { width: 15px; height: 15px; }
.pl-save { display: inline-flex; align-items: center; gap: 6px; }
.pl-save::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.pl-save[data-state=dirty]::before, .pl-save[data-state=saving]::before { background: var(--warn); }
.pl-save[data-state=err] { color: var(--bad); } .pl-save[data-state=err]::before { background: var(--bad); }
.pl-actions { display: flex; align-items: center; gap: 10px; }
.pl-actions .grp { display: flex; gap: 2px; padding: 0 6px; border-right: 1px solid var(--line); }
.ib.tg[aria-pressed=true] { background: var(--green-soft); color: var(--green-2); }
.pl-more .menu { min-width: 280px; max-height: calc(100dvh - 80px); overflow-y: auto; }
.show-s { display: none !important; }
.menu-tg::after { content: ''; margin-left: auto; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--line-2); flex: none; }
.menu-tg[aria-pressed=true]::after { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--green); }
.pl-main { flex: 1; display: grid; grid-template-columns: 76px 1fr 380px; min-height: 0; }
.pl-app[data-mode=view] .pl-main { grid-template-columns: 1fr 360px; }
.pl-tools { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; position: relative; z-index: 15; }
.pl-tools > button { width: 62px; padding: 8px 2px 6px; border: 0; background: none; border-radius: 12px; cursor: pointer; display: grid; justify-items: center; gap: 3px; color: var(--ink-2); font: 500 .7rem/1 var(--f-body); }
.pl-tools > button .i { width: 22px; height: 22px; }
.pl-tools > button:hover { background: var(--bg-2); }
.pl-tools > button.on { background: var(--green); color: var(--on-green); box-shadow: 0 4px 12px -4px rgba(47,107,71,.6); }
.pl-areatypes { position: absolute; left: calc(100% + 8px); top: 60px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); padding: 12px; width: 230px; display: grid; gap: 8px; animation: pop .15s; }
.pl-areatypes label { display: grid; gap: 4px; font: 600 .8rem/1.2 var(--f-body); }
.pl-areatypes small { color: var(--muted); font-size: .76rem; line-height: 1.4; }
.pl-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #ece7da; background-image: radial-gradient(#d9d2c0 1px, transparent 1px); background-size: 22px 22px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pl-stage { background-color: #1a211c; background-image: radial-gradient(#26302a 1px, transparent 1px); } }
.pl-canvas { position: absolute; inset: 0; }
.gk-svg { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; cursor: default; }
.gk-svg[data-tool=rect], .gk-svg[data-tool=poly], .gk-svg.placing { cursor: crosshair; }
.gk-svg[data-tool=pan], .gk-svg.pan-ready, .gk-svg.ro { cursor: grab; } .gk-svg.panning { cursor: grabbing; will-change: transform; }
.gk-area { cursor: pointer; } .gk-svg.placing .gk-area, .gk-svg[data-tool=rect] .gk-area, .gk-svg[data-tool=poly] .gk-area { cursor: crosshair; }
.gk-area.sel polygon:first-child { stroke: var(--terra); stroke-width: 6px; }
.gk-space { fill: #2f6b47; fill-opacity: .05; stroke: #2f6b47; stroke-opacity: .35; stroke-width: 1.4; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.gk-row-band { opacity: .42; }
.gk-pl { cursor: grab; }
.gk-pl .gk-halo { fill: transparent; stroke: transparent; stroke-width: 3; vector-effect: non-scaling-stroke; }
.gk-pl .gk-hit { stroke: transparent; stroke-linecap: round; transition: stroke .2s; }
.gk-pl.sel .gk-hit { stroke: rgba(200,100,59,.28); }
.gk-pl.is-bad .gk-hit { stroke: rgba(194,65,45,.26); } .gk-pl.is-tight .gk-hit { stroke: rgba(217,138,28,.24); } .gk-pl.is-warn .gk-hit { stroke: rgba(217,165,28,.2); }
.gk-pl.rel-good .gk-hit { stroke: rgba(47,138,79,.3); } .gk-pl.rel-bad .gk-hit { stroke: rgba(194,65,45,.32); }
.gk-pl.sel .gk-halo { stroke: var(--terra); stroke-width: 3.5; stroke-dasharray: none; fill: rgba(200,100,59,.1); }
.gk-pl.is-bad .gk-halo { stroke: #c2412d; fill: rgba(194,65,45,.13); stroke-width: 3.5; }
.gk-pl.is-tight .gk-halo { stroke: #d98a1c; fill: rgba(217,138,28,.12); }
.gk-pl.is-warn .gk-halo { stroke: #d9a51c; stroke-dasharray: 4 3; }
.gk-pl.rel-none, .gk-pl.rel-same { opacity: .32; }
.gk-pl.rel-good { opacity: 1; } .gk-pl.rel-good .gk-halo { stroke: #2f8a4f; fill: rgba(47,138,79,.16); stroke-width: 3; animation: none; }
.gk-pl.rel-bad { opacity: 1; } .gk-pl.rel-bad .gk-halo { stroke: #c2412d; fill: rgba(194,65,45,.18); stroke-width: 3; }
.gk-pl.rel-same { opacity: .7; }
@keyframes pulse { 50% { stroke-opacity: .35; } }
.gk-link { stroke-width: 2.5; stroke-dasharray: 7 5; stroke-linecap: round; pointer-events: none; }
.gk-link.good { stroke: #2f8a4f; } .gk-link.bad { stroke: #c2412d; stroke-width: 3; }
.gk-handle { fill: #fff; stroke: var(--terra); stroke-width: 2.5; vector-effect: non-scaling-stroke; cursor: move; }
.gk-handle.start { fill: var(--terra); }
.gk-mid { fill: var(--terra); fill-opacity: .55; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: copy; }
.gk-draft { fill: rgba(200,100,59,.12); stroke: var(--terra); stroke-width: 2.5; stroke-dasharray: 8 5; vector-effect: non-scaling-stroke; }
.gk-ghost { pointer-events: none; }
.pl-hud { position: absolute; z-index: 5; }
.pl-hud.tl { left: 14px; bottom: 14px; } .pl-hud.tr { right: 14px; top: 14px; } .pl-hud.br { right: 14px; bottom: 14px; }
.pl-scale { display: flex; align-items: center; gap: 8px; font: 600 .75rem/1 var(--f-body); color: var(--ink-2); background: var(--surface); padding: 6px 10px; border-radius: 8px; opacity: .92; }
.pl-scale i { display: block; height: 7px; border: 2px solid var(--ink-2); border-top: 0; }
.zoom { display: flex; gap: 2px; background: var(--surface); border-radius: 12px; padding: 3px; box-shadow: var(--sh-2); border: 1px solid var(--line); }
.pl-score { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--sh-2); padding: 5px 14px 5px 5px; display: flex; gap: 10px; align-items: center; cursor: default; }
.pl-score:empty { display: none; }
.score-tx { display: grid; line-height: 1.15; } .score-tx b { font-size: .82rem; } .score-tx small { font-size: .74rem; color: var(--muted); }
.score-ring { --v: 0; --c: var(--ok); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--bg-2) 0); position: relative; flex: none; }
.score-ring::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.score-ring b { position: relative; font: 700 .86rem/1 var(--f-body); }
.score-ring.mid { --c: var(--warn); } .score-ring.low { --c: var(--bad); }
.score-ring.big { width: 74px; height: 74px; } .score-ring.big::before { inset: 7px; } .score-ring.big b { font: 650 1.45rem/1 var(--f-head); }
.pl-placebar { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); padding: 6px 8px 6px 10px; border-radius: 999px; box-shadow: var(--sh-3); font-size: .86rem; max-width: calc(100% - 200px); animation: pop .2s; }
.pl-placebar .gk-icon { background: var(--bg); border-radius: 50%; }
.pl-placebar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-placebar .btn-ghost { background: rgba(255,255,255,.12); color: inherit; border-color: transparent; }
.pl-ghost { position: absolute; left: 14px; top: 64px; z-index: 6; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); padding: 10px 12px; font-size: .82rem; max-width: 330px; display: grid; gap: 4px; pointer-events: none; }
.pl-ghost .good { color: var(--ok); } .pl-ghost .bad { color: var(--bad); font-weight: 500; } .pl-ghost .warn { color: var(--warn); }
.pl-empty { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 4; }
.pe-card { pointer-events: auto; background: var(--surface); border-radius: var(--r-lg); padding: 26px 28px; box-shadow: var(--sh-3); border: 1px solid var(--line); max-width: 420px; animation: pop .3s; }
.pe-card ol { padding-left: 1.2em; color: var(--ink-2); } .pe-card li { margin-bottom: 6px; }
.pe-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pl-sheet-toggle { display: none; }
.sheet-handle { display: none; }
.pl-selbar { display: none; }

/* Seitenleiste */
.pl-side { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; z-index: 10; }
.side-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); padding: 6px 6px 0; gap: 2px; }
.pl-app[data-mode=view] .side-tabs { grid-template-columns: repeat(4, 1fr); }
.side-tab { border: 0; background: none; padding: 8px 2px 9px; display: grid; justify-items: center; gap: 3px; font: 500 .72rem/1 var(--f-body); color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; position: relative; border-radius: 8px 8px 0 0; }
.side-tab:hover { color: var(--ink); background: var(--bg-2); }
.side-tab.on { color: var(--green-2); border-color: var(--green); }
.side-tab .cnt { position: absolute; top: 3px; right: calc(50% - 22px); background: var(--bad); color: #fff; font-size: .64rem; border-radius: 999px; padding: 1px 5px; min-width: 16px; }
.side-panel { flex: 1; overflow-y: auto; min-height: 0; }
.side-panel[data-panel=pflanzen] { display: flex; flex-direction: column; overflow: hidden; }
.side-panel[data-panel=pflanzen][hidden] { display: none; }
.side-panel[data-panel=pflanzen] .lib-search { margin: 12px 12px 8px; flex: none; }
.side-panel .chips { padding: 2px 12px 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; flex: none; }
.side-panel .chips::-webkit-scrollbar { display: none; }
.lib-rel { flex: none; margin: 0 12px 8px; padding: 7px 10px; background: var(--bg-2); border-radius: 8px; font-size: .78rem; }
.lib-rel .good { color: var(--ok); font-weight: 600; } .lib-rel .bad { color: var(--bad); font-weight: 600; }
.lib-list { overflow-y: auto; padding: 0 8px 16px; display: grid; gap: 4px; align-content: start; }
.lib-card { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; cursor: pointer; border: 1.5px solid transparent; transition: background .12s, border-color .12s, opacity .2s; position: relative; }
.lib-card:hover { background: var(--bg-2); }
.lib-card.armed { border-color: var(--green); background: var(--green-soft); }
.lib-card.rel-good { background: color-mix(in srgb, var(--ok-soft) 70%, transparent); }
.lib-card.rel-bad { background: var(--bad-soft); }
.lib-card.rel-bad .lib-ic { filter: grayscale(.5); }
.lib-card.rel-none { opacity: .55; }
.lib-ic { width: 48px; height: 48px; display: grid; place-items: center; }
.lib-ic img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; }
.lib-tx { min-width: 0; display: grid; line-height: 1.25; }
.lib-tx b { font-size: .93rem; } .lib-tx small { color: var(--muted); font-style: italic; font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-meta { display: flex; gap: 8px; align-items: center; font-size: .74rem; color: var(--ink-2); margin-top: 2px; }
.lib-badge { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.lib-badge.good { background: var(--ok); color: #fff; } .lib-badge.bad { background: var(--bad); color: #fff; }
.lib-info { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); font: italic 700 .8rem/1 Georgia, serif; cursor: pointer; }
.lib-info:hover { border-color: var(--green); color: var(--green); }
.pd-head { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; margin-bottom: 8px; }
.pd-head h3 { margin: 0; font-size: 1.3rem; } .pd-head .latin { margin: 0; font-size: .86rem; }
.pd-head .tags { margin: 6px 0 0; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.empty-detail { text-align: center; padding: 30px 18px; color: var(--muted); }
.empty-detail .ill { width: 90px; height: 76px; margin: 0 auto 14px; background: inherit; }
.empty-detail .ill { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 100'%3E%3Cellipse cx='60' cy='86' rx='48' ry='9' fill='%23e3dcc8'/%3E%3Cpath d='M60 84V44' stroke='%235d8f4a' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M60 58C60 40 46 30 30 32c0 16 12 26 30 26z' fill='%237fb069'/%3E%3Cpath d='M60 50c0-16 12-26 30-25 0 16-12 25-30 25z' fill='%239cc58a'/%3E%3C/svg%3E") center / contain no-repeat; }
.hint { display: grid; gap: 2px; text-align: left; width: 100%; padding: 10px 12px 10px 14px; border-radius: 10px; border: 1px solid var(--line); border-left: 4px solid var(--line-2); background: var(--surface); margin-bottom: 8px; font: inherit; color: inherit; cursor: pointer; transition: transform .12s, box-shadow .12s; }
button.hint:hover { transform: translateX(2px); box-shadow: var(--sh-1); }
.hint b { font-size: .9rem; } .hint span { font-size: .82rem; color: var(--ink-2); }
.hint em { font-style: normal; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hint.bad { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad-soft) 55%, var(--surface)); } .hint.bad em { color: var(--bad); }
.hint.tight { border-left-color: #d98a1c; } .hint.tight em { color: #c97a14; }
.hint.warn { border-left-color: var(--warn); } .hint.warn em { color: var(--warn); }
.hint.info { border-left-color: var(--water); } .hint.info em { color: var(--water); }
.hint.tox { border-left-color: var(--tox); } .hint.tox em { color: var(--tox); }
.hint.ok { border-left-color: var(--ok); background: var(--ok-soft); cursor: default; }
.inst-hints { margin-bottom: 10px; }
.check-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; padding: 14px; background: var(--bg-2); border-radius: var(--r); }
.check-head h3 { margin: 0 0 2px; font-size: 1.1rem; } .check-head p { margin: 0; font-size: .84rem; }
.row-info { background: var(--bg-2); padding: 8px 12px; border-radius: 8px; font-size: .88rem; }
.nbs { display: flex; flex-wrap: wrap; gap: 5px; }
.nb { display: inline-flex; gap: 5px; align-items: center; padding: 3px 10px 3px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 500 .8rem/1.2 var(--f-body); color: var(--ink); cursor: default; }
button.nb { cursor: pointer; } button.nb:hover { border-color: currentColor; }
.nb.good { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.nb.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.nb.mixed { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.nb.conf-e, .conf-e-demo { border: 1px dashed currentColor; }
.conf-e-demo { padding: 0 5px; border-radius: 6px; }
.conf-b { font-style: normal; font-size: .72em; margin-left: 4px; opacity: .85; }
.conf-legend { margin-top: 6px; }
.conf { display: inline-block; font-size: .72rem; padding: 1px 7px; border-radius: 99px; margin-left: 6px; background: var(--line); color: var(--muted); vertical-align: 1px; white-space: nowrap; }
.conf.b { background: var(--ok); color: #fff; } .conf.q { background: var(--ok-soft); color: var(--ok); } .conf.x { background: var(--warn-soft); color: var(--warn); }
.nb-list.mixed a:hover { background: var(--warn-soft); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.src-list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .9rem; }
.src-list small { color: var(--muted); }
.area-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.area-head h3 { margin: 0; } .area-head p { margin: 0; font-size: .85rem; }
.area-head .sw { width: 44px; height: 44px; border-radius: 12px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.seg { width: 100%; } .field .seg { display: flex; }
.field .seg button { flex: 1; padding: 8px 4px; font-size: .78rem; }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 5px 4px; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.mini-list li > span { flex: 1; display: grid; line-height: 1.2; } .mini-list li small { color: var(--muted); font-size: .74rem; }
.mini-list li b { font-variant-numeric: tabular-nums; }
.mini-list li a { flex: 1; color: var(--ink); text-decoration: none; }
.list-sum { padding: 12px 14px; background: var(--green-soft); border-radius: 10px; font-size: .9rem; color: var(--green-2); }
.month-nav { display: flex; align-items: center; justify-content: space-between; background: var(--bg-2); border-radius: 12px; padding: 4px; margin-bottom: 8px; }
.month-nav b { font-family: var(--f-head); font-size: 1.1rem; }
.month-nav button { width: 36px; height: 36px; border: 0; background: var(--surface); border-radius: 9px; font-size: 1.3rem; cursor: pointer; box-shadow: var(--sh-1); color: var(--ink); }
.cal-h { display: flex; align-items: center; gap: 8px; }
.cal-h::before { content: ''; width: 10px; height: 10px; border-radius: 3px; }
.cal-h.pre::before { background: #b9d7a8; } .cal-h.sow::before { background: #7fb069; } .cal-h.plant::before { background: #2f6b47; } .cal-h.harvest::before { background: #e0893c; } .cal-h.bloom::before { background: #c46fb2; }
.year { display: grid; gap: 6px; }
.yr { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: center; font-size: .8rem; }
.yr > span { display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; } .hero-art { max-width: 640px; margin: 0 auto; width: 100%; }
  .fc1 { left: 0; } .fc2 { right: 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .pl-main { grid-template-columns: 70px 1fr 340px; }
  .gv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .site-nav { position: fixed; inset: 66px 0 auto; flex-direction: column; align-items: stretch; background: var(--surface); padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--sh-3); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .22s, opacity .22s, visibility 0s .22s; z-index: -1; gap: 2px; max-height: calc(100dvh - 66px); overflow-y: auto; }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; transition: transform .22s, opacity .22s; }
  .nav-open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); } .nav-open .burger i:nth-child(2) { opacity: 0; } .nav-open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav > a { padding: 12px; } .nav-sep { display: none; }
  .usermenu .menu { position: static; box-shadow: none; border: 0; padding: 0; } .usermenu summary { display: none; } .usermenu { display: block; } .usermenu:not([open]) .menu { display: grid; }
  .steps, .pp-grid { grid-template-columns: 1fr; }
  .pp-head { grid-template-columns: 1fr; justify-items: center; text-align: center; } .pp-head .tags { justify-content: center; }
  .pp-art { width: 200px; height: 200px; }
  .pp-photo, .pp-photo img { width: min(340px, 100%); height: auto; aspect-ratio: 1; } .pp-plan { right: 4px; top: auto; bottom: 46px; }
  .chat-wrap { grid-template-columns: 1fr; height: calc(100dvh - 66px); padding: 0; width: 100%; }
  .rooms { display: none; } .room-select { display: block; } .chat { border-radius: 0; border-left: 0; border-right: 0; }
  .ph-body { grid-template-columns: 1fr; text-align: center; justify-items: center; } .ph-actions { grid-column: auto; justify-self: center; }
  .cta-in { flex-direction: column; text-align: center; }
  .foot-in { grid-template-columns: 1fr; } .site-foot nav { justify-content: flex-start; }

  /* Planer mobil: Werkzeuge unten, Seitenleiste als Bottom-Sheet */
  .pl-main { grid-template-columns: 1fr; grid-template-rows: 1fr auto; position: relative; }
  .pl-app[data-mode=view] .pl-main { grid-template-columns: 1fr; }
  .pl-tools { flex-direction: row; justify-content: center; border-right: 0; border-top: 1px solid var(--line); grid-row: 2; padding: 6px; padding-bottom: max(6px, env(safe-area-inset-bottom)); z-index: 40; }
  .pl-tools > button { width: auto; flex: 1; max-width: 90px; }
  .pl-areatypes { left: 8px; right: 8px; top: auto; bottom: calc(100% + 8px); width: auto; }
  .pl-stage { grid-row: 1; }
  .pl-side { position: absolute; left: 0; right: 0; bottom: 0; height: min(62vh, 560px); border-left: 0; border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; box-shadow: 0 -12px 30px -10px rgba(0,0,0,.25); transform: translateY(calc(100% - 78px)); transition: transform .3s cubic-bezier(.2,.8,.2,1); z-index: 30; }
  .pl-app[data-mode=view] .pl-side { bottom: 0; }
  .pl-app.sheet-open .pl-side { transform: none; }
  .sheet-handle { display: grid; place-items: center; width: 100%; height: 22px; border: 0; background: none; padding: 0; cursor: pointer; flex: none; }
  .sheet-handle i { width: 44px; height: 5px; border-radius: 5px; background: var(--line-2); }
  .side-tabs { padding-top: 0 !important; }
  .pl-app.sheet-open .sheet-handle i { background: var(--muted); }
  .pl-selbar { position: absolute; left: 10px; right: 10px; bottom: 152px; z-index: 25; display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-3); padding: 6px 6px 6px 14px; animation: pop .18s; }
  .pl-selbar[hidden] { display: none !important; }
  .pl-selbar .sb-tx { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
  .pl-selbar .sb-tx b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
  .pl-selbar .sb-tx small { color: var(--muted); font-size: .76rem; }
  .pl-selbar button { min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: 600 .86rem/1 var(--f-body); padding: 0 10px; cursor: pointer; }
  .pl-selbar button[data-sb=details] { background: var(--green); color: var(--on-green); border-color: var(--green); }
  .pl-selbar button.danger { color: var(--bad); }
  .side-tabs::before { display: none; }
  .side-tabs::after { content: none; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); transform: translateX(-50%); }
  .side-tabs { position: relative; padding-top: 14px; }
  .pl-main:has(.pl-tools) .pl-side { bottom: 64px; }
  .pl-sheet-toggle { display: none; }
  .hide-s { display: none !important; }
  .show-s { display: flex !important; } .menu-sep.show-s { display: block !important; }
  .pl-placebar { max-width: calc(100% - 24px); top: 64px; }
  .pl-hud.tr { top: 10px; right: 10px; } .pl-hud.br { bottom: 74px; } .pl-hud.tl { bottom: 74px; }
  .pl-ghost { top: auto; bottom: 130px; left: 10px; right: 10px; max-width: none; }
  .pl-actions .grp { border: 0; padding: 0; }
  .score-tx { display: none; } .pl-score { padding: 4px; }
  .pl-name { max-width: 52vw; font-size: 1rem !important; }
  .pl-sub { white-space: nowrap; overflow: hidden; } .pl-sub .pl-save { display: none; }
  .pl-top { gap: 8px; padding: 6px 10px; }
  .gv-plan { height: 70vh; }
  .gv-plan .pl-side { bottom: 0; }
}
@media (max-width: 600px) {
  .row2 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 50px; }
  .float-card { position: static; margin-top: 10px; max-width: none; animation: none; }
  .plan-frame { transform: none; }
  .auth-card { padding: 26px 20px; }
  .page-head { align-items: flex-start; }
  .upload-inline { flex-direction: column; align-items: stretch; } .upload-inline .caption-in { width: 100%; }
  .photo-grid { columns: 2 140px; }
  .table td, .table th { padding: 8px; }
  .chat-head { padding: 10px 14px; } .chat-log { padding: 10px; }
  .msg { grid-template-columns: 34px 1fr; } .msg-act { grid-column: 2; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Druck: nur der Plan */
@media print {
  .planner-page { overflow: visible; height: auto; }
  .pl-top, .pl-tools, .pl-side, .pl-hud.br, .pl-placebar, .pl-ghost, .pl-empty, .site-head, .site-foot { display: none !important; }
  .pl-main { display: block; } .pl-stage { position: static; height: 90vh; background: #fff; } .pl-canvas { position: static; height: 90vh; }
}
