/* ============================================================
   Erntezeit — Designsystem
   Farben, Typografie und Komponenten nach dem Styleguide
   ============================================================ */

:root {
  --primary:    #234F2E;
  --primary-dk: #1a3c23;
  --secondary:  #4CAF50;
  --accent:     #E74C3C;
  --yellow:     #F4C542;
  --blue:       #5DADE2;

  --sage:       #DDE7D6;
  --mint:       #F1F7EF;
  --beige:      #FAF8F3;
  --gray:       #6B7280;
  --dark:       #1F2937;

  --line:       #E6E9E3;
  --card:       #FFFFFF;
  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(31,41,55,.05), 0 4px 14px rgba(31,41,55,.05);
  --shadow-lg:  0 2px 6px rgba(31,41,55,.07), 0 12px 30px rgba(31,41,55,.09);

  --ff-head: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ff-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

@font-face { font-family:'Poppins'; font-display:swap; src:local('Poppins'); }
@font-face { font-family:'Inter';   font-display:swap; src:local('Inter'); }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--dark);
  background: var(--beige);
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--primary); margin: 0 0 .5rem; }
h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.16rem; font-weight: 600; }
h3 { font-size: 1rem;    font-weight: 600; }
h4 { font-size: .8rem;   font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); }

p { margin: .35rem 0; }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
small, .muted-text { color: var(--gray); font-size: .8rem; }

/* ---------- Kopfleiste ---------- */
.topbar {
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; gap: 1rem;
  padding: .5rem 1rem;
  position: sticky; top: 0; z-index: 40;
  padding-top: calc(.5rem + env(safe-area-inset-top));
}
.brand {
  font-family: var(--ff-head); font-weight: 600; font-size: 1rem;
  color: #fff; text-decoration: none; letter-spacing: .06em; text-transform: uppercase;
  display: flex; align-items: center; gap: .5rem; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255,255,255,.13);
  display: grid; place-items: center; flex: 0 0 auto;
}
.brand-mark svg { width: 18px; height: 18px; }

.topnav { display: flex; gap: .15rem; margin-left: auto; align-items: center; }
.topnav a {
  color: rgba(255,255,255,.78); text-decoration: none;
  font-size: .72rem; font-weight: 500;
  padding: .35rem .6rem .3rem; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; gap: .18rem;
  min-width: 58px; position: relative;
}
.topnav a svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7;
                stroke-linecap: round; stroke-linejoin: round; }
.topnav a:hover { color: #fff; background: rgba(255,255,255,.09); text-decoration: none; }
.topnav a.active { color: #fff; }
.topnav a.active::after {
  content: ''; position: absolute; left: 22%; right: 22%; bottom: -.5rem;
  height: 3px; border-radius: 3px 3px 0 0; background: #fff;
}
.topuser {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  background: var(--secondary); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: .82rem;
  margin-left: .5rem; text-decoration: none;
}
.topuser:hover { text-decoration: none; }
.navtoggle { display: none; }

/* ---------- Layout ---------- */
.content { max-width: 1180px; margin: 0 auto; padding: 1.4rem 1rem 2rem; }
.page-head { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--gray); font-size: .9rem; margin: .1rem 0 0; }
.page-head .actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Karten ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem; }
.card-head h2 { margin: 0; }
.card-head .link { margin-left: auto; font-size: .82rem; color: var(--secondary); }

.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.split   { grid-template-columns: 1fr 1fr; align-items: start; }
.grid > .card { margin-bottom: 0; }

/* ---------- Statistikkacheln ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.05rem; box-shadow: var(--shadow);
  display: flex; align-items: flex-start; gap: .7rem; text-decoration: none; color: inherit;
}
.stat:hover { text-decoration: none; box-shadow: var(--shadow-lg); }
.stat-body { min-width: 0; flex: 1; }
.stat-label { font-size: .78rem; color: var(--gray); font-weight: 500; }
.stat-value { font-family: var(--ff-head); font-size: 1.85rem; font-weight: 700; color: var(--primary); line-height: 1.15; }
.stat-value.sm { font-size: 1.12rem; line-height: 1.35; }
.stat-note  { font-size: .76rem; color: var(--gray); }
.stat-ico {
  width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 1.25rem;
  background: var(--mint); color: var(--primary);
}
.stat-ico.warn { background: #FEF6E2; }
.stat-ico.alert{ background: #FDECEA; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: var(--ff-body); font-size: .87rem; font-weight: 600;
  padding: .6rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; border: 1px solid var(--primary);
  cursor: pointer; text-decoration: none; transition: background .14s, box-shadow .14s;
}
.btn:hover { background: var(--primary-dk); text-decoration: none; }
.btn.secondary { background: #fff; color: var(--primary); border-color: var(--line); }
.btn.secondary:hover { background: var(--mint); }
.btn.tertiary { background: transparent; color: var(--primary); border-color: transparent; }
.btn.tertiary:hover { background: var(--mint); }
.btn.danger { background: #fff; color: var(--accent); border-color: #F3D2CE; }
.btn.danger:hover { background: #FDECEA; }
.btn.small { font-size: .78rem; padding: .36rem .7rem; }
.btn.icon  { padding: .4rem; width: 34px; height: 34px; }
.btn.block { width: 100%; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .72rem; font-weight: 600; line-height: 1;
  padding: .3rem .6rem; border-radius: 999px;
  background: var(--mint); color: var(--primary);
  margin-right: .3rem; white-space: nowrap;
}
.badge.aussaat { background: #E6F4E7; color: #2E7D32; }
.badge.pflege  { background: #FEF6E2; color: #97701A; }
.badge.ernte   { background: #FDECEA; color: #B3392C; }
.badge.wichtig { background: #EAF4FC; color: #1F6FA5; }
.badge.ghouse  { background: var(--sage);  color: var(--primary); }
.badge.outdoor { background: #EFEFEF; color: #4B5563; }
.badge.geplant { background: #EAF4FC; color: #1F6FA5; }
.badge.water   { background: #EAF4FC; color: #1F6FA5; }
.badge.sun     { background: #FEF6E2; color: #97701A; }
.badge.warn    { background: #FEF6E2; color: #97701A; }
.badge.ok      { background: #E6F4E7; color: #2E7D32; }
.badge.sev-hoch   { background: #FDECEA; color: #B3392C; }
.badge.sev-mittel { background: #FEF6E2; color: #97701A; }
.badge.sev-gering { background: #E6F4E7; color: #2E7D32; }

/* ---------- Formulare ---------- */
label { display: block; font-size: .8rem; font-weight: 500; color: var(--gray); margin: .75rem 0 .28rem; }
input[type=text], input[type=password], input[type=number], input[type=date],
input[type=email], input[type=search], input[type=file], select, textarea {
  width: 100%; font-family: var(--ff-body); font-size: .9rem; color: var(--dark);
  padding: .62rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; outline: none; transition: border-color .14s, box-shadow .14s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(76,175,80,.14);
}
input::placeholder, textarea::placeholder { color: #A9B0A5; }
select { appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2rem; }
textarea { resize: vertical; }
.checkbox-row { display: flex; align-items: center; gap: .5rem; margin: .7rem 0; }
.checkbox-row input { width: auto; margin: 0; accent-color: var(--secondary); width: 17px; height: 17px; }
.checkbox-row label { margin: 0; color: var(--dark); font-weight: 400; font-size: .87rem; }
form .btn { margin-top: .9rem; }

/* ---------- Tabellen / Listen ---------- */
table { width: 100%; border-collapse: collapse; }
td, th { padding: .6rem .35rem; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; }
tr:last-child td { border-bottom: none; }
.kv td:first-child { color: var(--gray); width: 38%; }

/* Zeile mit Bild (Pflanzenkarte) */
.itemrow { display: flex; align-items: center; gap: .8rem; padding: .62rem 0; border-bottom: 1px solid var(--line); }
.itemrow:last-child { border-bottom: none; }
.thumb { width: 52px; height: 52px; border-radius: var(--radius-sm); flex: 0 0 auto;
         background: var(--mint); object-fit: cover; display: block; }
.thumb.lg { width: 68px; height: 68px; }
.thumb.sm { width: 36px; height: 36px; border-radius: 9px; }
.itemrow-main { flex: 1; min-width: 0; }
.itemrow-title { font-weight: 600; color: var(--dark); display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.itemrow-sub { font-size: .78rem; color: var(--gray); }

/* Fortschrittsbalken */
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; min-width: 70px; }
.bar > span { display: block; height: 100%; border-radius: 3px; background: var(--secondary); }
.bar.wide { width: 100%; }
.barwrap { display: flex; align-items: center; gap: .55rem; }
.barwrap .pct { font-size: .74rem; color: var(--gray); min-width: 34px; text-align: right; }

/* ---------- Hinweise ---------- */
.flash { padding: .75rem .9rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .88rem;
         border: 1px solid transparent; }
.flash.ok    { background: #E6F4E7; color: #2E7D32; border-color: #C6E5C8; }
.flash.error { background: #FDECEA; color: #B3392C; border-color: #F3D2CE; }
.flash.warn  { background: #FEF6E2; color: #8A6414; border-color: #F1DFB0; }
.flash a { color: inherit; text-decoration: underline; }

/* ---------- Wetter ---------- */
.wnow { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.wnow-temp { font-family: var(--ff-head); font-size: 2.4rem; font-weight: 700; color: var(--primary); line-height: 1; }
.wnow-sym { font-size: 2.6rem; line-height: 1; }
.wnow-meta { font-size: .82rem; color: var(--gray); }
.wmetrics { display: grid; gap: .45rem; font-size: .83rem; color: var(--gray); }
.wmetrics b { color: var(--dark); font-weight: 600; }

.wstrip { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem .1rem .5rem;
          scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.wday { flex: 0 0 auto; min-width: 66px; text-align: center; padding: .6rem .35rem;
        border-radius: var(--radius-sm); background: var(--mint); border: 1px solid transparent;
        scroll-snap-align: start; }
.wday.today { background: var(--sage); border-color: #C5D6BC; }
.wday.cold  { background: #EAF4FC; border-color: #CDE4F5; }
.wd-name { font-size: .72rem; font-weight: 600; color: var(--primary); }
.wd-date { font-size: .68rem; color: var(--gray); }
.wd-sym  { font-size: 1.5rem; line-height: 1.6; }
.wd-max  { font-size: .95rem; font-weight: 700; color: var(--dark); }
.wd-min  { font-size: .78rem; color: var(--gray); }
.wd-rain { font-size: .66rem; color: var(--blue); }

.wevent { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem .85rem;
          border-radius: var(--radius-sm); margin-bottom: .55rem;
          border-left: 4px solid var(--yellow); background: #FEF9EC; }
.wevent.sev-warnung  { border-left-color: var(--yellow); background: #FEF9EC; }
.wevent.sev-kritisch { border-left-color: var(--accent); background: #FDECEA; }
.wevent.sev-info     { border-left-color: var(--blue);   background: #EFF7FD; }
.wevent-ico { font-size: 1.4rem; line-height: 1.2; }
.wevent p { margin: .2rem 0 0; font-size: .83rem; color: #4B5563; }
.wevent-date { font-size: .76rem; color: var(--gray); margin-left: .35rem; font-weight: 500; }

/* ---------- Gewächshaus-Legende ---------- */
.legend { display: grid; gap: .45rem; font-size: .85rem; }
.legend-item { display: flex; align-items: center; gap: .55rem; }
.legend-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.legend-count { margin-left: auto; font-weight: 600; color: var(--dark); }

.plot-bed { fill: var(--sage); stroke: #C5D6BC; stroke-width: 1.5; transition: fill .14s; }
.plot-bed.occupied { fill: #C9E3C2; }
a:hover > .plot-bed { fill: #B6DAAE; }
.plot-label { font-size: 10px; font-family: var(--ff-body); font-weight: 600; fill: var(--primary); }

/* ---------- Klapplisten ---------- */
.plantlist { list-style: none; margin: 0; padding: 0; }
.plantrow { border-bottom: 1px solid var(--line); }
.plantrow:last-child { border-bottom: none; }
.plantrow-head { display: flex; align-items: center; gap: .5rem; }
.plantrow-head > details { flex: 1; min-width: 0; }
.plantrow summary { cursor: pointer; padding: .6rem .1rem; display: flex; align-items: center; gap: .65rem;
                    list-style: none; user-select: none; }
.plantrow summary::-webkit-details-marker { display: none; }
.plantrow summary::after { content: ''; width: 7px; height: 7px; margin-left: auto; flex: 0 0 auto;
  border-right: 2px solid #B7BDB2; border-bottom: 2px solid #B7BDB2; transform: rotate(-45deg);
  transition: transform .15s; }
.plantrow details[open] > summary::after { transform: rotate(45deg); }
.pl-name { font-weight: 600; color: var(--dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-icon { font-size: 1.15rem; flex: 0 0 auto; }
.plantdetail { padding: .1rem .2rem 1rem 0; font-size: .89rem; color: #3F4A45; }
.plantdetail h4 { margin: .9rem 0 .25rem; }
.plantdetail p { line-height: 1.6; }
.rowbtns { margin-top: .9rem; display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.inline-link { font-size: .82rem; white-space: nowrap; }

.starform { flex: 0 0 auto; margin: 0; }
.starbtn { background: none; border: none; font-size: 1.3rem; cursor: pointer; padding: .2rem .25rem;
           color: #C9CEC5; line-height: 1; }
.starbtn.on { color: var(--yellow); }
.growncheck { flex: 0 0 auto; color: var(--secondary); font-weight: 700; }

/* ---------- Suche, Chips, Tabs ---------- */
.searchrow { display: flex; gap: .5rem; align-items: center; }
.searchrow input[type=search] { flex: 1; }
.filterrow { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .7rem; }
.chip { display: inline-block; padding: .32rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 500;
        background: var(--mint); color: var(--primary); border: 1px solid transparent; text-decoration: none; }
.chip:hover { text-decoration: none; background: var(--sage); }
.chip.active { background: var(--primary); color: #fff; }
.chip.active:hover { background: var(--primary-dk); }

.tabbar { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .7rem; }
.tab { flex: 0 0 auto; padding: .45rem .9rem; border-radius: 999px; font-size: .86rem; font-weight: 500;
       background: #fff; color: var(--primary); border: 1px solid var(--line); white-space: nowrap; text-decoration: none; }
.tab:hover { text-decoration: none; background: var(--mint); }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab.muted { opacity: .55; }

details.card > summary { cursor: pointer; list-style: none; font-family: var(--ff-head);
  font-size: .95rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: .45rem; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::before { content: '+'; width: 20px; height: 20px; border-radius: 6px;
  background: var(--mint); display: grid; place-items: center; font-size: .95rem; line-height: 1; }
details.card[open] > summary::before { content: '−'; }

/* ---------- Anmeldung ---------- */
.auth-wrap { max-width: 380px; margin: 8vh auto; }
.auth-wrap h1 { text-align: center; margin-bottom: .3rem; }
.auth-wrap .auth-sub { text-align: center; color: var(--gray); font-size: .85rem; margin-bottom: 1.2rem; }
.auth-logo { display: block; margin: 0 auto .6rem; width: 74px; height: 74px; }

/* ---------- Fußbereich ---------- */
.footer { text-align: center; padding: 1.5rem 1rem 2rem; color: var(--gray); font-size: .78rem; }

/* ---------- Mobile Bottom-Navigation ---------- */
.bottomnav { display: none; }

@media (max-width: 900px) {
  .topnav { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3, .grid.cols-4, .grid.split { grid-template-columns: 1fr; }
  .content { padding: 1rem .85rem 5.5rem; }
  h1 { font-size: 1.45rem; }

  .bottomnav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: #fff; border-top: 1px solid var(--line);
    padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 14px rgba(31,41,55,.06);
  }
  .bottomnav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem;
    font-size: .66rem; font-weight: 500; color: var(--gray); text-decoration: none; padding: .3rem .1rem;
    border-radius: var(--radius-sm);
  }
  .bottomnav a svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7;
                     stroke-linecap: round; stroke-linejoin: round; }
  .bottomnav a.active { color: var(--primary); }
  .bottomnav a.active svg { stroke-width: 2.1; }
}

@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .stat { padding: .8rem; gap: .55rem; }
  .stat-value { font-size: 1.5rem; }
  .stat-ico { width: 34px; height: 34px; font-size: 1.05rem; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .card { padding: .95rem; }
}

/* ============================================================
   v07 — mehr visuelle Tiefe
   ============================================================ */

/* Kopfbereich mit Verlauf und Blattmuster */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #234F2E 0%, #2E6B3A 55%, #4CAF50 140%);
  color: #fff; border-radius: var(--radius); padding: 1.4rem 1.3rem;
  margin-bottom: 1.1rem; box-shadow: var(--shadow);
}
.hero::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 190px; height: 190px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M56 8C28 8 8 22 8 42c0 7 5 13 12 13 21 0 36-20 36-47z' fill='%23ffffff' opacity='.10'/%3E%3Cpath d='M8 58C20 40 34 26 54 14' stroke='%23ffffff' stroke-opacity='.14' stroke-width='2.4' fill='none'/%3E%3C/svg%3E") no-repeat center/contain;
  pointer-events: none;
}
.hero h1 { color: #fff; margin: 0 0 .2rem; position: relative; }
.hero .sub { color: rgba(255,255,255,.82); font-size: .9rem; margin: 0; position: relative; }
.hero .actions { margin-top: .9rem; position: relative; display: flex; gap: .5rem; flex-wrap: wrap; }
.hero .btn { background: #fff; color: var(--primary); border-color: #fff; }
.hero .btn:hover { background: var(--mint); }
.hero .btn.ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.24); }

/* Gewächshaus als Platzraster im Stil des Entwurfs */
.ghgrid-wrap { text-align: center; }
.ghroof { display: block; margin: 0 auto -1px; }
.ghgrid {
  display: grid; gap: 6px; padding: 10px;
  border: 2px solid var(--primary); border-top: none;
  border-radius: 0 0 4px 4px; background: #FCFDFB;
}
.ghcell {
  aspect-ratio: 1 / 1.25; border-radius: 6px; position: relative; overflow: hidden;
  display: grid; place-items: center; text-decoration: none;
  background: linear-gradient(#F4F1E9 0 55%, #E4E7DC 55% 100%);
  border: 1px solid rgba(31,41,55,.06);
}
.ghcell img { width: 78%; height: 78%; object-fit: contain; }
.ghcell.free { background: linear-gradient(#F7F6F2 0 55%, #ECECE7 55% 100%); }
.ghcell:hover { outline: 2px solid var(--secondary); outline-offset: 1px; }
.ghcell .cnt {
  position: absolute; right: 3px; bottom: 2px; font-size: .6rem; font-weight: 700;
  color: var(--primary); background: rgba(255,255,255,.8); border-radius: 4px; padding: 0 3px;
}
.ghcell.c0 { background: linear-gradient(#F6E3C8 0 55%, #DCC9A8 55% 100%); }
.ghcell.c1 { background: linear-gradient(#FAEFC4 0 55%, #E7D89A 55% 100%); }
.ghcell.c2 { background: linear-gradient(#DDEFD3 0 55%, #BFD9B0 55% 100%); }
.ghcell.c3 { background: linear-gradient(#E7F0D8 0 55%, #C9DCAE 55% 100%); }
.ghcell.c4 { background: linear-gradient(#E7DCF2 0 55%, #CDBBE2 55% 100%); }
.ghcell.c5 { background: linear-gradient(#D8E9F5 0 55%, #B4D2E8 55% 100%); }

/* Leere Zustände */
.empty { text-align: center; padding: 1.6rem .8rem; }
.empty img, .empty svg { width: 86px; height: 86px; opacity: .85; margin-bottom: .5rem; }
.empty p { color: var(--gray); margin: .2rem 0 .9rem; font-size: .89rem; }
.empty h3 { margin: 0 0 .2rem; }

/* Filterblock */
.filterbox { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.filterbox > summary {
  cursor: pointer; list-style: none; font-size: .85rem; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: .4rem;
}
.filterbox > summary::-webkit-details-marker { display: none; }
.filterbox > summary svg { stroke: currentColor; fill: none; stroke-width: 1.7; }
.filterbox h4 { margin: .9rem 0 .35rem; }

/* Kategorie-Überschrift mit Zähler */
.cat-head { display: flex; align-items: center; gap: .55rem; margin-bottom: .6rem; }
.cat-head h2 { margin: 0; }
.cat-count {
  font-size: .72rem; font-weight: 600; color: var(--primary);
  background: var(--mint); border-radius: 999px; padding: .18rem .55rem;
}

/* Karten mit farbigem Kopfstreifen */
.card.accent-top { border-top: 3px solid var(--secondary); }

/* Wachstumsbalken farbig nach Fortschritt */
.bar > span.p-low  { background: var(--blue); }
.bar > span.p-mid  { background: var(--secondary); }
.bar > span.p-high { background: var(--yellow); }
.bar > span.p-done { background: var(--accent); }

/* Zeilen anklickbar */
a.itemrow { text-decoration: none; color: inherit; }
a.itemrow:hover { text-decoration: none; }
a.itemrow:hover .itemrow-title { color: var(--secondary); }

@media (max-width: 460px) {
  .hero { padding: 1.1rem 1rem; }
  .hero::after { width: 130px; height: 130px; }
}

/* Installationshinweis */
.installbar {
  position: fixed; left: 12px; right: 12px; z-index: 60;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: .8rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem .9rem; box-shadow: var(--shadow-lg);
  transform: translateY(140%); opacity: 0; transition: transform .28s ease, opacity .28s ease;
}
.installbar.show { transform: translateY(0); opacity: 1; }
.ib-icon img { width: 42px; height: 42px; border-radius: 11px; display: block; }
.ib-text { flex: 1; min-width: 0; }
.ib-text strong { display: block; font-family: var(--ff-head); font-size: .93rem; color: var(--primary); }
.ib-text span { display: block; font-size: .79rem; color: var(--gray); line-height: 1.4; }
.ib-btns { display: flex; gap: .3rem; flex-shrink: 0; }
@media (max-width: 900px) { .installbar { bottom: calc(70px + env(safe-area-inset-bottom)); } }
@media (max-width: 460px) {
  .installbar { flex-wrap: wrap; }
  .ib-btns { width: 100%; justify-content: flex-end; }
}

/* Grundriss mit Bepflanzung */
.areaplan .plot-bed { fill: #EFEFEA; stroke: #D6D9D0; stroke-width: 1.4; transition: fill .14s; }
.areaplan .plot-bed.occupied { fill: var(--sage); stroke: #B9CDAE; }
.areaplan .plot-bed.planned  { fill: #F4F8F1; stroke: var(--secondary); stroke-width: 1.6; stroke-dasharray: 5 3; }
.areaplan a:hover .plot-bed { fill: #CFE4C6; }
.areaplan .plot-label { font-size: 10.5px; font-weight: 600; fill: var(--primary); font-family: var(--ff-body); }
.planlegend { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; font-size: .78rem; color: var(--gray); margin-top: .5rem; }
.planlegend span { display: inline-flex; align-items: center; gap: .35rem; }
.planlegend i { width: 14px; height: 11px; border-radius: 3px; display: inline-block; }
.planlegend i.pl { background: #F4F8F1; border: 1.5px dashed var(--secondary); }
.planlegend i.oc { background: var(--sage); border: 1px solid #B9CDAE; }
.planlegend i.fr { background: #EFEFEA; border: 1px solid #D6D9D0; }
