/* Neues Design (Branch test): Schriften und Grundstile.
   Das Layout steckt in den Inline-Styles der Seiten, die 1:1 aus dem Design-Canvas übernommen werden
   (.design/build.py). Hier steht nur, was der Canvas über seinen Helmet und seine Runtime mitbringt.

   Poppins — Copyright The Poppins Project Authors, SIL Open Font License 1.1 (siehe fonts/OFL-Poppins.txt)
   Caveat — Copyright The Caveat Project Authors, SIL Open Font License 1.1 (siehe fonts/OFL-Caveat.txt)
   Subsets: latin + latin-ext. Quelle der Schnitte: Google Fonts css2-API, lokal gespiegelt (kein CDN). */

/* Caveat 500 normal — latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/caveat-93b3fdd6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Caveat 500 normal — latin */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/caveat-7a0049db.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Caveat 600 normal — latin-ext */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/caveat-93b3fdd6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Caveat 600 normal — latin */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/caveat-7a0049db.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Poppins 400 normal — latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/poppins-1fae5e73.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Poppins 400 normal — latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/poppins-3dc5d0c5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Poppins 500 normal — latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/poppins-f8f0c286.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Poppins 500 normal — latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/poppins-289e0afc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Poppins 600 normal — latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/poppins-72efc6a3.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Poppins 600 normal — latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/poppins-872e8629.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Grundstile aus dem Helmet des Entwurfs */
html, body { margin: 0; }
body { background: #FFFFFF; }
a { color: #007F79; }
a:hover { color: #171717; }

/* Menü-Panels und Statuszeilen: [hidden] muss das inline gesetzte display überstimmen */
[hidden] { display: none !important; }

/* Fotos stecken in <picture> (WebP + JPEG); das <img> bleibt das Element, das im Layout zählt */
picture { display: contents; }

/* Honeypot im Anfrageformular: für Menschen unsichtbar, für Bots ein normales Feld */
.hp-feld {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Portal-Abschnitt: Der Sockel des Laptop-Mockups (margin 0 -6%) ragt auf schmalen Bildschirmen
   ein paar Pixel über den Rand. clip statt hidden: kein eigener Scroll-Container */
#portal { overflow-x: clip; }
/* Aufklappbare Fragen (FAQ) auf den Unterseiten: Grundstile aus dem Helmet des Entwurfs */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary svg { transition: transform 160ms ease; }
details[open] > summary svg { transform: rotate(45deg); }
/* Rechtliche Seiten (Datenschutz, Nutzungsbedingungen, Datenlöschung): Der Text bleibt aus den alten Seiten
   (<section class="legal-section">), die Schrift folgt dem neuen Entwurf (Grössen und Farben wie im Magazin) */
.legal-section {
  padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 48px) clamp(56px, 7vw, 104px);
  overflow-wrap: break-word;
  hyphens: auto;
}
.legal-section .container { max-width: 760px; margin: 0 auto; }
.legal-section h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #171717;
}
.legal-section h2 {
  margin: 48px 0 12px;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #171717;
}
.legal-section h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  color: #171717;
}
.legal-section p,
.legal-section li { font-size: 16px; line-height: 1.65; color: #404040; }
.legal-section p { margin: 0 0 14px; }
.legal-section ul { margin: 0 0 14px; padding-left: 22px; }
.legal-section li { margin-bottom: 6px; }
.legal-section strong { font-weight: 600; color: #171717; }
.legal-section a { text-decoration: underline; text-underline-offset: 2px; }
.legal-section .legal-meta {
  margin: 48px 0 0;
  padding-top: 18px;
  border-top: 1px solid #EDEDED;
  font-size: 14.5px;
  color: #5C5C5C;
}
/* Tabelle der Datenschutzerklärung: auf schmalen Bildschirmen seitlich scrollbar, die Seite selbst nicht */
.legal-section .table-scroll {
  overflow-x: auto;
  margin: 8px 0 18px;
  border: 1px solid #E5E5E5;
  border-radius: 20px;
}
.legal-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14.5px; }
.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid #EDEDED;
  line-height: 1.5;
  color: #404040;
  hyphens: manual;
}
.legal-table th { font-weight: 600; color: #171717; background: #F2F2F2; white-space: nowrap; }
.legal-table tr:last-child td { border-bottom: 0; }

/* Kopfmenü (Review 22.11.2026): das offene Panel liegt immer über den anderen Menüknöpfen. Unter 1024 px ist es so
   breit wie der Kopf (header ist position: relative) statt am Knopf ausgerichtet, sonst ragt es rechts hinaus. */
[data-menu-panel] { z-index: 30; }
@media (max-width: 1023px) {
  nav[aria-label="Hauptnavigation"] > div[style*="position: relative"] { position: static !important; }
  [data-menu-panel] { left: 16px !important; right: 16px !important; width: auto !important; max-width: none !important; }
}
/* Klebende Bildspalte (Sanierungsartikel): kleben nur, solange Bild und Text nebeneinander stehen (Umbruch ~1000 px) */
@media (max-width: 1023px) {
  main [style*="position: sticky"] { position: static !important; }
}
/* Anfrageformular: Fehlermeldung und beanstandete Felder sichtbar */
[data-anfrage-status][data-error] { color: #B42318 !important; font-weight: 500; }
[data-anfrage-form] [aria-invalid="true"] { border-color: #B42318 !important; box-shadow: 0 0 0 1px #B42318; }
/* Fonds-Tabelle (Erneuerungsfonds-Artikel, Klasse aus TEXT_FIXES, Entscheid 24.11.2026): auf dem Handy über die ganze
   Bildschirmbreite und kompakter, damit die vier Spalten ab 360 px ohne seitliches Wischen passen. Der negative Rand
   und der Abstand aussen entsprechen dem Innenabstand von section#inhalt, so steht die Tabelle bündig mit dem Text. */
@media (max-width: 599px) {
  div:has(> table.fund-table) {
    margin-left: calc(-1 * clamp(16px, 4vw, 48px)) !important;
    margin-right: calc(-1 * clamp(16px, 4vw, 48px)) !important;
    border-left: 0 !important; border-right: 0 !important; border-radius: 0 !important;
  }
  table.fund-table { min-width: 0 !important; font-size: 13.5px !important; }
  table.fund-table caption { padding-left: clamp(16px, 4vw, 48px) !important; padding-right: clamp(16px, 4vw, 48px) !important; }
  table.fund-table th, table.fund-table td { padding-left: 5px !important; padding-right: 5px !important; font-size: 13.5px !important; }
  table.fund-table tr > :first-child { padding-left: clamp(16px, 4vw, 48px) !important; }
  table.fund-table tr > :last-child { padding-right: clamp(16px, 4vw, 48px) !important; }
  table.fund-table td { white-space: nowrap; }
}
