/* Festgeldtrend — design system
   Quiet-luxury private banking: pine, cream, teal. No navy/gold.
   Presentation only — does not change content or behaviour. */

:root {
  --ink: #12110F;
  --pine: #1B3D38;
  --pine-deep: #122926;
  --teal: #0F6E67;
  --teal-hover: #0C5853;
  --teal-soft: #E4F2F0;
  --cream: #F3EFE7;
  --sand: #E6E0D4;
  --paper: #FFFEFB;
  --muted: #6B655C;
  --line: #DDD6C8;
  --success: #1F7A4D;
  --warning: #B8751A;
  --error: #B42318;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-card: 0 1px 2px rgba(18, 17, 15, 0.04), 0 10px 28px rgba(18, 17, 15, 0.06);
  --shadow-lift: 0 16px 48px rgba(27, 61, 56, 0.12);
  --shadow-nav: 0 1px 0 var(--line);
  --space: 8px;
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Newsreader", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

html { scroll-behavior: smooth; }
[x-cloak] { display: none !important; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
  font-feature-settings: "ss01" 1, "kern" 1;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--teal-soft);
  color: var(--pine);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ── Ticker ─────────────────────────────────────────────────────────────── */
.site-ticker {
  background: var(--pine);
  color: #E8F0EE;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.animate-marquee { animation: marquee 28s linear infinite; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .site-header__inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .site-header__inner { padding: 0 2rem; } }

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo img {
  height: 40px;
  width: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.site-logo__word {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.site-logo__word .a { color: var(--ink); }
.site-logo__word .b { color: var(--teal); }

.site-nav {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 2px;
}
@media (min-width: 1024px) { .site-nav { display: flex; } }

.site-nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.site-nav a:hover { color: var(--pine); background: var(--cream); }

.btn-cta-header {
  display: none;
  background: var(--teal);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, transform .18s ease;
  letter-spacing: 0.01em;
}
.btn-cta-header:hover { background: var(--teal-hover); }
@media (min-width: 1024px) { .btn-cta-header { display: inline-flex; } }

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--pine);
  cursor: pointer;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 12px 16px 20px;
}
.mobile-menu a {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.mobile-menu a:hover { background: var(--cream); color: var(--teal); }
.mobile-menu .btn-cta-mobile {
  display: block;
  text-align: center;
  background: var(--teal);
  color: #fff !important;
  font-weight: 600;
  margin-top: 8px;
  padding: 14px;
}
.mobile-menu .btn-cta-mobile:hover { background: var(--teal-hover); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--teal);
  color: #fff;
  padding: 14px 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 20px rgba(15, 110, 103, 0.22);
}
.btn-primary:hover { background: var(--teal-hover); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--pine);
  border-color: var(--line);
  padding: 14px 24px;
}
.btn-secondary:hover { border-color: var(--pine); background: var(--paper); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
  padding: 14px 24px;
}
.btn-ghost-light:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }

.btn-block { width: 100%; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.lead-form input[name="honeypot"] {
  position: absolute !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  pointer-events: none !important;
}
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select,
.lead-form textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-form input::placeholder,
.lead-form textarea::placeholder { color: #9A948A; }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 110, 103, 0.15);
}
.lead-form label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; display: block; letter-spacing: 0.02em; }
.lead-form.form-on-dark label { color: rgba(232, 240, 238, 0.72); }
.lead-form.form-on-dark input,
.lead-form.form-on-dark select,
.lead-form.form-on-dark textarea {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
  color: #fff;
}
.lead-form.form-on-dark input::placeholder,
.lead-form.form-on-dark textarea::placeholder { color: rgba(255,255,255,.38); }
.lead-form .submit-btn {
  width: 100%;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background .18s ease;
}
.lead-form .submit-btn:hover { background: var(--teal-hover); }
.lead-form .submit-btn:disabled { opacity: .65; cursor: wait; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: var(--sand);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 110, 103, 0.35);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 110, 103, 0.35);
  cursor: pointer;
}

/* ── Cards / surfaces ───────────────────────────────────────────────────── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
.card-soft {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.kicker-light { color: #9DD6D0; }

.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.section-head--dark h2 { color: #fff; }
.section-head--dark p { color: #A8BDB8; }

/* ── Bank comparison rows ───────────────────────────────────────────────── */
.bank-row {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.bank-row:hover {
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--teal) 35%, var(--line));
  transform: translateY(-2px);
}
.bank-row.is-top { border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); }
.bank-row__badge {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-bottom-right-radius: 10px;
}
.bank-rate {
  background: var(--pine);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  min-width: 96px;
}
.bank-rate__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9DD6D0;
}
.bank-rate__value {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}
.bank-stat {
  background: var(--cream);
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
}
.bank-stat__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.bank-stat__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2px;
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px 22px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: background .15s ease;
}
.faq-toggle:hover { background: var(--cream); }
.faq-panel { background: var(--cream); }
.faq-panel p {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
details.faq-details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
}
details.faq-details summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
details.faq-details summary::-webkit-details-marker { display: none; }
details.faq-details[open] summary svg { transform: rotate(90deg); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--pine-deep);
  color: #C5D4D1;
}
.site-footer a { color: #C5D4D1; text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9DD6D0;
  margin-bottom: 1.1rem;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 480px at 88% -10%, rgba(15, 110, 103, 0.10), transparent 55%),
    radial-gradient(800px 400px at 0% 110%, rgba(27, 61, 56, 0.08), transparent 50%),
    var(--cream);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}
.hero-form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
  padding: 28px;
  position: relative;
}
.hero-form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  background: var(--teal);
  border-radius: 0 0 3px 3px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 22%, transparent);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.trust-row span, .trust-row div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 auto 1.1rem;
  box-shadow: 0 8px 20px rgba(15, 110, 103, 0.28);
}

.reason-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px 28px;
  position: relative;
  height: 100%;
}
.reason-card__n {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--pine);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
}

.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pine);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.link-tile {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.link-tile:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.legal-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 32px;
}
.legal-inset {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }

.calc-preset {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.calc-preset:hover { border-color: var(--teal); color: var(--teal); }
.calc-preset.is-active,
.calc-preset.bg-navy {
  background: var(--pine) !important;
  border-color: var(--pine) !important;
  color: #fff !important;
}

.fade-in { animation: fadeIn .45s ease both; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .hero-form-card { padding: 20px; }
  .site-header__bar { height: 64px; }
  .bank-rate { min-width: 0; }
}
