/* stse.ch – Nachbau ohne WordPress
   Masse aus dem Ist-Zustand (The7, 0-Linie 13.11.2026) übernommen. */

/* ---------- Schriften (lokal, SIL Open Font License) ---------- */
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-400.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url(../fonts/montserrat-500.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-600.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-700.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url(../fonts/open-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url(../fonts/open-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url(../fonts/open-sans-700.woff2) format("woff2"); }

:root {
  --akzent: #efb007;
  --akzent-link: #efb007; /* Kundin: auf allen Seiten ein einziges Orange (bisher #ffc000) */
  --text: #000;
  --titel: #222;
  --grau-hell: #f4f4f4;
  --brotkrumen: #888;
  --grau-text: #888; /* ein Grau für alle Nebentexte (Fehlerliste Nr. 203) */
  --footer: #191919;
  --footer-unten: #252525;
  --footer-text: #aaa;
  --breite: 1250px;
  --rand: 50px;
  --kopf: 100px;
  --schrift: Arial, Helvetica, Verdana, sans-serif;
  --schrift-titel: "Montserrat", Helvetica, Arial, Verdana, sans-serif;
  --schrift-footer: "Open Sans", Helvetica, Arial, Verdana, sans-serif;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 14px/26px var(--schrift); }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--akzent-link); text-decoration: none; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 10px; padding-left: 20px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 10px; color: var(--titel); font-family: var(--schrift-titel); font-weight: 700; }
h1 { font-size: 46px; line-height: 56px; }
h2 { font-size: 32px; line-height: 42px; }
h3 { font-size: 18px; line-height: 28px; } /* Untertitel; Karten- und Listentitel 16 px (Fehlerliste Nr. 203) */
h4 { font-size: 16px; line-height: 24px; }
h5 { font-size: 18px; line-height: 28px; }
h6 { font-size: 16px; line-height: 26px; }
strong, b { font-weight: 700; }

.nur-vorleser { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap; }
.zum-inhalt { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 15px 23px 14px; background: #f1f1f1; color: #21759b; font-weight: 700; }
.zum-inhalt:focus { left: 6px; top: 7px; }

.breite { width: 100%; max-width: var(--breite); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--akzent); color: #fff; font-family: var(--schrift-titel); font-weight: 700; text-align: center; border: 0; border-radius: 0; cursor: pointer; }
.btn-s { padding: 8px 14px; font-size: 13px; line-height: 15px; }
.btn-l { padding: 16px 24px; font-size: 18px; line-height: 20px; }
.btn:hover { color: #fff; }

/* ---------- Kopf ---------- */
.kopf { position: relative; z-index: 100; height: var(--kopf); background: #fff; box-shadow: 0 0 15px 1px rgba(0, 0, 0, .07); }
.kopf .breite { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { display: block; padding-right: 25px; }
.logo img { display: block; width: 204px; height: 50px; }
.hauptnav > ul { display: flex; margin: 0 -18px 0 0; padding: 0; list-style: none; }
.hauptnav li { position: relative; }
.hauptnav > ul > li > a { display: flex; align-items: center; height: 80px; margin: 10px 18px; padding: 5px 0; color: var(--titel); font: 700 14px/18px var(--schrift-titel); text-transform: uppercase; }
.hauptnav > ul > li > a span { position: relative; display: block; }
.hauptnav > ul > li > a span::after { content: ""; position: absolute; left: 0; right: 0; top: calc(100% + 5px); height: 2px; border-radius: 3px; background: var(--akzent); opacity: 0; transition: opacity .2s; }
.hauptnav > ul > li > a:hover, .hauptnav > ul > li.aktiv > a { color: var(--akzent); }
.hauptnav > ul > li.aktiv > a span::after, .hauptnav > ul > li > a:hover span::after { opacity: 1; }
/* Untermenü (Ausklappmenü unter «Über uns») */
.hauptnav .untermenue { position: absolute; left: 0; top: 100%; z-index: 110; min-width: 240px; margin: 0; padding: 10px 0; list-style: none; background: #fff; box-shadow: 0 0 15px 1px rgba(0, 0, 0, .07); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.hauptnav li:hover > .untermenue, .hauptnav li:focus-within > .untermenue { opacity: 1; visibility: visible; }
.hauptnav .untermenue a { display: block; padding: 10px 20px; color: var(--titel); font: 700 14px/18px var(--schrift-titel); }
.hauptnav .untermenue a:hover, .hauptnav .untermenue li.aktiv > a { color: var(--akzent); }

.menue-knopf { display: none; }
.handymenue { display: none; }

/* ---------- Titelbalken ---------- */
.titelbalken { background: rgba(0, 0, 0, .04); }
.titelbalken .breite { display: flex; align-items: center; justify-content: space-between; min-height: 130px; padding-top: 20px; padding-bottom: 20px; }
.titelbalken h1 { margin: 0; font: 700 26px/36px var(--schrift); color: var(--titel); }
.brotkrumen { color: var(--brotkrumen); font-size: 12px; line-height: 24px; text-align: right; }
.brotkrumen ol { display: flex; margin: 0; padding: 0; list-style: none; }
.brotkrumen li + li::before { content: "/"; margin: 0 8px; }
.brotkrumen a { color: var(--brotkrumen); }
.brotkrumen a:hover { color: var(--akzent); }

/* ---------- Inhalt ---------- */
.inhalt { padding-top: 60px; padding-bottom: 55px; } /* wie .seite: Inhalt 60 px unter dem Titelbalken, Handy 30 px (Fehlerliste Nr. 202) */

/* ---------- Fuss ---------- */
.fuss { background: var(--footer); color: var(--footer-text); font: 14px/26px var(--schrift-footer); }
.fuss-spalten { display: flex; gap: 50px; max-width: var(--breite); margin: 0 auto; padding: 60px var(--rand) 30px; } /* gleiches Raster wie .breite (Header, Titelbalken, Inhalt, Footer unten) */
.fuss-spalte { flex: 1 1 0; min-width: 0; margin-bottom: 30px; }
.fuss-titel { margin: 0 0 20px; color: #fff; font: 700 18px/28px var(--schrift-titel); }
.fuss a { color: var(--footer-text); }
.fuss a:hover { color: var(--akzent); }
.fuss ul { margin: 0; padding: 0; list-style: none; }
.fuss li + li { margin-top: 15px; }
.fuss .etikett { display: block; margin-bottom: 5px; color: #fff; }
.sozial { display: flex; gap: 4px; margin-top: 15px; }
.sozial a { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: 2px 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; }
.sozial a:hover { background: var(--akzent); }
.sozial svg { width: 14px; height: 14px; }
.newsletter-titel { margin: 0; }
.fuss .newsletter-knopf { display: inline-block; margin: 7px 0 7px; padding: calc(.667em + 2px) calc(1.333em + 2px); background: var(--akzent); color: #fff; font: 700 14px/16px var(--schrift-titel); text-align: center; }
.fuss .rechtliches a { text-decoration: underline; }
.fuss .rechtliches p { margin: 0; }
.fuss .rechtliches p + p { margin-top: 7px; }
.fuss-unten { background: var(--footer-unten); }
.fuss-unten .breite { display: flex; align-items: center; justify-content: space-between; min-height: 115px; padding-top: 10px; padding-bottom: 10px; }
.fuss-unten img { display: block; width: 204px; max-width: none; height: 81px; margin-left: -18px; } /* PNG hat links 18 px transparenten Rand: sichtbares Logo in der Flucht von Logo oben und Footer-Spalten */
.fuss-unten p { margin: 0; color: var(--footer-text); font: 14px/22px var(--schrift); }

/* ---------- Handy (Umschaltung wie The7 bei 992 px) ---------- */
@media (max-width: 992px) {
  :root { --kopf: 60px; }
  .kopf .breite { justify-content: flex-start; padding-left: 20px; padding-right: 20px; } /* Vorgabe Kundin: Logo immer linksbündig (Vorlage: mittig) */
  .logo { padding: 0; }
  .logo img { width: 163px; height: 40px; } /* schmaler Header 60 px: 10 px Abstand oben und unten (Fehlerliste, Logo-Abstand) */
  .hauptnav { display: none; }
  .menue-knopf { display: block; position: absolute; right: 20px; top: 19px; width: 24px; height: 23px; padding: 3px 0; border: 0; background: none; cursor: pointer; }
  .menue-knopf span, .menue-knopf::before, .menue-knopf::after { content: ""; display: block; height: 3px; margin-bottom: 4px; background: var(--titel); border-radius: 0; }
  .menue-knopf::after { margin-bottom: 0; }
  .handymenue { display: block; position: fixed; top: 0; right: 0; bottom: 0; z-index: 200; width: 300px; padding: 45px 15px 30px 30px; overflow-y: auto; background: #fff; transform: translateX(100%); transition: transform .3s; }
  .handymenue.offen { transform: none; box-shadow: 0 0 30px rgba(0, 0, 0, .3); }
  .handymenue ul { margin: 0; padding: 0; list-style: none; }
  .handymenue > ul > li > a { display: block; padding: 15.2px 25px 15.2px 0; color: var(--titel); font: 700 16px/20px var(--schrift-titel); text-transform: uppercase; border-bottom: 1px solid rgba(34, 34, 34, .12); }
  .handymenue .untermenue a { display: block; padding: 12px 25px 12px 20px; color: var(--titel); font: 700 14px/18px var(--schrift-titel); border-bottom: 1px solid rgba(34, 34, 34, .12); }
  .handymenue li.aktiv > a, .handymenue a:hover { color: var(--akzent); }
  .handymenue-zu { position: absolute; top: 10px; right: 15px; width: 30px; height: 30px; border: 0; background: none; font-size: 24px; line-height: 30px; cursor: pointer; }
  .titelbalken .breite { justify-content: flex-start; text-align: left; padding-left: 20px; padding-right: 20px; } /* Vorgabe Kundin: Titel immer linksbündig */
  .titelbalken .brotkrumen { display: none; }
}
@media (max-width: 778px) {
  .breite { padding-left: 20px; padding-right: 20px; }
  .titelbalken .breite { min-height: 80px; }
  .titelbalken h1 { font-size: 20px; line-height: 30px; }
  .fuss-spalten { flex-direction: column; gap: 0; padding: 60px 20px 20px; }
  .fuss-spalte { padding: 0; }
  .fuss-unten .breite { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; min-height: 137px; } /* Vorgabe Kundin: linksbündig */
  .fuss-unten p { align-self: flex-end; } /* Vorgabe Kundin: Copyright auch mobil rechtsbündig */
}

/* ---------- Teamkarte (Über uns «Unser Team» und Startseite «Unser Expertenteam», Fehlerliste Nr. 198) ---------- */
.team-karte img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
/* Name eine Stufe unter den Zwischentiteln (vorher 19 px), Fehlerliste Nr. 174 */
.team-name { margin: 14px 0 0; font-size: 16px; line-height: 22px; }
.team-funktion { min-height: 40px; margin: -2px 0 0; color: var(--grau-text); font-size: 14px; line-height: 20px; }
.team-links { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.team-portrait { color: var(--akzent); font: 700 15px/28px var(--schrift-titel); }
.team-mail { position: relative; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .08); color: rgba(0, 0, 0, .35); }
.team-mail::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--akzent); opacity: 0; transition: opacity .15s linear; }
.team-mail svg { position: relative; z-index: 1; width: 16px; height: 16px; }
.team-mail:hover, .team-mail:focus-visible { color: #fff; }
.team-mail:hover::after, .team-mail:focus-visible::after { opacity: 1; }
.team-karte img { background: #f6f6f6; }

/* ---------- Team-Karussell (Startseite «Unser Expertenteam», Portrait «Ihre weiteren Ansprechpersonen», Fehlerliste Nr. 202) ----------
   Spalten und Abstand wie «Unser Team» auf Über uns: 4 / ab 992 px 3 / ab 778 px 2, Abstand 27 px (Handy 16 px).
   Pfeile auf Höhe der Bildmitte; ohne Überlauf blendet karussell.js sie aus. */
.karussell { position: relative; --spalten: 4; --abstand: 27px; container-type: inline-size; }
.karussell-band { display: flex; gap: var(--abstand); margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.karussell-band::-webkit-scrollbar { display: none; }
.karussell-band > li { position: relative; flex: 0 0 calc((100% - (var(--spalten) - 1) * var(--abstand)) / var(--spalten)); scroll-snap-align: start; }
.karussell-pfeil { position: absolute; top: calc((100cqw - (var(--spalten) - 1) * var(--abstand)) / var(--spalten) / 2); display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-top: -15px; padding: 0; border: 0; background: none; color: var(--akzent); cursor: pointer; }
.karussell-pfeil svg { flex: 0 0 auto; width: 39px; height: 39px; transform: scaleX(.82); }
.karussell-pfeil.zurueck { left: -36px; }
.karussell-pfeil.weiter { right: -36px; }
.karussell-pfeil[hidden] { display: none; }
@media (max-width: 992px) { .karussell { --spalten: 3; } }
@media (max-width: 778px) {
  .karussell { --spalten: 2; --abstand: 16px; }
  .karussell-pfeil { background: rgba(255, 255, 255, .8); }
  .karussell-pfeil.zurueck { left: 5px; }
  .karussell-pfeil.weiter { right: 5px; }
}
@media (prefers-reduced-motion: reduce) { .karussell-band { scroll-behavior: auto; } }

/* ---------- Symbol mit Text (Kontakt) ---------- */
.symboltext { position: relative; }
.symboltext .symbol { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; color: var(--akzent-link); }
.symboltext .symbol svg { display: block; width: 24px; height: 24px; }
.symboltext h5 { margin: 0 0 10px 34px; }
.symboltext-text { font-size: 16px; line-height: 28px; }

/* ---------- Kontakt ---------- */
.kontakt-infos { display: grid; grid-template-columns: repeat(3, minmax(0, 350px)); column-gap: 50px; margin-top: 80px; }
.kontakt-kasten { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; margin-top: 85px; }
.kasten { margin-bottom: 30px; padding: 30px 30px 40px; background: var(--grau-hell); }
.karte { padding: 5px; background: var(--akzent); }
.karte iframe { display: block; width: 100%; height: 450px; border: 0; }

/* ---------- Formular ---------- */
.formular p { margin: 0 0 10px; }
.formular input[type=text], .formular input[type=email], .formular textarea { display: inline-block; width: 100%; height: 40px; margin-bottom: 10px; padding: 5px 15px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 0; background: #fff; color: #707070; font: 14px/26px var(--schrift); }
.formular textarea { height: 272px; resize: vertical; }
.formular .wahl { display: block; margin-top: -8px; padding-left: 14px; }
.formular .wahl input { margin: 0 4px 0 0; }
.formular .falle { position: absolute; left: -9999px; }
.formular-meldung { margin-top: 10px; padding: 8px 12px; border: 2px solid #46b450; }
.formular-meldung.fehler { border-color: #dc3232; }

@media (max-width: 992px) {
  .kontakt-infos { grid-template-columns: 1fr 1fr; row-gap: 50px; }
}
@media (max-width: 778px) {
  .kontakt-infos, .kontakt-kasten { grid-template-columns: 1fr; }
  .kontakt-kasten { row-gap: 30px; }
}

/* ---------- CTA-Balken (Phase 2, Vorgabe Kundin: Verlauf #1E304B → #365888, Button #EFB007) ---------- */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 159px; padding: 30px 43px; background: linear-gradient(90deg, #1e304b 0%, #365888 100%); color: #fff; }
.cta h2 { margin: 0 0 6px; color: #fff; font-size: 21px; line-height: 30px; }
.cta p { max-width: 660px; margin: 0; color: #fff; font-size: 15px; }
.cta .cta-knopf { flex: 0 0 auto; width: 188px; padding: 20px 24px; font-size: 13.5px; line-height: 20px; text-transform: none; letter-spacing: normal; }
@media (max-width: 778px) {
  .cta { flex-direction: column; align-items: flex-start; padding: 30px 20px; }
}

/* ---------- Einheitliche Abstände (Phase 2, Vorgabe Kundin: Referenz «Wer wir sind» im Mockup Über uns) ----------
   Vom Titelbalken bis zum ersten Titel 60 px (Handy 30 px), Titel 26/36 mit oranger Akzentlinie,
   vom Titel bis zum Text 41 px (11 px bis zur Linie, Linie 4 px, 26 px bis zum Text). */
.seite { padding-top: 60px; padding-bottom: 80px; }
.abschnitt + .abschnitt, .abschnitt + .cta, .cta + .abschnitt { margin-top: 80px; } /* CTA-Balken mit demselben Abstand wie die Abschnitte (Fehlerliste Nr. 202) */
.abschnitt-titel { margin: 0 0 26px; font-size: 26px; line-height: 36px; }
.abschnitt-titel::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 11px; background: var(--akzent); }
/* ---------- Häufige Fragen (includes/faq.php) ---------- */
.faq-liste { border-top: 1px solid #e1e1e1; }
.faq-eintrag { border-bottom: 1px solid #e1e1e1; }
.faq-eintrag summary { position: relative; display: block; padding: 18px 40px 18px 0; cursor: pointer; list-style: none; }
.faq-eintrag summary::-webkit-details-marker { display: none; }
.faq-eintrag summary h3 { margin: 0; font-size: 16px; line-height: 24px; }
.faq-eintrag summary::before, .faq-eintrag summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; background: var(--akzent); transition: transform .2s; }
.faq-eintrag summary::after { transform: rotate(90deg); }
.faq-eintrag[open] summary::after { transform: rotate(0deg); }
.faq-eintrag summary:hover h3 { color: var(--akzent); }
.faq-eintrag summary:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.faq-antwort { padding: 0 40px 18px 0; }
.faq-antwort p { margin: 0; }
.faq-antwort a { color: var(--akzent-link); }
@media (prefers-reduced-motion: reduce) { .faq-eintrag summary::after { transition: none; } }

@media (max-width: 778px) {
  .seite { padding-top: 30px; padding-bottom: 50px; }
  .inhalt { padding-top: 30px; }
  .abschnitt + .abschnitt, .abschnitt + .cta, .cta + .abschnitt { margin-top: 50px; }
}
