/* Strukturkonzept im Stil „Leicht & luftig“. Basis: CI-Variablen aus ../v3/base.css */

body { font-size: 17px; }
.switcher { z-index: 200; }
.ph-note { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #fff3c4; color: #6b5b16; font: 500 13px var(--body); }

/* ───────── Support-Leiste (getrennt vom Verkauf) */
.support-bar { background: var(--alt); border-bottom: 1px solid var(--line); font-size: 14px; }
.support-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-block: 8px; }
.support-bar a { text-decoration: none; font-weight: 500; }
.support-bar .left { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.support-bar .sos { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.support-bar .sos i { width: 8px; height: 8px; border-radius: 50%; background: #e0533d; }
.support-bar .muted { color: var(--muted); }

/* ───────── Header mit Mega-Menü */
.hdr { position: sticky; top: 0; z-index: 100; background: rgb(255 255 255 / .94); backdrop-filter: blur(14px); transition: box-shadow .3s; }
.hdr.scrolled { box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgb(16 40 34 / .3); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 80px; }
.hdr .logo img { height: 40px; width: auto; }
.menu { display: flex; gap: 2px; margin-left: 8px; font: 500 16px var(--head); }
.menu > li { list-style: none; position: relative; }
.menu > li > a, .menu > li > button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 6px; text-decoration: none; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; transition: background .2s; }
.menu > li > a:hover, .menu > li > button:hover, .menu > li:focus-within > button { background: var(--alt); }
.menu ul { margin: 0; padding: 0; }
.menu .chev { width: 14px; height: 14px; transition: transform .25s; }
.has-mega:hover .chev, .has-mega:focus-within .chev { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: -120px; width: min(980px, 92vw); padding: 28px; background: #fff; border-radius: 10px; box-shadow: 0 30px 80px -30px rgb(16 40 34 / .4), inset 0 0 0 1px var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s .1s, transform .25s .1s, visibility 0s .35s; font: 400 15px var(--body); }
.mega.small { grid-template-columns: repeat(2, 1fr); width: 560px; left: -40px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: .12s, .12s, 0s; }
.mega::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.mega a { text-decoration: none; }
.mcol { padding: 16px; border-radius: 16px; transition: background .2s; }
.mcol:hover { background: #f3fbf8; }
.mcol .t { display: flex; align-items: center; gap: 10px; font: 600 17px var(--head); margin-bottom: 6px; }
.mcol .t span { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: var(--on-tq); flex: none; }
.mcol p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.mcol ul { list-style: none; display: grid; gap: 4px; }
.mcol ul a { color: var(--ink); font-size: 14px; }
.mcol ul a:hover { color: var(--tq-ink); }
.mcol .prob { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 4px; }
.mcol .prob a { color: var(--tq-ink); font-size: 14px; font-weight: 500; }
.hdr .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.hdr .tel { text-decoration: none; text-align: right; line-height: 1.2; }
.hdr .tel small { display: block; font-size: 12px; color: var(--muted); }
.hdr .tel b { font: 600 16px var(--head); }
.hdr .btn { border-radius: 999px; }
.burger { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 15px var(--head); cursor: pointer; }
.mobile-nav { display: none; }
@media (max-width: 1080px) {
  .menu, .hdr .tel, .hdr .btn { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav.open { display: block; position: fixed; inset: 121px 0 0 0; z-index: 99; background: #fff; overflow: auto; padding: 16px clamp(16px, 3vw, 32px) 120px; }
  .mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font: 600 19px var(--head); text-decoration: none; }
  .mobile-nav small { display: block; margin-top: 22px; color: var(--muted); font: 500 13px var(--body); letter-spacing: .1em; text-transform: uppercase; }
  .mobile-nav .sub a { font: 400 17px var(--body); padding: 10px 0 10px 14px; }
}

/* Mobile: feste Leiste Anrufen / Termin */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); backdrop-filter: blur(10px); box-shadow: 0 -10px 30px -18px rgb(16 40 34 / .4); }
  .sticky-cta .btn { justify-content: center; border-radius: 999px; }
  body { padding-bottom: 76px; }
}

/* ───────── Abschnitte allgemein */
.sec { padding: clamp(72px, 9vw, 120px) 0; }
.sec.tint { background: linear-gradient(180deg, #f3fbf8, #fff); }
.sec.alt { background: var(--alt); }
.head { max-width: 680px; margin-bottom: 44px; }
.head.center { text-align: center; margin-inline: auto; }
.label { display: inline-flex; align-items: center; gap: 10px; font: 500 14px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--tq-ink); margin-bottom: 14px; }
.head h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
.head p { color: var(--muted); margin-top: 14px; font-size: 18px; }
.pill-btn { border-radius: 999px; min-height: 52px; padding: 0 26px; }
.textlink { display: inline-flex; align-items: center; gap: 8px; font: 500 16px var(--head); color: var(--tq-ink); text-decoration: none; }
.textlink svg { width: 18px; height: 18px; transition: transform .3s; }
.textlink:hover svg { transform: translateX(4px); }

/* Karten */
.card { padding: 28px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
a.card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px var(--tq), 0 24px 50px -30px rgb(13 193 152 / .6); }
.ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: var(--on-tq); flex: none; }
.ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 21px; font-weight: 600; }
.card p { color: var(--muted); font-size: 16px; }

/* Häkchen-Liste */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--grad) center / 100%; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E"); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E"); box-shadow: inset 0 0 0 7px #fff; }
.checks.no li::before { background: #e8ecea; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font: 600 19px var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--tq-soft); position: relative; transition: transform .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--tq-ink); transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 46em; }

/* Abschluss-CTA */
.closing { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 120px) 0; background: linear-gradient(180deg, #fff 0%, #dff9ef 100%); }
.closing .box { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 36px; border-radius: 32px; background: #fff; box-shadow: 0 40px 90px -50px rgb(16 40 34 / .45); }
.closing .face { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--grad); }
.closing .face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.closing h2 { font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.closing p { color: var(--muted); margin-top: 8px; }
.closing .acts { display: grid; gap: 10px; }
@media (max-width: 900px) { .closing .box { grid-template-columns: 1fr; text-align: center; } .closing .face { margin: 0 auto; } }

/* Footer */
.foot { background: var(--night); color: #b3bcb8; font-size: 15px; padding: 64px 0 32px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; }
.foot img { height: 38px; width: auto; margin-bottom: 14px; }
.foot b { display: block; color: #fff; font: 600 16px var(--head); margin-bottom: 10px; }
.foot a { display: block; text-decoration: none; padding: 3px 0; }
.foot a:hover { color: var(--tq-light); }
.foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #36403c; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; }
@media (max-width: 900px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot .cols { grid-template-columns: 1fr; } }

/* ───────── Header über einem Hero-Bild (body.overlay): transparent, weiße Schrift, wird beim Scrollen weiß */
body.overlay .support-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 101; background: rgb(10 20 17 / .35); border-color: rgb(255 255 255 / .12); color: #fff; backdrop-filter: blur(8px); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
body.overlay .support-bar .muted { color: rgb(255 255 255 / .7); }
body.overlay .support-bar .sos { color: #fff; }
body.overlay .hdr { position: fixed; top: 38px; left: 0; right: 0; background: transparent; backdrop-filter: none; transition: top .4s cubic-bezier(.2,.7,.2,1), background .4s, box-shadow .4s; }
body.overlay .hdr .menu > li > a, body.overlay .hdr .menu > li > button, body.overlay .hdr .tel { color: #fff; }
body.overlay .hdr .tel small { color: rgb(255 255 255 / .7); }
body.overlay .hdr .menu > li > a:hover, body.overlay .hdr .menu > li > button:hover, body.overlay .hdr .menu > li:focus-within > button { background: rgb(255 255 255 / .14); }
body.overlay .hdr .logo img { filter: brightness(0) invert(1); transition: filter .4s; }
body.overlay .burger { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .3); color: #fff; }
body.overlay.scrolled .support-bar { transform: translateY(-100%); }
body.overlay.scrolled .hdr { top: 0; background: rgb(255 255 255 / .94); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgb(16 40 34 / .3); }
body.overlay.scrolled .hdr .menu > li > a, body.overlay.scrolled .hdr .menu > li > button, body.overlay.scrolled .hdr .tel { color: var(--ink); }
body.overlay.scrolled .hdr .tel small { color: var(--muted); }
body.overlay.scrolled .hdr .menu > li > a:hover, body.overlay.scrolled .hdr .menu > li > button:hover { background: var(--alt); }
body.overlay.scrolled .hdr .logo img { filter: none; }
body.overlay.scrolled .burger { background: #fff; border-color: var(--line); color: var(--ink); }
body.overlay .mega { color: var(--ink); }
.mega .mall { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 12px 16px; margin-bottom: 8px; border-radius: 6px; background: var(--tq-soft); color: var(--tq-ink); font: 600 15px var(--head); }
.mega .mall:hover { background: #d3f3e8; }

/* Vorteile Wartungsvertrag (Baustein aus konzept.js) */
.wv { padding: clamp(88px, 10vw, 140px) 0; background: linear-gradient(180deg, #f3fbf8, #fff); }
.wv .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.wv-txt { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wv-txt h2 { font-size: clamp(30px, 3.1vw, 46px); text-wrap: balance; font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.wv-txt p { color: var(--muted); font-size: 18px; }
.wv-acts { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 6px; }
.wv-acts .pill-btn { border-radius: var(--r); min-height: 54px; padding: 0 26px; }
.wv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wv-grid li { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.wv-ic { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: var(--tq-soft); color: var(--tq-ink); margin-bottom: 8px; }
.wv-ic svg { width: 21px; height: 21px; }
.wv-grid b { font: 700 17px/1.25 var(--head); }
.wv-grid small { color: var(--muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 1100px) { .wv .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .wv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wv-grid li { padding: 16px; } }

/* Support-Leiste auf dem Handy einzeilig halten */
@media (max-width: 640px) { .support-bar .muted { display: none; } }

/* Wartungsvertrag: lebendig – Karten leuchten nacheinander auf, Linie unter der Überschrift zeichnet sich */
.wv { position: relative; overflow: hidden; }
.wv::before { content: ""; position: absolute; right: -10%; top: 0; bottom: 0; width: 46%; background: linear-gradient(115deg, rgb(13 193 152 / .10), rgb(89 247 170 / .18)); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); pointer-events: none; transform: translateX(var(--wvx, 0)); transition: transform .2s linear; }
.wv .wrap { position: relative; }
.wv-grid li { position: relative; overflow: hidden; transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.wv-grid li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.wv-grid li.on, .wv-grid li:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line), 0 26px 46px -28px rgb(11 35 28 / .4); }
.wv-grid li.on::after, .wv-grid li:hover::after { transform: scaleX(1); }
.wv-grid li .wv-ic { transition: background .4s, color .4s, transform .5s cubic-bezier(.2,.7,.2,1); }
.wv-grid li.on .wv-ic, .wv-grid li:hover .wv-ic { background: var(--grad); color: var(--on-tq); transform: scale(1.08) rotate(-4deg); }
.wv-grid li.in .wv-ic { animation: wvPop .7s cubic-bezier(.2,.9,.3,1.3) backwards; animation-delay: calc(.2s + var(--d, 0) * .12s); }
@keyframes wvPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wv-grid li, .wv-grid li .wv-ic { transition: none; animation: none; } }

/* Aktiver Menüpunkt: zeigt, wo man sich gerade befindet */
.menu > li > a[aria-current="page"] { color: var(--tq-ink); box-shadow: inset 0 -2px 0 var(--tq); border-radius: 6px 6px 0 0; }
body.overlay:not(.scrolled) .hdr .menu > li > a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--tq-light); }
.mega .mcol ul a:hover { color: var(--tq-ink); }
.foot .legal a { display: inline; padding: 0; }

/* ───────── Handy: Bilder kompakter, damit der Inhalt im Vordergrund steht */
@media (max-width: 640px) {
  /* Startseite */
  /* Leistungs-Paneele: geöffnetes Paneel wächst mit seinem Inhalt, nichts wird abgeschnitten */
  .acc .panel { height: 72px; }
  .acc .panel.open { height: auto !important; }
  .acc .panel.open .content { position: relative; padding: 76px 22px 26px; max-width: none; }
  .acc .panel .content > p { font-size: 16px; }
  .acc .panel .needs { display: none; }
  .acc .panel .vt { right: 72px; font-size: 18px !important; white-space: normal; }
  /* Kachel "Ein fester Ansprechpartner": Foto oben, Text darunter auf dunklem Grund – gut lesbar */
  .t-photo { min-height: 0 !important; padding: 0 0 24px !important; background: #0b231c; gap: 12px; }
  .t-photo img { position: relative !important; inset: auto !important; height: 230px !important; width: 100%; display: block; z-index: 0 !important; transform: none !important; object-position: 40% 25% !important; }
  .t-photo::after { display: none; }
  .t-photo .who, .t-photo h3, .t-photo p { margin-left: 22px; margin-right: 22px; }
  .t-photo .who { margin-top: 6px; background: rgb(255 255 255 / .1) !important; backdrop-filter: none !important; }
  .maxpic { aspect-ratio: 4 / 3.6 !important; }
  .final .face { width: 96px !important; }
  /* Über uns */
  .stage { aspect-ratio: 1 / .82 !important; }
  .member .card { aspect-ratio: 4 / 3.3 !important; }
  .member .card img { object-position: 50% 18% !important; }
  .stories .max img { max-height: 300px !important; aspect-ratio: 4 / 3.4; }
  .work figure { flex-basis: 66% !important; }
  .work .ph { aspect-ratio: 4 / 4.2 !important; }
  /* Leistungs- und Branchenseiten */
  .topic .pic { aspect-ratio: 16 / 10 !important; }
  .glance { display: none !important; }
  .hero .wrap { padding-bottom: 48px !important; }
  .sector .pic, .card2 .pic { aspect-ratio: 16 / 9 !important; }
  .place .photo { aspect-ratio: 16 / 10 !important; }
}

/* Wartungsvertrag auf Handy/Tablet ruhig: keine springenden Karten, keine wandernde Fläche */
@media (max-width: 900px), (hover: none) {
  .wv::before { transform: none !important; transition: none; }
  .wv-grid li, .wv-grid li.on, .wv-grid li:hover { transform: none !important; box-shadow: inset 0 0 0 1px var(--line) !important; }
  .wv-grid li::after { display: none; }
  .wv-grid li .wv-ic, .wv-grid li:hover .wv-ic { transform: none !important; background: var(--tq-soft) !important; color: var(--tq-ink) !important; }
}

/* Zusammengesetzte Wörter in Überschriften nicht trennen */
.nw { white-space: nowrap; }
