/* ==========================================================================
   Wohnsinn Horgen – Stylesheet
   Farben und Schrift zentral in :root ändern.
   ========================================================================== */

:root {
  --weiss: #ffffff;
  --schwarz: #000000;
  --rot: #d33921;          /* Horgner Rot */
  --rot-dunkel: #a82b17;
  --grau-hell: #f3f3f3;
  --grau-linie: #dcdcdc;
  --grau-text: #5c5c5c;

  --schrift: "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", "Liberation Sans", sans-serif;

  --t-s: 0.9375rem;
  --t-m: 1.125rem;
  --t-l: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --t-xl: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --t-xxl: clamp(3.25rem, 1.6rem + 7.5vw, 9rem);

  --breite: 80rem;
  --rand: clamp(1.25rem, 4vw, 3rem);
  --abstand: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--schwarz);
  font-family: var(--schrift);
  font-size: var(--t-m);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: var(--t-xxl); letter-spacing: -0.045em; line-height: 0.92; }
h2 { font-size: var(--t-xl); letter-spacing: -0.035em; }
h3 { font-size: var(--t-l); line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0 0 1em; max-width: 40rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--rot); }
.text a { text-decoration-color: var(--rot); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.springen { position: absolute; top: -5rem; left: 1rem; z-index: 200; background: var(--schwarz); color: var(--weiss); padding: 0.75rem 1rem; }
.springen:focus { top: 1rem; color: var(--weiss); }

.huelle { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }

.raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.5vw, 2.5rem); row-gap: 2rem; }
.sp-3 { grid-column: span 3; } .sp-4 { grid-column: span 4; } .sp-5 { grid-column: span 5; } .sp-6 { grid-column: span 6; }
.sp-7 { grid-column: span 7; } .sp-8 { grid-column: span 8; } .sp-12 { grid-column: 1 / -1; }
.ab-6 { grid-column: 6 / -1; } .ab-7 { grid-column: 7 / -1; }
@media (max-width: 900px) {
  .sp-3, .sp-4, .sp-5, .sp-6, .sp-7, .sp-8, .ab-6, .ab-7 { grid-column: 1 / -1 !important; }
}

/* --------------------------------------------------------------------------
   Kopfzeile
   -------------------------------------------------------------------------- */
.kopf { position: sticky; top: 0; z-index: 100; background: var(--weiss); border-bottom: 1px solid var(--schwarz); }
.kopf__innen { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }

.marke { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--schwarz); margin-right: auto; }
.marke:hover { color: var(--schwarz); }
.marke img { height: 2.75rem; width: auto; }
.marke__zeichen { width: 1.6rem; height: 1.6rem; background: var(--rot); flex: none; }
.marke__name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1; }
.marke__name small { display: block; font-weight: 400; font-size: 0.8125rem; letter-spacing: 0; color: var(--grau-text); margin-top: 0.2rem; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav a {
  display: block; padding: 0.5rem 0.65rem; text-decoration: none; font-size: 1rem; font-weight: 500;
  border-bottom: 3px solid transparent;
}
.nav a[aria-current="page"] { border-bottom-color: var(--rot); }
.nav__extern { color: var(--grau-text); }

.statuspille {
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  padding: 0.4rem 0.8rem; border: 1px solid var(--schwarz);
}
.statuspille::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--grau-text); }
.statuspille--frei { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.statuspille--frei::before { background: var(--weiss); animation: puls 2s ease-in-out infinite; }
.statuspille--frei:hover { color: var(--weiss); background: var(--rot-dunkel); }
@keyframes puls { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .statuspille--frei::before { animation: none; } }

.nav-knopf {
  display: none; background: var(--schwarz); color: var(--weiss); border: 0;
  font: inherit; font-weight: 700; font-size: 1rem; padding: 0.65rem 1rem; cursor: pointer;
}

@media (max-width: 1080px) {
  .kopf .statuspille { display: none; }
}
@media (max-width: 900px) {
  .nav-knopf { display: inline-block; }
  .nav {
    position: fixed; inset: 4.5rem 0 0 0; background: var(--schwarz); color: var(--weiss);
    padding: 2rem var(--rand); display: none; overflow-y: auto;
  }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; padding: 0.6rem 0; border-bottom: 1px solid #333; }
  .nav a[aria-current="page"] { color: var(--rot); border-bottom-color: #333; }
  .nav a:hover { color: var(--rot); }
  .nav__extern { color: #aaa; }
  .nav .statuspille { display: inline-flex; margin-top: 2rem; border-color: var(--weiss); font-size: 1rem; }
  body.nav-offen { overflow: hidden; }
}
.nav__status { display: none; }
@media (max-width: 900px) { .nav__status { display: block; } }

/* --------------------------------------------------------------------------
   Knöpfe
   -------------------------------------------------------------------------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.8rem 1.5rem;
  background: var(--rot); color: var(--weiss); border: 2px solid var(--rot);
  font: inherit; font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: var(--weiss); }
.knopf--linie { background: transparent; color: var(--schwarz); border-color: var(--schwarz); }
.knopf--linie:hover { background: var(--schwarz); color: var(--weiss); border-color: var(--schwarz); }
.dunkel .knopf--linie { color: var(--weiss); border-color: var(--weiss); }
.dunkel .knopf--linie:hover { background: var(--weiss); color: var(--schwarz); }
.knopf[disabled] { opacity: 0.6; cursor: progress; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* --------------------------------------------------------------------------
   Hero (rot)
   -------------------------------------------------------------------------- */
.hero { background: var(--rot); color: var(--weiss); overflow: hidden; }
.hero__raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(2rem, 4vw, 4rem); align-items: end; padding-top: clamp(3rem, 2rem + 4vw, 6rem); }
.hero__text { padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }
.hero__zeile { font-size: var(--t-m); font-weight: 700; margin: 0 0 1.25rem; }
.hero h1 { margin: 0 0 1.5rem; }
.hero__lead { font-size: var(--t-l); line-height: 1.35; max-width: 26ch; margin: 0; }
.hero .knoepfe { margin-top: 2rem; }
.hero__status {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 2.25rem;
  color: var(--weiss); font-weight: 700; font-size: var(--t-s); text-decoration: none;
  border: 1.5px solid rgb(255 255 255 / 0.7); border-radius: 999px; padding: 0.45rem 0.95rem;
}
.hero__status:hover { color: var(--weiss); border-color: var(--weiss); }
.hero__status--frei { background: var(--weiss); color: var(--rot); border-color: var(--weiss); }
.hero__status--frei:hover { color: var(--rot-dunkel); }
.hero__punkt { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: currentColor; }
.hero__status--frei .hero__punkt { animation: puls 2s ease-in-out infinite; }
.hero__bild { align-self: stretch; display: flex; align-items: flex-end; }
.hero__bild svg { width: 100%; height: auto; max-height: 34rem; }
.hero__foto { margin: 0 0 clamp(2rem, 4vw, 4rem); width: 100%; }
.hero__foto img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 900px) {
  .hero__raster { grid-template-columns: 1fr; gap: 0; }
  .hero__text { padding-bottom: 2rem; }
}

/* Lore fährt beim Laden einmal durch den Stollen */
.lore { transform: translateX(0); }
@media (prefers-reduced-motion: no-preference) {
  .lore { animation: lore 6s cubic-bezier(.45,.05,.35,1) 0.5s both; }
}
@keyframes lore { from { transform: translateX(-120px); } to { transform: translateX(0); } }

/* Zahlenband */
.zahlenband { background: var(--schwarz); color: var(--weiss); }
.zahlen { list-style: none; margin-block: 0; padding: clamp(1.75rem, 3vw, 2.5rem) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.zahlen b { display: block; font-size: var(--t-xl); letter-spacing: -0.04em; line-height: 1; }
.zahlen span { color: #bdbdbd; }
@media (max-width: 640px) { .zahlen { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Seitenkopf (Unterseiten, rot)
   -------------------------------------------------------------------------- */
.seitenkopf {
  background: var(--grau-hell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 200' fill='none' stroke='%23111' stroke-opacity='.16' stroke-width='3' stroke-linejoin='round'%3E%3Cpath d='M10 190 V90 L130 76 V190 M150 190 V120 L195 88 L240 120 V190 M0 190 H300'/%3E%3Cpath d='M30 104h20v22H30zM66 100h20v22H66zM102 96h20v22h-20zM30 146h20v22H30zM66 142h20v22H66zM102 138h20v22h-20zM170 130h16v18h-16zM204 130h16v18h-16z'/%3E%3Ccircle cx='265' cy='50' r='22'/%3E%3C/svg%3E") no-repeat right max(var(--rand), (100vw - var(--breite)) / 2) bottom / clamp(12rem, 28vw, 24rem) auto;
  color: var(--schwarz);
  border-bottom: 1px solid var(--grau-linie);
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(2.5rem, 2rem + 2vw, 4rem);
}
.seitenkopf h1 { font-size: clamp(2.75rem, 1.8rem + 5vw, 6.5rem); margin-bottom: 0.3em; }
.seitenkopf p { font-size: var(--t-l); line-height: 1.35; max-width: 32ch; }
.seitenkopf a { color: inherit; }
@media (max-width: 700px) { .seitenkopf { background-size: 10rem auto; background-position: right 1rem bottom; padding-bottom: 7rem; } }

/* --------------------------------------------------------------------------
   Abschnitte
   -------------------------------------------------------------------------- */
.abschnitt { padding-block: var(--abstand); }
.abschnitt--eng { padding-top: 0; }
.hell { background: var(--grau-hell); }
.dunkel { background: var(--schwarz); color: var(--weiss); }
.dunkel a:hover { color: var(--weiss); }
.dunkel p { color: #d6d6d6; }

.lead { font-size: var(--t-l); line-height: 1.4; font-weight: 500; }

/* Werte: drei Spalten mit kräftiger Linie */
.werte { list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.werte li { border-top: 6px solid var(--schwarz); padding-top: 1.25rem; }
.werte li:first-child { border-top-color: var(--rot); }
.werte p { font-size: 1.0625rem; }
@media (max-width: 820px) { .werte { grid-template-columns: 1fr; } }

/* Fotos */
.foto { margin: 0; }
.foto img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--grau-hell); }
.foto-leer { aspect-ratio: 4 / 3; background: var(--weiss); border: 1px solid var(--schwarz); }
.foto-leer svg { width: 100%; height: 100%; }

/* Bilderstreifen */
.streifen-kopf { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.streifen-kopf h2 { margin: 0; }
.streifen {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(16rem, 32vw, 26rem); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
  padding-inline: max(var(--rand), (100vw - var(--breite)) / 2); scroll-padding-inline: max(var(--rand), (100vw - var(--breite)) / 2);
  scrollbar-color: var(--schwarz) var(--grau-linie);
}
.streifen a { scroll-snap-align: start; display: block; }
.streifen img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Vorstand */
.vorstand { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1rem, 2.5vw, 2.5rem); }
.vorstand li { border-top: 1px solid var(--schwarz); padding: 1rem 0 2rem; }
.vorstand strong { display: block; font-size: var(--t-l); letter-spacing: -0.015em; }
.vorstand span { color: var(--grau-text); font-size: var(--t-s); }
@media (max-width: 820px) { .vorstand { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .vorstand { grid-template-columns: 1fr; } }

/* Kennzahlen */
.kennzahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 3rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--schwarz); }
.kennzahlen li { padding: 1rem 1rem 0 0; }
.kennzahlen b { display: block; font-size: var(--t-xl); letter-spacing: -0.04em; line-height: 1; margin-bottom: 0.35rem; }
.kennzahlen span { color: var(--grau-text); }
@media (max-width: 560px) { .kennzahlen { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; } }

/* Wohnungsspiegel */
.spiegel { margin-top: 3rem; border-top: 6px solid var(--schwarz); }
.spiegel__reihe { display: grid; grid-template-columns: 15rem 1fr; gap: 1rem; align-items: center; padding-block: 1rem; border-bottom: 1px solid var(--grau-linie); }
.spiegel__name { font-weight: 700; }
.spiegel__name small { display: block; font-weight: 400; color: var(--grau-text); font-size: var(--t-s); }
.spiegel__felder { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.feld-wohnung { height: 2.5rem; width: calc(var(--zimmer) * 1.6rem); background: var(--schwarz); }
.feld-wohnung--altbau { background: var(--rot); }
.legende { display: flex; gap: 1.5rem; margin-top: 1.25rem; font-size: var(--t-s); color: var(--grau-text); }
.legende span { display: inline-flex; align-items: center; gap: 0.5rem; }
.legende i { width: 1.5rem; height: 0.85rem; background: var(--schwarz); display: inline-block; }
.legende i.altbau { background: var(--rot); }
@media (max-width: 600px) {
  .spiegel__reihe { grid-template-columns: 1fr; gap: 0.5rem; }
  .feld-wohnung { width: calc(var(--zimmer) * 1.1rem); height: 1.75rem; }
}

/* Wohnung finden */
.status { display: flex; gap: 1.25rem; align-items: center; padding: 1.5rem 1.75rem; border: 2px solid var(--schwarz); font-size: var(--t-l); font-weight: 600; line-height: 1.3; }
.status::before { content: ""; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--grau-text); flex: none; }
.angebote { display: grid; gap: 1.25rem; }
.angebot { border: 2px solid var(--rot); padding: 1.75rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: start; }
.angebot h3 { margin: 0 0 0.25rem; }
.angebot__details { font-weight: 700; color: var(--rot); margin: 0 0 0.75rem; }
.angebot .knopf { align-self: center; }
@media (max-width: 700px) { .angebot { grid-template-columns: 1fr; } }
.frei-marke { display: inline-block; background: var(--rot); color: var(--weiss); font-weight: 700; font-size: var(--t-s); padding: 0.3rem 0.7rem; margin-bottom: 1rem; }

.punkte { list-style: none; margin: 0; padding: 0; border-top: 6px solid var(--schwarz); }
.punkte li { padding: 1.25rem 0 1.25rem 2rem; border-bottom: 1px solid var(--grau-linie); position: relative; }
.punkte li::before { content: ""; position: absolute; left: 0; top: 1.75rem; width: 0.75rem; height: 0.75rem; background: var(--rot); }

.betraege { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 1rem; }
.betraege div { border-top: 1px solid var(--weiss); padding-top: 1.25rem; }
.betraege b { display: block; font-size: var(--t-xl); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 0.75rem; }
@media (max-width: 700px) { .betraege { grid-template-columns: 1fr; } }

/* Dokumente */
.dokumente { list-style: none; margin: 0; padding: 0; border-top: 6px solid var(--schwarz); }
.dokumente a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: 1.5rem 0; border-bottom: 1px solid var(--schwarz); text-decoration: none;
}
.dokumente strong { display: block; font-size: var(--t-l); letter-spacing: -0.015em; }
.dokumente span { color: var(--grau-text); }
.dokumente em { font-style: normal; font-weight: 700; font-size: var(--t-s); border: 1px solid currentColor; padding: 0.35rem 0.65rem; }
.dokumente a:hover em { background: var(--rot); border-color: var(--rot); color: var(--weiss); }

/* Galerie */
.galerie { columns: 3 17rem; column-gap: 1rem; }
.galerie figure { break-inside: avoid; margin: 0 0 1rem; }
.galerie button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.galerie img { width: 100%; height: auto; }
.galerie figcaption { font-size: var(--t-s); color: var(--grau-text); margin-top: 0.4rem; }
.leer { border: 1px solid var(--schwarz); padding: 2rem; max-width: 40rem; }

.leuchtkasten { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1500px); max-height: 96vh; overflow: visible; }
.leuchtkasten::backdrop { background: rgb(0 0 0 / 0.92); }
.leuchtkasten img { max-width: 100%; max-height: 86vh; width: auto; margin-inline: auto; }
.leuchtkasten p { color: var(--weiss); text-align: center; margin: 0.75rem auto 0; font-size: var(--t-s); }
.leuchtkasten__zu, .leuchtkasten__pfeil {
  position: fixed; width: 3rem; height: 3rem; border: 0; background: var(--weiss); color: var(--schwarz);
  font: inherit; font-size: 1.4rem; font-weight: 700; cursor: pointer;
}
.leuchtkasten__zu { top: 1rem; right: 1rem; }
.leuchtkasten__pfeil { top: 50%; transform: translateY(-50%); }
.leuchtkasten__pfeil--zurueck { left: 1rem; } .leuchtkasten__pfeil--vor { right: 1rem; }

/* --------------------------------------------------------------------------
   Formular
   -------------------------------------------------------------------------- */
.formular { display: grid; gap: 1.5rem; }
.formular__reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 560px) { .formular__reihe { grid-template-columns: 1fr; } }
.feld { display: grid; gap: 0.4rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.feld label, .feld legend { font-weight: 700; font-size: 1rem; padding: 0; }
.feld input, .feld textarea {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--schwarz);
  background: var(--weiss); border: 0; border-bottom: 2px solid var(--schwarz); border-radius: 0;
  padding: 0.75rem 0.1rem; min-height: 3rem;
}
.feld textarea { min-height: 9rem; resize: vertical; border: 2px solid var(--schwarz); padding: 0.75rem; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--rot); box-shadow: 0 2px 0 0 var(--rot); }
.feld textarea:focus { box-shadow: none; }
.feld [aria-invalid="true"] { border-color: var(--rot); }
.feld__fehler { color: var(--rot); font-size: var(--t-s); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.chips label { position: relative; font-weight: 400; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 0.6rem 1rem; border: 1.5px solid var(--schwarz); cursor: pointer; font-size: 1rem; }
.chips span:hover { border-color: var(--rot); }
.chips input:checked + span { background: var(--schwarz); color: var(--weiss); }
.chips input:focus-visible + span { outline: 3px solid var(--rot); outline-offset: 2px; }
.honig { position: absolute !important; left: -9999px !important; }
.hinweis { font-size: var(--t-s); color: var(--grau-text); }
.meldung { padding: 1rem 1.25rem; font-weight: 700; border-left: 6px solid; }
.meldung--ok { border-color: var(--schwarz); background: var(--grau-hell); }
.meldung--fehler { border-color: var(--rot); background: #fdecea; color: var(--rot-dunkel); }
.meldung[hidden] { display: none; }

.adresse { font-style: normal; font-size: var(--t-l); line-height: 1.4; margin-bottom: 2rem; }
.karte { aspect-ratio: 1 / 1; background: var(--grau-hell); display: grid; place-items: center; text-align: center; padding: 2rem; }
.karte.geladen { padding: 0; }
.karte iframe { width: 100%; height: 100%; border: 0; }
.karte p { font-size: var(--t-s); margin-inline: auto; }

/* Fliesstext (Datenschutz) */
.text--lang h2 { font-size: var(--t-l); margin-top: 2.5rem; }
.text--lang h3 { font-size: 1.125rem; margin: 2rem 0 0.5rem; letter-spacing: 0; }
.text ul { padding-left: 1.25rem; max-width: 40rem; }

/* --------------------------------------------------------------------------
   Fusszeile
   -------------------------------------------------------------------------- */
.fuss { background: var(--schwarz); color: var(--weiss); padding-block: clamp(3.5rem, 6vw, 6rem) 2rem; }
.fuss__gross { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 3rem; max-width: 18ch; }
.fuss__gross a { text-decoration: none; border-bottom: 3px solid var(--rot); }
.fuss__gross a:hover { color: var(--weiss); border-bottom-color: var(--weiss); }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.fuss a:hover { color: var(--weiss); text-decoration-color: var(--rot); }
.fuss h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 0.75rem; color: #a6a6a6; font-weight: 400; }
.fuss p, .fuss address { color: #d6d6d6; font-style: normal; }
.fuss__unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 4rem; padding-top: 1.25rem; border-top: 1px solid #333; font-size: var(--t-s); color: #a6a6a6; }

.fehlerseite { min-height: 60vh; display: grid; align-content: center; }
.fuss .fuss__gross { color: var(--weiss); }

/* ==========================================================================
   Freundlichere Bausteine (Version 3)
   ========================================================================== */
.marke img { height: 3.25rem; }

.knopf { border-radius: 999px; }
.knopf--weiss { background: var(--weiss); color: var(--rot); border-color: var(--weiss); }
.knopf--weiss:hover { background: var(--schwarz); border-color: var(--schwarz); color: var(--weiss); }
.knopf--weiss-linie { background: transparent; color: var(--weiss); border-color: var(--weiss); }
.knopf--weiss-linie:hover { background: var(--weiss); color: var(--rot); border-color: var(--weiss); }
.statuspille { border-radius: 999px; }
.chips span { border-radius: 999px; }

.pfeillink { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--rot); }
.pfeillink::after { content: " ›"; }

/* Grundsätze als Karten mit Symbol */
.werte li {
  border-top: 0; background: var(--grau-hell); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.werte li:first-child { border-top-color: transparent; }
.werte svg { width: 3.5rem; height: 3.5rem; color: var(--rot); margin-bottom: 1.25rem; }

/* Bild und Text nebeneinander, randlos */
.geteilt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--grau-hell); }
.geteilt__bild { margin: 0; min-height: 22rem; }
.geteilt__bild img, .geteilt__bild svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.geteilt__text {
  padding: var(--abstand) max(var(--rand), (100vw - var(--breite)) / 2) var(--abstand) clamp(2rem, 5vw, 5rem);
  align-self: center;
}
@media (max-width: 900px) {
  .geteilt { grid-template-columns: 1fr; }
  .geteilt__text { padding: 3rem var(--rand); }
}

/* Vorstand mit Initialen */
.vorstand li { display: flex; gap: 1rem; align-items: center; border-top: 0; padding: 0 0 1.75rem; }
.avatar {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--schwarz); color: var(--weiss);
  font-weight: 700; font-size: 1.125rem; letter-spacing: 0.02em;
}
.vorstand li:first-child .avatar { background: var(--rot); }
.vorstand strong { font-size: 1.25rem; }

/* Formular als weisse Karte */
.karte-weiss { background: var(--weiss); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); }
.kontakt-direkt { margin-top: 2rem; font-weight: 600; line-height: 1.6; }

/* Fotos und Karten weicher */
.foto img, .foto-leer, .streifen img, .galerie button, .galerie img, .karte, .leer, .angebot, .status { border-radius: var(--radius); }
.galerie button { overflow: hidden; }

/* Siedlung: Kennzahlen im roten Kopf */
.seitenkopf .kennzahlen { border-top-color: var(--schwarz); }

/* Titelblock mit eigenem Foto (bilder/koepfe/…) */
.seitenkopf--foto { position: relative; isolation: isolate; background: var(--schwarz); color: var(--weiss); border-bottom: 0; overflow: hidden; }
.seitenkopf__bild { position: absolute; inset: 0; z-index: -1; margin: 0; }
.seitenkopf__bild img { width: 100%; height: 100%; object-fit: cover; }
.seitenkopf__bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / 0.68) 0%, rgb(0 0 0 / 0.45) 55%, rgb(0 0 0 / 0.15) 100%), linear-gradient(0deg, rgb(0 0 0 / 0.45), transparent 60%); }
.seitenkopf--foto .kennzahlen { border-top-color: rgb(255 255 255 / 0.6); }
.seitenkopf--foto .kennzahlen span { color: rgb(255 255 255 / 0.85); }
@media (max-width: 700px) { .seitenkopf--foto { padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); } }
.seitenkopf--zahlen { background-image: none; padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem) !important; }
.dokumente strong { color: var(--schwarz); }
.foto-leer { border: 0; overflow: hidden; }
.geteilt__bild { background: var(--rot); }

/* Aufgeräumt (Version 4) */
.vorstand .avatar { color: var(--weiss); }
.vorstand strong { color: var(--schwarz); }
.werte h3::before { content: ""; display: block; width: 2.5rem; height: 4px; background: var(--rot); margin-bottom: 1.25rem; }
.werte li { padding: clamp(1.5rem, 2.5vw, 2rem); }
.hero h1 { line-height: 0.95; }
.hero__lead { margin-top: 0.5rem; }

/* ==========================================================================
   Elemente nach dem Vorbild horgen.ch (Version 5)
   ========================================================================== */

/* Kacheln mit Bild im Hintergrund */
.abschnitt--kacheln { padding-block: clamp(2.5rem, 4vw, 4rem); }
.kacheln { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); }
@media (max-width: 900px) { .kacheln { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .kacheln { grid-template-columns: 1fr; } }
.kachel {
  position: relative; display: flex; align-items: center; overflow: hidden; isolation: isolate;
  min-height: clamp(7.5rem, 11vw, 9.5rem); border-radius: var(--radius);
  background: var(--schwarz); color: var(--weiss); text-decoration: none;
}
.kachel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.5s ease; }
.kachel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0.35)); transition: background-color 0.2s; }
.kachel--ohne-bild::before { background: none; }
.kachel:hover, .kachel:focus-visible { color: var(--weiss); }
.kachel:hover::before { background: linear-gradient(90deg, rgb(211 57 33 / 0.88), rgb(211 57 33 / 0.6)); }
.kachel--ohne-bild:hover { background: var(--rot); }
.kachel:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .kachel img { transition: none; } .kachel:hover img { transform: none; } }
.kachel__inhalt { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem clamp(1.25rem, 2vw, 1.75rem); }
.kachel svg { width: clamp(2.75rem, 4vw, 3.5rem); height: auto; flex: none; }
.kachel__titel { font-size: var(--t-l); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }

/* Kopfbereich mit Foto und roter Titelbox */
.hero--foto { background: var(--weiss); color: var(--weiss); }
.hero__vollbild { margin: 0; }
.hero__vollbild img { width: 100%; height: clamp(20rem, 60vh, 42rem); object-fit: cover; display: block; }
.hero__box {
  position: relative; z-index: 1; background: var(--rot); color: var(--weiss);
  max-width: 44rem; margin-top: clamp(-12rem, -16vw, -5rem);
  padding: clamp(1.75rem, 3.5vw, 3rem); border-radius: var(--radius);
}
.hero--foto h1 { font-size: clamp(2.75rem, 1.8rem + 4vw, 5.5rem); margin-bottom: 1rem; }
.hero--foto .hero__lead { max-width: 30ch; }
@media (max-width: 600px) {
  .hero__box { margin-top: -3rem; border-radius: var(--radius); }
}

/* Intranet als roter Knopf in der Navigation */
.nav__intranet {
  display: inline-flex !important; align-items: center; gap: 0.5rem;
  background: var(--rot); color: var(--weiss) !important; border-radius: 6px;
  padding: 0.45rem 0.85rem !important; margin-left: 0.5rem; border-bottom: 0 !important;
}
.nav__intranet:hover { background: var(--rot-dunkel); color: var(--weiss) !important; }
.nav__intranet svg { width: 1.15rem; height: 1.15rem; }
@media (max-width: 900px) {
  .nav__intranet { margin: 1.25rem 0 0; font-size: 1.25rem !important; padding: 0.75rem 1.1rem !important; }
}

/* «Alle …»-Links mit rotem Pfeil */
.pfeillink { border-bottom: 0; display: inline-flex; align-items: center; gap: 0.6rem; }
.pfeillink::after { content: "→"; color: var(--rot); font-size: 1.25em; transition: transform 0.15s; }
.pfeillink:hover::after { transform: translateX(4px); }
@media (max-width: 600px) {
  .kachel { min-height: 5rem; }
  .kachel__inhalt { padding: 1rem 1.25rem; }
  .kachel svg { width: 2.25rem; }
  .hero__vollbild img { height: 16rem; }
}

/* Version 6: Vorstand intern/extern, Karte */
.vorstand li:first-child .avatar { background: var(--schwarz); }
.vorstand .avatar--extern { background: var(--rot); }
.vorstand-text strong { color: var(--rot); font-weight: inherit; }
.karte { overflow: hidden; }
.karte-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 1rem; }
