:root {
  --bg: #f0fdf4;
  --surface: #ffffff;
  --surface-2: #f8fcf6;
  --border: #dcefe2;
  --border-strong: #b9e0c6;
  --text: #0b1f17;
  --text-muted: #5d7669;
  --text-soft: #8fa499;
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-deep: #047857;
  --primary-soft: #d1fae5;
  --primary-soft-strong: #a7f3d0;
  --gradient-primary: linear-gradient(135deg, #34d399 0%, #10b981 60%, #059669 100%);
  --gradient-bg-decor: radial-gradient(circle at 15% 10%, rgba(52,211,153,0.18), transparent 50%),
                       radial-gradient(circle at 85% 90%, rgba(6,182,212,0.12), transparent 55%);
  --accent: #0ea5e9;
  --accent-soft: #e0f2fe;
  --amazon: #ff9900;
  --amazon-hover: #ffb84d;
  --shadow-sm: 0 1px 2px rgba(6,95,70,0.05);
  --shadow: 0 1px 3px rgba(6,95,70,0.07), 0 6px 18px rgba(6,95,70,0.06);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  background: var(--bg);
  background-image: var(--gradient-bg-decor);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.container { max-width: 880px; margin: 0 auto; }

a { color: var(--primary-hover); }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand .grad {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand .tld { color: var(--text-soft); font-weight: 500; }
.back-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.back-link:hover { color: var(--primary-hover); border-color: var(--border-strong); }

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  line-height: 1.25;
}
.hero .lead {
  font-size: 16px;
  color: var(--text-muted);
}

.calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.calc form { display: grid; gap: 16px; margin-bottom: 22px; }
.calc label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.calc input[type="number"],
.calc select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.calc input[type="number"]:focus,
.calc select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.field-hint { font-size: 12px; color: var(--text-soft); margin-top: 4px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

.result {
  background: var(--primary-soft);
  border: 1px solid var(--primary-soft-strong);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.result .result-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-deep);
  margin-bottom: 8px;
}
.result .result-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary-deep);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.result .result-sub {
  font-size: 14px;
  color: var(--primary-deep);
  margin-top: 6px;
  opacity: 0.85;
}
.result .result-extras {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--primary-soft-strong);
  font-size: 13px;
  color: var(--primary-deep);
  display: grid;
  gap: 4px;
}

.explainer, .products, .cross-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.explainer h2, .products h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.explainer p { color: var(--text-muted); margin-bottom: 10px; }
.explainer p:last-child { margin-bottom: 0; }
.explainer ul { margin: 8px 0 12px 20px; color: var(--text-muted); }
.explainer ul li { margin-bottom: 4px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.product-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card .pname { font-weight: 700; font-size: 14px; color: var(--text); }
.product-card .pdesc { font-size: 12.5px; color: var(--text-muted); flex: 1; }
.amzn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--amazon);
  color: #111;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.12s;
}
.amzn-btn:hover { background: var(--amazon-hover); transform: translateY(-1px); }

.cross-link {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--accent-soft) 100%);
  border-color: var(--primary-soft-strong);
  text-align: center;
}
.cross-link p { font-size: 15px; color: var(--text); }
.cross-link a {
  color: var(--primary-deep);
  font-weight: 700;
  text-decoration: none;
}
.cross-link a:hover { text-decoration: underline; }

/* Übersichts-Grid (rechner/index.html) */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.calc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.calc-card .icon { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.calc-card h3 { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.calc-card p { font-size: 13px; color: var(--text-muted); }
.calc-card .arrow { color: var(--primary-hover); font-weight: 700; font-size: 13px; margin-top: 6px; }

/* Site footer */
.site-footer {
  max-width: 880px;
  margin: 32px auto 0;
  padding: 28px 24px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.site-footer .footer-inner { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.site-footer .footer-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; flex-wrap: wrap; }
.site-footer .footer-brand { text-decoration: none; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.site-footer .footer-brand .grad { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.site-footer .footer-brand .tld { color: var(--text-soft); font-weight: 500; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 13px; }
.site-footer nav a:hover { color: var(--primary-hover); }
.site-footer .affiliate { background: var(--surface-2); border: 1px solid var(--border); padding: 12px 14px; border-radius: var(--radius); font-size: 12.5px; color: var(--text-muted); width: 100%; }
.site-footer .affiliate strong { color: var(--text); }
.site-footer .affiliate code { background: var(--primary-soft); color: var(--primary-deep); padding: 1px 6px; border-radius: 4px; font-size: 11.5px; }
.site-footer .copy { font-size: 12px; color: var(--text-soft); }

@media (max-width: 600px) {
  body { padding: 16px; }
  .hero { padding: 24px; }
  .hero h1 { font-size: 24px; }
  .calc, .explainer, .products, .cross-link { padding: 20px; }
}
