/*
 * Genossame Wangen: Hülle, Typografie, Buttons.
 *
 * Masse aus dem Figma-Masterfile bei 1728 px Bezugsbreite. Die Blöcke haben je
 * eine eigene Datei unter bloecke/.
 */

/* ------------------------------------------------------------------ Grundlage */

:root {
  /* Pfeil aus dem Figma-Asset, als Maske: so nimmt er die Textfarbe an. */
  --gw-pfeil: url("../img/icons/pfeil-rechts.svg");
}

body {
  font-family: var(--schrift-text);
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--schwarz);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

.kit-inhalt { overflow-x: clip; }

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--blau-400);
  outline-offset: 3px;
}

.gw-icon { display: block; flex: none; }

/* Inhaltsbreiten */
.gw-rahmen { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
.gw-rahmen--schmal { width: min(100% - 2 * var(--rand), var(--breite-schmal)); }
.gw-rahmen--eng { width: min(100% - 2 * var(--rand), var(--breite-eng)); }

/* ------------------------------------------------------------------ Titel */

/* Title-h1: Titel Semibold, xl 40, 1.2, Sperrung 4 % */
.gw-h1 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, var(--text-xl));
  line-height: 1.2;
  letter-spacing: var(--sperrung-titel);
  text-transform: uppercase;
  color: var(--dunkelgruen-text);
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Titel-h2: Titel Semibold, lg 32, 1.3, Sperrung 4 % */
.gw-h2 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.15rem + 1.1vw, var(--text-lg));
  line-height: 1.3;
  letter-spacing: var(--sperrung-titel);
  text-transform: uppercase;
  color: var(--dunkelgruen-text);
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Title-h3: Titel Semibold, md 24, 1.2, Sperrung 4 % */
.gw-h3 {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.1rem + 0.4vw, var(--text-md));
  line-height: 1.2;
  letter-spacing: var(--sperrung-titel);
  text-transform: uppercase;
  color: var(--schwarz);
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/*
 * Getrennt werden nur Wörter ab 14 Zeichen, mit mindestens 6 Zeichen je Teil:
 * keine «STATU-/TEN» oder «UN-/SERE», aber «FORSTWIRT-/SCHAFT», wo das Wort nicht
 * passt (bei 16 liefen 14–15 Zeichen lange Einleitungstitel bei 320 aus der
 * Spalte). Safari kennt nur die -webkit-Grenzen.
 */
.gw-h1,
.gw-h2,
.gw-h3 {
  hyphenate-limit-chars: 14 6 6;
  -webkit-hyphenate-limit-before: 6;
  -webkit-hyphenate-limit-after: 6;
}
/*
 * H1/H2 ausgeglichen statt mit einem Wort allein in der letzten Zeile. H3 stehen
 * in Karten mit eigenen Regeln (bloecke/); dort hält Figma Umbrüche wie
 * «… unsere / Wärmeversorgung», die balance verschieben würde.
 */
.gw-h1,
.gw-h2 { text-wrap: balance; }

/* Lauftext: Inter Regular, s 20, 1.5 */
.gw-lauftext {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, var(--text-s));
  line-height: 1.5;
}
.gw-lauftext > * { margin: 0; }
.gw-lauftext > * + * { margin-top: 1.5em; }
.gw-lauftext a { color: inherit; text-decoration-color: var(--hellgruen-500); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
/* E-Mail-Adresse nicht am Bindestrich brechen («genossame-/wangen.ch»); unter 336 passt sie nicht in eine Zeile */
@media (min-width: 336px) {
  .gw-lauftext a[href^="mailto:"] { white-space: nowrap; }
}

/* Tag: Inter Black, 12, 1.2, Sperrung 5 %, Unterstrich 4 px innen (tab 2214:3075: 34 hoch) */
.gw-tag {
  display: inline-block;
  padding-block: 10px 6px;
  border-bottom: var(--abstand-xxs) solid var(--dunkelgruen-500);
  font-weight: 900;
  font-size: var(--text-xxs-xs);
  line-height: 1.2;
  letter-spacing: var(--sperrung-tag);
  text-transform: uppercase;
  color: var(--dunkelgruen-500);
}

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

/* Button: Inter Medium, xs 16, 1.5, Sperrung 1 %; 16/32 Innenabstand, Pfeil 24 */
.gw-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: var(--abstand-s) var(--abstand-xl);
  border: 0;
  font-family: var(--schrift-text);
  font-weight: 500;
  font-size: var(--text-xs);
  line-height: 1.5;
  letter-spacing: var(--sperrung-klein);
  text-decoration: none;
  color: var(--weiss);
  background: var(--hellgruen-500);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.gw-button .gw-icon { width: 24px; height: 24px; transition: transform 0.2s ease; }
.gw-button:hover .gw-icon { transform: translateX(3px); }
.gw-button--hellgruen:hover { background: var(--dunkelgruen-500); }

.gw-button--blau { background: var(--blau-500); }
.gw-button--blau:hover { background: var(--blau-700); }

/* Outline mit Plus (Figma «Button Plus»): 2 px dunkelgrün */
.gw-button--outline {
  padding-block: calc(var(--abstand-s) - 2px);
  background: var(--weiss);
  border: 2px solid var(--dunkelgruen-500);
  color: var(--dunkelgruen-500);
}
.gw-button--outline:hover { background: var(--dunkelgruen-500); color: var(--weiss); }
.gw-button--outline:hover .gw-icon { filter: brightness(0) invert(1); transform: none; }

.gw-knoepfe { display: flex; flex-wrap: wrap; gap: var(--abstand-s); }
.gw-knoepfe--spalte { flex-direction: column; align-items: flex-start; }

/* Textlink «E-Mail senden →» in Karten */
.gw-textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: var(--text-xs);
  color: var(--hellgruen-500);
  text-decoration: none;
}
.gw-textlink::after {
  content: "";
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--gw-pfeil) center / contain no-repeat;
          mask: var(--gw-pfeil) center / contain no-repeat;
  transition: transform 0.2s ease;
}
.gw-textlink:hover { color: var(--dunkelgruen-500); }
.gw-textlink:hover::after { transform: translateX(3px); }

/* Abspielknopf: weisser Kreis 56, Dreieck 24 */
.gw-play {
  display: grid;
  place-items: center;
  width: var(--abstand-3xl);
  height: var(--abstand-3xl);
  border-radius: 50%;
  background: var(--weiss);
  transition: transform 0.2s ease;
}

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

.gw-kopf {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: var(--abstand-lg);
  pointer-events: none;
}
.gw-kopf > * { pointer-events: auto; }

.gw-kopf__leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--abstand-lg);
  width: min(100% - 2 * var(--rand), var(--kopf-breite));
  min-height: var(--kopf-hoehe);
  margin-inline: auto;
}

/*
 * Logo transparent, 243 breit auf x81 wie Figma (2204:3973 «Logo Image»): über dem
 * Seitenkopf mit weisser Schrift, auf der weissen Leiste (und ohne Seitenkopf)
 * das gewöhnliche mit dunkler Schrift.
 */
.gw-logo { display: inline-flex; }
.gw-logo img { display: block; width: clamp(160px, 14.0625vw, 243px); height: auto; }
.gw-logo .gw-logo__positiv,
body:not(:has(.gw-hero)) .gw-logo .gw-logo__negativ,
.gw-kopf.ist-gescrollt .gw-logo .gw-logo__negativ { display: none; }
body:not(:has(.gw-hero)) .gw-logo .gw-logo__positiv,
.gw-kopf.ist-gescrollt .gw-logo .gw-logo__positiv { display: block; }

/*
 * main-navbar über dem Seitenkopf: Drop Shadow/400 als Filter, wie Figma ihn auf
 * Logo, Service-Leiste und Hamburger legt (0 4 4 / 5 %, 0 16 32 / 10 %; die
 * negative Ausdehnung kennt drop-shadow nicht).
 */
body:has(.gw-hero) .gw-kopf:not(.ist-gescrollt) .gw-kopf__leiste {
  filter: drop-shadow(0 4px 2px rgba(12, 12, 13, 0.05)) drop-shadow(0 16px 16px rgba(12, 12, 13, 0.1));
}

.gw-kopf__rechts { display: flex; align-items: center; gap: var(--abstand-xxl); }

/* Service-Leiste: Titel Regular, md 20 / 38, Abstand 24 */
.gw-kopf__service { display: flex; align-items: center; gap: var(--abstand-xxl); }
.gw-service { display: flex; gap: var(--abstand-lg); margin: 0; padding: 0; list-style: none; }
.gw-service a {
  display: block;
  padding-block: var(--abstand-xxs);
  font-family: var(--schrift-titel);
  font-size: var(--text-s);
  line-height: 38px;
  color: var(--weiss);
  text-decoration: none;
}
.gw-service a:hover,
.gw-service .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

/* Suche: Icon 18, Titel Light 12, Sperrung 3 %; Klickziel 44 hoch, Mitte bleibt */
.gw-suche-knopf {
  display: inline-flex;
  align-items: center;
  gap: var(--abstand-xxs);
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--schrift-titel);
  font-weight: 300;
  font-size: var(--text-xxs-xs);
  letter-spacing: 0.03em;
  color: var(--weiss);
  cursor: pointer;
}

/* Suchfeld im Kopf: «Suche» bleibt rechts stehen, das Feld klappt mit dem Fokus links daneben auf
   (row-reverse; Muster wie .gw-menue__suche). Ohne Fokus 0 breit, aber per Tab erreichbar. */
.gw-kopf__suche { display: flex; flex-direction: row-reverse; align-items: center; gap: 0; margin: 0; }
.gw-kopf__suche:focus-within { gap: var(--abstand-xs); }
.gw-kopf__suche input {
  width: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: var(--text-xs);
  color: var(--weiss);
  transition: width 0.2s ease;
}
.gw-kopf__suche:focus-within input { width: 12rem; padding: 4px 0; border-bottom-color: var(--weiss); }
.gw-kopf__suche input:focus { outline: none; border-bottom-width: 2px; }
.gw-kopf__suche input::-webkit-search-cancel-button { filter: brightness(0) invert(1); }

.gw-burger {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.gw-burger .gw-icon { width: 56px; height: 56px; }
/* Kein grauer Tipp-Kasten auf Touch-Geräten; Hover und :focus-visible bleiben */
:is(.gw-burger, .gw-menue__zu, .gw-nav__punkt, .gw-suche-knopf) { -webkit-tap-highlight-color: transparent; }
/* Über dem Seitenkopf weiss (2216:6616, stroke white); auf weisser Leiste schwarz */
body:has(.gw-hero) .gw-kopf:not(.ist-gescrollt) .gw-burger .gw-icon { filter: brightness(0) invert(1); }

/* Gestapeltes Hauptmenü: rechtsbündig, 275 breit, Linien 235 × 2 */
.gw-kopf__haupt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--abstand-s);
  width: min(100% - 2 * var(--rand), var(--kopf-breite));
  margin: var(--abstand-lg) auto 0;
}

.gw-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 275px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gw-nav > li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 235px;
  border-bottom: 2px solid var(--weiss);
}
.gw-nav--konto > li { border-bottom: 0; }

/*
 * Menu-Item-Right: Titel Regular, xl 40; Login: lg 32. Raster 77 je Zeile
 * (menu-right-v2: 8 + 53 + 14 + Linie 2), Login 66 hoch.
 */
.gw-nav > li > a,
.gw-nav__punkt {
  display: block;
  padding: var(--abstand-xs) 0 14px;
  border: 0;
  background: none;
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: var(--text-xl);
  line-height: 1.325;
  text-align: right;
  white-space: nowrap;
  color: var(--weiss);
  text-decoration: none;
  cursor: pointer;
}
.gw-nav--konto > li > a { font-size: var(--text-lg); padding-bottom: var(--abstand-s); }

.gw-nav > li > a,
.gw-nav__punkt { transition: color 0.18s ease; }
/* Hover auf dem ganzen Listeneintrag (Célines Feedback 21.10.), nicht nur auf dem Text */
.gw-nav > li:hover > a,
.gw-nav > li:hover > .gw-nav__punkt { color: var(--hellgruen-100); }
/* Aktuelle Seite (Login): keine Unterstreichung aus kit-base, hellgrün wie beim Hover */
.gw-nav .current-menu-item > a { text-decoration: none; color: var(--hellgruen-100); }
/* Offener Bereich: daneben bleibt der Eintrag weiss (Kunden-Screenshot), aufgeklappt hellgrün */
@media (max-width: 719px) {
  .gw-nav__punkt[aria-expanded="true"] { color: var(--hellgruen-100); }
}
@media (min-width: 720px) {
  :is(.gw-kopf__haupt, .gw-menue__haupt) .gw-nav__punkt[aria-expanded="true"] { color: var(--weiss); }
}

/* Schmales Overlay: Unterseiten klappen unter ihrem Eintrag auf. */
.gw-nav .sub-menu {
  display: none;
  margin: 0 0 var(--abstand-s);
  padding: 0;
  list-style: none;
  text-align: right;
}
.gw-nav .sub-menu.ist-offen { display: block; }
/* Menu-Item-Second 2081:2939: py 4, Titel 20/38, einzeilig; ragt nach links */
.gw-nav .sub-menu a {
  display: block;
  padding-block: var(--abstand-xxs);
  font-family: var(--schrift-titel);
  font-size: var(--text-s);
  line-height: 38px;
  white-space: nowrap;
  color: var(--weiss);
  text-decoration: none;
}
.gw-nav .sub-menu a { transition: color 0.18s ease; }
.gw-nav .sub-menu li:hover > a,
.gw-nav .sub-menu .current-menu-item > a { color: var(--hellgruen-100); }

/*
 * Unterseiten links neben dem Hauptmenü (Kundenvorgabe vom 7.10. mit Screenshot,
 * gemessen bei 1728): Liste mind. 332 breit, 36 vor den Linien des Hauptmenüs,
 * Titel 20/38 linksbündig (Menu-Item-Second 2081:2939), Text 30 über der Linie,
 * je Eintrag eine Linie 2 px wie im Hauptmenü, Raster 62. Die erste Linie liegt auf
 * der Linie des gewählten Eintrags (75 − 60). Das Hauptmenü bleibt stehen.
 * projekt.js rückt die Liste nach oben oder setzt sie enger («ist-dicht»,
 * «ist-dichter»), wenn sie sonst über den Seitenkopf oder dessen Titel liefe,
 * und blendet Text nur aus, wenn auch das nicht reicht. Ab 720 (das Kopfmenü
 * steht ohnehin erst ab 1101); darunter klappt die Liste im Overlay unter ihrem
 * Eintrag auf.
 */
@media (min-width: 720px) {
  :is(.gw-kopf__haupt, .gw-menue__haupt) .sub-menu {
    --gw-unter-zeile: 60px;
    position: absolute;
    top: var(--gw-unter-y, calc(100% - var(--gw-unter-zeile)));
    right: calc(100% + 36px);
    z-index: 1;
    display: block;
    width: max-content;
    min-width: 332px;
    margin: 0;
    text-align: left;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease, visibility 0s linear 0.12s;
  }
  :is(.gw-kopf__haupt, .gw-menue__haupt) .sub-menu.ist-offen { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity 0.12s ease; }
  /* Unsichtbare Brücke über die 36 px: Wer langsam vom Eintrag zur Liste zieht, verlässt den Eintrag nicht */
  :is(.gw-kopf__haupt, .gw-menue__haupt) .sub-menu::after { content: ""; position: absolute; inset: 0 -36px 0 100%; }
  :is(.gw-kopf__haupt, .gw-menue__haupt) .sub-menu > li { border-bottom: 2px solid var(--weiss); }
  :is(.gw-kopf__haupt, .gw-menue__haupt) .sub-menu a { padding-block: 12px 10px; }
  :is(.gw-kopf__haupt, .gw-menue__haupt) .sub-menu.ist-dicht { --gw-unter-zeile: 52px; }
  :is(.gw-kopf__haupt, .gw-menue__haupt) .sub-menu.ist-dicht a { padding-block: 8px 6px; }
  /* Reicht auch das nicht (Kopf 1101–1220 über dem Titel): Raster 46 wie Menu-Item-Second (py 4) */
  .gw-kopf__haupt .sub-menu.ist-dichter { --gw-unter-zeile: 44px; }
  .gw-kopf__haupt .sub-menu.ist-dichter a { padding-block: 4px 2px; }
}

/* Notfall: Text im Seitenkopf, den die Liste trotz «ist-dichter» verdecken würde, tritt so lange zurück. */
.gw-hero__text { transition: opacity 0.2s ease; }
.gw-hero [data-gw-verdeckt] { opacity: 0; transition: opacity 0.2s ease; }

/* Nach dem Scrollen: Hamburger statt Menü */
.gw-kopf.ist-gescrollt .gw-kopf__service,
.gw-kopf.ist-gescrollt .gw-kopf__haupt { display: none; }

.gw-kopf.ist-gescrollt .gw-burger { display: block; }

/*
 * Nach dem Scrollen: feste weisse Leiste (Menu-Hamburger 2216:7419: Leiste 75
 * bei y24, Logo 243). Unterer Abstand 24 abgeleitet, Figma zeigt keine Unterkante.
 */
.gw-kopf.ist-gescrollt {
  position: fixed;
  padding-block: var(--abstand-lg);
  background: var(--weiss);
  box-shadow: var(--schatten-400);
  animation: gw-kopf-rein 0.25s ease both;
}

@keyframes gw-kopf-rein {
  from { transform: translateY(-100%); }
  to { transform: none; }
}

/* ------------------------------------------------------------------ Overlay «Menu-open» */

.gw-menue {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  background: var(--dunkelgruen-500);
  color: var(--weiss);
}
.gw-menue[hidden] { display: none; }

.gw-menue__innen {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--abstand-lg);
  width: min(100% - 2 * var(--rand), var(--kopf-breite));
  min-height: 100%;
  margin-inline: auto;
  padding-block: var(--abstand-lg) 55px;
}

/* Fokus auf Dunkelgrün: hellgrün statt blau (blau hätte 1.7:1) */
.gw-menue :focus-visible { outline-color: var(--hellgruen-100); }

.gw-menue__leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  min-height: var(--kopf-hoehe);
}
/* Figma lässt das Logo im offenen Menü weg; der Platz bleibt. */
.gw-menue__leiste .gw-logo { visibility: hidden; }

.gw-menue__zu { padding: 0; border: 0; background: none; cursor: pointer; }
/* Burger und X sind dasselbe Icon: drei Balken (Figma menu 56 × 56, Strich 3, x 7–49), die sich zum X drehen.
   Der Burger im Kopf verschwindet, sobald das Overlay offen ist; das Icon im Overlay liegt genau darauf. */
.gw-menue__zu { --g: 56px; }
.gw-menue__zu-icon { position: relative; display: block; width: var(--g); height: var(--g); }
.gw-menue__zu-icon i {
  position: absolute;
  left: 12.5%;
  width: 75%;
  height: 3px;
  border-radius: 2px;
  background: var(--weiss);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
}
.gw-menue__zu-icon i:nth-child(1) { top: calc(var(--g) * 0.241 - 1.5px); }
.gw-menue__zu-icon i:nth-child(2) { top: calc(var(--g) * 0.491 - 1.5px); }
.gw-menue__zu-icon i:nth-child(3) { top: calc(var(--g) * 0.741 - 1.5px); }
.gw-menue.ist-sichtbar .gw-menue__zu-icon i:nth-child(1) { transform: translateY(calc(var(--g) * 0.25)) rotate(45deg) scaleX(0.943); }
.gw-menue.ist-sichtbar .gw-menue__zu-icon i:nth-child(2) { opacity: 0; }
.gw-menue.ist-sichtbar .gw-menue__zu-icon i:nth-child(3) { transform: translateY(calc(var(--g) * -0.25)) rotate(-45deg) scaleX(0.943); }
body.gw-menue-offen .gw-burger { visibility: hidden; }

/* Zweite main-navbar (2216:3781): 75 hoch, Einträge mittig */
.gw-menue__service { display: flex; align-items: center; gap: var(--abstand-xxl); min-height: var(--kopf-hoehe); }
.gw-service--overlay a { color: var(--hellgruen-100); }

/* Figma zeigt nur «Suche»; das Eingabefeld klappt erst mit dem Fokus auf. */
.gw-menue__suche { display: flex; align-items: center; gap: 0; }
.gw-menue__suche:focus-within { gap: var(--abstand-xs); }
/* Klickziel 44 hoch wie die Suche im Kopf; der negative Rand hält die Zeile bei 18 */
.gw-menue__suche label {
  display: inline-flex;
  align-items: center;
  gap: var(--abstand-xxs);
  min-height: 44px;
  margin-block: -13px;
  font-family: var(--schrift-titel);
  font-weight: 300;
  font-size: var(--text-xxs-xs);
  letter-spacing: 0.03em;
  color: var(--hellgruen-100);
}
.gw-menue__suche input {
  width: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  font: inherit;
  font-size: var(--text-xs);
  color: var(--weiss);
  transition: width 0.2s ease;
}
.gw-menue__suche:focus-within input { width: 9rem; padding: 4px 0; border-bottom-color: var(--hellgruen-100); }
.gw-menue__suche input:focus { outline: none; border-bottom-width: 2px; }

.gw-menue__haupt { display: flex; flex-direction: column; align-items: flex-end; gap: var(--abstand-s); }

/* Kontaktzeile unten rechts (2230:8870): Inter 14/1.5 hellgrün 50, Trenner 12 | 12 */
.gw-menue__kontakt {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: var(--abstand-5xl);
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
}
.gw-menue__kontakt > * { padding: 0; border-left: 0; color: var(--hellgruen-50); text-decoration: none; }
.gw-menue__kontakt > * + * { padding-left: 12px; border-left: 1px solid var(--hellgruen-500); }
.gw-menue__kontakt > :first-child { font-weight: 600; }
.gw-menue__kontakt > :last-child { padding-right: 0; }
.gw-menue__kontakt a:hover { text-decoration: underline; }

body.gw-menue-offen { overflow: hidden; }

/* ------------------------------------------------------------------ Fuss */

.gw-fuss {
  position: relative;
  margin-top: 0;
  background: var(--blau-700);
  color: var(--weiss);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: var(--sperrung-klein);
}

/* Bildmarke 116 × 110, ragt 75 px über die Kante */
/* Figma 2128:4878: x 80 bei 1728 = 133 px vor dem Fuss-Inhalt (213). Bleibt auf jeder Breite in dieser
   Flucht zum Inhalt (Spalte --breite), statt auf breiten Schirmen am Seitenrand zu kleben; nie näher als --rand */
.gw-fuss__marke {
  position: absolute;
  top: -75px;
  left: max(var(--rand), (100% - var(--breite)) / 2 - 133px);
  width: 116px;
  height: auto;
}

.gw-fuss__oben {
  display: flex;
  justify-content: space-between;
  gap: var(--abstand-xl);
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
  padding-block: var(--abstand-5xl);
}

.gw-fuss__titel {
  margin: 0 0 var(--abstand-lg);
  font-family: var(--schrift-titel);
  font-weight: 600;
  font-size: var(--text-md);
  line-height: 1.2;
  letter-spacing: var(--sperrung-titel);
  text-transform: uppercase;
  color: var(--blau-300);
}

.gw-fuss__adresse { display: flex; flex-direction: column; gap: var(--abstand-xxs); font-style: normal; color: #e5e7eb; }
.gw-fuss__adresse a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
/* Telefon und Mail wie die Menüpunkte im Fuss: blau 300, ohne Unterstreichung (Célines Feedback 21.10.) */
.gw-fuss__adresse a:hover,
.gw-fuss__adresse a:focus-visible { color: var(--blau-300); }

/* Nav Columns 2128:4826: 3 × 240, Abstand 25 → 770; unter 1200 gestapelt (siehe «Schmal») */
.gw-fuss__spalten { display: flex; justify-content: space-between; gap: var(--abstand-xl) 25px; width: min(100%, 770px); min-width: 0; }
.gw-fuss__spalte { width: 240px; }

/* Footer Bold: Inter Extra Bold 15 */
.gw-fuss__spaltentitel {
  margin: 0 0 var(--abstand-s);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--blau-300);
}
/* Links 2128:4829: Raster 55 (22.5 + 16 + Linie 1 + 15.5) */
.gw-fuss__spalte ul { display: flex; flex-direction: column; gap: 15.5px; margin: 0; padding: 0; list-style: none; }
.gw-fuss__spalte li { padding-bottom: var(--abstand-s); border-bottom: 1px solid var(--blau-500); }
.gw-fuss__spalte a { color: var(--weiss); text-decoration: none; transition: color 0.3s ease; }
.gw-fuss__spalte a:hover,
.gw-fuss__spalte a[aria-current] { color: var(--blau-300); }

.gw-fuss__unten {
  display: flex;
  justify-content: space-between;
  gap: var(--abstand-lg);
  padding: var(--abstand-lg) max(var(--rand), (100% - var(--breite)) / 2);
  background: var(--blau-900);
  color: var(--blau-400);
}
.gw-fuss__unten p { margin: 0; }
.gw-fuss__rechtliches { display: flex; gap: var(--abstand-lg); margin: 0; padding: 0; list-style: none; }
/* Footer Bottom 2128:4873: 71 hoch, alle Texte auf einer Linie (ohne kit-base-Innenabstand) */
.gw-fuss__rechtliches a { color: inherit; text-decoration: none; padding-block: 0; transition: color 0.3s ease; }
.gw-fuss__rechtliches a:hover,
.gw-fuss__rechtliches a:focus-visible { color: var(--blau-300); }

/*
 * 404: Dort fehlt der Kontaktaufruf, der unten Platz für die Bildmarke lässt
 * (kontakt-aufruf.css). Sonst ragt die Marke in den Knopf «Zur Startseite».
 */
.error404 .gw-intro { padding-bottom: max(var(--sektion), 75px + var(--abstand-xl)); }

/* ------------------------------------------------------------------ Suche */

.gw-suche { padding-block: calc(var(--kopf-hoehe) + var(--sektion) + 140px) var(--sektion); }
.gw-suche__liste { display: grid; gap: var(--abstand-lg); margin: var(--abstand-xxl) 0 0; padding: 0; list-style: none; }
.gw-suche__liste a { font-family: var(--schrift-titel); font-weight: 600; font-size: var(--text-md); color: var(--dunkelgruen-500); text-decoration: none; }
.gw-suche__liste p { margin: var(--abstand-xxs) 0 0; color: #4b5563; }

/* ------------------------------------------------------------------ Schmal */

@media (max-width: 1199px) {
  /*
   * Anschrift und drei Spalten à 240 brauchen 1200. Darunter steht die Anschrift
   * über den Spalten (sonst brach die E-Mail am Bindestrich). Die Spalten teilen
   * sich die Breite nach Inhalt: kein Link bricht um, die Linien bleiben auf einer Höhe.
   */
  .gw-fuss__oben { flex-direction: column; }
  .gw-fuss__spalten { width: 100%; justify-content: flex-start; }
  .gw-fuss__spalte { flex: 1 1 auto; width: auto; min-width: 0; }
}

@media (max-width: 1100px) {
  /* Das gestapelte 40-px-Menü braucht Breite. Darunter immer Hamburger. */
  .gw-kopf__service,
  .gw-kopf__haupt { display: none; }
  .gw-burger { display: block; }
}

@media (max-width: 1024px) {
  /* Fusslinks als Klickziel 44+ auf Touch-Breiten; der negative Rand hält das Raster 55 */
  .gw-fuss__spalte a { display: block; padding-block: 12px; margin-block: -12px; }
  .gw-fuss__rechtliches a { display: inline-block; padding-block: 11px; margin-block: -11px; }
  /*
   * Telefon und E-Mail im Overlay ebenso (21 + 2 × 11.5), aber als unsichtbare
   * Fläche: Innenabstand verlängerte die Trennstriche der Kontaktzeile.
   */
  .gw-menue__kontakt a { position: relative; }
  .gw-menue__kontakt a::before { content: ""; position: absolute; inset: -11.5px 0; }
}

@media (max-width: 900px) {
  /* Kontaktzeile im Overlay untereinander: einzeilig passt sie erst ab ~840, sonst stünde ein Trenner am Zeilenanfang */
  .gw-menue__kontakt { flex-direction: column; align-items: flex-end; gap: var(--abstand-xxs); }
  .gw-menue__kontakt > * { border-left: 0; padding-right: 0; }
  .gw-menue__kontakt > * + * { padding-left: 0; border-left: 0; }
}

@media (max-width: 679px) {
  /* Drei Spalten nebeneinander nur ohne umbrechende Links; darunter untereinander */
  .gw-fuss__spalten { flex-wrap: wrap; }
  .gw-fuss__spalte { width: 100%; }
}

@media (max-width: 640px) {
  .gw-kopf { padding-top: var(--abstand-s); }
  .gw-kopf.ist-gescrollt { padding-block: var(--abstand-xs); }
  .gw-burger .gw-icon { width: 44px; height: 44px; }
  .gw-menue__zu { --g: 44px; }
  /* Overlay oben wie der Kopf, damit das X genau auf dem Burger liegt */
  .gw-menue__innen { padding-top: var(--abstand-s); }
  body:has(.gw-kopf.ist-gescrollt) .gw-menue__innen { padding-top: var(--abstand-xs); }
  .gw-nav { width: 100%; }
  .gw-nav > li { width: min(235px, 100%); }
  .gw-nav > li > a,
  .gw-nav__punkt { font-size: var(--text-lg); }
  .gw-nav--konto > li > a { font-size: var(--text-md); }
  .gw-menue__service { flex-direction: column; align-items: flex-end; gap: var(--abstand-s); }
  /*
   * Untermenü darf nach links über die Linie ragen (wie auf Desktop): ab 360
   * einzeilig. Bricht ein Eintrag doch um, stehen die Zeilen eng beieinander
   * und lesen sich nicht als zwei Einträge; einzeilig bleibt er 46 hoch.
   */
  .gw-nav .sub-menu { width: max-content; max-width: calc(100vw - 2 * var(--rand)); }
  .gw-nav .sub-menu a { white-space: normal; line-height: 24px; padding-block: 11px; }
  /* Mehrere Knöpfe einer Gruppe untereinander und gleich breit, Pfeile bündig */
  .gw-knoepfe:not(.gw-knoepfe--spalte):has(.gw-button + .gw-button) { flex-direction: column; align-items: stretch; width: fit-content; max-width: 100%; }
  .gw-knoepfe:not(.gw-knoepfe--spalte):has(.gw-button + .gw-button) .gw-button { justify-content: space-between; padding-inline: var(--abstand-lg); }
  .gw-fuss__unten { flex-direction: column; }
}

@media (max-width: 359px) {
  /* Sehr schmale Telefone: 24 statt 32 seitlich, damit Knopftexte einzeilig bleiben */
  .gw-button { padding-inline: var(--abstand-lg); }
}

/*
 * Niedrige Fenster (Laptop 1366 × 657, Tablet quer): Das Overlay brauchte ohne
 * offene Liste 792 hoch, und die Kontaktzeile lag unter dem Rand.
 */
@media (max-height: 820px) and (min-width: 720px) {
  .gw-menue__innen { padding-bottom: var(--abstand-lg); }
  .gw-menue__kontakt { padding-top: var(--abstand-s); }
}
/* Bis 700 hoch (1366er-Laptop mit Browserleiste ~657) zusätzlich enger; das X bleibt auf dem Burger */
@media (max-height: 700px) and (min-width: 720px) {
  .gw-menue__innen { gap: var(--abstand-s); }
  .gw-menue__service { min-height: 44px; }
}

/*
 * Telefone quer: Die feste Leiste belegte nach dem Scrollen fast ein Drittel der
 * Höhe, und im Overlay stand anfangs nur «Genossame». Leiste und Overlay werden
 * flacher; das X liegt weiter genau auf dem Burger (gescrollt wie oben).
 */
@media (max-height: 500px) and (max-width: 1100px) {
  .gw-kopf.ist-gescrollt { padding-block: var(--abstand-xs); }
  .gw-kopf.ist-gescrollt .gw-kopf__leiste { min-height: 56px; }
  .gw-kopf.ist-gescrollt .gw-burger .gw-icon { width: 44px; height: 44px; }
  body:has(.gw-kopf.ist-gescrollt) .gw-menue__innen { padding-top: var(--abstand-xs); }
  body:has(.gw-kopf.ist-gescrollt) .gw-menue__leiste { min-height: 56px; }
  body:has(.gw-kopf.ist-gescrollt) .gw-menue__zu .gw-icon { width: 44px; height: 44px; }
  .gw-menue__innen { gap: var(--abstand-s); padding-bottom: var(--abstand-lg); }
  .gw-menue__service { min-height: 44px; }
  .gw-nav--overlay > li > a,
  .gw-nav--overlay .gw-nav__punkt { font-size: var(--text-lg); }
  .gw-menue__kontakt { padding-top: var(--abstand-xl); }
}

@media (prefers-reduced-motion: reduce) {
  .gw-kopf.ist-gescrollt { animation: none; }
  .gw-menue__suche input,
  .gw-kopf__suche input,
  .gw-menue__zu-icon i { transition: none; }
  /* Abstände sofort messen: kit-base setzt sonst auch für Padding 0.01 ms Übergang. */
  .gw-nav .sub-menu a { transition-property: color; }
  .gw-button .gw-icon,
  .gw-textlink::after { transition: none; }
}

/* Suchergebnisse (search.php): Feld wie im Kontaktformular, Knopf daneben (beide 56 hoch), Treffer als Zeilen */
.gw-suchseite__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--abstand-s); width: 100%; margin: 0; }
.gw-suchseite__form .gw-feld { flex: 1 1 16rem; }
.gw-suchseite__treffer { width: 100%; }

/* Sprungmarken (Ziel «seite:key#b04»): Sektion landet unter der festen Kopfleiste, nicht dahinter */
.kit-inhalt > section[id] { scroll-margin-block-start: var(--kit-kopf-hoehe, 9.5rem); }

/* «Mehr lesen» (Célines Feedback 21.10.): lange Texte zeigen zuerst gut acht Zeilen, projekt.js ergänzt den Knopf.
   Ohne JavaScript steht der ganze Text da. Die Höhe ganz offen setzt projekt.js als --gw-voll. */
.gw-lauftext.ist-gekuerzt {
  max-height: 13.5em;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
          mask-image: linear-gradient(#000 70%, transparent);
}
.gw-lauftext.ist-gekuerzt.ist-ganz { max-height: var(--gw-voll, 200em); -webkit-mask-image: none; mask-image: none; }
.gw-mehr {
  align-self: flex-start;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--dunkelgruen-500);
  text-decoration: underline 2px var(--hellgruen-500);
  text-underline-offset: 0.3em;
  cursor: pointer;
  transition: color 0.2s ease;
}
.gw-mehr:hover { color: var(--dunkelgruen-700); }
@media (prefers-reduced-motion: reduce) { .gw-lauftext.ist-gekuerzt { transition: none; } }
