/* ============================================================
   Erntezeit v29 — Designsystem nach Vorlage
   Farben · Kopfleiste · Bottom-Navigation · Buttons · Karten ·
   Status-Tags · Listen · Fortschritt · Wetterkarten · Leerzustände
   Wird nach style.css geladen und überschreibt dessen Grundwerte.
   ============================================================ */

:root {
  /* Grüntöne */
  --g900: #245232;   /* Tannengrün   – Primär, aktive Navigation */
  --g700: #4A8C3F;   /* Blattgrün    – Fortschritt, zweiter Button */
  --g400: #A8CF8E;   /* Maigrün      – Balken hell, Akzente */
  --g200: #D4E2CB;   /* Salbei       – Flächen, Ringe (Hintergrund) */
  --cream: #F5F2EA;  /* Leinen       – Seitenhintergrund */
  --sand: #ECE3D3;   /* Sand         – warme Flächen */
  /* Akzente */
  --c-brown: #8B4A14;
  --c-orange: #F29A1A;
  --c-red: #E2483B;
  --c-purple: #B07CD6;
  --c-blue: #5A9BDB;
  --c-slate: #545C66;
  /* Pastell für Tags und Chips */
  --t-green: #E4F0DC;  --t-green-fg: #2F6B2A;
  --t-orange: #FDEBD2; --t-orange-fg: #B0660A;
  --t-red: #FBE1DD;    --t-red-fg: #BF3A2E;
  --t-blue: #E2EEF9;   --t-blue-fg: #2C6DAE;
  --t-purple: #F1E6F9; --t-purple-fg: #8446B5;
  --t-slate: #ECEEF0;  --t-slate-fg: #4A525C;

  /* bestehende Variablen auf die Vorlage abbilden */
  --primary: var(--g900);
  --primary-dk: #1B3F26;
  --secondary: var(--g700);
  --accent: var(--c-red);
  --yellow: var(--c-orange);
  --blue: var(--c-blue);
  --sage: var(--g200);
  --mint: #EEF4E8;
  --beige: var(--cream);
  --tile: #F2F2EC;
  --gray: #6E756C;
  --dark: #1E2A21;
  --line: #E7E6DE;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(36,82,50,.04), 0 6px 22px rgba(36,82,50,.07);
  --shadow-lg: 0 6px 16px rgba(36,82,50,.08), 0 22px 44px rgba(36,82,50,.12);
  --glass: rgba(255,255,255,.16);
  --glass-line: rgba(255,255,255,.28);
  --tb-h: 58px;
}

body { background: var(--cream); color: var(--dark); }
h1, h2, h3 { color: var(--g900); }
h2 { font-size: 1.05rem; font-weight: 600; }
a { color: var(--g700); }
::selection { background: var(--g400); }

/* ---------- Kopfleiste ---------- */
.topbar {
  background: rgba(245,242,234,.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  color: var(--g900); border-bottom: 1px solid rgba(36,82,50,.06);
  min-height: var(--tb-h); gap: .6rem; padding: .45rem 1rem; padding-top: calc(.45rem + env(safe-area-inset-top));
  transition: background .25s, border-color .25s;
}
.brand { color: var(--g900); letter-spacing: .08em; font-size: .95rem; }
.brand-mark { background: none; border-radius: 10px; width: 36px; height: 36px; box-shadow: 0 3px 10px rgba(22,57,31,.25); overflow: hidden; }
.brand-mark svg { width: 36px; height: 36px; display: block; }
.tb-title { display: none; }
.tb-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: inline-grid; place-items: center; color: var(--g900); text-decoration: none;
  transition: background .15s;
}
.tb-btn:hover { background: rgba(36,82,50,.07); text-decoration: none; }
.tb-mobile { display: none; }
.tb-right { display: flex; align-items: center; gap: .3rem; margin-left: .4rem; }
.tb-dot {
  position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
  background: var(--c-orange); color: #fff; font-style: normal; font-size: .62rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--cream); line-height: 1;
}
.topuser { background: var(--g700); margin-left: 0; width: 34px; height: 34px; }

/* Desktop-Navigation als Pillen */
.topnav a { color: var(--gray); flex-direction: row; gap: .45rem; font-size: .84rem; padding: .5rem .85rem; border-radius: 999px; min-width: 0; }
.topnav a:hover { color: var(--g900); background: rgba(36,82,50,.06); }
.topnav a.active { color: #fff; background: var(--g900); }
.topnav a.active::after { display: none; }

/* ---------- Schwebende Bottom-Navigation ---------- */
@media (max-width: 900px) {
  .tb-mobile { display: inline-grid; }
  .topbar .brand-name { display: none; }
  .topbar .tb-title {
    display: block; flex: 1; min-width: 0; font-family: var(--ff-head); font-weight: 600; font-size: 1rem;
    color: var(--g900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .topbar .tb-mobile ~ .brand { display: none; }
  .content { padding: 1rem 1rem .5rem; }

  .bottomnav {
    left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 7px; border: 1px solid rgba(36,82,50,.07); border-radius: 30px;
    background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(36,82,50,.16), 0 2px 6px rgba(36,82,50,.06);
    justify-content: space-between; gap: 2px;
  }
  .bottomnav a {
    flex: 0 0 auto; width: 48px; height: 48px; padding: 0; border-radius: 50%;
    display: grid; place-items: center; color: #7C857A; transition: background .18s, color .18s, transform .12s;
  }
  .bottomnav a span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .bottomnav a svg { width: 22px; height: 22px; stroke-width: 1.7; }
  .bottomnav a.active { background: var(--g900); color: #fff; box-shadow: 0 6px 14px rgba(36,82,50,.28); }
  .bottomnav a.active svg { stroke-width: 1.9; }
  .bottomnav a:active { transform: scale(.92); }
  .installbar { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- Kopfleiste über Titelfoto (Handy) ---------- */
@media (max-width: 900px) {
  .overlay-top .topbar {
    position: fixed; left: 0; right: 0; top: 0; background: transparent; border-color: transparent;
    -webkit-backdrop-filter: none; backdrop-filter: none; color: #fff;
  }
  .overlay-top .topbar .tb-btn, .overlay-top .topbar .brand { color: #fff; }
  .overlay-top .topbar .tb-title { color: #fff; opacity: 0; transition: opacity .2s; }
  .overlay-top .topbar .brand-mark { box-shadow: 0 3px 12px rgba(0,0,0,.25); }
  .overlay-top .topbar .tb-btn { background: rgba(20,40,26,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .overlay-top .topbar .tb-dot { border-color: transparent; }
  .overlay-top.scrolled .topbar {
    background: rgba(28,62,38,.93); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 4px 18px rgba(0,0,0,.12);
  }
  .overlay-top.scrolled .topbar .tb-title { opacity: 1; }
  .overlay-top.scrolled .topbar .tb-btn { background: transparent; }
  .overlay-top .content { padding-top: 0; }

  /* Titelfoto randlos */
  .has-hero .page-head {
    margin: 0 -1rem 1.1rem; border-radius: 0 0 30px 30px; box-shadow: none;
    min-height: calc(240px + env(safe-area-inset-top));
    padding: calc(var(--tb-h) + 1.4rem + env(safe-area-inset-top)) 1.2rem 1.4rem;
  }
}
.has-hero .page-head h1 { font-size: 1.7rem; }
.has-hero .page-head .ph-crumb { color: rgba(255,255,255,.85); font-size: .82rem; }
.ph-crumb { display: inline-block; margin-bottom: .2rem; font-size: .82rem; }

/* ---------- Karten ---------- */
.card { border: none; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.15rem 1.15rem 1.1rem; }
.card.soft { background: #EEF0E8; box-shadow: none; }
.card.dark { background: var(--g900) var(--card-img, none) center/cover; color: #fff; }
.card.dark h2 { color: #fff; }
.card-head { margin-bottom: .8rem; }
.card-head h2 { font-size: 1.02rem; }
.card-head .link { font-weight: 600; font-size: .8rem; color: var(--g700); }
.card.accent-top { border-top: none; position: relative; overflow: hidden; }
.card.accent-top::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--g700); }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; padding: .66rem 1.25rem; font-weight: 600; min-height: 42px;
       background: var(--g900); border-color: var(--g900); box-shadow: 0 4px 12px rgba(36,82,50,.16); }
.btn:hover { background: #1B3F26; }
.btn.soft, .btn.green { background: var(--g700); border-color: var(--g700); color: #fff; }
.btn.secondary { background: #fff; color: var(--g900); border: 1.5px solid var(--line); box-shadow: none; }
.btn.secondary:hover { background: var(--mint); }
.btn.tertiary { box-shadow: none; }
.btn.danger { box-shadow: none; border-radius: 999px; }
.btn.small { min-height: 34px; padding: .4rem .9rem; }
.btn.round, .btn-round {
  width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%;
  display: inline-grid; place-items: center; background: var(--g700); color: #fff; border: none;
}
.btn.round svg, .btn-round svg { margin: 0; }
.btn-round.light { background: #E4F0DC; color: var(--g900); box-shadow: none; }
.iconbtn { border: 1.5px solid var(--line); }

/* ---------- Eingaben ---------- */
input[type=text], input[type=password], input[type=number], input[type=date],
input[type=email], input[type=search], input[type=file], select, textarea {
  border-radius: 14px; border-color: #E2E1D8; background-color: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--g700); box-shadow: 0 0 0 3px rgba(74,140,63,.14); }

/* ---------- Status & Tags ---------- */
.badge { border-radius: 999px; padding: .32rem .7rem; font-size: .72rem; font-weight: 600; background: var(--t-green); color: var(--t-green-fg); }
.badge.ok, .badge.aussaat, .badge.sev-gering, .badge.ghouse { background: var(--t-green); color: var(--t-green-fg); }
.badge.pflege, .badge.warn, .badge.sun, .badge.sev-mittel { background: var(--t-orange); color: var(--t-orange-fg); }
.badge.ernte, .badge.sev-hoch, .badge.alert { background: var(--t-red); color: var(--t-red-fg); }
.badge.wichtig, .badge.water, .badge.info { background: var(--t-blue); color: var(--t-blue-fg); }
.badge.geplant, .badge.neu { background: var(--t-purple); color: var(--t-purple-fg); }
.badge.outdoor { background: var(--t-slate); color: var(--t-slate-fg); }
.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem .25rem .25rem; border-radius: 999px;
       font-size: .74rem; font-weight: 600; background: var(--t-green); color: var(--t-green-fg); }
.tag i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: rgba(255,255,255,.7); }
.tag.warn { background: var(--t-orange); color: var(--t-orange-fg); }
.tag.alert { background: var(--t-red); color: var(--t-red-fg); }
.tag.info { background: var(--t-blue); color: var(--t-blue-fg); }
.tag.neu { background: var(--t-purple); color: var(--t-purple-fg); }

/* ---------- Unternavigation als Segment ---------- */
.tabbar.subnav, .subnav {
  background: #EAE9E1; border-radius: 999px; padding: 4px; gap: 3px; border: none; display: flex;
  overflow-x: auto; margin-bottom: 1rem;
}
.subnav::-webkit-scrollbar { height: 0; }
.subnav .tab { border-radius: 999px; border: none; background: transparent; color: var(--gray); padding: .5rem .95rem;
               font-weight: 600; font-size: .84rem; white-space: nowrap; flex: 1 0 auto; text-align: center; box-shadow: none; }
.subnav .tab.active { background: #fff; color: var(--g900); box-shadow: 0 2px 8px rgba(36,82,50,.1); }
.subnav .tab small { opacity: .7; }

/* ---------- Listen-Elemente ---------- */
.itemrow { border-radius: 16px; }
.lrow { display: flex; align-items: center; gap: .75rem; padding: .6rem .1rem; border-bottom: 1px solid #EFEEE7;
        color: var(--dark); text-decoration: none; }
.lrow:last-child { border-bottom: none; }
a.lrow:hover { text-decoration: none; background: rgba(36,82,50,.03); }
.lrow-ico { width: 42px; height: 42px; border-radius: 13px; background: var(--tile); flex: 0 0 auto; display: grid; place-items: center;
            color: var(--g900); overflow: hidden; font-size: 1.15rem; }
.lrow-ico img { width: 100%; height: 100%; object-fit: contain; }
.lrow-main { flex: 1; min-width: 0; }
.lrow-title { font-weight: 600; font-size: .9rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow-sub { font-size: .75rem; color: var(--gray); }
.lrow-bar { height: 6px; border-radius: 99px; background: #ECEBE4; margin-top: .35rem; overflow: hidden; }
.lrow-bar i { display: block; height: 100%; border-radius: 99px; background: var(--g700); }
.lrow-bar i.o { background: var(--c-orange); } .lrow-bar i.r { background: var(--c-red); } .lrow-bar i.b { background: var(--c-blue); }
.lrow-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; background: var(--g700); }
.lrow-dot.o { background: var(--c-orange); } .lrow-dot.r { background: var(--c-red); } .lrow-dot.b { background: var(--c-blue); }
.lrow-chev { color: #A3A99F; flex: 0 0 auto; display: grid; }
.lrow form { margin: 0; }
.lrow .check { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--g700);
               display: grid; place-items: center; cursor: pointer; padding: 0; }
.lrow .check:hover { background: var(--t-green); border-color: var(--t-green); }

/* Tages-Chips */
.daychip { display: inline-block; padding: .3rem .75rem; border-radius: 10px; font-size: .74rem; font-weight: 600; }
.daychip.d0 { background: var(--t-orange); color: var(--t-orange-fg); }
.daychip.d1 { background: var(--t-blue); color: var(--t-blue-fg); }
.daychip.d2 { background: var(--t-green); color: var(--t-green-fg); }
.daychip.late { background: var(--t-red); color: var(--t-red-fg); }

/* Aktivitäts-Chips (quadratische Icon-Knöpfe) */
.actchips { display: flex; gap: .5rem; flex-wrap: wrap; }
.actchip { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; text-decoration: none;
           background: var(--t-green); color: var(--t-green-fg); }
.actchip.b { background: var(--t-blue); color: var(--t-blue-fg); }
.actchip.p { background: var(--t-purple); color: var(--t-purple-fg); }
.actchip.o { background: var(--t-orange); color: var(--t-orange-fg); }
.actchip.r { background: var(--t-red); color: var(--t-red-fg); }

/* ---------- Fortschritt ---------- */
.ring { --p: 50; --c: var(--g700); width: 76px; height: 76px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
        background: conic-gradient(var(--c) calc(var(--p) * 1%), #E8E8E0 0); }
.ring > span { width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center;
               font-family: var(--ff-head); font-weight: 700; color: var(--g900); font-size: .98rem; }
.ring.o { --c: var(--c-orange); } .ring.r { --c: var(--c-red); }
.season-ring { background: conic-gradient(var(--g700) calc(var(--p) * 1%), #E8E8E0 0); }
.season-ring span { font-weight: 700; }
.season-bar { background: #ECEBE4; height: 8px; }
.season-bar i { background: linear-gradient(90deg, var(--g400), var(--g700)); }
.bar, .bar.wide { background: #ECEBE4; border-radius: 99px; }

/* Wachstumsverlauf: Stationen mit Linie */
.gtrack { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); margin: .4rem 0 .2rem; }
.gtrack::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 52px; height: 4px; border-radius: 4px;
                  background: linear-gradient(90deg, var(--g700) var(--done, 0%), #E6E5DD var(--done, 0%)); }
.gstep { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; }
.gstep .gpic { width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.4rem; }
.gstep .gpic img { width: 100%; height: 100%; object-fit: contain; }
.gstep .gdot { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #D6D5CC; margin-top: 4px; z-index: 1; }
.gstep.done .gdot { border-color: var(--g700); background: var(--g700); }
.gstep.now .gdot { border-color: var(--c-orange); background: #fff; box-shadow: 0 0 0 4px rgba(242,154,26,.2); }
.gstep b { font-size: .74rem; color: var(--g900); margin-top: .25rem; }
.gstep small { font-size: .68rem; color: var(--gray); line-height: 1.2; }

/* ---------- Wetterkarten ---------- */
.wcards { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: .55rem; overflow-x: auto; padding-bottom: .2rem; scroll-snap-type: x mandatory; }
.wcards::-webkit-scrollbar { height: 0; }
.wcard { scroll-snap-align: start; border-radius: 18px; padding: .65rem .55rem .7rem; color: #fff; text-align: center; position: relative; overflow: hidden;
         background: linear-gradient(160deg, #8FA3B8, #5E7489); box-shadow: 0 4px 12px rgba(40,60,80,.12); }
.wcard.sun { background: linear-gradient(160deg, #F7D774, #EBA23A); }
.wcard.part { background: linear-gradient(160deg, #A9C6E4, #6F97C4); }
.wcard.rain { background: linear-gradient(160deg, #8C9CAE, #56687C); }
.wcard.storm { background: linear-gradient(160deg, #6D6F88, #3E4057); }
.wcard.snow { background: linear-gradient(160deg, #D9E6F2, #9DB5CF); color: #23374D; }
.wcard.night { background: linear-gradient(160deg, #34466E, #1D2847); }
.wcard.cold { box-shadow: inset 0 0 0 2px rgba(255,255,255,.85), 0 4px 12px rgba(40,60,80,.12); }
.wcard .wc-day { font-size: .72rem; font-weight: 700; opacity: .95; text-transform: uppercase; letter-spacing: .04em; }
.wcard .wc-sym { font-size: 1.9rem; line-height: 1.15; margin: .15rem 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.12)); }
.wcard .wc-t { font-family: var(--ff-head); font-weight: 700; font-size: 1.12rem; }
.wcard .wc-t small { color: inherit; opacity: .75; font-weight: 500; font-size: .76rem; }
.wcard .wc-rain { font-size: .68rem; opacity: .9; margin-top: .1rem; }

/* ---------- Leerzustände ---------- */
.empty { text-align: center; padding: 1.2rem .6rem .6rem; }
.empty .empty-pic { width: 96px; height: 96px; margin: 0 auto .5rem; border-radius: 28px; background: var(--tile); display: grid; place-items: center; }
.empty .empty-pic img { width: 78px; height: 78px; object-fit: contain; }
.empty h3 { font-size: .98rem; margin: .2rem 0; }
.empty p { color: var(--gray); font-size: .84rem; max-width: 320px; margin: 0 auto .8rem; }

/* ---------- Bildkacheln ---------- */
.thumb { border-radius: 13px; }
.thumb.photo { background: var(--tile); }
.hs-item { background: #fff; border: 1px solid #EFEEE7; border-radius: 18px; box-shadow: 0 2px 8px rgba(36,82,50,.05); }
.hs-item img { width: 76px; height: 76px; }
.npitem { border-radius: 16px; border-color: #EFEEE7; }
.qtytile { border-radius: 18px; border-color: #EFEEE7; box-shadow: 0 2px 8px rgba(36,82,50,.04); }

/* ---------- Flash-Meldungen ---------- */
.flash { border-radius: 16px; border: none; box-shadow: var(--shadow); }

/* ---------- Fuß ---------- */
.footer { opacity: .75; }
@media (max-width: 900px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- Mehr: Profil & Menülisten ---------- */
.profilecard { background: linear-gradient(135deg, var(--g900), #33703F); color: #fff; }
.profilecard .pc-top { display: flex; align-items: center; gap: .9rem; }
.profilecard .pc-avatar { width: 58px; height: 58px; border-radius: 18px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25);
                          display: grid; place-items: center; font-family: var(--ff-head); font-weight: 700; font-size: 1.4rem; }
.profilecard .pc-name { font-family: var(--ff-head); font-weight: 700; font-size: 1.2rem; }
.profilecard .pc-tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .3rem; }
.profilecard .btn.secondary { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.menulist { padding-top: .4rem; padding-bottom: .4rem; }
.menulist .lrow-main { display: flex; flex-direction: column; }
.menulist .lrow-ico.actchip { width: 44px; height: 44px; border-radius: 14px; }
.lrow-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section-label { margin: 1.2rem .3rem .5rem; }
.installcard .lrow { border-bottom: none; }

/* ---------- Übersicht ---------- */
.dash-hero {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.2rem; margin-bottom: 1rem; min-height: 290px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .9rem;
  background: linear-gradient(180deg, rgba(18,44,26,.35) 0%, rgba(18,44,26,.18) 38%, rgba(16,38,22,.82) 100%),
              var(--hero, linear-gradient(135deg, #245232, #3E7D45)) center/cover no-repeat;
  box-shadow: var(--shadow);
}
body:not(.has-hero) .dash-hero { background: radial-gradient(circle at 85% 10%, rgba(168,207,142,.35), transparent 45%), linear-gradient(145deg, #245232, #2F6B3A 60%, #4A8C3F); }
.dh-greet small { font-size: .8rem; opacity: .85; font-weight: 500; }
.dh-greet h1 { color: #fff; font-size: 1.35rem; margin: .05rem 0 0; text-shadow: 0 1px 10px rgba(0,0,0,.2); }
.dh-weather { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.dh-weather:hover { text-decoration: none; }
.dh-sym { font-size: 2.7rem; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,.18)); }
.dh-temp { font-family: var(--ff-head); font-size: 3.6rem; font-weight: 600; line-height: .9; letter-spacing: -.03em; text-shadow: 0 2px 16px rgba(0,0,0,.2); }
.dh-meta { display: flex; flex-direction: column; font-size: .82rem; line-height: 1.45; opacity: .95; margin-left: .3rem; }
.dh-meta span:first-child { font-weight: 600; font-size: .9rem; }
.dh-noweather .dh-meta span:first-child { font-size: 1.05rem; }
.dh-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .2rem; }
.dh-actions a { display: flex; flex-direction: column; align-items: center; gap: .3rem; color: #fff; text-decoration: none; }
.dh-actions a span {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .15s, transform .12s;
}
.dh-actions a:hover span { background: rgba(255,255,255,.26); }
.dh-actions a:active span { transform: scale(.93); }
.dh-actions small { color: #fff; font-size: .72rem; font-weight: 600; opacity: .95; }

@media (max-width: 900px) {
  .dash-hero { margin: 0 -1rem 1rem; border-radius: 0 0 30px 30px; box-shadow: none;
               min-height: calc(340px + env(safe-area-inset-top));
               padding: calc(var(--tb-h) + 1rem + env(safe-area-inset-top)) 1.2rem 1.5rem; }
}

.dash-grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.dash-grid > .card { margin: 0; }
@media (min-width: 901px) { .dash-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.season h2 { margin: 0 0 .1rem; }
.season-stages .st { opacity: .45; }
.season-stages .st.on { opacity: 1; }
.season-stages .st img, .season-stages .st b { width: 46px; height: 46px; }
.helpercard .helper { align-items: center; }
.helpercard .helper-pic { width: 84px; height: 84px; border-radius: 22px; background: linear-gradient(160deg, #F1F4EC, #E3EBDC); }
.helper-main h2 { margin: 0 0 .15rem; }
.helper-main p { font-size: .88rem; color: #3F4A41; margin: 0 0 .6rem; }
.dash-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 901px) { .dash-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.grid.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .grid.split { grid-template-columns: minmax(0, 1fr); } }
/* Jetzt an der Reihe: wischbare Leiste */
.npstrip { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: .5rem; overflow-x: auto; padding-bottom: .2rem; scroll-snap-type: x mandatory; }
.npstrip::-webkit-scrollbar { height: 0; }
.npstrip .npitem { scroll-snap-align: start; background: #fff; }
.npstrip .npitem img { width: 52px; height: 52px; object-fit: contain; }
.npstrip .npitem span { font-size: .74rem; line-height: 1.2; text-align: center; }

/* ---------- Beete & Gewächshaus ---------- */
.areatabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 1rem; border-radius: 999px; background: #EAE9E1; overflow-x: auto; }
.areatabs::-webkit-scrollbar { height: 0; }
.atab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem 1rem;
        border-radius: 999px; color: var(--gray); font-weight: 600; font-size: .86rem; text-decoration: none; white-space: nowrap; }
.atab:hover { text-decoration: none; color: var(--g900); }
.atab.active { background: var(--g900); color: #fff; box-shadow: 0 4px 12px rgba(36,82,50,.22); }
.atab.muted { opacity: .55; }
.atab.add { flex: 0 0 42px; width: 42px; padding: 0; height: 40px; }
.climtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-top: .9rem; }
.clim { background: var(--tile); border-radius: 16px; padding: .6rem .5rem .55rem; display: flex; flex-direction: column; align-items: center; gap: .15rem; text-align: center; }
.clim-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--t-green); color: var(--t-green-fg); }
.clim-ico.b { background: var(--t-blue); color: var(--t-blue-fg); }
.clim-ico.r { background: var(--t-red); color: var(--t-red-fg); }
.clim-ico.o { background: var(--t-orange); color: var(--t-orange-fg); }
.clim b { font-size: .84rem; color: var(--g900); line-height: 1.2; margin-top: .15rem; }
.clim small { font-size: .66rem; color: var(--gray); }
.clim .lrow-bar { width: 80%; height: 5px; margin-top: .25rem; }
.qtygrow { display: flex; align-items: center; gap: .3rem; width: 100%; }
.qtygrow .lrow-bar { flex: 1; margin: 0; height: 5px; }
.qtygrow small { font-size: .62rem; color: var(--gray); font-weight: 600; }
.bedbox { background: #F7F6F0; border: none; border-radius: 20px; }

/* Logo auf Anmeldeseiten */
.auth-logo svg { width: 84px; height: 84px; filter: drop-shadow(0 10px 18px rgba(22,57,31,.25)); }
.auth-logo { width: 84px; height: 84px; }

/* ---------- Pflanzenprofil ---------- */
.phero { border-radius: 0 0 30px 30px; }
.phero.photo { height: 300px; }
.phero.photo::after { background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 32%, transparent 70%, rgba(0,0,0,.18)); }
.phero-back { display: none; }
.phero-fav { position: absolute; right: 1rem; bottom: 3.2rem; z-index: 4; margin: 0; }
.phero-fav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--glass-line); cursor: pointer;
                    background: rgba(255,255,255,.88); color: var(--g900); display: grid; place-items: center;
                    box-shadow: 0 6px 16px rgba(0,0,0,.15); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.phero-fav button.on { background: var(--c-red); color: #fff; border-color: transparent; }
.phero-fav button.on svg { fill: currentColor; }
@media (max-width: 900px) {
  .phero { margin: -1rem -1rem 0; }
  .overlay-top .phero { margin-top: 0; }
  .overlay-top .phero.photo { height: calc(320px + env(safe-area-inset-top)); }
}
@media (min-width: 901px) { .phero { border-radius: var(--radius); } }
.pcard { margin-top: -2.4rem; }
.pcard-head { align-items: center; gap: .8rem; }
.pcard-icon { width: 58px; height: 58px; object-fit: contain; border-radius: 18px; background: var(--tile); padding: 4px; flex: 0 0 auto; }
.pfacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem .9rem; margin: 1rem 0 .9rem; }
.pf { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.pf > span:last-child { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.pf-ico { width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; background: var(--t-green); color: var(--t-green-fg); }
.pf-ico.o { background: var(--t-orange); color: var(--t-orange-fg); }
.pf-ico.b { background: var(--t-blue); color: var(--t-blue-fg); }
.pf small { font-size: .68rem; color: var(--gray); line-height: 1.1; }
.pf b { font-size: .84rem; color: var(--g900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf .lrow-bar { display: block; height: 5px; margin-top: .25rem; }
.ptabs { border: none; background: #EAE9E1; border-radius: 999px; padding: 4px; gap: 3px; }
.ptabs button { border: none; border-radius: 999px; margin: 0; padding: .5rem .85rem; font-weight: 600; }
.ptabs button.on { background: #fff; color: var(--g900); border: none; box-shadow: 0 2px 8px rgba(36,82,50,.1); }
.carerow { border-bottom: 1px solid #EFEEE7; }
.carerow:last-of-type { border-bottom: none; }
.carerow > summary { list-style: none; cursor: pointer; border-bottom: none; }
.carerow > summary::-webkit-details-marker { display: none; }
.carerow[open] .lrow-chev { transform: rotate(90deg); }
.carerow .lrow-chev { transition: transform .15s; }
.carerow-txt { margin: 0 0 .7rem 3.35rem; font-size: .84rem; color: #4A544C; }
.issuerow .ir-name { display: flex; flex-direction: column; gap: .3rem; }
.issuerow .ir-name .lrow-bar { height: 5px; max-width: 220px; margin: 0; }
.gtrack::before { top: 50px; }

/* ---------- Wetter ---------- */
.wtoday { border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 1rem; text-align: left; display: flex; align-items: center; justify-content: space-between; }
.wt-main { display: flex; align-items: center; gap: .8rem; }
.wt-sym { font-size: 3rem; line-height: 1; }
.wt-temp { font-family: var(--ff-head); font-size: 3.2rem; font-weight: 600; line-height: 1; }
.wt-meta { display: flex; flex-direction: column; font-size: .8rem; opacity: .95; }
.wt-meta b { font-size: .95rem; }
.wt-label { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; align-self: flex-start; }
.wrow { gap: .6rem; }
.wr-day { width: 58px; font-weight: 600; font-size: .86rem; display: flex; flex-direction: column; line-height: 1.2; }
.wr-day small { font-size: .68rem; font-weight: 500; }
.wr-sym { width: 30px; font-size: 1.3rem; text-align: center; }
.wr-min, .wr-max { width: 34px; font-size: .86rem; font-weight: 600; text-align: right; color: var(--gray); }
.wr-max { text-align: left; color: var(--dark); }
.wr-range { flex: 1; height: 7px; border-radius: 99px; background: #ECEBE4; position: relative; }
.wr-range i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--c-blue), var(--c-orange)); min-width: 6px; }
.wrow.cold .wr-min { color: var(--c-blue); }
.frostcard { background: linear-gradient(180deg, #FFF6F4, #fff 60%); }
.frostdays { display: flex; flex-wrap: wrap; gap: .35rem; }
@media (min-width: 901px) { .dh-actions { max-width: 420px; } .dash-hero { min-height: 320px; } }

/* ---------- Schutz & Überwinterung ---------- */
.protect-head .ph-top { display: flex; gap: .9rem; align-items: center; }
.protect-head .ph-pic { width: 72px; height: 72px; border-radius: 20px; background: var(--tile); object-fit: contain; padding: 5px; flex: 0 0 auto; }
.protect-head .ph-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.protect-head .tag i svg { width: 13px; height: 13px; }
.protect-head .ph-sit { margin: .9rem 0 0; font-size: .92rem; color: #3E4A40; line-height: 1.55; }
.wx-mini { display: flex; gap: .8rem; align-items: center; }
.wx-mini .wx-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; flex: 0 0 auto; background: var(--t-green); }
.wx-mini.warn { background: linear-gradient(135deg, #EAF3FB, #fff 70%); }
.wx-mini.warn .wx-ico { background: var(--t-blue); }
.wx-mini b { display: block; color: var(--g900); font-size: .96rem; }
.wx-mini span { font-size: .84rem; color: #4A544C; }
.psteps { list-style: none; margin: 0; padding: 0; counter-reset: ps; }
.psteps li { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid #EFEEE7; position: relative; }
.psteps li:last-child { border-bottom: none; }
.psteps .ps-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--t-green); display: grid; place-items: center; font-size: 1.3rem; flex: 0 0 auto; position: relative; }
.psteps.frost .ps-ico { background: var(--t-blue); }
.psteps .ps-ico::after { counter-increment: ps; content: counter(ps); position: absolute; top: -5px; right: -5px; width: 18px; height: 18px; border-radius: 50%;
                        background: var(--g900); color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.psteps.frost .ps-ico::after { background: var(--c-blue); }
.psteps b { display: block; font-size: .92rem; color: var(--g900); }
.psteps p { margin: .15rem 0 0; font-size: .86rem; color: #4A544C; line-height: 1.5; }
.matchips { display: flex; flex-wrap: wrap; gap: .4rem; }
.matchips span { padding: .4rem .8rem; border-radius: 999px; background: var(--sand); color: var(--c-brown); font-size: .8rem; font-weight: 600; }
.actiongrid form.span2 { grid-column: 1 / -1; }
.helper-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.protect-link { margin-top: .2rem; border-top: 1px solid #EFEEE7; }
.helper-actions .btn { margin: 0; }
.protect-mini { display: inline-flex; align-items: center; gap: .25rem; font-size: .76rem; font-weight: 600; margin-top: .2rem; }
/* Platzbedarf: drei kleiner · Katalog · drei größer */
.sheet-row.spgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.sheet-row.spgrid .chip { justify-content: center; text-align: center; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0; padding: .45rem .3rem; border-radius: 14px; }
.sheet-row.spgrid .chip small { font-size: .7rem; }
.sheet-row.spgrid .sp-cat { grid-column: 1 / -1; flex-direction: row; gap: .4rem; }
.sheet-row.spgrid .chip:disabled { opacity: .35; }
.sheet-row.spgrid .chip.active small { color: rgba(255,255,255,.8); opacity: 1; }

/* ---------- Animiertes Wetter ---------- */
.wa { display: block; overflow: visible; }
.wa * { transform-box: view-box; }
.wa-rays { animation: waSpin 22s linear infinite; }
.wa-core { animation: waPulse 4s ease-in-out infinite; }
.wa-cloud { animation: waDrift 7s ease-in-out infinite alternate; }
.wa-cloud2 { animation-duration: 9s; animation-direction: alternate-reverse; opacity: .9; }
.wa-drop { animation: waRain 1.1s linear infinite; }
.wa-flake { animation: waSnow 3s linear infinite; }
.wa-bolt { animation: waBolt 3.2s linear infinite; opacity: 0; }
.wa-star { animation: waTwinkle 2.8s ease-in-out infinite; }
.wa-moon { animation: waFloat 6s ease-in-out infinite alternate; }
.wa-fog rect { animation: waFog 5s ease-in-out infinite alternate; }
@keyframes waSpin { to { transform: rotate(360deg); } }
@keyframes waPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes waDrift { from { transform: translateX(-4px); } to { transform: translateX(5px); } }
@keyframes waFloat { from { transform: translateY(-2px); } to { transform: translateY(2px); } }
@keyframes waRain { 0% { transform: translateY(-6px); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(20px); opacity: 0; } }
@keyframes waSnow { 0% { transform: translate(0, -6px); opacity: 0; } 15% { opacity: 1; } 50% { transform: translate(4px, 8px); } 100% { transform: translate(-2px, 24px); opacity: 0; } }
@keyframes waBolt { 0%, 58%, 66%, 72%, 100% { opacity: 0; } 60%, 64%, 69% { opacity: 1; } }
@keyframes waTwinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes waFog { from { transform: translateX(-6px); } to { transform: translateX(7px); } }

/* Effekt über dem Kopfbild */
.dash-hero > *:not(.dh-fx) { position: relative; z-index: 1; }
.dh-fx { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; border-radius: inherit; }
.dh-fx.sun::before { content: ''; position: absolute; width: 520px; height: 520px; right: -170px; top: -230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,236,160,.55) 0%, rgba(255,214,110,.22) 30%, transparent 62%); animation: fxGlow 6s ease-in-out infinite alternate; }
.dh-fx.sun::after { content: ''; position: absolute; width: 900px; height: 900px; right: -450px; top: -450px;
  background: repeating-conic-gradient(from 0deg, rgba(255,240,190,.10) 0 6deg, transparent 6deg 18deg); animation: waSpin 90s linear infinite; }
.dh-fx.rain::before, .dh-fx.storm::before { content: ''; position: absolute; inset: -40px;
  background-image: linear-gradient(100deg, transparent 0 48%, rgba(255,255,255,.22) 48% 49.2%, transparent 49.2%);
  background-size: 26px 90px; animation: fxRain .55s linear infinite; }
.dh-fx.storm::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.55); opacity: 0; animation: waBolt 6.4s linear infinite; }
.dh-fx.snow::before, .dh-fx.snow::after { content: ''; position: absolute; inset: -60px;
  background-image: radial-gradient(circle, rgba(255,255,255,.9) 0 1.8px, transparent 2.4px), radial-gradient(circle, rgba(255,255,255,.6) 0 1.2px, transparent 1.8px);
  background-size: 70px 70px, 44px 44px; background-position: 0 0, 22px 30px; animation: fxSnow 9s linear infinite; }
.dh-fx.snow::after { background-size: 110px 110px, 58px 58px; opacity: .7; animation-duration: 14s; }
.dh-fx.cloud::before, .dh-fx.part::before, .dh-fx.fog::before, .dh-fx.nightcloud::before { content: ''; position: absolute; width: 140%; height: 60%; left: -20%; top: -8%;
  background: radial-gradient(ellipse 30% 45% at 25% 50%, rgba(255,255,255,.22), transparent 70%), radial-gradient(ellipse 26% 38% at 70% 40%, rgba(255,255,255,.16), transparent 70%);
  filter: blur(6px); animation: fxClouds 26s ease-in-out infinite alternate; }
.dh-fx.fog::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(235,240,244,.28), transparent 60%); animation: fxGlow 5s ease-in-out infinite alternate; }
.dh-fx.night::before, .dh-fx.nightcloud::after { content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,250,220,.9) 0 1px, transparent 1.6px), radial-gradient(circle, rgba(255,250,220,.6) 0 .8px, transparent 1.4px);
  background-size: 90px 70px, 53px 47px; background-position: 10px 8px, 30px 20px; mask-image: linear-gradient(180deg, #000 0%, transparent 55%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  animation: fxTwinkle 4s ease-in-out infinite alternate; }
@keyframes fxGlow { from { opacity: .65; } to { opacity: 1; } }
@keyframes fxRain { from { background-position: 0 0; } to { background-position: -14px 90px; } }
@keyframes fxSnow { from { background-position: 0 0, 22px 30px; } to { background-position: 30px 280px, 2px 320px; } }
@keyframes fxClouds { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
@keyframes fxTwinkle { from { opacity: .45; } to { opacity: 1; } }
.dh-sym .wa, .wt-sym .wa { width: 92px; height: auto; }
.dh-sym { font-size: 0; line-height: 0; }
.dh-greet small { text-shadow: 0 1px 6px rgba(0,0,0,.35); color: rgba(255,255,255,.92); }
@media (prefers-reduced-motion: reduce) {
  .wa *, .dh-fx, .dh-fx::before, .dh-fx::after { animation: none !important; }
}
/* Auswahl übereinanderliegender Pflanzen */
.pick-item { display: flex; align-items: center; gap: .7rem; text-align: left; }
.pick-item img { width: 40px; height: 40px; object-fit: contain; border-radius: 12px; background: var(--tile); flex: 0 0 auto; }
.pick-item .pick-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pick-item .pick-txt small { color: var(--gray); font-size: .74rem; }
.pick-item .pick-front { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--t-green); flex: 0 0 auto; }
.sheet .pick-item { justify-content: flex-start; }
.pick-item .pick-txt { align-items: flex-start; text-align: left; }
.sheet-head .sheet-free { font-size: 1.6rem; color: var(--g900); display: grid; place-items: center; }
/* Platz merken */
.checkrow { display: flex; gap: .6rem; align-items: flex-start; margin: .8rem 0 .7rem; padding: .7rem .8rem; border-radius: 14px; background: var(--t-green); cursor: pointer; color: var(--dark); }
.checkrow input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--g900); flex: 0 0 auto; }
.checkrow b { display: block; font-size: .88rem; color: var(--g900); }
.checkrow small { display: block; font-size: .76rem; color: #4A544C; }
button.tag { border: none; cursor: pointer; font-family: inherit; }
.memo-on { white-space: nowrap; }
.yeartabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 1rem; border-radius: 999px; background: #EAE9E1; }
.yeartabs a { text-align: center; padding: .5rem .8rem; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--gray); text-decoration: none; }
.yeartabs a small { font-weight: 600; font-size: .72rem; opacity: .8; margin-left: .2rem; }
.yeartabs a.on { background: #fff; color: var(--g900); box-shadow: 0 2px 8px rgba(36,82,50,.1); }
.flash.info { background: var(--t-blue); color: var(--t-blue-fg); }

/* ---------- Luftbild laden ---------- */
.aerial-find { display: grid; grid-template-columns: minmax(0, 1fr) 42px 42px; gap: .4rem; align-items: center; margin-top: .6rem; }
.aerial-find input { margin: 0; }
.aerial-results { display: flex; flex-direction: column; margin: .3rem 0; }
.aerial-results .ae-hit { border: none; background: none; text-align: left; font: inherit; font-size: .84rem; cursor: pointer; padding: .55rem .2rem; }
.aerial-view { margin-top: .6rem; }
.aerial-frame { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #DDE3D8; cursor: crosshair; }
.aerial-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.aerial-frame img:not([src]) { display: none; }
.ae-cross { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none;
            background: linear-gradient(#fff, #fff) center/2px 100% no-repeat, linear-gradient(#fff, #fff) center/100% 2px no-repeat;
            filter: drop-shadow(0 0 2px rgba(0,0,0,.7)); opacity: .9; }
.ae-north { position: absolute; top: .6rem; left: .6rem; padding: .25rem .55rem; border-radius: 999px; background: rgba(255,255,255,.9);
            color: var(--g900); font-weight: 700; font-size: .75rem; pointer-events: none; }
.ae-msg { position: absolute; inset: auto .8rem .8rem .8rem; padding: .5rem .7rem; border-radius: 12px; background: rgba(20,40,26,.78);
          color: #fff; font-size: .82rem; text-align: center; pointer-events: none; }
.aerial-zoom { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; gap: .5rem; margin-top: .6rem; text-align: center; }
.aerial-zoom span { font-weight: 700; color: var(--g900); }
.aerial-zoom .btn-round { font-size: 1.3rem; font-weight: 700; }
.aerial-src { margin-top: .6rem; }
.ae-credit { font-size: .72rem; margin-top: .5rem; text-align: center; }
.aerial-fold > summary { cursor: pointer; } .aerial-fold .aerial { margin-top: .6rem; }
.aerial-frame img { transition: opacity .25s; }

/* ---------- Grundstückskarte: Zoom, Auswahl, Sperren ---------- */
.mapwrap { position: relative; border-radius: 18px; border: none; box-shadow: inset 0 0 0 1px rgba(36,82,50,.08); }
.mapwrap svg { touch-action: none; user-select: none; -webkit-user-select: none; }
.mapwrap.zoomed svg { cursor: grab; }
.mapzoom { position: absolute; right: .6rem; top: .6rem; display: flex; flex-direction: column; gap: .35rem; z-index: 2; }
.mapzoom button { width: 42px; height: 42px; border-radius: 12px; border: none; background: rgba(255,255,255,.94); color: var(--g900);
                  font-size: 1.35rem; font-weight: 700; line-height: 1; box-shadow: 0 3px 10px rgba(0,0,0,.18); cursor: pointer; }
.mapzoom button:active { transform: scale(.94); }
.maparea .ma-handle, .maparea .ma-rot, .maparea .ma-lock { display: none; }
.maparea.sel .ma-handle, .maparea.sel .ma-rot { display: inline; }
.maparea.locked .ma-lock { display: inline; }
.maparea.locked.sel .ma-handle, .maparea.locked.sel .ma-rot { display: none; }
.maparea.sel .ma-shape { stroke: #F29A1A; stroke-width: 3.5; }
.maparea.locked { cursor: default; }
.maparea.locked .ma-shape { stroke-dasharray: none; }
.maparea .ma-handle { fill: #F29A1A; stroke: #fff; stroke-width: 2.5; cursor: grab; }
.maparea .ma-rot { stroke: #F29A1A; stroke-width: 2; stroke-dasharray: 4 3; }
.maparea .ma-label { font-size: 12px; }
.maptool { margin-top: .7rem; padding: .8rem; border-radius: 18px; background: var(--tile); border: 1px solid #EAE9E1; }
.mt-head { display: flex; align-items: center; gap: .6rem; }
.mt-head b { color: var(--g900); font-size: .98rem; }
.mt-head .muted-text { flex: 1; font-size: .8rem; }
.mt-head .iconbtn { width: 34px; height: 34px; font-size: .85rem; }
.mt-rot { margin-top: .6rem; }
.mt-rot input[type=range] { width: 100%; accent-color: var(--g900); margin: .2rem 0 .5rem; }
.mt-steps { display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr; gap: .4rem; align-items: center; }
.mt-steps .btn { margin: 0; padding-left: .2rem; padding-right: .2rem; }
.mt-steps span { font-weight: 700; color: var(--g900); min-width: 48px; text-align: center; }
.mt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-top: .7rem; }
.mt-actions form { margin: 0; display: flex; }
.mt-actions .btn { width: 100%; margin: 0; }
/* Größe ändern */
.maparea .ma-rs { display: none; fill: #fff; stroke: #F29A1A; stroke-width: 3; vector-effect: non-scaling-stroke; cursor: nwse-resize; }
.maparea.sel:not(.locked) .ma-rs { display: inline; }
.maparea .ma-rs[data-rs="r"] { cursor: ew-resize; }
.maparea .ma-rs[data-rs="b"] { cursor: ns-resize; }
.mt-size { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .7rem; }
.mt-size label { display: flex; align-items: center; gap: .35rem; margin: 0; background: #fff; border: 1px solid #E2E1D8; border-radius: 14px; padding: .2rem .6rem; }
.mt-size label span { font-size: .74rem; color: var(--gray); font-weight: 600; }
.mt-size input[type=number] { border: none; padding: .35rem 0; margin: 0; flex: 1; min-width: 0; font-weight: 700; color: var(--g900); background: transparent; box-shadow: none; text-align: right; }
.mt-size em { font-style: normal; color: var(--gray); font-size: .8rem; }
.mt-size small { grid-column: 1 / -1; font-size: .74rem; }
.mt-size [hidden] { display: none !important; }

/* ---------- Bäume & Kübel ---------- */
.addsingle .as-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: .6rem; align-items: end; }
.as-art { display: grid; grid-template-columns: 1fr 1fr; }
.as-art label { margin: 0; display: block; cursor: pointer; }
.as-art input { position: absolute; opacity: 0; pointer-events: none; }
.as-art span { display: block; text-align: center; padding: .5rem .3rem; border-radius: 999px; font-weight: 600; font-size: .84rem; color: var(--gray); }
.as-art input:checked + span { background: #fff; color: var(--g900); box-shadow: 0 2px 8px rgba(36,82,50,.1); }
.singlegrid { display: grid; gap: .8rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .singlegrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.singlecard { margin: 0; }
.sc-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .8rem; align-items: center; }
.sc-pic img { width: 64px; height: 64px; object-fit: contain; border-radius: 18px; background: var(--tile); padding: 4px; display: block; }
.sc-main { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; }
.sc-name { font-weight: 700; color: var(--g900); font-size: 1rem; text-decoration: none; }
.sc-count { display: flex; align-items: center; gap: .5rem; }
.sc-count form { margin: 0; }
.sc-count b { font-family: var(--ff-head); font-size: 1.35rem; color: var(--g900); min-width: 1.6em; text-align: center; }
.sc-count .btn-round { width: 38px; height: 38px; min-height: 38px; font-size: 1.2rem; font-weight: 700; }
.sc-list { margin-top: .6rem; }
.sc-list > summary { cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--g700); }
.sc-list .lrow { gap: .5rem; }
.sc-list form { margin: 0; }
.sc-rename input { margin: 0; padding: .3rem .5rem; font-weight: 600; font-size: .88rem; border-color: transparent; background: transparent; }
.sc-rename input:focus { background: #fff; border-color: var(--g700); }
.sc-list .iconbtn { width: 34px; height: 34px; flex: 0 0 auto; }
.maparea.kuebel .ma-shape { fill: rgba(214,170,120,.6); stroke: #8B4A14; stroke-dasharray: none; }
.mt-open { width: 100%; margin-top: .7rem; justify-content: center; }
/* Grundstück auf der Startseite */
.sitemap-wrap { border-radius: 18px; overflow: hidden; background: #DDE3D8; aspect-ratio: 5 / 4; }
.sitemap-home { display: block; width: 100%; height: 100%; }
.sitemap-home a { cursor: pointer; }
.sitemap-home .sm-shape { fill: rgba(255,255,255,.35); stroke: #fff; stroke-width: 2.5; vector-effect: non-scaling-stroke; transition: fill .15s; }
.sitemap-home .gewaechshaus .sm-shape { fill: rgba(200,230,201,.55); }
.sitemap-home .baum .sm-shape { fill: rgba(129,199,132,.5); stroke-dasharray: 4 3; }
.sitemap-home .kuebel .sm-shape { fill: rgba(214,170,120,.65); stroke: #fff; stroke-dasharray: none; }
.sitemap-home a:hover .sm-shape, .sitemap-home a:focus .sm-shape { fill: rgba(242,154,26,.45); stroke: #F29A1A; }
.sitemap-home .sm-label { font-family: var(--ff-body); font-weight: 700; fill: #fff; paint-order: stroke; stroke: rgba(20,40,26,.75); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.addsingle .as-row { grid-template-columns: 88px minmax(0, 1fr); }
.as-art span { white-space: nowrap; font-size: .8rem; padding: .55rem .2rem; }

/* ---------- v38 ---------- */
/* Zeilen mit Aktionen: auf dem Handy rutschen Eingaben und Buttons in eine eigene Zeile */
.itemrow-act { display: flex; align-items: center; gap: .4rem; flex: 0 0 auto; margin: 0; }
.itemrow-act form { margin: 0; }
.itemrow-act input[type=number] { width: 64px; text-align: center; margin: 0; }
@media (max-width: 640px) {
  .itemrow { flex-wrap: wrap; justify-content: flex-end; row-gap: .5rem; }
  .itemrow > .itemrow-main { flex: 1 1 calc(100% - 90px); }
  .itemrow > .itemrow-main ~ * { flex: 0 0 auto; }
  .itemrow-title { font-size: .95rem; }
}
.urg { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c-orange); }
.urg.hi { background: var(--c-red); }

/* Aufgaben: zusammengefasste Zeilen */
.lrow.multi .lrow-ico { position: relative; }
.lrow.multi .lrow-ico em { position: absolute; right: -5px; bottom: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--g900); color: #fff; font-style: normal; font-size: .7rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.allbtn { white-space: nowrap; padding-left: .7rem; padding-right: .8rem; }
.lrow.multi .lrow-title { white-space: normal; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.allbtn { font-size: .76rem; min-height: 36px; padding: .3rem .75rem .3rem .6rem; gap: .3rem; }

/* Verträglichkeit */
.anl-link { display: flex; align-items: center; justify-content: center; gap: .45rem; flex-wrap: wrap; margin: .55rem auto 0; font-size: .85rem;
  font-weight: 600; color: var(--g700); text-decoration: none; }
.anl-link .tag { font-size: .75rem; padding-top: .15rem; padding-bottom: .15rem; }
.anl-link .tag i { width: 18px; height: 18px; }
.anl-link.bad { color: var(--t-red-fg); }
.anl-sum { display: flex; align-items: center; gap: 1rem; }
.anl-sum .ring > span { font-size: 1.6rem; font-weight: 700; color: var(--c, var(--g700)); }
.anl-plan { display: block; width: 100%; max-height: 420px; }
.anl-plan .ap-area { fill: #FAFBF8; stroke: var(--g900); stroke-width: 2; vector-effect: non-scaling-stroke; }
.anl-plan .ap-bed { fill: #EEF3E9; stroke: #B9CDB0; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.anl-plan .ap-bed.on { stroke: var(--g700); stroke-width: 2.5; }
.anl-plan .ap-it rect { fill: rgba(129,199,132,.35); stroke: #8FB98F; stroke-width: 1; vector-effect: non-scaling-stroke; }
.anl-plan .ap-it.bad rect { fill: rgba(229,83,75,.35); stroke: var(--c-red); stroke-width: 2.2; }
.anl-plan .ap-it.warn rect { fill: rgba(242,154,26,.32); stroke: var(--c-orange); stroke-width: 2; }
.anl-plan .ap-it.good rect { fill: rgba(76,175,80,.4); stroke: var(--g700); stroke-width: 2; }
.anl-plan text { font-family: var(--ff-body); font-weight: 600; fill: var(--g900); pointer-events: none; }
.anl-legend i.bad { background: rgba(229,83,75,.5); } .anl-legend i.warn { background: rgba(242,154,26,.5); } .anl-legend i.good { background: rgba(76,175,80,.55); }
.anl-row { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid #EFEEE7; align-items: flex-start; }
.anl-row:last-child { border-bottom: none; }
.anl-pics { display: flex; flex: 0 0 auto; }
.anl-pics img, .anl-noimg { width: 44px; height: 44px; border-radius: 14px; background: var(--tile); object-fit: contain; padding: 3px; border: 2px solid #fff; }
.anl-pics img + img { margin-left: -14px; }
.anl-noimg { display: grid; place-items: center; color: var(--g700); }
.anl-main { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; }
.anl-main b { font-size: .92rem; color: var(--g900); line-height: 1.3; }
.anl-main small { font-size: .8rem; color: var(--gray); line-height: 1.45; }
.anl-links { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .8rem; font-weight: 600; }
.anl-row.bad { background: linear-gradient(90deg, rgba(229,83,75,.06), transparent 60%); }

/* Ernte eintragen */
.sr-default { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hv-date { margin-left: auto; display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--gray); font-weight: 600; }
.hv-date input { margin: 0; padding: .3rem .5rem; width: auto; font-size: .85rem; }
.hv-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: .45rem .8rem; padding: .8rem 0; border-bottom: 1px solid #EFEEE7; align-items: center; }
.hv-row:last-child { border-bottom: none; }
.hv-pic img { width: 52px; height: 52px; border-radius: 16px; background: var(--tile); object-fit: contain; padding: 3px; display: block; }
.hv-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.hv-main b { font-size: .95rem; color: var(--g900); }
.hv-main b small { font-weight: 500; color: var(--gray); }
.hv-main > small { font-size: .76rem; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-tags { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .15rem; }
.hv-tags .tag { font-size: .72rem; padding: .15rem .6rem; }
.hv-in { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(60px, 1fr) 84px auto; gap: .4rem; align-items: stretch; }
.hv-in input, .hv-in select { margin: 0; height: 44px; min-height: 44px; }
.hv-in select { padding-left: .6rem; padding-right: 1.6rem; }
.hv-in input { font-size: 1.05rem; font-weight: 600; text-align: center; }
.hv-done { white-space: nowrap; min-height: 44px; height: 44px; margin: 0; align-self: center; font-size: .72rem; line-height: 1.15; padding: .2rem .8rem .2rem .6rem; text-align: left; }
.hv-done span { display: block; }
.hv-row { padding: .7rem 0; row-gap: .5rem; }
.hv-pic img { width: 46px; height: 46px; }
.hv-row { grid-template-columns: 46px minmax(0, 1fr); }
@media (min-width: 700px) { .hv-row { grid-template-columns: 46px minmax(0, 1fr) minmax(0, 400px); } .hv-in { grid-column: auto; } }
@media (max-width: 600px) { .hv-form .card-head { flex-wrap: wrap; } .hv-date { flex: 1 0 100%; margin: .2rem 0 0; } .hv-date input { flex: 1; } }
.hv-later > summary, .sg-later > summary { list-style: none; cursor: pointer; }
.hv-later > summary::-webkit-details-marker, .sg-later > summary::-webkit-details-marker { display: none; }
.hv-later > summary { display: flex; align-items: center; gap: .6rem; }
.hv-later > summary h2 { margin: 0; }
.hv-later > summary::after, .sg-later .card-head::after { content: '›'; margin-left: auto; font-size: 1.4rem; color: var(--gray); transition: transform .2s; }
.hv-later[open] > summary::after, .sg-later[open] .card-head::after { transform: rotate(90deg); }
.hv-save { position: sticky; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 5; display: flex; justify-content: center; margin: -.2rem 0 1rem; pointer-events: none; }
.hv-save .btn { pointer-events: auto; box-shadow: 0 8px 22px rgba(20,50,30,.28); padding-left: 1.6rem; padding-right: 1.6rem; }
.hv-log { margin-top: .8rem; }
.hv-log > summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--g700); }

/* Für dieses Jahr abgeräumt: blass im Grundriss */
.plot-zone.done { fill: rgba(240,240,236,.7) !important; stroke-dasharray: 3 3; }
/* Unternavigation auf dem Handy: alle Reiter sichtbar, notfalls zweizeilig */
@media (max-width: 640px) {
  .subnav .tab { flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.15; padding: .5rem .45rem; font-size: .8rem;
                 display: flex; align-items: center; justify-content: center; }
}
.itemrow-act .btn, .itemrow-act button { margin: 0; }
.itemrow:not(.best) { border-radius: 0; }
/* Zusammengefasste Aufgaben: Button unter den Text */
.lrow.multi { flex-wrap: wrap; }
.lrow.multi .lrow-main { flex: 1 1 calc(100% - 60px); }
.lrow.multi > form { margin: -.2rem 0 0 auto; }
.lrow.multi .lrow-title { -webkit-line-clamp: 2; }
/* Kompakte Auswahllisten bleiben einzeilig */
@media (max-width: 640px) {
  .plantlist .itemrow { flex-wrap: nowrap; }
  .plantlist .itemrow > .itemrow-main { flex: 1 1 auto; }
  .plantlist .itemrow input[type=number] { width: 54px !important; padding-left: .3rem; padding-right: .3rem; }
  .page-head .actions .btn { padding: .45rem .9rem; font-size: .8rem; min-height: 0; }
}
/* Pflanzenliste: Namen nicht abschneiden */
.plantrow summary .pl-name { white-space: normal; overflow: visible; text-overflow: clip; min-width: 0; flex: 1 1 auto; line-height: 1.25; }
.plantrow summary .badge { flex: 0 0 auto; font-size: .7rem; padding: .1rem .45rem; }
/* Bäume & Kübel */
.sc-main .tag { white-space: nowrap; }
/* Reiter im Pflanzenprofil passen auf das Handy */
@media (max-width: 640px) {
  .ptabs { overflow: hidden; }
  .ptabs button { flex: 1 1 0; min-width: 0; padding: .5rem .2rem; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Kalender */
.calrow .lrow-title { white-space: normal; }
.calrow .lrow-sub { white-space: normal; display: block; line-height: 1.4; }
.calrow .lrow-sub .badge { margin-right: .3rem; }
.caldate { font-weight: 700; font-size: .78rem; color: var(--g900); background: var(--t-green); }
.btn .bn { color: inherit; background: rgba(255,255,255,.25); border-radius: 99px; padding: .05rem .45rem; font-size: .72rem; font-weight: 700; }
.btn.secondary .bn { background: var(--t-green); }
.actiongrid > * { min-width: 0; }
.actiongrid .btn { font-size: .85rem; padding-left: .6rem; padding-right: .6rem; width: 100%; line-height: 1.2; }

/* Bestand */
.stockrow { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .4rem .75rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid #EFEEE7; }
.stockrow:last-child { border-bottom: none; }
.stockrow.done { opacity: .6; }
.stock-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.stock-main b { color: var(--g900); font-size: .93rem; }
.stock-main b small { color: var(--gray); font-weight: 500; }
.stock-main > small { color: var(--gray); font-size: .76rem; }
.stock-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .15rem; }
.stock-tags .tag { font-size: .7rem; padding: .12rem .55rem; }
.stock-tags .tag i { width: 16px; height: 16px; }
.stock-act { grid-column: 2; display: flex; gap: .4rem; align-items: center; justify-content: flex-end; }
.stock-act form { margin: 0; }
.stock-act .btn { margin: 0; }
.stock-act .iconbtn { width: 36px; height: 36px; }
@media (min-width: 700px) { .stockrow { grid-template-columns: 44px minmax(0, 1fr) auto; } .stock-act { grid-column: auto; } }

.hv-in input::placeholder { font-weight: 500; font-size: .9rem; }
.mt-lockhint { display: block; margin: .5rem 0 0; font-size: .8rem; color: var(--gray); text-align: center; }
.mt-lockhint[hidden] { display: none; }

/* ---------- v39 ---------- */
/* Grundriss: Flächen durchscheinend, weiße Bildhintergründe verschwinden — dahinterliegende Pflanzen bleiben sichtbar */
.areaplan .plot-zone { fill-opacity: .28; }
.areaplan .plot-zone.planned { fill-opacity: .18; }
.areaplan .zone-hit image { mix-blend-mode: multiply; }
.areaplan .zone-hit:hover .plot-zone, .areaplan .zone-hit:focus .plot-zone { fill-opacity: .45; }
.areaplan .zone-name { paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 3px; stroke-linejoin: round; }
:target { scroll-margin-top: 90px; }
.itemrow:target { background: var(--t-green); border-radius: 12px; }

/* Abhaken ohne Neuladen */
.ez-going { opacity: .55; transition: opacity .2s; pointer-events: none; }
.ez-gone { opacity: 0; transform: translateX(24px); transition: opacity .3s, transform .3s; }
.ez-toast { position: fixed; left: 50%; top: calc(76px + env(safe-area-inset-top)); transform: translate(-50%, -12px); z-index: 90;
  max-width: min(92vw, 520px); padding: .7rem 1.1rem; border-radius: 16px; background: var(--g900); color: #fff; font-size: .88rem;
  box-shadow: 0 10px 30px rgba(20,50,30,.3); opacity: 0; transition: opacity .3s, transform .3s; }
.ez-toast.error { background: var(--t-red-fg); }
.ez-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Pflanzenauswahl mit Suche */
select.pk-native { display: none; }
.picker { position: relative; margin-bottom: .8rem; }
.pk-chosen { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .45rem .8rem .45rem .45rem; border: 1.5px solid var(--line);
  border-radius: 16px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; min-height: 56px; }
.pk-chosen img, .pk-chosen .pk-noimg { width: 44px; height: 44px; border-radius: 12px; background: var(--tile); object-fit: contain; flex: 0 0 auto; display: grid; place-items: center; }
.pk-chosen > span:not(.pk-noimg) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pk-chosen b { color: var(--g900); font-size: .95rem; }
.pk-chosen small { color: var(--gray); font-size: .75rem; }
.pk-chosen em { font-style: normal; font-size: .8rem; font-weight: 600; color: var(--g700); }
.picker.open .pk-chosen { border-color: var(--g700); }
.picker.pk-missing .pk-chosen { border-color: var(--c-red); }
.pk-panel { margin-top: .4rem; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; padding: .5rem; box-shadow: 0 10px 28px rgba(20,50,30,.12); }
.pk-search input { margin: 0; }
.pk-chips { display: flex; gap: .35rem; overflow-x: auto; padding: .5rem 0 .3rem; scrollbar-width: none; }
.pk-chips::-webkit-scrollbar { display: none; }
.pk-chips button { flex: 0 0 auto; border: none; border-radius: 99px; padding: .35rem .8rem; background: #EFEEE7; color: var(--gray);
  font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.pk-chips button.on { background: var(--g900); color: #fff; }
.pk-list { max-height: 300px; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding-top: .2rem; }
.pk-gh { grid-column: 1 / -1; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); margin: .5rem .2rem .1rem; }
.pk-item { display: flex; align-items: center; gap: .5rem; padding: .35rem; border: none; border-radius: 12px; background: #F7F7F2;
  text-align: left; font: inherit; font-size: .84rem; font-weight: 600; color: var(--g900); cursor: pointer; min-width: 0; }
.pk-item span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pk-item small { font-weight: 500; color: var(--gray); font-size: .7rem; }
.pk-item img, .pk-item .pk-noimg { width: 34px; height: 34px; border-radius: 10px; object-fit: contain; background: #fff; flex: 0 0 auto; display: grid; place-items: center; }
.pk-item.on { background: var(--t-green); outline: 2px solid var(--g700); }
.pk-item:hover { background: var(--t-green); }
.pk-none { grid-column: 1 / -1; color: var(--gray); font-size: .82rem; margin: .5rem; text-align: center; }

/* Falscher Standort */
.misrow { flex-wrap: wrap; }
.misrow .lrow-main { flex: 1 1 calc(100% - 60px); }
.misact { display: flex; gap: .4rem; margin-left: auto; }
.misact form { margin: 0; }
.misact .btn { margin: 0; }

/* ---------- v40: Ernte eintragen mit Suche und Sofortspeichern ---------- */
.hv-searchbar { position: sticky; top: calc(64px + env(safe-area-inset-top)); z-index: 6; margin: 0 0 .9rem; padding: .5rem 0 .3rem;
  background: var(--cream); }
.hv-searchbar input { margin: 0; border-radius: 999px; padding-left: 1.1rem; background: #fff; }
.hv-autosave { display: flex; align-items: center; gap: .3rem; justify-content: center; margin-top: .35rem; font-size: .74rem; color: var(--g700); font-weight: 600; }
.hv-autosave[hidden] { display: none; }
.hv-row[hidden] { display: none; }
.hv-empty { display: none; }
.hv-row { transition: background .4s; }
.hv-row.hv-saving { opacity: .6; }
.hv-row.hv-ok { background: var(--t-green); border-radius: 14px; }
.hv-nohit { text-align: center; margin: 0 0 1rem; }
.ez-toast { display: flex; align-items: center; gap: .8rem; }
.ez-toast button { border: none; background: rgba(255,255,255,.18); color: #fff; font: inherit; font-weight: 700; font-size: .8rem;
  border-radius: 99px; padding: .3rem .8rem; cursor: pointer; flex: 0 0 auto; }
.ez-toast { width: max-content; } .ez-toast span { flex: 1; }

/* ---------- v42: Start einer Pflanzung ---------- */
.st-mode span { white-space: nowrap; font-size: .8rem; padding: .55rem .3rem; }
.st-dates { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .7rem; }
.st-dates > [hidden] { display: none; }
.st-dates label small { color: var(--gray); font-weight: 500; }
.startform .btn { margin-top: .4rem; }
.st-inline { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; font-weight: 600; color: var(--gray); font-size: .85rem; }
.st-inline input { margin: 0; flex: 1; }
@media (max-width: 420px) { .st-mode span { font-size: .72rem; padding: .5rem .15rem; } }
.st-mode { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.st-mode label { margin: 0; display: block; cursor: pointer; min-width: 0; }
.st-mode input { position: absolute; opacity: 0; pointer-events: none; }
.st-mode span { display: block; text-align: center; border-radius: 999px; font-weight: 600; color: var(--gray); overflow: hidden; text-overflow: ellipsis; }
.st-mode input:checked + span { background: #fff; color: var(--g900); box-shadow: 0 2px 8px rgba(36,82,50,.1); }
