/* zcad.ch CMS – Gestaltung der öffentlichen Website (Entwurf A) */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/open-sans-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/open-sans-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --text: #24272B;
  --text-2: #4A525C;
  --text-3: #5B6470;
  --blau: #2B66A8;
  --blau-dunkel: #1C4B80;
  --linie: #DDE1E6;
  --linie-hell: #E9ECEF;
  --grau: #F4F6F8;
  --dunkel: #24272B;
  --dunkel-2: #1A1D21;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Open Sans", "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--blau); }
a:hover { color: var(--blau-dunkel); }
h1, h2, h3, h4 { line-height: 1.2; }
:focus-visible { outline: 3px solid #F2A900; outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sprung { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100; }
.sprung:focus { left: 8px; top: 8px; }

/* Knöpfe */
.btn { display: inline-block; padding: 12px 22px; border-radius: 6px; font-weight: 700; text-decoration: none; font-size: 15px; line-height: 1.3; border: 2px solid transparent; text-align: center; cursor: pointer; font-family: inherit; }
.btn-primaer { background: var(--blau); color: #fff; }
.btn-primaer:hover { background: var(--blau-dunkel); color: #fff; }
.btn-rand { border-color: #C5CBD3; color: var(--text); background: #fff; }
.btn-rand:hover { border-color: var(--text); color: var(--text); }
.btn-hell { background: #fff; color: var(--dunkel-2); }
.btn-hell:hover { background: #E3E6EA; color: var(--dunkel-2); }
.btn-rand-hell { border-color: #fff; color: #fff; }
.btn-rand-hell:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Kopfzeile */
.topbar { background: var(--dunkel); color: #D5D9DE; font-size: 13px; }
.topbar-innen { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-kontakt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.topbar-frage { font-weight: 700; }
.gtranslate_wrapper { display: inline-flex; gap: 4px; }
.gtranslate_wrapper img { width: 20px; height: auto; }

.kopf { background: #fff; border-bottom: 1px solid #E3E6EA; position: relative; z-index: 20; }
.kopf-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 12px; padding-bottom: 12px; }
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.marke:hover { color: var(--text); }
.marke img { width: 40px; height: 42px; object-fit: contain; }
.marke-2 { font-weight: 400; color: var(--text-3); }

.nav-schalter { display: none; align-items: center; gap: 8px; background: none; border: 1px solid #C5CBD3; border-radius: 6px; padding: 9px 14px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; min-height: 44px; }
.hauptnav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.hauptnav li { position: relative; }
.hauptnav a, .nav-oeffner { display: flex; align-items: center; gap: 6px; padding: 10px 13px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; background: none; border: 0; font-family: inherit; cursor: pointer; border-radius: 6px; min-height: 44px; }
.hauptnav a:hover, .nav-oeffner:hover { background: var(--grau); color: var(--text); }
.hauptnav .aktiv > a, .hauptnav .aktiv > .nav-oeffner { color: var(--blau); }
.hauptnav .nav-shop a { color: #fff; background: var(--blau); margin-left: 6px; padding: 10px 18px; }
.hauptnav .nav-shop a:hover { background: var(--blau-dunkel); color: #fff; }
.untermenue { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 240px; background: #fff; border: 1px solid var(--linie); border-radius: 8px; box-shadow: 0 10px 30px rgba(20, 24, 28, .12); display: none; }
.untermenue a { font-weight: 500; padding: 9px 12px; min-height: 0; }
.untermenue a[aria-current="page"] { color: var(--blau); }
.hat-kinder.offen > .untermenue { display: block; }
@media (hover: hover) and (min-width: 961px) {
  .hat-kinder:hover > .untermenue { display: block; }
}

@media (max-width: 960px) {
  .nav-schalter { display: inline-flex; }
  .hauptnav { display: none; width: 100%; }
  .hauptnav.offen { display: block; }
  .hauptnav > ul { flex-direction: column; align-items: stretch; padding: 8px 0 12px; }
  .hauptnav a, .nav-oeffner { width: 100%; justify-content: space-between; }
  .untermenue { position: static; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .hauptnav .nav-shop a { margin: 8px 0 0; justify-content: center; }
}

/* Startseite: Kopfbereich */
.held { position: relative; background: var(--dunkel-2); color: #fff; overflow: hidden; }
.held-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.held-innen { position: relative; padding-top: 96px; padding-bottom: 104px; }
.held-badge { display: inline-block; background: var(--blau); color: #fff; padding: 5px 12px; border-radius: 4px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
a.held-badge:hover { background: var(--blau-dunkel); color: #fff; }
.held h1 { margin: 20px 0 16px; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; font-weight: 800; max-width: 780px; }
.held-text { margin: 0 0 32px; font-size: 19px; max-width: 660px; color: #E3E6EA; }
.held-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }

.abschnitt { padding-top: 80px; padding-bottom: 40px; }
.abschnitt-oben-null { padding-top: 0; }
.abschnitt-titel { margin: 0 0 8px; font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; }
.abschnitt-titel.klein { font-size: clamp(24px, 2.8vw, 30px); margin-bottom: 16px; }
.abschnitt-text { margin: 0 0 32px; color: var(--text-3); max-width: 700px; }
.stufen-bild { display: block; width: 100%; max-width: 851px; margin: 0 auto 40px; }

/* Ausbaustufen */
.stufen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; margin: 8px 0 24px; }
.stufe { border: 1px solid var(--linie); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; background: #fff; }
.stufe h3 { margin: 0; font-size: 24px; font-weight: 800; }
.stufe-code { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--blau); text-transform: uppercase; }
.stufe-basis { margin: 0; color: var(--text-3); font-size: 14px; }
.stufe-liste { margin: 0; padding: 0; list-style: none; font-size: 14px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.stufe-liste li { display: flex; gap: 8px; }
.stufe-liste .mk { color: var(--blau); font-weight: 800; flex: 0 0 auto; width: 12px; }
.stufe-liste .teilweise { color: var(--text-2); }
.stufe-liste em { color: var(--text-3); font-style: normal; font-size: 13px; }
.stufe-preis { border-top: 1px solid #E3E6EA; padding-top: 14px; }
.stufe-preis .chf { font-size: 22px; font-weight: 800; }
.stufe-preis .eur { font-size: 13px; color: var(--text-3); }
.stufe-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.stufe-knoepfe .btn { flex: 1 1 auto; padding: 11px 14px; font-size: 14px; }

/* Grauer Streifen mit Einleitung und News */
.band-grau { background: var(--grau); margin-top: 40px; }
.zwei-spalten { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.spalte-haupt { flex: 999 1 520px; min-width: 0; }
.spalte-neben { flex: 1 1 340px; min-width: 0; align-self: flex-start; }
.karte { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid #E3E6EA; }
.karte-titel { margin: 0 0 14px; font-size: 20px; font-weight: 800; }
.mehr { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; }

.newsliste { margin: 0; padding: 0; list-style: none; }
.newsliste li { border-top: 1px solid #E3E6EA; padding: 11px 0; font-size: 15px; font-weight: 600; display: flex; flex-direction: column; }
.newsliste a { color: var(--text); text-decoration: none; }
.newsliste a:hover { color: var(--blau); text-decoration: underline; }
.news-datum { font-size: 12px; font-weight: 600; color: var(--text-3); }

/* Video (lädt erst nach Klick) */
.video { margin: 24px 0; }
.video-start { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--dunkel-2); aspect-ratio: 16 / 9; cursor: pointer; }
.video-start img { width: 100%; height: 100%; object-fit: cover; opacity: .75; display: block; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--dunkel-2); display: flex; align-items: center; justify-content: center; }
.video-hinweis { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px; font-size: 12px; color: #fff; background: rgba(0,0,0,.55); text-align: left; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }
.video figcaption { font-size: 14px; color: var(--text-3); margin-top: 8px; font-style: italic; }

/* Technische Stärken */
.staerken { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 40px 32px; margin-top: 32px; }
.staerke img { width: 100%; height: 220px; object-fit: contain; background: var(--grau); border-radius: var(--radius); display: block; }
.staerke h3 { margin: 18px 0 8px; font-size: 20px; }
.staerke p { margin: 0; color: var(--text-2); }
.broschuere { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid #E3E6EA; }
.broschuere img { display: block; width: 100%; }

/* Inhaltsseiten */
.seitenkopf { background: var(--grau); border-bottom: 1px solid #E3E6EA; }
.seitenkopf .wrap { padding-top: 48px; padding-bottom: 40px; }
.seitenkopf h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); font-weight: 800; max-width: 900px; }
.seitenkopf-text { margin: 14px 0 0; font-size: 18px; color: var(--text-2); max-width: 820px; }
.seiteninhalt { padding-top: 40px; padding-bottom: 72px; }
.vorschau-hinweis { background: #FFF3CD; color: #5C4400; text-align: center; padding: 10px; font-weight: 600; }

.inhalt { max-width: 1000px; overflow-wrap: break-word; }
.inhalt-breit { max-width: none; }
.inhalt > :first-child { margin-top: 0; }
.inhalt h2 { font-size: 26px; font-weight: 800; margin: 40px 0 12px; }
.inhalt h3 { font-size: 20px; font-weight: 700; margin: 30px 0 10px; }
.inhalt h4 { font-size: 17px; margin: 24px 0 8px; }
.inhalt p { margin: 0 0 14px; }
.inhalt ul, .inhalt ol { padding-left: 24px; margin: 0 0 16px; }
.inhalt li { margin-bottom: 4px; }
.inhalt img { border-radius: 6px; }
.inhalt hr { border: 0; border-top: 1px solid var(--linie); margin: 36px 0; }
.inhalt blockquote { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--linie); color: var(--text-2); }
.inhalt .tabelle, .inhalt figure.table { overflow-x: auto; margin: 0 0 20px; }
.inhalt table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0 0 20px; }
.inhalt th, .inhalt td { border: 1px solid var(--linie); padding: 8px 10px; text-align: left; vertical-align: top; }
.inhalt th { background: var(--grau); }
.inhalt .zeile { display: flex; flex-wrap: wrap; gap: 24px 40px; margin: 0 0 28px; align-items: flex-start; }
.inhalt .zeile > .spalte { flex: 1 1 280px; min-width: 0; }
.inhalt .zeile > .spalte > :last-child { margin-bottom: 0; }
.inhalt .bild-zentriert { text-align: center; }
.inhalt .knopf, .inhalt a.btn { display: inline-block; }
.inhalt a.knopf { padding: 11px 20px; border-radius: 6px; background: var(--blau); color: #fff; font-weight: 700; text-decoration: none; }
.inhalt a.knopf:hover { background: var(--blau-dunkel); color: #fff; }

/* Formulare */
.formular { background: var(--grau); border: 1px solid #E3E6EA; border-radius: var(--radius); padding: 28px; margin: 24px 0; max-width: 820px; }
.formular-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px 20px; margin-bottom: 14px; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld-breit { grid-column: 1 / -1; }
.feld label { font-weight: 600; font-size: 14px; }
.feld input[type=text], .feld input[type=email], .feld input[type=tel], .feld input[type=number], .feld input[type=date], .feld select, .feld textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #B9C0C8; border-radius: 6px; background: #fff; color: var(--text); min-height: 44px; }
.feld textarea { resize: vertical; }
.feld [aria-invalid="true"] { border-color: #B3261E; }
.feld .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.feld .check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.feld-fehler { color: #B3261E; font-size: 13px; font-weight: 600; }
.pflicht { color: #B3261E; }
.formular-fehler { background: #FDECEA; color: #8C1D18; border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; font-weight: 600; }
.formular-hinweis { font-size: 13px; color: var(--text-3); margin: 0 0 14px; }
.formular-ok { background: #E7F4EA; border: 1px solid #B9DFC2; color: #1D4D2A; border-radius: var(--radius); padding: 22px 26px; margin: 24px 0; max-width: 820px; }
.formular-ok p { margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fuss */
.fuss { background: var(--dunkel); color: #C4CAD1; font-size: 14px; margin-top: 40px; }
.fuss-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 28px; }
.fuss-titel { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 12px; }
.fuss-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fuss a { color: #C4CAD1; text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss-adresse { font-style: normal; line-height: 1.7; }
.fuss-zeile { border-top: 1px solid #3A3F45; padding-top: 18px; padding-bottom: 28px; font-size: 12px; color: #A3AAB2; }

@media (max-width: 600px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .held-innen { padding-top: 64px; padding-bottom: 72px; }
  .held-text { font-size: 17px; }
  .abschnitt { padding-top: 56px; }
  .zwei-spalten { padding-top: 48px; padding-bottom: 48px; }
  .formular { padding: 20px; }
  .staerke img { height: 200px; }
}

@media print {
  .topbar, .kopf, .fuss, .video, .formular { display: none; }
}

/* Kartenraster aus übernommenen Seiten */
.inhalt .karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; margin: 8px 0 32px; }
.inhalt .karte-block { border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px; background: #fff; }
.inhalt .karte-block img { display: block; width: 100%; height: 180px; object-fit: contain; margin-bottom: 12px; }
.inhalt .karte-block h3 { margin: 0 0 8px; font-size: 18px; }
.inhalt .karte-block p:last-child { margin-bottom: 0; }

/* Funktionsvergleich mit Symbolen */
.inhalt .sym-ja { color: #1E7A3C; font-weight: 700; }
.inhalt .sym-teil { color: #2B66A8; font-weight: 700; }
.inhalt .sym-nein { color: #A23B32; font-weight: 700; }
.inhalt table.matrix td { text-align: center; width: 13%; font-size: 18px; }
.inhalt table.matrix th { background: #fff; font-weight: 500; }
.inhalt table.matrix tr:nth-child(even) th, .inhalt table.matrix tr:nth-child(even) td { background: var(--grau); }
.inhalt table.matrix tr:first-child th[scope="col"] { background: var(--dunkel); color: #fff; text-align: center; font-weight: 700; }
.inhalt table.matrix tr:first-child th[scope="col"]:first-child { text-align: left; }
.inhalt .zeile > .spalte { flex-basis: 200px; }
.inhalt .zeile > .spalte img { max-height: 440px; width: auto; }
