:root {
  --green: #2e7d32;
  --green-dark: #1b5e20;
  --green-light: #e8f5e9;
  --brown: #6d4c41;
  --text: #263238;
  --text-soft: #546e7a;
  --bg: #f7faf7;
  --card: #ffffff;
  --border: #dce5dc;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(30, 60, 30, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--green-dark);
  color: #fff;
  padding: 0.9rem 1.2rem;
}
.site-header nav {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}
.site-header a.nav-link {
  color: #c8e6c9;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.site-header a.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}
.site-header a.nav-link:active { transform: scale(0.93); }

/* ---------- Layout ---------- */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.2rem 3rem;
}
.narrow { max-width: 720px; }

h1 { font-size: 1.7rem; color: var(--green-dark); margin: 1rem 0 0.5rem; line-height: 1.3; }
h2 { font-size: 1.25rem; color: var(--green-dark); margin: 2rem 0 0.6rem; }
h3 { font-size: 1.05rem; margin: 1.2rem 0 0.4rem; }
p { margin-bottom: 0.8rem; }
.intro { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 1.5rem; }
ul, ol { margin: 0 0 1rem 1.4rem; }
li { margin-bottom: 0.3rem; }

/* ---------- Hero (Startseite) ---------- */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
}
.hero h1 { font-size: 2.1rem; }
.hero p { max-width: 620px; margin: 0.8rem auto 0; color: var(--text-soft); font-size: 1.1rem; }

.hero-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  margin-top: 1.8rem;
  box-shadow: var(--shadow);
}

.page-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow);
}

/* ---------- Kategorien ---------- */
#draussen, #drinnen { scroll-margin-top: 80px; }

.category-title {
  font-size: 1.5rem;
  margin: 2.5rem 0 0;
  padding-bottom: 0.35rem;
  display: inline-block;
  position: relative;
}
.category-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--green), #81c784);
  border-radius: 2px;
}

/* Einblend-Animation beim Klick auf Draußen/Drinnen */
@keyframes cardIn {
  0%   { opacity: 0; transform: translateY(30px) scale(0.94); filter: blur(6px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: none; }
}
@keyframes titlePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}
@keyframes drawLine {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes sectionGlow {
  0%   { background: transparent; box-shadow: none; }
  30%  { background: rgba(46, 125, 50, 0.06); box-shadow: 0 0 0 12px rgba(46, 125, 50, 0.06); }
  100% { background: transparent; box-shadow: none; }
}
section.animate {
  animation: sectionGlow 1.3s ease;
  border-radius: var(--radius);
}
section.animate .category-title {
  animation: titlePop 0.55s ease;
  transform-origin: left center;
}
section.animate .category-title::after {
  animation: drawLine 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
section.animate .card { animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
section.animate .card:nth-child(1) { animation-delay: 0.05s; }
section.animate .card:nth-child(2) { animation-delay: 0.12s; }
section.animate .card:nth-child(3) { animation-delay: 0.19s; }
section.animate .card:nth-child(4) { animation-delay: 0.26s; }
section.animate .card:nth-child(5) { animation-delay: 0.33s; }
section.animate .card:nth-child(6) { animation-delay: 0.40s; }
section.animate .card:nth-child(7) { animation-delay: 0.47s; }
section.animate .card:nth-child(8) { animation-delay: 0.54s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  section.animate,
  section.animate .card,
  section.animate .category-title,
  section.animate .category-title::after { animation: none; }
}
.category-sub {
  color: var(--text-soft);
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
}
.site-header .nav-link { margin-left: 1rem; }

/* ---------- Karten-Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(30, 60, 30, 0.14);
}
.card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 9px;
  display: block;
  margin-bottom: 0.8rem;
}
.card h2, .card h3 { margin: 0 0 0.35rem; font-size: 1.1rem; color: var(--green-dark); }
.card p { margin: 0; font-size: 0.92rem; color: var(--text-soft); }

/* ---------- Rechner ---------- */
.calc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin: 1.2rem 0 2rem;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}
.field .hint { font-weight: 400; color: var(--text-soft); font-size: 0.85rem; }
.field input, .field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--green);
  border-color: var(--green);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.result {
  background: var(--green-light);
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-top: 1.2rem;
}
.result .big {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-dark);
}
.result .sub { color: var(--text-soft); font-size: 0.95rem; margin: 0.2rem 0 0; }

/* ---------- Info / SEO-Text ---------- */
.info {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0 1rem;
  font-size: 0.95rem;
}
table.data th, table.data td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.7rem;
  text-align: left;
}
table.data th { background: var(--green-light); color: var(--green-dark); }

/* ---------- Affiliate-Produktbox ---------- */
.affiliate {
  position: relative;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem 1.3rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.affiliate strong { color: var(--green-dark); }
.affiliate p { margin: 0.3rem 0 0.9rem; }
.ad-label {
  position: absolute;
  top: 0.6rem;
  right: 0.9rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
}
.affiliate-btn {
  display: inline-block;
  background: #ffa41c;
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.affiliate-btn:hover { background: #ff8f00; }

/* ---------- Footer ---------- */
.site-footer {
  background: #263238;
  color: #b0bec5;
  padding: 2rem 1.2rem;
  font-size: 0.9rem;
}
.site-footer .inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}
.site-footer a { color: #cfd8dc; text-decoration: none; margin-right: 1rem; }
.site-footer a:hover { color: #fff; }
.site-footer .disclaimer { max-width: 560px; font-size: 0.82rem; }
