/* ============================================================
   Trennungsgeldpilot — gemeinsames Design-System für die Website
   Farb-/Typografie-Tokens sind 1:1 aus der App (src/theme/colors.ts)
   übernommen, damit Website und App exakt zusammenpassen.
   ============================================================ */

:root {
  --navy: #0B2A3B;
  --navy-soft: #163B52;
  --navy-deep: #071B27;
  --teal: #0FA3A3;
  --teal-text: #0B7A7A;
  --teal-light: #EAF9F8;
  --amber: #D68910;
  --amber-light: #FBF0DD;
  --amber-border: #F0D9A6;
  --bg: #F5F8F9;
  --bg-soft: #EEF3F4;
  --bg-deep: #E4ECED;
  --card: #FFFFFF;
  --text: #0B2A3B;
  --text-muted: #5A6B72;
  --text-faint: #8A9BA3;
  --border: #E1E8EA;
  --divider: rgba(11, 42, 59, 0.06);
  --danger: #C0392B;
  --danger-light: #FDECEA;
  --success: #1E8A5F;
  --success-light: #E7F6EF;
  --shadow-sm: 0 1px 2px rgba(11, 42, 59, 0.04), 0 2px 6px rgba(11, 42, 59, 0.04);
  --shadow-md: 0 1px 2px rgba(11, 42, 59, 0.05), 0 8px 28px rgba(11, 42, 59, 0.07);
  --shadow-lg: 0 10px 40px rgba(11, 42, 59, 0.18), 0 4px 12px rgba(11, 42, 59, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

p { margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-text);
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  font-family: inherit;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-1px); opacity: 0.94; }
.btn-secondary { background: var(--card); color: var(--navy); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--teal); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); }
.btn-lg { padding: 17px 32px; font-size: 16.5px; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 249, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--divider);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { width: 32px; height: 32px; }
.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}
.brand-name b { color: var(--teal); font-weight: 800; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--teal-text); }
.nav-links a.nav-cta {
  background: var(--teal);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
}
.nav-links a.nav-cta:hover { opacity: 0.92; color: #fff; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 22px; line-height: 1; color: var(--navy); font-family: inherit;
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card);
    padding: 6px 20px 18px;
    border-bottom: 1px solid var(--divider);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--divider); }
  .nav-links a.nav-cta { display: inline-block; margin: 12px 0 4px; text-align: center; border-bottom: none; }
}

/* ---- Footer ---- */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 28px;
  margin-top: 96px;
}
.foot {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.foot-left .brand-name { color: #fff; }
.foot-left p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 36ch;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.foot-col h4 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.foot-col a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 10px;
}
.foot-col a:hover { color: #fff; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 760px) {
  .foot { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Cards & shared components ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.tag-grundlagen { background: var(--teal-light); color: var(--teal-text); }
.tag-fristen { background: var(--amber-light); color: var(--amber); }
.tag-trennungsgeld { background: #E7F0FB; color: #1D4E89; }
.tag-umzugskosten { background: var(--success-light); color: var(--success); }
.tag-soldaten { background: #F1ECFB; color: #6B4FA0; }
.tag-rechtsprechung { background: var(--danger-light); color: var(--danger); }

::selection { background: var(--teal-light); color: var(--teal-text); }
