/* Fairfinanz — Seitengerüst der Rechner-Seite (rechner.html).
   Ausgelagert aus dem früheren Inline-<style>: Die CSP erlaubt nur style-src 'self',
   ein Inline-Block wird verworfen — die Seite stünde ohne Kopf, Fuß und Rand da.

   Kopf- und Fußzeile folgen dem Sandstein-System aus css/tokens.css.
   Die Fußzeile ist dieselbe wie auf der Startseite (Lockup + Anschrift +
   Erlaubnisse/Registernummern + Impressum/Datenschutz/Erstinformation). */

.huelle { max-width: var(--spalte); margin: 0 auto; padding: 0 var(--rand); }

.springen {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--tinte); color: var(--papier);
  padding: 12px 18px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.springen:focus { top: 16px; }

/* ---------- Kopfzeile ---------- */

.kopf { border-bottom: 1px solid var(--linie); background: var(--papier); }
.kopf-innen {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; padding-top: 18px; padding-bottom: 18px;
}
.kopf .wortmarke { font-size: 24px; }
.kopf .zusatz { font-size: 13px; }

.navi { display: flex; align-items: center; gap: 28px; }
.navi ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.navi a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 17px; font-weight: 600; text-decoration: none; color: var(--sekundaer);
}
.navi a:hover { color: var(--tinte); }
.navi a[aria-current="page"] {
  color: var(--tinte);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.kopf-telefon {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; color: var(--tinte); text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.kopf-telefon:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Inhalt ---------- */

.sektion { padding: 72px 0 88px; }
.titel-block { max-width: 620px; margin-top: 18px; }
.sektion .lead { max-width: 64ch; margin-top: 22px; }
.rechner-karte { margin-top: 44px; }

.schluss {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px; align-items: end;
  padding: 56px 0 88px;
  border-top: 1px solid var(--linie);
}
.schluss p { max-width: 66ch; }
.schluss p + p { margin-top: 18px; }
.schluss-aktion { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.zurueck {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--tinte);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px;
}
/* Wie beim Weiter-Link: Hover verstärkt den Strich, statt eine Farbe zu wechseln,
   die dieselbe wäre. */
.zurueck:hover { text-decoration-thickness: 3px; }

/* ---------- Fußzeile (identisch zur Startseite) ---------- */

.fuss {
  padding-block: 64px 72px;
  border-top: 1px solid var(--linie);
  background: var(--papier);
}
.fuss-bahn {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 48px;
  align-items: start;
}
.fuss .signet { width: 48px; height: 48px; }
.fuss .wortmarke { font-size: 22px; }
.fuss-adresse {
  margin-top: 20px;
  font-style: normal;
  font-size: var(--t-klein);
  line-height: 1.7;
  color: var(--sekundaer);
}
.fuss-adresse a { color: var(--tinte); text-underline-offset: 3px; }
.fuss-recht p + p { margin-top: 10px; }
.fuss-register { font-variant-numeric: tabular-nums; }
.fuss-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.fuss-links a {
  color: var(--tinte);
  font-size: var(--t-klein);
  font-weight: 600;
  text-underline-offset: 3px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* ---------- Europace: der zweite Schritt ----------
   Das Widget bringt sein eigenes Design mit (Europace-Rot). Es steht deshalb bewusst in
   einem eigenen, klar abgesetzten Kasten und nicht mitten im Auftritt — der Besucher soll
   sehen, dass hier eine fremde Plattform rechnet. Das ist keine Schwäche, sondern der
   Punkt: Es sind genau die Konditionen, die Frank auch sieht. */

.ep-huelle {
  margin: 64px 0 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--linie);
}
.ep-huelle h2 { margin-bottom: 12px; }
.ep-huelle .lead { max-width: 62ch; }

.ep-tor {
  margin-top: 26px;
  padding: 28px 30px;
  background: var(--flaeche2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 62ch;
}
.ep-tor .klein { margin: 0; }
.ep-huelle.ist-geladen .ep-tor { display: none; }

/* Der Kasten, in den das fremde Widget rendert. Feste Mindesthöhe: Ohne sie springt die
   Seite, sobald das Skript nachlädt. */
.ep-ziel:not(:empty) {
  margin-top: 30px;
  min-height: 640px;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 8px;
}

/* ---------- Schmalere Bildschirme ---------- */

@media (max-width: 1079px) {
  .fuss-bahn { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 899px) {
  .schluss { grid-template-columns: 1fr; align-items: start; gap: 32px; }
}

@media (max-width: 699px) {
  .huelle { padding: 0 var(--rand-mobil); }
  .kopf-innen { flex-wrap: wrap; gap: 14px; }
  .navi { width: 100%; justify-content: space-between; gap: 16px; }
  .navi ul { gap: 20px; }
  .sektion { padding: 48px 0 24px; }
  .schluss { padding: 40px 0 64px; }
}
