/* ==========================================================================
   Finanzberatung Jannes Kreft
   ========================================================================== */

@font-face {
  font-family: 'InterVar';
  src: url('fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --baby: #c7e1f7;
  --baby-light: #e8f2fb;
  --baby-deep: #9bcbf0;
  --blue: #14639f;
  --blue-hover: #0f4f80;
  --blue-dark: #0b3c63;
  --ink: #1d1d1f;
  --ink-2: #5a5a5f;
  --line: #e3e3e6;
  --surface: #f5f5f7;

  --container: 1180px;
  --text-width: 46rem;
  --radius: 20px;
  --radius-lg: 28px;

  --section-y: clamp(5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Reset ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: 'InterVar', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  color: var(--blue-dark);
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 600;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 4.6vw, 3.35rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.2; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Layout ----------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--baby-light); }
.section--surface { background: var(--surface); }

.section__intro { max-width: var(--text-width); }
.section__intro p { color: var(--ink-2); font-size: 1.25rem; }

.eyebrow {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
  margin-bottom: 0.9rem;
}

.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); color: var(--ink-2); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--blue-dark);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.75rem;
  border-radius: 980px;
  border: 1.5px solid transparent;
  font-size: 1.0625rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); color: #fff; }

.btn--ghost {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn--ghost:hover { background: var(--blue); color: #fff; }

.btn--light { background: #fff; color: var(--blue-dark); }
.btn--light:hover { background: var(--baby-light); }

.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.9375rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.btn-note {
  margin-top: 1.1rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* Header ----------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--blue-dark);
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark span {
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; gap: 1.75rem; }
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--ink);
}
.nav__links a:hover { color: var(--blue); text-decoration: none; }

.nav__toggle { display: none; }

@media (max-width: 62rem) {
  .wordmark span { display: none; }
  .nav__links {
    position: fixed;
    inset: 4.25rem 0 auto;
    flex-direction: column;
    gap: 0;
    background: #fff;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1.5rem;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    max-height: calc(100dvh - 4.25rem);
    overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a {
    padding: 1rem clamp(1.25rem, 5vw, 2.5rem);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav .btn { display: none; }
  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav__toggle span {
    display: block;
    height: 1.5px;
    width: 20px;
    margin-inline: auto;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.2s;
  }
  .nav__toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--baby);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  align-items: end;
  gap: 2rem;
  min-height: min(76vh, 41rem);
}

.hero__content { padding-block: clamp(3rem, 6vw, 4.75rem) clamp(3rem, 6vw, 5.25rem); }

.hero h1 { margin-bottom: 0.45em; }

.hero__sub {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  color: #23496b;
  max-width: 34rem;
}

.hero__media { align-self: end; justify-self: center; }
.hero__media img {
  width: min(100%, 24rem);
  filter: drop-shadow(0 24px 48px rgba(11, 60, 99, 0.16));
}

@media (max-width: 56rem) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
  }
  .hero__content { padding-bottom: 2.5rem; }
  .hero__media img { width: min(100%, 22rem); margin-inline: auto; }
}

/* Karten ----------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3.25rem;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
}
.section--tint .card, .section--surface .card { border-color: transparent; }

.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 1.0625rem; color: var(--ink-2); }

.card__num {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

/* Ablauf ----------------------------------------------------------------- */

.steps {
  margin-top: 3.5rem;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }

.step__marker {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--baby);
  color: var(--blue-dark);
  font-weight: 650;
  font-size: 1.0625rem;
}

.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--ink-2); max-width: 42rem; }

.step__meta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--blue);
}

@media (max-width: 40rem) {
  .step { grid-template-columns: 1fr; gap: 1rem; }
}

/* Zwei Spalten (Erwartungen) --------------------------------------------- */

.pledge {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  margin-top: 3.25rem;
}

.pledge__col {
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
}
.pledge__col--mine { background: var(--blue-dark); color: #fff; }
.pledge__col--mine h3 { color: #fff; }
.pledge__col--yours { background: var(--baby); }

.pledge ul { margin: 0; padding: 0; list-style: none; }
.pledge li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.9rem;
  font-size: 1.0625rem;
  line-height: 1.45;
}
.pledge li:last-child { margin-bottom: 0; }
.pledge li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}
.pledge__col--mine li { color: rgba(255, 255, 255, 0.88); }

/* Rechner ---------------------------------------------------------------- */

.calc {
  margin-top: 3.25rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.calc__controls {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
}

.calc__result {
  background: var(--blue-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.field { margin-bottom: 2rem; }
.field:last-child { margin-bottom: 0; }

.field__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.field label { font-size: 1.0625rem; font-weight: 550; color: var(--blue-dark); }

.field__value {
  font-size: 1.25rem;
  font-weight: 650;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.field__hint { font-size: 0.875rem; color: var(--ink-2); margin-top: 0.6rem; }

/* Einspar-Checkliste */

.field--check {
  border: 0;
  padding: 0;
  margin: 0 0 2.25rem;
  min-width: 0;
}

.checks__set {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.checks__set + .checks__set { margin-top: 2rem; }

.field--check legend {
  padding: 0;
  font-size: 1.0625rem;
  font-weight: 550;
  color: var(--blue-dark);
}

.field__hint--top { margin-top: 0.45rem; margin-bottom: 1.1rem; }

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.checks li { margin: 0; border-bottom: 1px solid var(--line); }

.check {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3rem;
  padding: 0.45rem 0;
  cursor: pointer;
}

.check__box {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.check__text {
  flex: 1 1 auto;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
}

.check__text small {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-2);
  margin-top: 0.1rem;
}

.check__amount {
  flex: 0 0 auto;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.check__box:checked ~ .check__amount { color: var(--blue); }
.check:has(.check__box:checked) .check__text { font-weight: 550; color: var(--blue-dark); }

.checks__sum {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 2px solid var(--blue-dark);
}

.checks__sum-label { font-size: 1.0625rem; font-weight: 550; color: var(--blue-dark); }

.checks__sum-value {
  font-size: 1.5rem;
  font-weight: 650;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1.75rem;
  background: transparent;
  cursor: pointer;
  margin: 0;
}
input[type='range'] { --pct: 0%; }

input[type='range']::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right,
    var(--blue) 0 var(--pct), var(--baby) var(--pct) 100%);
}
input[type='range']::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right,
    var(--blue) 0 var(--pct), var(--baby) var(--pct) 100%);
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: -0.66rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 3px 8px rgba(11, 60, 99, 0.28);
}
input[type='range']::-moz-range-thumb {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 3px 8px rgba(11, 60, 99, 0.28);
}

.result__empty {
  display: none;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.calc__result.is-empty .result__empty { display: block; }
.calc__result.is-empty .result__label,
.calc__result.is-empty .result__big,
.calc__result.is-empty .result__split { display: none; }

.result__label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.4rem;
}

.result__big {
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.35rem;
}

.result__split {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.result__split div { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.72); }
.result__split strong {
  display: block;
  font-size: 1.375rem;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-top: 0.2rem;
}

/* Förderung -------------------------------------------------------------- */

.foerder {
  margin-top: 2.75rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.foerder__toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0;
  cursor: pointer;
  font-size: 1.1875rem;
  font-weight: 550;
  color: var(--blue-dark);
  list-style: none;
}

.foerder__toggle::-webkit-details-marker { display: none; }

.foerder__toggle::after {
  content: '';
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.foerder[open] .foerder__toggle::after { transform: rotate(-135deg); }

.foerder__panel { padding-bottom: 2.5rem; }

.foerder__note {
  margin-top: 2rem;
  max-width: var(--text-width);
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: var(--baby-light);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--blue-dark);
}

.fakt {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem 1.75rem;
}

.section--surface .fakt, .section--tint .fakt { border-color: transparent; }

.fakt strong {
  display: block;
  font-size: 2.125rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}

.fakt span {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.foerder__panel .grid--4 { margin-top: 0.5rem; }

.foerder__text {
  margin-top: 3.25rem;
  max-width: var(--text-width);
}

.foerder__text h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.foerder__text h3 + p { margin-bottom: 1.1rem; }
.foerder__text p { margin-bottom: 1.1rem; }
.foerder__text p:last-child { margin-bottom: 0; }
.foerder__text h3:not(:first-child) { margin-top: 2.5rem; }

.disclaimer {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 52rem;
}

@media (max-width: 56rem) {
  .calc { grid-template-columns: 1fr; }
}

/* Über mich / Split ------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--flip .split__media { order: 2; }

.split__media {
  background: var(--baby);
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}
.split__media img { width: 100%; max-width: 24rem; }

@media (max-width: 56rem) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split__media img { max-width: 18rem; }
}

/* Netzwerk --------------------------------------------------------------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2.5rem;
}
.tag {
  padding: 0.6rem 1.15rem;
  border-radius: 980px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 1rem;
  color: var(--blue-dark);
}
.section--tint .tag { border-color: transparent; }

/* Pace ------------------------------------------------------------------- */

.pace {
  background: var(--blue-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
}
.pace h2 { color: #fff; }
.pace p { color: rgba(255, 255, 255, 0.82); max-width: 40rem; font-size: 1.1875rem; }
.pace a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* FAQ -------------------------------------------------------------------- */

.faq { margin-top: 3.25rem; max-width: 52rem; }

.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0;
  cursor: pointer;
  font-size: 1.1875rem;
  font-weight: 550;
  color: var(--blue-dark);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '';
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }

.faq__body { padding-bottom: 1.75rem; color: var(--ink-2); max-width: 44rem; }

/* Kontakt ---------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.contact__media {
  background: var(--baby);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.contact__media img { width: 100%; max-width: 22rem; }

.contact__details {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
  color: var(--ink-2);
}
.contact__details a { font-weight: 500; }

@media (max-width: 56rem) {
  .contact { grid-template-columns: 1fr; }
  .contact__media { order: -1; }
  .contact__media img { max-width: 16rem; }
}

/* Footer ----------------------------------------------------------------- */

.footer {
  background: var(--surface);
  padding-block: 4rem 3rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  margin-bottom: 1rem;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--blue); }

/* Ausreichend große Klickflächen in den Footer-Listen */
.footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.link-standalone {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.75rem;
}

.footer__grid p a,
.footer__bottom a,
.contact__details a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.footer__bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.875rem;
}

.footer__legal {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60rem;
}

@media (max-width: 48rem) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Rechtsseiten ----------------------------------------------------------- */

.legal { padding-block: clamp(3.5rem, 8vw, 6rem); }
.legal .container { max-width: 50rem; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 1.5rem; }
.legal h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 3rem; }
.legal h3 { font-size: 1.1875rem; margin-top: 2rem; }
.legal p, .legal li { font-size: 1.0625rem; color: #3a3a3c; }
.legal ul { padding-left: 1.25rem; margin-bottom: 1.15em; }
.legal li { margin-bottom: 0.5rem; }
.legal address { font-style: normal; margin-bottom: 1.15em; line-height: 1.9; }
/* Kontaktangaben stehen zeilenweise – daher größere Klickflächen */
.legal address a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
}
.legal .back {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 1rem;
}
.legal th, .legal td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal th { font-weight: 600; color: var(--ink); }

/* Motion ----------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Print ------------------------------------------------------------------ */

@media print {
  .header, .footer, .btn-row, .nav { display: none; }
  body { font-size: 11pt; }
}
