/* PARDIS CAPITAL Finanzinitiativen GmbH
   Farben aus dem Logo (Bronze, Steingrau) und vom Bodensee (Seegrün). */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --weiss: #ffffff;
  --kalk: #eef0ed;
  --see: #14302e;
  --see-hell: #1d403d;
  --tinte: #1c2322;
  --stein: #5f6462;
  --bronze: #8b6f62;
  --bronze-tief: #6f564a;
  --bronze-hell: #cdb9ac;
  --linie: #d5d9d5;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --rand: clamp(1.25rem, 5vw, 4.5rem);
  --breite: 78rem;
  --abstand: clamp(4.5rem, 10vw, 9rem);
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--bronze-tief);
  outline-offset: 4px;
  border-radius: 2px;
}

.sprung {
  position: absolute;
  left: var(--rand);
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--see);
  color: var(--weiss);
  text-decoration: none;
}
.sprung:focus { top: 0.75rem; }

.innen {
  width: 100%;
  max-width: var(--breite);
  margin-inline: auto;
  padding-inline: var(--rand);
}

/* ---------- Kopf ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--weiss);
  border-bottom: 1px solid var(--linie);
}
.kopf .innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.5rem;
}
.marke { flex: none; padding-block: 0.75rem; }
.marke img { height: 3.75rem; width: auto; }

.navi ul {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.25rem);
  font-size: 0.975rem;
}
.navi a {
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
}
.navi a:hover { border-bottom-color: var(--bronze); }
.navi a.mitglieder {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--see);
  border-radius: 999px;
}
.navi a.mitglieder:hover { background: var(--see); color: var(--weiss); }

@media (max-width: 52rem) {
  .navi .nur-breit { display: none; }
  .marke img { height: 3.1rem; }
  .kopf .innen { min-height: 4.5rem; gap: 0.75rem; }
  .navi ul { gap: 0.9rem; font-size: 0.9rem; }
  .navi a.mitglieder { padding: 0.45rem 0.8rem; }
}
@media (max-width: 26rem) {
  .marke img { height: 2.5rem; }
  .navi ul { gap: 0.75rem; }
}
@media (max-width: 22.5rem) {
  .navi .ab-schmal { display: none; }
}

/* ---------- Auftakt ---------- */

.auftakt {
  position: relative;
  overflow: hidden;
  overflow: clip;
}
.auftakt .innen {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 2rem;
  padding-block: clamp(3.5rem, 9vw, 8rem);
}
.auftakt h1 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.75rem, 7.2vw, 6rem);
  line-height: 1;
  letter-spacing: -0.022em;
  text-indent: -0.42em;
  padding-left: 0.42em;
}
.auftakt .quelle {
  margin-top: 1.5rem;
  color: var(--stein);
  font-size: 1rem;
}
.auftakt .einstieg {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  max-width: 34rem;
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
  line-height: 1.5;
}
.auftakt .wege {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.25rem;
}

.knopf {
  display: inline-block;
  padding: 0.95rem 1.6rem;
  background: var(--see);
  color: var(--weiss);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.15s ease;
}
.knopf:hover { background: var(--bronze-tief); }

.textlink {
  text-decoration: underline;
  text-decoration-color: var(--bronze);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.textlink:hover { text-decoration-thickness: 2px; }

.ringe {
  /* Die Grafik ragt rechts in den Seitenrand – aber nur so weit, wie
     dort Platz ist (Rand + freie Fläche neben dem Inhalt, abzüglich
     etwas Luft). Die linke Kante bleibt, wo sie im Entwurf war; fehlt
     rechts Platz, wird die Grafik nur um diesen Betrag schmaler. */
  --seite: 100vw;
  --ueberstand: max(0px, min(
    var(--rand) * 1.6,
    var(--rand) + max(0px, (var(--seite) - var(--breite)) / 2) - 1.5rem
  ));
  justify-self: end;
  width: calc(min(125%, 40rem) - var(--rand) * 1.6 + var(--ueberstand));
  margin-right: calc(var(--ueberstand) * -1);
}
/* Seitenbreite ohne Scrollbalken: 100vw zählt eine sichtbare
   Scrollleiste (Windows) mit, die Container-Breite nicht. */
@supports (width: 1cqw) {
  .auftakt { container-type: inline-size; }
  .ringe { --seite: 100cqw; }
}
.ringe { overflow: visible; }
.ringe.aktiv { cursor: pointer; }
/* Bis das Skript die Ringe fallen lässt, bleiben sie verborgen –
   nur wenn Bewegung erlaubt ist und JavaScript läuft. */
.js .ringe .ring { opacity: 0; }
/* Einspaltig steht die Grafik unter dem Text: Die Ringe fallen dann
   vom oberen Rand der Grafik herein statt über die Überschrift. */
@media (max-width: 52rem) {
  .ringe { overflow: hidden; }
}
.ringe circle {
  fill: none;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
}
.ringe .fassung {
  stroke: var(--bronze-hell);
  stroke-width: 2;
  vector-effect: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
/* Die Ringe sind leicht gefüllt und multiplizieren sich: wo sie sich
   überlagern, wird die Fläche dunkler – wie im Logo. */
.ringe .ring {
  stroke: url(#bronze) var(--bronze);
  fill: var(--bronze);
  fill-opacity: 0;
  mix-blend-mode: multiply;
  transform-box: view-box;
  transform-origin: 0 0;
  transition: fill-opacity 0.9s ease;
}
.ringe .ring.gelandet,
.ringe.gelandet .ring { fill-opacity: 0.09; }
.ringe .welle {
  stroke: var(--bronze);
  stroke-width: 1;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .ringe .fassung {
    animation: zeichnen 1.4s cubic-bezier(0.6, 0, 0.2, 1) both;
  }
}
@keyframes zeichnen {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@media (max-width: 52rem) {
  .auftakt .innen { grid-template-columns: minmax(0, 1fr); }
  .ringe {
    justify-self: center;
    width: min(88%, 24rem);
    margin: 1rem 0 0;
  }
}

/* ---------- Abschnitte ---------- */

.abschnitt { padding-block: var(--abstand); }
.abschnitt.kalk { background: var(--kalk); }
.abschnitt.see { background: var(--see); color: var(--weiss); }

.abschnitt h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.zweispaltig {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.fliesstext { max-width: 38rem; }
.fliesstext p + p { margin-top: 1.25em; }
.fliesstext .gross {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.35;
}

@media (max-width: 52rem) {
  .zweispaltig { grid-template-columns: minmax(0, 1fr); }
}

/* Auswahlkriterien */

.auswahl h2 { max-width: 20ch; }
.auswahl .vorspann {
  margin-top: 1.5rem;
  color: var(--bronze-hell);
  font-size: 1.125rem;
}
.kriterien {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--see-hell);
}
.kriterien li {
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--see-hell);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
  line-height: 1.2;
}
@media (max-width: 40rem) {
  .kriterien { grid-template-columns: minmax(0, 1fr); }
}

/* Häuserzeile: zeichnet sich beim Scrollen, die Fenster gehen an */
.abschnitt.auswahl { padding-bottom: 0; }
.strassenbild { margin-top: clamp(4rem, 9vw, 8rem); }
.strasse {
  display: block;
  width: 100%;
  height: auto;
}
.strasse .haus {
  fill: none;
  stroke: var(--bronze-hell);
  stroke-width: 1.3;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.strasse .boden { stroke: #4a6b67; }
.strasse .fenster {
  fill: #f0d9b5;
  fill-opacity: 0;
  stroke: #5d7f7a;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: opacity 0.5s ease, fill-opacity 0.9s ease;
}
.strasse.bewegt .fenster { opacity: 0; }
.strasse.bewegt .fenster.da { opacity: 1; }
.strasse .fenster.licht { fill-opacity: 0.92; stroke: #f0d9b5; }
.strasse.bewegt .fenster.licht:not(.da) { fill-opacity: 0; }
/* Handy: genau drei ganze Häuser (x = 28 bis 650 der Zeichnung), mittig
   mit gleichem Rand links und rechts. Der Rest der Zeile ist weggeschnitten,
   die Bodenlinie läuft als Rahmen über die volle Breite. */
@media (max-width: 40rem) {
  .strassenbild {
    margin-inline: calc(var(--rand) * -1);
    overflow: hidden;
    border-bottom: 1px solid #4a6b67;
  }
  .strasse {
    width: calc((100% - 2 * var(--rand)) * 1.9293);
    max-width: none;
    margin-left: calc(var(--rand) - (100% - 2 * var(--rand)) * 0.045);
    clip-path: inset(0 45.6% 0 2%);
  }
  .strasse .haus { stroke-width: 1.8; }
}

/* Prüfung */

.bestandteile {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
}
.bestandteile dt { color: var(--stein); }
.bestandteile dd { margin-top: 0.5rem; }

/* Kontakt */

.kontakt .erreichbar {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.kontakt .zeile {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.kontakt .zeile + .zeile { margin-top: 0.15em; }
.kontakt .zeile svg {
  flex: none;
  width: 0.72em;
  height: 0.72em;
  fill: none;
  stroke: var(--bronze);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kontakt .zeile a { min-width: 0; }
.kontakt .erreichbar a {
  text-decoration: underline;
  text-decoration-color: var(--bronze-hell);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}
.kontakt .erreichbar a:hover { text-decoration-color: var(--bronze-tief); }
.kontakt .angaben {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--linie);
  font-size: 1.05rem;
}
.kontakt .angaben dd + dt { margin-top: 1.25rem; }
.kontakt .angaben dt { color: var(--stein); font-size: 0.95rem; margin-bottom: 0.35rem; }
.kontakt address { font-style: normal; }
@media (max-width: 34rem) {
  .kontakt .angaben { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Fuß ---------- */

.fuss {
  background: var(--see);
  color: #dfe5e2;
  font-size: 0.975rem;
  padding-block: 3rem;
}
.fuss .innen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.fuss ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.fuss a { text-decoration: none; border-bottom: 1px solid transparent; }
.fuss a:hover { border-bottom-color: var(--bronze-hell); }
.fuss :focus-visible { outline-color: var(--bronze-hell); }

/* ---------- Rechtstexte ---------- */

.recht { padding-block: clamp(3rem, 7vw, 6rem) var(--abstand); }
.recht h1 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.recht .text { max-width: 42rem; }
.recht h2 {
  font-family: var(--serif);
  font-weight: 450;
  font-size: 1.6rem;
  line-height: 1.2;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}
.recht p + p,
.recht ul + p,
.recht address + p { margin-top: 1em; }
.recht address { font-style: normal; }
.recht ul { list-style: disc; padding-left: 1.25rem; margin-top: 0.75rem; }
.recht li + li { margin-top: 0.25rem; }
.recht a {
  text-decoration: underline;
  text-decoration-color: var(--bronze);
  text-underline-offset: 0.25em;
}
