/* Hang-Bepflanzung — Design System v3 · Offline · Mobile-first */
:root {
  --green-deep: #1a5f2a;
  --green-deep-hover: #144d22;
  --green-mid: #2d7a3e;
  --green-light: #81c784;
  --green-soft: #a5d6a7;
  --green-bg: #f4f8f4;
  --green-muted: #e6f2e8;
  --green-border: #d0e5d3;
  --text: #122018;
  --text-muted: #3d5244;
  --text-light: #627568;
  --warn: #e65100;
  --warn-bg: #fff3e0;
  --warn-border: #ffcc80;
  --white: #fff;
  --shadow-sm: 0 1px 2px rgba(18, 32, 24, 0.04), 0 1px 3px rgba(18, 32, 24, 0.06);
  --shadow-md: 0 4px 12px rgba(18, 32, 24, 0.06), 0 8px 24px rgba(26, 95, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(18, 32, 24, 0.08), 0 24px 48px rgba(26, 95, 42, 0.08);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --nav-h: 68px;
  --max-w: 1140px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.28s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--green-mid); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--green-deep);
  outline-offset: 3px;
}
ul { list-style: none; }

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.25rem); letter-spacing: -0.02em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-muted); line-height: 1.7; max-width: 38rem; }
.botanical { font-style: italic; font-weight: 400; color: var(--text-light); }
.muted { color: var(--text-muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.35rem; }
@media (min-width: 900px) { .container { padding: 0 2rem; } }
.section { padding: 3.5rem 0; }
@media (min-width: 900px) { .section { padding: 5rem 0; } }
.section--alt { background: var(--green-bg); }
.section--tight { padding-top: 2.5rem; }
.section-header { margin-bottom: 1.75rem; max-width: 40rem; }
.section-header .lead { margin-top: 0.75rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.site-header.scrolled {
  border-bottom-color: rgba(26,95,42,0.08);
  box-shadow: 0 1px 0 rgba(26,95,42,0.04);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1rem; }
.logo {
  display: flex; align-items: center; gap: 0.65rem;
  font-weight: 700; font-size: 1.02rem; color: var(--text); letter-spacing: -0.025em;
}
.logo:hover { color: var(--green-deep); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, var(--green-deep), var(--green-mid));
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26,95,42,0.25);
}
.logo-mark svg { width: 18px; height: 18px; }
.nav-links {
  display: none; align-items: center; gap: 0.15rem;
  background: var(--green-bg); padding: 0.3rem; border-radius: 999px;
  border: 1px solid var(--green-border);
}
.nav-links a {
  padding: 0.45rem 0.95rem; border-radius: 999px;
  font-size: 0.875rem; font-weight: 550; color: var(--text-muted);
}
.nav-links a:hover { color: var(--green-deep); background: rgba(255,255,255,0.7); }
.nav-links a.active {
  color: var(--green-deep); background: var(--white); box-shadow: var(--shadow-sm);
}
.nav-links a.nav-cta {
  background: var(--green-deep); color: #fff; margin-left: 0.2rem;
}
.nav-links a.nav-cta:hover { background: var(--green-deep-hover); color: #fff; }
.nav-links a.nav-cta.active { background: var(--green-deep); color: #fff; box-shadow: none; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--green-border);
  background: var(--white); cursor: pointer; padding: 11px; border-radius: 12px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
  padding: 1.25rem 1.35rem 2rem; z-index: 99; flex-direction: column; gap: 0.35rem; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 0.95rem 1.15rem; border-radius: 12px; font-weight: 550; font-size: 1.02rem; color: var(--text);
  border: 1px solid transparent;
}
.mobile-nav a:hover, .mobile-nav a.active {
  background: var(--green-muted); color: var(--green-deep); border-color: var(--green-border);
}
.mobile-nav a.nav-cta {
  background: var(--green-deep); color: #fff; text-align: center; margin-top: 0.5rem;
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.45rem; font-family: inherit; font-size: 0.975rem; font-weight: 600;
  border-radius: 14px; border: none; cursor: pointer; line-height: 1.2; letter-spacing: -0.01em;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--green-deep); color: #fff;
  box-shadow: 0 2px 8px rgba(26,95,42,0.28), 0 8px 20px rgba(26,95,42,0.12);
}
.btn-primary:hover { background: var(--green-deep-hover); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: var(--white); color: var(--green-deep); border: 1.5px solid var(--green-border);
}
.btn-secondary:hover { background: var(--green-muted); border-color: var(--green-light); color: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--green-deep); padding: 0.5rem 0; }
.btn-danger {
  background: transparent; color: #c62828; border: 1px solid #ffcdd2;
  padding: 0.45rem 0.75rem; font-size: 0.85rem; border-radius: 10px;
}
.btn-danger:hover { background: #ffebee; }
.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.875rem; border-radius: 10px; }
.btn-text {
  background: none; border: none; font-family: inherit; font-size: 0.875rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.btn-text:hover { color: var(--green-deep); }

/* Hero */
.hero {
  position: relative; min-height: min(78vh, 640px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #0a1a0e;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  transform: scale(1.03); transition: transform 10s var(--ease);
}
.hero.loaded .hero-media img { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,18,10,0.3) 0%, rgba(6,18,10,0.45) 45%, rgba(6,18,10,0.82) 100%);
}
.hero-content {
  position: relative; z-index: 2; padding: 5rem 0 3.5rem; color: #fff;
  max-width: 42rem; text-align: center; margin: 0 auto;
}
.hero-content .eyebrow { color: var(--green-soft); }
.hero-content h1 { color: #fff; margin-bottom: 1.1rem; text-wrap: balance; }
.hero-content .lead { color: rgba(255,255,255,0.9); margin: 0 auto 1.85rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hero-actions .btn-primary {
  background: var(--green-light); color: #0d2814;
  box-shadow: 0 4px 20px rgba(129,199,132,0.35);
}
.hero-actions .btn-primary:hover { background: #96d49b; color: #0d2814; }
.hero-actions .btn-secondary {
  background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4);
}
.hero-actions .btn-secondary:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* Feature / info cards */
.features { display: grid; gap: 0.85rem; margin-top: -2.5rem; position: relative; z-index: 5; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.feature-card, .info-card {
  background: var(--white); border-radius: var(--radius); padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(26,95,42,0.07);
  transition: transform var(--t), box-shadow var(--t);
}
.feature-card { display: flex; gap: 1rem; align-items: flex-start; }
.feature-card:hover, .info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-icon, .icon-wrap {
  width: 44px; height: 44px; border-radius: 12px; background: var(--green-muted);
  color: var(--green-deep); display: grid; place-items: center; flex-shrink: 0;
}
.info-grid { display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card { box-shadow: var(--shadow-sm); }
.info-card .icon-wrap { margin-bottom: 1rem; }
.info-card p { color: var(--text-muted); font-size: 0.94rem; }

/* Tip box */
.tip-box {
  background: linear-gradient(155deg, #0c3018 0%, var(--green-deep) 48%, #2e7d32 100%);
  border-radius: var(--radius-lg); padding: 2rem 1.5rem; color: #fff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
@media (min-width: 700px) { .tip-box { padding: 2.5rem; } }
.tip-box .eyebrow { color: var(--green-soft); }
.tip-box h2 { color: #fff; margin-bottom: 0.75rem; }
.tip-box > p { color: rgba(255,255,255,0.88); margin-bottom: 1.5rem; max-width: 40rem; }
.tier-list { display: grid; gap: 0.9rem; }
@media (min-width: 800px) { .tier-list { grid-template-columns: repeat(3, 1fr); } }
.tier {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 1.25rem; backdrop-filter: blur(8px);
}
.tier-num {
  width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,0.15);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
  color: var(--green-soft); margin-bottom: 0.65rem;
}
.tier-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-soft); margin-bottom: 0.4rem; }
.tier h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.4rem; }
.tier p { font-size: 0.9rem; color: rgba(255,255,255,0.82); line-height: 1.55; }

/* Filter panel */
.filter-panel {
  background: var(--green-bg); border: 1px solid var(--green-border);
  border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm);
}
.filter-search-row { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1rem; }
@media (min-width: 720px) {
  .filter-search-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.search-field { position: relative; flex: 1; min-width: 0; }
.search-field .search-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-light); pointer-events: none;
}
.search-field input, .field input, .field select {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--green-border);
  border-radius: 14px; font-family: inherit; font-size: 1rem; color: var(--text); background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
}
.search-field input { padding-left: 2.85rem; }
.search-field input:focus, .field input:focus, .field select:focus {
  outline: none; border-color: var(--green-light); box-shadow: 0 0 0 4px rgba(129,199,132,0.22);
}
.filter-meta { display: flex; align-items: center; gap: 1rem; }
.result-count {
  font-size: 0.875rem; font-weight: 600; color: var(--green-deep);
  background: var(--white); border: 1px solid var(--green-border);
  padding: 0.4rem 0.75rem; border-radius: 999px; white-space: nowrap;
}
.filter-groups { display: grid; gap: 1rem; }
@media (min-width: 700px) { .filter-groups { grid-template-columns: repeat(3, 1fr); } }
.filter-group { border: none; margin: 0; padding: 0; }
.filter-group legend {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 0.5rem;
}
.check {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.9rem; cursor: pointer; margin-bottom: 0.4rem; line-height: 1.4;
}
.check input { margin-top: 0.2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--green-deep); cursor: pointer; }
.filter-legend {
  margin-top: 0.9rem; padding-top: 0.85rem; border-top: 1px solid var(--green-border);
  font-size: 0.82rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
}

/* Badges */
.badge {
  display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 650; background: var(--green-muted); color: var(--green-deep);
}
.badge--flower { background: #fce4ec; color: #ad1457; }
.badge--ok { background: var(--green-muted); color: var(--green-deep); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }

/* Tables — scroll panel so sticky header works reliably (overflow-x alone breaks sticky) */
.plant-table-wrap {
  max-height: min(62vh, 520px);
  overflow: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--green-border);
  background: var(--white);
  box-shadow: var(--shadow-md);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.plant-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 960px;
  font-size: 0.875rem;
}
.plant-table thead { background: var(--green-deep); color: #fff; }
.plant-table th {
  padding: 0.95rem 0.85rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  /* sticks to top of .plant-table-wrap while rows scroll */
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--green-deep);
  color: #fff;
  /* solid edge so scrolled rows don't peek under the header */
  box-shadow:
    0 1px 0 var(--green-deep),
    0 3px 0 var(--green-deep),
    0 4px 10px rgba(18, 32, 24, 0.14);
}
.plant-table tbody tr {
  cursor: pointer;
  transition: background var(--t);
}
.plant-table tbody tr:hover td { background: var(--green-muted); }
.plant-table td {
  padding: 0.9rem 0.85rem;
  vertical-align: middle;
  white-space: nowrap;
  border-bottom: 1px solid var(--green-border);
  background: var(--white);
}
.plant-table tbody tr:last-child td { border-bottom: none; }
.plant-table td:first-child { white-space: normal; min-width: 150px; }
.plant-name { font-weight: 650; display: block; letter-spacing: -0.015em; }
.plant-botanical { font-size: 0.78rem; font-style: italic; color: var(--text-light); }
.link-arrow { color: var(--green-deep); font-weight: 650; font-size: 0.85rem; }
.empty-row { text-align: center; padding: 2rem !important; color: var(--text-muted); white-space: normal !important; }
.table-hint { font-size: 0.8rem; color: var(--text-light); margin-top: 0.6rem; }

/* Cards */
.plant-grid { display: grid; gap: 1.15rem; margin-top: 1.5rem; }
@media (min-width: 560px) { .plant-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .plant-grid { grid-template-columns: repeat(3, 1fr); } }
.plant-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--green-border);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  color: inherit; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.plant-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green-light); color: inherit;
}
.plant-card-img {
  aspect-ratio: 4/3; background: linear-gradient(145deg, var(--green-muted), var(--green-soft));
  overflow: hidden; position: relative;
}
.plant-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform 0.5s var(--ease); }
.plant-card:hover .plant-card-img img { transform: scale(1.05); }
.plant-card-img .type-tag {
  position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.25rem 0.65rem; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  background: rgba(255,255,255,0.94); color: var(--green-deep); box-shadow: var(--shadow-sm);
}
.plant-card-img .type-tag.flower { color: #ad1457; }
.plant-card-body { padding: 1.15rem 1.25rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.plant-card-body h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.plant-card-body .botanical { font-size: 0.85rem; margin-bottom: 0.75rem; }
.plant-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.9rem; margin-top: auto; }
.meta-chip {
  font-size: 0.72rem; font-weight: 550; padding: 0.25rem 0.5rem; border-radius: 8px;
  background: var(--green-bg); color: var(--text-muted); border: 1px solid var(--green-border);
}
.meta-chip--warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-border); }
.card-link { font-weight: 650; font-size: 0.9rem; color: var(--green-deep); }

.plant-placeholder {
  width: 100%; height: 100%; min-height: 160px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.35rem;
  background: linear-gradient(145deg, #e8f5e9, #c8e6c9); color: var(--green-deep);
}
.plant-placeholder[data-type="blühend"] {
  background: linear-gradient(145deg, #fce4ec, #f8bbd0 50%, #e8f5e9); color: #880e4f;
}
.plant-placeholder-icon { font-size: 1.6rem; opacity: 0.85; }
.plant-placeholder-label { font-size: 0.75rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; }
.plant-placeholder--lg { min-height: 100%; aspect-ratio: 4/3; }

/* Detail */
.detail-hero { background: var(--green-bg); border-bottom: 1px solid var(--green-border); padding: 1.5rem 0 2.25rem; }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  font-size: 0.84rem; color: var(--text-light); margin-bottom: 1.35rem;
}
.breadcrumb a { color: var(--text-muted); }
.detail-header { display: grid; gap: 1.75rem; align-items: start; }
@media (min-width: 860px) { .detail-header { grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; } }
.detail-visual {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--green-muted), var(--green-soft)); box-shadow: var(--shadow-lg);
}
.detail-visual img { width: 100%; height: 100%; object-fit: cover; }
.detail-title .type-badge {
  display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--green-muted); color: var(--green-deep); margin-bottom: 0.75rem; margin-right: 0.35rem;
}
.detail-title .type-badge.flower { background: #fce4ec; color: #ad1457; }
.detail-title .type-badge.warn { background: var(--warn-bg); color: var(--warn); }
.detail-title h1 { margin-bottom: 0.25rem; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.detail-title .botanical { font-size: 1.1rem; display: block; margin-bottom: 1rem; }
.detail-title .lead { margin-bottom: 1.25rem; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
@media (min-width: 520px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
.spec-item {
  background: var(--white); border: 1px solid var(--green-border); border-radius: var(--radius-sm); padding: 0.8rem 0.9rem;
}
.spec-item dt {
  font-size: 0.68rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-light); margin-bottom: 0.25rem;
}
.spec-item dd { font-weight: 650; font-size: 0.92rem; display: flex; align-items: center; gap: 0.3rem; }
.content-sections { display: grid; gap: 1.1rem; }
@media (min-width: 860px) { .content-sections { grid-template-columns: 1fr 1fr; } }
.content-block {
  background: var(--white); border: 1px solid var(--green-border); border-radius: var(--radius);
  padding: 1.45rem; box-shadow: var(--shadow-sm);
}
.content-block h2 {
  font-size: 1.1rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.55rem;
}
.content-block h2 .num {
  width: 28px; height: 28px; border-radius: 8px; background: var(--green-muted);
  color: var(--green-deep); font-size: 0.8rem; display: grid; place-items: center; font-weight: 700;
}
.content-block p { color: var(--text-muted); margin-bottom: 0.65rem; line-height: 1.7; }
.content-block p:last-child { margin-bottom: 0; }
.content-block strong { color: var(--text); }
.detail-nav {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--green-border);
}
.alert-box {
  margin-top: 1.1rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; line-height: 1.55;
}
.alert-box--warn { background: #fff8f0; border: 1px solid var(--warn-border); color: #5d4037; }
.check-icon {
  display: inline-flex; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-muted); color: var(--green-deep); align-items: center; justify-content: center;
}
.check-icon svg { width: 11px; height: 11px; }

/* ========== MENGENRECHNER ========== */
.page-hero {
  background: var(--green-bg); border-bottom: 1px solid var(--green-border);
  padding: 2rem 0 2.25rem;
}
.page-hero--compact { padding: 1.5rem 0 1.35rem; }
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero .lead { margin-top: 0.5rem; }
.lead--short { max-width: 32rem; font-size: 1.05rem; }
.section--rechner { padding-bottom: 6rem; }
@media (min-width: 960px) { .section--rechner { padding-bottom: 4rem; } }

body.page-rechner { padding-bottom: 0; }
@media (max-width: 959px) {
  body.page-rechner { padding-bottom: 72px; }
}

.rechner-layout {
  display: grid; gap: 1.5rem;
}
@media (min-width: 960px) {
  .rechner-layout {
    grid-template-columns: 1fr 320px;
    align-items: start;
    gap: 1.75rem;
  }
  .rechner-summary { position: sticky; top: calc(var(--nav-h) + 1rem); }
}

.panel {
  background: var(--white); border: 1px solid var(--green-border);
  border-radius: var(--radius-lg); padding: 1.35rem 1.4rem; box-shadow: var(--shadow-sm);
}
.panel h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.panel-hint { font-size: 0.85rem; color: var(--text-light); margin-top: 0.75rem; line-height: 1.5; }

.field { margin-bottom: 1rem; }
.field label {
  display: block; font-size: 0.8rem; font-weight: 650; color: var(--text-muted);
  margin-bottom: 0.4rem; letter-spacing: 0.02em;
}
.field-row { display: grid; gap: 0.75rem; }
@media (min-width: 560px) {
  .field-row--2 { grid-template-columns: 1fr 1fr; }
  .field-row--3 { grid-template-columns: 1fr 1fr 1fr; }
}
.field-unit {
  position: relative;
}
.field-unit .unit {
  position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%);
  font-size: 0.85rem; color: var(--text-light); font-weight: 600; pointer-events: none;
}
.field-unit input { padding-right: 2.5rem; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Summary card */
.summary-card {
  background: linear-gradient(155deg, #0c3018 0%, var(--green-deep) 55%, #2e7d32 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-lg);
}
.summary-card h2 { color: #fff; font-size: 1.1rem; margin-bottom: 1.15rem; }
.summary-rows { display: grid; gap: 0.75rem; }
.summary-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-bottom: 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.92rem; color: rgba(255,255,255,0.85);
}
.summary-row:last-child { border-bottom: none; padding-bottom: 0; }
.summary-row strong { color: #fff; font-size: 1.15rem; letter-spacing: -0.02em; }
.summary-row.highlight strong { font-size: 1.35rem; color: var(--green-soft); }
.summary-row.free.negative span { color: #ffccbc; }
.summary-row.free.negative strong { color: #ffab91; }
.summary-note { margin-top: 1rem; font-size: 0.8rem; color: rgba(255,255,255,0.65); line-height: 1.5; }
.summary-actions { margin-top: 1.15rem; display: flex; flex-direction: column; gap: 0.5rem; }
.summary-actions .btn-secondary {
  background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.3);
}
.summary-actions .btn-secondary:hover { background: rgba(255,255,255,0.2); color: #fff; }

.formula-box {
  margin-top: 1.5rem; padding: 1.15rem 1.25rem; background: var(--green-bg);
  border: 1px solid var(--green-border); border-radius: var(--radius); font-size: 0.9rem; color: var(--text-muted);
}
.formula-box code {
  display: inline-block; margin: 0.35rem 0; padding: 0.25rem 0.5rem;
  background: var(--white); border-radius: 6px; color: var(--green-deep); font-size: 0.85rem;
}
.formula-box--nested { margin-top: 0.75rem; }
.formula-details {
  margin-top: 1.25rem; border: 1px solid var(--green-border); border-radius: var(--radius);
  background: var(--white); padding: 0.85rem 1.15rem;
}
.formula-details summary {
  cursor: pointer; font-weight: 650; font-size: 0.92rem; color: var(--text-muted);
  list-style: none;
}
.formula-details summary::-webkit-details-marker { display: none; }
.formula-details summary::before { content: "▸ "; color: var(--green-deep); }
.formula-details[open] summary::before { content: "▾ "; }

/* Step panels */
.step-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; }
.step-head h2 { margin: 0; font-size: 1.15rem; }
.step-badge {
  width: 32px; height: 32px; border-radius: 10px; background: var(--green-deep); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.area-hero-input {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem;
}
.field-unit--lg input {
  font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em;
  padding: 0.85rem 3rem 0.85rem 1rem; max-width: 220px; border-radius: 16px;
}
.field-unit--lg .unit { font-size: 1.1rem; font-weight: 700; color: var(--green-deep); }
.check--inline { margin: 0; align-items: center; }
.check--inline small { color: var(--text-light); font-weight: 500; }

.progress-block { margin-top: 1.15rem; }
.progress-meta {
  display: flex; justify-content: space-between; font-size: 0.85rem;
  color: var(--text-muted); margin-bottom: 0.45rem; font-weight: 550;
}
.progress-track {
  height: 10px; background: var(--green-muted); border-radius: 999px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0; background: linear-gradient(90deg, var(--green-mid), var(--green-light));
  border-radius: 999px; transition: width 0.35s var(--ease);
}
.progress-fill.over { background: linear-gradient(90deg, #e65100, #ff8a65); }

.field--grow { flex: 1; min-width: 200px; margin-bottom: 0; }
.add-plant-bar { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: flex-end; margin-bottom: 0.25rem; }
.add-plant-bar .btn { height: 48px; padding-left: 1.25rem; padding-right: 1.25rem; }

/* Line items v2 */
.line-items { display: grid; gap: 0.9rem; margin-top: 1.25rem; }
.line-item {
  border: 1px solid var(--green-border); border-radius: var(--radius);
  padding: 1.1rem 1.15rem; background: var(--white);
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.3s var(--ease);
}
.line-item-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  margin-bottom: 0.75rem;
}
.line-item-title { display: flex; gap: 0.7rem; align-items: flex-start; min-width: 0; }
.line-num {
  width: 26px; height: 26px; border-radius: 8px; background: var(--green-muted);
  color: var(--green-deep); font-size: 0.8rem; font-weight: 700;
  display: grid; place-items: center; flex-shrink: 0; margin-top: 2px;
}
.line-item-title h3 { font-size: 1.05rem; margin-bottom: 0.1rem; }
.line-item-title .botanical { font-size: 0.82rem; display: block; }
.line-item-cost { text-align: right; flex-shrink: 0; }
.line-cost-label {
  display: block; font-size: 0.7rem; font-weight: 650; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-light); margin-bottom: 0.15rem;
}
.line-cost-value { font-size: 1.2rem; color: var(--green-deep); letter-spacing: -0.02em; }

.line-item-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.95rem; }
.meta-chip--mode { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }

.line-item-inputs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: end;
}
.line-item-inputs .line-item-result { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .line-item-inputs { grid-template-columns: 1.2fr 1fr 0.9fr; }
  .line-item-inputs .line-item-result { grid-column: auto; }
}
.line-item-inputs .field { margin-bottom: 0; }
.line-item-inputs .field label { font-size: 0.72rem; }
.line-item-inputs input { padding: 0.65rem 0.8rem; border-radius: 10px; font-size: 1rem; font-weight: 600; }
.line-item-result {
  background: var(--green-bg); border: 1px solid var(--green-border); border-radius: 10px;
  padding: 0.55rem 0.75rem; display: flex; flex-direction: column; justify-content: center;
  min-height: 64px;
}
.line-result-label {
  font-size: 0.68rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-light); margin-bottom: 0.15rem;
}
.line-item-result strong { font-size: 1.05rem; color: var(--text); }

.line-item-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid var(--green-border);
}
.btn-text.danger { color: #c62828; text-decoration: none; }
.btn-text.danger:hover { color: #b71c1c; text-decoration: underline; }

.line-empty {
  text-align: center; padding: 2.25rem 1.25rem; color: var(--text-muted);
  border: 1.5px dashed var(--green-border); border-radius: var(--radius); background: var(--green-bg);
}
.line-empty-icon {
  width: 44px; height: 44px; margin: 0 auto 0.75rem; border-radius: 12px;
  background: var(--white); border: 1px solid var(--green-border);
  display: grid; place-items: center; font-size: 1.35rem; color: var(--green-deep);
}
.line-empty p { margin-bottom: 0.35rem; }
.line-empty p:last-child { margin-bottom: 0; font-size: 0.9rem; }

/* Progress in summary */
.summary-note--warn { color: #ffccbc !important; font-weight: 550; }

/* Mobile sticky summary bar */
.mobile-summary-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(15, 26, 18, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
}
.mobile-summary-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  color: #fff;
}
.mobile-summary-stats {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.75); font-weight: 550;
}
.mobile-summary-stats .dot { opacity: 0.45; }
.mobile-summary-inner strong {
  font-size: 1.15rem; letter-spacing: -0.02em; color: var(--green-soft);
  white-space: nowrap;
}
.mobile-summary-stats .is-neg { color: #ffab91; font-weight: 700; }
.mobile-summary-bar.is-over { border-top-color: rgba(255,138,101,0.45); }
@media (max-width: 959px) {
  .mobile-summary-bar { display: block; }
  .rechner-summary { display: none; }
}
@media (min-width: 960px) {
  .mobile-summary-bar { display: none !important; }
}

/* Filter collapse (mobile overview) */
.filter-toggle {
  display: none; width: 100%; margin-bottom: 0.85rem;
  justify-content: center; align-items: center;
}
@media (max-width: 699px) {
  .filter-toggle { display: flex; }
  .filter-panel.is-collapsed .filter-groups,
  .filter-panel.is-collapsed .filter-legend { display: none; }
  .filter-panel.is-collapsed { padding-bottom: 1rem; }
}
/* Prefer cards over wide table on small phones */
@media (max-width: 560px) {
  .plant-table-wrap { display: none; }
  .table-hint { display: none; }
}

/* Sort toolbar */
.toolbar-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.85rem 1.25rem; margin-bottom: 1.15rem;
}
.sort-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.65rem;
}
.sort-controls label {
  font-size: 0.85rem; font-weight: 650; color: var(--text-muted);
}
.sort-select {
  padding: 0.55rem 0.85rem; border: 1.5px solid var(--green-border); border-radius: 10px;
  font-family: inherit; font-size: 0.9rem; background: var(--white); color: var(--text);
  max-width: 100%;
}
.sort-select--dir { min-width: 8.5rem; }
.toolbar-hint { font-size: 0.85rem; color: var(--text-light); margin: 0; }
.cards-hint { font-size: 0.9rem; margin: -0.5rem 0 1rem; }

/* Card selection checkbox */
.plant-card--selectable { position: relative; }
.plant-card--selectable.is-selected {
  border-color: var(--green-deep);
  box-shadow: 0 0 0 2px rgba(26, 95, 42, 0.2), var(--shadow-md);
}
.plant-card--selectable.is-in-calc {
  border-color: var(--green-light);
}
.card-check {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 3;
  cursor: pointer; width: 40px; height: 40px;
  display: block;
}
.card-check-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer; z-index: 2;
}
.card-check-box {
  position: absolute; inset: 2px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.95); border: 2px solid var(--green-border);
  box-shadow: var(--shadow-sm); transition: background var(--t), border-color var(--t), transform var(--t);
  color: transparent; font-size: 1.1rem; font-weight: 700;
  pointer-events: none;
}
.card-check-box::after { content: "✓"; }
.card-check-input:checked + .card-check-box {
  background: var(--green-deep); border-color: var(--green-deep); color: #fff;
}
.card-check-input:disabled + .card-check-box {
  background: var(--green-muted); border-color: var(--green-light); color: var(--green-deep);
}
.card-check-input:disabled { cursor: default; }
.card-check:hover .card-check-box { transform: scale(1.05); }
.card-check-input:focus-visible + .card-check-box {
  outline: 2px solid var(--green-deep); outline-offset: 2px;
}
.card-in-calc-badge {
  position: absolute; bottom: 0.65rem; left: 0.65rem; z-index: 2;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0.25rem 0.55rem; border-radius: 999px;
  background: rgba(26, 95, 42, 0.92); color: #fff;
}
.card-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 0.15rem;
}
.card-select-toggle { font-size: 0.85rem; }

/* Selection floating bar */
.selection-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  background: rgba(15, 26, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 28px rgba(0,0,0,0.18);
  color: #fff;
}
.selection-bar[hidden] { display: none !important; }
.selection-bar-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem;
}
.selection-bar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1rem; }
.selection-bar .btn-primary {
  background: var(--green-light); color: #0d2814;
}
.selection-bar .btn-primary:hover { background: #96d49b; color: #0d2814; }
body:has(.selection-bar:not([hidden])) { padding-bottom: 76px; }

/* ========== PFLANZSCHULE (Guide / Wiki) ========== */
.guide-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 960px) {
  .guide-layout {
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
  }
}
.guide-toc {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  max-height: calc(100vh - var(--nav-h) - 2rem);
  overflow-y: auto;
}
.guide-toc-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.guide-toc a {
  display: block;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--text-muted);
  padding: 0.45rem 0.65rem;
  margin: 0 -0.35rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  line-height: 1.35;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.guide-toc a:hover { color: var(--green-deep); background: rgba(26, 95, 42, 0.06); }
.guide-toc a.is-active {
  color: var(--green-deep);
  font-weight: 700;
  background: var(--white);
  border-left-color: var(--green-deep);
  box-shadow: var(--shadow-sm);
}
.guide-content { min-width: 0; max-width: 46rem; }
.guide-block {
  margin-bottom: 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--green-border);
  scroll-margin-top: calc(var(--nav-h) + 16px);
}
.guide-block:last-of-type { border-bottom: none; }
.guide-block h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 1rem;
}
.guide-block h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.65rem;
  color: var(--green-deep);
}
.guide-block p {
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  line-height: 1.75;
}
.guide-block p:last-child { margin-bottom: 0; }
.guide-block a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.guide-list {
  list-style: none;
  margin: 0.75rem 0 1.25rem;
  padding: 0;
}
.guide-list > li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-bottom: 1px solid rgba(26, 95, 42, 0.06);
}
.guide-list > li:last-child { border-bottom: none; }
.guide-list:not(.numbered) > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-light);
}
.guide-list.numbered { counter-reset: gstep; }
.guide-list.numbered > li {
  counter-increment: gstep;
  padding-left: 2rem;
}
.guide-list.numbered > li::before {
  content: counter(gstep);
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 7px;
  background: var(--green-muted);
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.callout {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0;
}
.callout strong {
  display: block;
  color: var(--green-deep);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.callout p, .callout li { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.callout .guide-list { margin: 0.5rem 0 0; }
.callout--pro {
  background: linear-gradient(135deg, #0f3d1c 0%, var(--green-deep) 100%);
  border: none;
  color: #fff;
}
.callout--pro strong { color: var(--green-soft); }
.callout--pro p, .callout--pro li { color: rgba(255,255,255,0.88); }
.callout--pro .guide-list > li { border-bottom-color: rgba(255,255,255,0.1); }
.callout--pro .guide-list:not(.numbered) > li::before { background: var(--green-soft); }
.callout--tip {
  border-color: #90caf9;
  background: #e3f2fd;
}
.callout--tip strong { color: #1565c0; }
.callout--warn {
  border-color: var(--warn-border);
  background: var(--warn-bg);
}
.callout--warn strong { color: var(--warn); }

.combo-grid {
  display: grid;
  gap: 0.9rem;
  margin: 1.25rem 0;
}
@media (min-width: 640px) {
  .combo-grid { grid-template-columns: 1fr 1fr; }
}
.combo-card {
  background: var(--white);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t), box-shadow var(--t);
}
.combo-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-md);
}
.combo-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  color: var(--text);
}
.combo-plants {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--green-deep);
  margin-bottom: 0.5rem !important;
  line-height: 1.45 !important;
}
.combo-card p:last-child {
  font-size: 0.9rem;
  margin: 0 !important;
}

.error-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .error-grid { grid-template-columns: 1fr 1fr; }
}
.error-card {
  background: var(--green-bg);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--green-deep);
}
.error-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  color: var(--text);
}
.error-card p {
  margin: 0 !important;
  font-size: 0.9rem;
}

.checklist {
  list-style: none;
  margin: 1rem 0 1.5rem;
  padding: 0;
}
.checklist li {
  position: relative;
  padding: 0.65rem 0.75rem 0.65rem 2.4rem;
  margin-bottom: 0.4rem;
  background: var(--green-bg);
  border-radius: 10px;
  border: 1px solid var(--green-border);
  color: var(--text-muted);
  line-height: 1.5;
}
.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0.75rem;
  top: 0.65rem;
  color: var(--green-deep);
  font-size: 1.1rem;
}

.guide-cta {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  margin-top: 1.5rem;
}
.guide-cta h3 { margin: 0 0 0.5rem; }
.guide-cta p { margin-bottom: 1.15rem !important; }
.guide-footnote {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 2rem;
  line-height: 1.6;
}

@media (max-width: 959px) {
  .guide-toc {
    position: relative;
    top: 0;
    max-height: none;
  }
  .guide-toc nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.75rem;
  }
}
@media (max-width: 520px) {
  .guide-toc nav { grid-template-columns: 1fr; }
}

/* External links (open web) */
a.ext-link {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a.ext-link:hover {
  color: var(--green-mid);
  text-decoration-style: solid;
}
a.ext-link .ext-icon {
  display: inline-block;
  font-size: 0.75em;
  margin-left: 0.15em;
  opacity: 0.65;
  font-style: normal;
  text-decoration: none;
}
.botanical a.ext-link {
  font-style: italic;
  font-weight: 500;
  color: var(--text-light);
}
.botanical a.ext-link:hover { color: var(--green-deep); }
.ext-links-box {
  margin-top: 1.35rem;
  padding: 1.1rem 1.2rem;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
}
.ext-links-box h3 {
  font-size: 0.95rem;
  margin: 0 0 0.55rem;
  color: var(--text);
}
.ext-links-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ext-links-box li {
  margin: 0.35rem 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.guide-footnote a.ext-link { font-weight: 550; }

/* Table: hide low-value columns on medium */
@media (max-width: 1100px) {
  .plant-table .col-perennial { display: none; }
}

/* Footer */
.site-footer {
  background: #0f1a12; color: rgba(255,255,255,0.7); padding: 3rem 0 2rem; margin-top: 0;
}
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 700px) { .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand .logo { color: #fff; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; max-width: 22rem; color: rgba(255,255,255,0.55); }
.footer-col h4 {
  color: #fff; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.85rem;
}
.footer-col a { display: block; color: rgba(255,255,255,0.62); font-size: 0.9rem; padding: 0.3rem 0; }
.footer-col a:hover { color: var(--green-light); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.35rem; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  color: rgba(255,255,255,0.4);
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
