/* ============================================
   RechnerPilot – Globales Stylesheet
   Stand: 2026 | rechnerpilot.de
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink:          #1a1f1a;
  --ink-2:        #4a5249;
  --ink-3:        #8a9688;
  --bg:           #f4f1eb;
  --white:        #faf8f3;
  --accent:       #1a5c3a;
  --accent-mid:   #2d7a52;
  --accent-light: #e8f2ec;
  --accent-glow:  rgba(26,92,58,.18);
  --border:       #dedad0;
  --shadow:       0 2px 8px rgba(26,40,26,.07), 0 0 1px rgba(26,40,26,.05);
  --shadow-lg:    0 8px 32px rgba(26,40,26,.13), 0 0 1px rgba(26,40,26,.06);
  --radius:       14px;
  --radius-lg:    20px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  font-family: 'Instrument Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes float {
  0%,100% { transform:translateY(0); }
  50%      { transform:translateY(-8px); }
}
@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.6); }
}

.fu   { animation: fadeUp .6s ease both; }
.d1   { animation-delay:.10s; }
.d2   { animation-delay:.22s; }
.d3   { animation-delay:.34s; }

/* ── LOGO ── */
.logo {
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
}
.logo-icon {
  width:34px; height:34px;
  background: var(--accent);
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.logo-wordmark {
  font-family:'Instrument Serif', serif;
  font-size:20px; color:var(--ink);
  letter-spacing:-.2px; line-height:1;
}
.logo-wordmark-white { color:#fff; }

/* ── NAV ── */
nav {
  position:sticky; top:0; z-index:200;
  background: rgba(244,241,235,.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height:62px; padding:0 36px;
  display:flex; align-items:center; justify-content:space-between;
}
.nav-links { display:flex; gap:2px; list-style:none; }
.nav-links a {
  text-decoration:none; color:var(--ink-2);
  font-size:13.5px; font-weight:500;
  padding:6px 13px; border-radius:8px; transition:all .15s;
}
.nav-links a:hover,
.nav-links a.active { background:var(--accent-light); color:var(--accent); }
.nav-cta { background:var(--accent) !important; color:#fff !important; border-radius:8px; }
.nav-cta:hover { opacity:.9 !important; background:var(--accent) !important; }

/* ── BUTTONS ── */
.btn-primary {
  background:var(--accent); color:#fff;
  border:none; cursor:pointer;
  padding:13px 26px; border-radius:10px;
  font-family:'Instrument Sans', sans-serif;
  font-size:14px; font-weight:600;
  box-shadow:0 4px 18px var(--accent-glow);
  transition:all .15s;
  display:inline-flex; align-items:center; gap:7px;
  text-decoration:none;
}
.btn-primary:hover { transform:translateY(-1px); box-shadow:0 7px 24px var(--accent-glow); }

.btn-ghost {
  background:transparent; color:var(--ink);
  border:1.5px solid var(--border);
  padding:13px 24px; border-radius:10px;
  font-family:'Instrument Sans', sans-serif;
  font-size:14px; font-weight:500; cursor:pointer; transition:all .15s;
  text-decoration:none; display:inline-flex; align-items:center;
}
.btn-ghost:hover { border-color:var(--ink-2); }

/* ── SECTIONS ── */
.section { max-width:1100px; margin:0 auto; padding:72px 36px; }
.section-sm { max-width:1100px; margin:0 auto; padding:48px 36px; }

.sec-ey {
  font-size:11px; font-weight:700; color:var(--accent);
  text-transform:uppercase; letter-spacing:.7px; margin-bottom:10px;
}
.sec-h {
  font-family:'Instrument Serif', serif;
  font-size:clamp(26px,3.5vw,40px);
  line-height:1.12; letter-spacing:-.3px; margin-bottom:14px;
}
.sec-p { color:var(--ink-2); font-size:15.5px; line-height:1.65; max-width:500px; }

/* ── CALC CARDS ── */
.calc-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:14px; margin-top:40px;
}
.cc {
  background:var(--white); border:1px solid var(--border);
  border-radius:var(--radius); padding:24px; cursor:pointer;
  transition:all .2s; position:relative; overflow:hidden;
  text-decoration:none; display:block; color:var(--ink);
}
.cc::after {
  content:''; position:absolute;
  bottom:0; left:0; right:0; height:3px;
  background:var(--accent); transform:scaleX(0);
  transform-origin:left; transition:transform .25s;
}
.cc:hover { border-color:transparent; box-shadow:var(--shadow-lg); transform:translateY(-2px); }
.cc:hover::after { transform:scaleX(1); }
.cc.featured { background:var(--accent-light); border-color:rgba(26,92,58,.2); }
.cc.featured::after { transform:scaleX(1); }
.cc-icon { width:46px; height:46px; border-radius:13px; display:flex; align-items:center; justify-content:center; font-size:21px; margin-bottom:14px; }
.bg-g { background:var(--accent-light); }
.bg-y { background:#fdf6e3; }
.bg-s { background:#f0f4f8; }
.cc h3 { font-size:15px; font-weight:600; margin-bottom:6px; }
.cc p  { font-size:13px; color:var(--ink-2); line-height:1.5; margin-bottom:16px; }
.cc-link { font-size:12.5px; font-weight:700; color:var(--accent); display:flex; align-items:center; gap:4px; }
.cc-badge { position:absolute; top:15px; right:15px; font-size:10px; font-weight:700; background:var(--accent); color:#fff; padding:3px 9px; border-radius:100px; letter-spacing:.3px; }

/* ── TAGS ── */
.tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.tag {
  background:var(--white); border:1px solid var(--border);
  border-radius:100px; padding:6px 15px;
  font-size:13px; color:var(--ink-2); font-weight:500;
  cursor:pointer; transition:all .15s; text-decoration:none;
  display:inline-block;
}
.tag:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-light); }

/* ── TRUST BAND ── */
.trust-band { background:var(--white); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.trust-inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:repeat(3,1fr); }
.tb { padding:40px 36px; border-right:1px solid var(--border); }
.tb:last-child { border-right:none; }
.tb-icon { font-size:26px; margin-bottom:14px; }
.tb h3 { font-size:15px; font-weight:600; margin-bottom:8px; }
.tb p  { font-size:13px; color:var(--ink-2); line-height:1.6; }

/* ── FAQ ── */
.faq { border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; margin-top:40px; }
.faq-row { background:var(--white); border-bottom:1px solid var(--border); }
.faq-row:last-child { border-bottom:none; }
.faq-q { padding:18px 24px; font-size:14.5px; font-weight:600; display:flex; justify-content:space-between; align-items:center; cursor:pointer; }
.faq-q::after { content:'+'; font-size:20px; font-weight:300; color:var(--ink-3); transition:transform .2s; }
.faq-row.open .faq-q::after { transform:rotate(45deg); }
.faq-a { display:none; padding:0 24px 18px; font-size:13.5px; color:var(--ink-2); line-height:1.65; }
.faq-row.open .faq-a { display:block; }

/* ── STATS BAR ── */
.stats-bar { background:var(--ink); padding:36px 36px; }
.stats-inner { max-width:1100px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); gap:32px; }
.stat-v { font-family:'Instrument Serif',serif; font-size:34px; color:#fff; letter-spacing:-.5px; }
.stat-l { font-size:12px; color:rgba(255,255,255,.35); margin-top:3px; font-weight:500; }

/* ── CALCULATOR STYLES ── */
.calc-page { max-width:900px; margin:0 auto; padding:48px 36px 72px; }

.calc-header { margin-bottom:32px; }
.calc-breadcrumb { font-size:12px; color:var(--ink-3); margin-bottom:12px; display:flex; gap:6px; align-items:center; }
.calc-breadcrumb a { color:var(--ink-3); text-decoration:none; }
.calc-breadcrumb a:hover { color:var(--accent); }
.calc-breadcrumb span { color:var(--ink-2); }
.calc-header h1 { font-family:'Instrument Serif',serif; font-size:clamp(28px,4vw,42px); letter-spacing:-.4px; margin-bottom:8px; }
.calc-header p { color:var(--ink-2); font-size:15.5px; max-width:580px; }

.calc-box {
  background:var(--white); border:1px solid var(--border);
  border-radius:var(--radius-lg); overflow:hidden;
  box-shadow:var(--shadow-lg); margin-bottom:40px;
}
.calc-body { display:grid; grid-template-columns:1fr 1fr; }
.inputs-panel { padding:28px; border-right:1px solid var(--border); display:flex; flex-direction:column; gap:20px; }
.results-panel { padding:28px; background:var(--bg); display:flex; flex-direction:column; gap:14px; }

.field { display:flex; flex-direction:column; gap:7px; }
.field label { font-size:11px; font-weight:700; color:var(--ink-3); text-transform:uppercase; letter-spacing:.5px; }

.input-wrap { position:relative; }
.input-wrap input,
.input-wrap select {
  width:100%; background:var(--bg); border:1.5px solid var(--border);
  border-radius:10px; padding:11px 44px 11px 14px;
  font-family:'Instrument Sans',sans-serif;
  font-size:16px; font-weight:600; color:var(--ink);
  outline:none; transition:border .15s; appearance:none;
  -moz-appearance:textfield;
}
.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button { -webkit-appearance:none; }
.input-wrap input:focus,
.input-wrap select:focus { border-color:var(--accent); background:var(--white); }
.input-unit { position:absolute; right:13px; top:50%; transform:translateY(-50%); font-size:13px; font-weight:600; color:var(--ink-3); pointer-events:none; }

.range-slider { -webkit-appearance:none; appearance:none; width:100%; height:3px; border-radius:100px; background:var(--border); outline:none; margin-top:8px; }
.range-slider::-webkit-slider-thumb { -webkit-appearance:none; width:17px; height:17px; background:var(--accent); border-radius:50%; cursor:pointer; box-shadow:0 2px 8px rgba(26,92,58,.4); }

.results-label { font-size:11px; font-weight:700; color:var(--ink-3); text-transform:uppercase; letter-spacing:.6px; }

.result-main {
  background:linear-gradient(135deg, var(--accent) 0%, #2d7a52 100%);
  border-radius:14px; padding:20px 22px; color:#fff;
}
.result-main-label { font-size:10.5px; font-weight:700; opacity:.6; text-transform:uppercase; letter-spacing:.5px; margin-bottom:4px; }
.result-main-value { font-family:'Instrument Serif',serif; font-size:38px; letter-spacing:-.5px; }
.result-main-sub { display:flex; gap:16px; margin-top:12px; padding-top:12px; border-top:1px solid rgba(255,255,255,.12); }
.rms-label { font-size:10px; opacity:.55; font-weight:500; }
.rms-val { font-size:13px; font-weight:600; margin-top:1px; }

.result-row { display:flex; justify-content:space-between; align-items:center; padding:10px 14px; background:var(--white); border-radius:8px; border:1px solid var(--border); }
.result-row-label { font-size:13px; color:var(--ink-2); }
.result-row-value { font-size:14px; font-weight:600; color:var(--ink); }
.result-row-value.neg { color:#dc2626; }
.result-row-value.pos { color:var(--accent); }

.prog-bar-wrap { margin-top:4px; }
.prog-bar-labels { display:flex; justify-content:space-between; font-size:11px; color:var(--ink-3); margin-bottom:5px; }
.prog-bar { height:6px; background:var(--border); border-radius:100px; overflow:hidden; }
.prog-bar-fill { height:100%; background:linear-gradient(90deg,var(--accent),#5cb882); border-radius:100px; transition:width .4s ease; }

.calc-disclaimer { font-size:11.5px; color:var(--ink-3); padding:16px 28px; border-top:1px solid var(--border); background:var(--white); line-height:1.5; }

/* ── CONTENT SECTIONS ── */
.content-section { margin-bottom:40px; }
.content-section h2 { font-family:'Instrument Serif',serif; font-size:22px; letter-spacing:-.2px; margin-bottom:12px; }
.content-section p { color:var(--ink-2); line-height:1.7; margin-bottom:12px; font-size:14.5px; }
.content-section ul { margin-left:20px; color:var(--ink-2); font-size:14.5px; line-height:1.7; }
.content-section ul li { margin-bottom:6px; }

.example-box { background:var(--accent-light); border:1px solid rgba(26,92,58,.15); border-radius:var(--radius); padding:20px 24px; margin:16px 0; }
.example-box h3 { font-size:14px; font-weight:700; color:var(--accent); margin-bottom:10px; }
.example-row { display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px solid rgba(26,92,58,.1); font-size:13.5px; }
.example-row:last-child { border-bottom:none; font-weight:700; }

/* ── RELATED CALCS ── */
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:20px; }

/* ── FOOTER ── */
footer { background:#0f1a0f; padding:56px 36px 36px; }
.footer-inner { max-width:1100px; margin:0 auto; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.07); margin-bottom:32px; }
.footer-brand p { font-size:13px; color:rgba(255,255,255,.3); line-height:1.6; max-width:230px; margin-top:12px; }
.footer-col h4 { font-size:11px; font-weight:700; color:rgba(255,255,255,.35); text-transform:uppercase; letter-spacing:.7px; margin-bottom:14px; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:9px; }
.footer-col a { text-decoration:none; font-size:13.5px; color:rgba(255,255,255,.45); transition:color .15s; }
.footer-col a:hover { color:#fff; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.footer-copy { font-size:12px; color:rgba(255,255,255,.2); }
.footer-disc { font-size:11.5px; color:rgba(255,255,255,.18); max-width:560px; text-align:right; line-height:1.5; }

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  nav { padding:0 20px; }
  .nav-links { display:none; }
  .section { padding:48px 20px; }
  .section-sm { padding:36px 20px; }
  .calc-grid { grid-template-columns:1fr; }
  .trust-inner { grid-template-columns:1fr; }
  .tb { border-right:none; border-bottom:1px solid var(--border); }
  .stats-inner { grid-template-columns:repeat(2,1fr); }
  .calc-body { grid-template-columns:1fr; }
  .inputs-panel { border-right:none; border-bottom:1px solid var(--border); }
  .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
  .related-grid { grid-template-columns:1fr; }
  .calc-page { padding:32px 20px 56px; }
}
