/* Webseite Dachdecker Heigert – Ergänzungen zu app.css (gleicher Stil wie die Mitarbeiter-App) */
:root {
  --navy-deep: color-mix(in srgb, var(--accent) 72%, black);
  --navy-mid: color-mix(in srgb, var(--accent) 88%, white);
}
@supports not (color: color-mix(in srgb, red 50%, white)) {
  :root { --navy-deep: #001f5a; --navy-mid: #1a4189; }
}
html { scroll-behavior: smooth; }
img { max-width: 100%; }
input[type=tel], input[type=search], input[type=url], input[type=datetime-local], input[type=time] {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #d1d5db; border-radius: 12px;
  font: inherit; font-weight: 400; background: #fff; color: var(--text);
}
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Grundgerüst ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.site { background: #fff; }
.site h1, .site h2, .site h3 { letter-spacing: -.015em; }
.site h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--accent); margin: 0; font-weight: 800; }
.site h3 { font-size: 1.3rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 680px; margin: 12px 0 0; }
.section { padding: clamp(52px, 8vw, 84px) 0; }
.section-alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-navy { background: var(--accent); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .lead { color: #dfe8ff; }
.section-deep { background: var(--navy-deep); color: #fff; }
.section-deep h2, .section-deep h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.more-link { font-weight: 800; font-size: 1.08rem; color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.more-link:hover { gap: 10px; }
.section-navy .more-link, .section-deep .more-link { color: var(--green); }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-weight: 800; font-size: .95rem; box-shadow: var(--shadow); }
.pill-green { background: var(--green); color: var(--accent); border-color: transparent; }
.dots { background-image: radial-gradient(rgba(255,255,255,.08) 1.5px, transparent 1.6px); background-size: 22px 22px; }
.flash-wrap { padding-top: 18px; }
.narrow-text { max-width: 760px; }

/* ---------- Infoleiste & Kopf ---------- */
.infobar { background: var(--navy-deep); color: #fff; font-size: .9rem; }
.infobar .wrap { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.infobar-left, .infobar-right { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; }
.infobar span, .infobar a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; }
.infobar .infobar-phone { color: var(--green); font-weight: 800; }
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 3px solid var(--green); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.site-logo { display: block; line-height: 0; flex-shrink: 0; }
.site-logo img { width: 210px; height: auto; max-height: 80px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a:not(.btn) { font-weight: 800; font-size: 1.02rem; color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 10px; position: relative; }
.site-nav > a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--green); transform: scaleX(0); transition: transform .2s; }
.site-nav > a:not(.btn):hover::after, .site-nav > a.active::after { transform: scaleX(1); }
.site-nav > a.active { color: var(--accent); }
.nav-portal { margin-left: 10px; }
.nav-call { display: none !important; }
.site-burger { display: none; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--accent-soft); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.site-burger span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--accent); transition: transform .2s, opacity .2s; }
body.menu-open .site-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .site-burger span:nth-child(2) { opacity: 0; }
body.menu-open .site-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Startseite: Hero ---------- */
.hero { background-color: var(--accent); color: #fff; overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: clamp(48px, 7vw, 76px); padding-bottom: clamp(64px, 8vw, 96px); }
.hero-text { flex: 999 1 440px; min-width: 0; }
.hero h1 { margin: 24px 0 0; font-size: clamp(2.5rem, 6.2vw, 4.2rem); line-height: 1.04; color: #fff; font-weight: 800; }
.hero h1 .lime { color: var(--green); display: inline-block; margin-top: 8px; }
.hero p { margin: 24px 0 0; font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: #dfe8ff; max-width: 560px; }
.hero .btn-row { margin-top: 32px; }
.hero .btn-lg { font-size: 1.15rem; font-weight: 800; }
.hero .btn-white { background: #fff; color: var(--text); border-color: #fff; }
.hero-art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.hero-figure { position: relative; width: 100%; max-width: 430px; }
.hero-frame { border-radius: 22px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.hero-frame img { width: 100%; height: auto; display: block; }
.sticker { position: absolute; top: -16px; left: -16px; z-index: 3; background: var(--green); color: var(--accent); font-weight: 800; padding: 9px 18px; border-radius: 999px; box-shadow: var(--shadow); }
.bubble { position: absolute; bottom: -30px; right: -14px; z-index: 3; background: #fff; color: var(--text); border-radius: 20px; padding: 14px 20px; box-shadow: var(--shadow-lg); font-weight: 800; font-size: clamp(1.05rem, 2vw, 1.4rem); max-width: 80%; }
.bubble::before { content: ""; position: absolute; top: -10px; left: 30px; border: 10px solid transparent; border-bottom-color: #fff; border-top: 0; }

/* ---------- Laufband ---------- */
.ticker { background: var(--green); overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--line); }
.ticker-track { display: inline-flex; align-items: center; padding: 14px 0; }
.ticker-track span { font-weight: 800; font-size: clamp(1.2rem, 2.4vw, 1.7rem); color: var(--accent); padding: 0 22px; }
.ticker-track i { color: #fff; font-style: normal; font-size: 1.4rem; }

/* ---------- Karten ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.s-card { display: flex; flex-direction: column; background: #fff; border-radius: 18px; padding: 26px; box-shadow: var(--shadow); border: 2px solid transparent; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.s-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16,24,40,.13); border-color: var(--green); }
.s-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.s-card:nth-child(even) .s-icon { background: var(--green-soft); color: var(--green-text); }
.s-card h3 { margin: 18px 0 0; font-size: 1.32rem; color: var(--text); }
.s-card p { margin: 8px 0 0; color: var(--muted); font-size: 1.02rem; }
.s-card .go { margin-top: auto; padding-top: 16px; font-weight: 800; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.s-card-img { margin: -26px -26px 18px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px 16px 0 0; background: var(--accent-soft); }
.s-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
a.s-card:hover .s-card-img img { transform: scale(1.05); }

/* Hervorgehobene Leistung */
.highlight { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.highlight-box { flex: 1 1 340px; min-width: 0; background: #fff; border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.highlight-box h2 { margin-top: 16px; }
.highlight-box p { font-size: 1.12rem; color: var(--muted); margin: 14px 0 22px; }
.highlight-img { flex: 1 1 340px; min-width: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: var(--accent); min-height: 260px; }
.highlight-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tag-yellow { display: inline-block; background: #fde68a; border-radius: 8px; padding: 6px 14px; font-weight: 800; font-size: .95rem; }

/* ---------- Vorher/Nachher ---------- */
.ba { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 700 / 330; background: var(--navy-deep); box-shadow: var(--shadow); user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.3); pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--pos); translate: -50% -50%; width: 60px; height: 60px; border-radius: 999px; background: var(--green); color: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); pointer-events: none; }
.ba-knob .icon { margin: 0 -4px; }
.ba-label { position: absolute; top: 14px; background: rgba(255,255,255,.95); color: var(--accent); font-weight: 800; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow); pointer-events: none; }
.ba-l { left: 14px; }
.ba-r { right: 14px; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-hint { margin: 14px 0 0; font-weight: 600; color: var(--muted); }

/* ---------- Referenzen ---------- */
.ref-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ref-img { aspect-ratio: 4 / 3; background: var(--accent-soft); overflow: hidden; display: block; cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.ref-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ref-card:hover .ref-img img { transform: scale(1.05); }
.ref-body { padding: 20px; }
.ref-cat { font-size: .82rem; font-weight: 800; color: var(--green-text); text-transform: uppercase; letter-spacing: .06em; }
.ref-body h3 { margin: 6px 0 0; }
.ref-body p { margin: 8px 0 0; color: var(--muted); }
.ref-place { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .92rem; margin-top: 8px; }
.ref-ba + .ref-ba { margin-top: 44px; }
.ref-ba h3 { margin: 14px 0 4px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; color: var(--muted); }
.filter-chips button.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Neues vom Dach ---------- */
.comic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.comic img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.28); display: block; transition: transform .25s; cursor: zoom-in; }
.comic img:hover { transform: scale(1.02) rotate(-.4deg); }
.comic h3 { margin: 22px 0 0; font-size: 1.5rem; }
.comic .prose { color: #dfe8ff; margin-top: 8px; }
.comic-date { font-weight: 800; color: var(--green); font-size: .9rem; }
.news-page .comic .prose { color: var(--text); }
.news-page .comic-date { color: var(--green-text); }
.news-page .comic img { box-shadow: var(--shadow); }

/* ---------- Ablauf ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.flow-step { border-radius: 18px; padding: 24px; background: var(--navy-mid); border: 1px solid rgba(255,255,255,.18); }
.flow-num { width: 46px; height: 46px; border-radius: 999px; background: var(--green); color: var(--accent); font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; }
.flow-step h3 { margin: 16px 0 0; font-size: 1.22rem; }
.flow-step p { margin: 8px 0 0; color: #c7d2ef; }

/* ---------- Kundenportal-Teaser ---------- */
.portal-teaser { background: var(--green); }
.portal-teaser .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.portal-teaser h2 { color: var(--accent); margin-top: 16px; }
.portal-teaser p { color: var(--text); font-size: 1.15rem; max-width: 600px; }
.teaser-text { flex: 999 1 420px; min-width: 0; }
.teaser-list { flex: 1 1 320px; min-width: 0; background: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.teaser-list div { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 1.08rem; }
.teaser-list .ti { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }

/* ---------- Kontakt ---------- */
.contact-grid { display: flex; flex-wrap: wrap; gap: 40px; }
.contact-main { flex: 1 1 420px; min-width: 0; }
.contact-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-form { margin-top: 24px; }
.contact-form .consent { font-weight: 400; font-size: .92rem; margin-bottom: 14px; }
.form-hint { margin-top: 0; }
.info-card { background: var(--bg); border-radius: 18px; padding: 24px; }
.info-card h3 { margin: 0 0 12px; color: var(--accent); }
.info-line { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--text); text-decoration: none; font-weight: 600; }
.info-line .ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--accent); display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow); }
a.info-line:hover { color: var(--accent); }
.map-card { display: flex; align-items: center; gap: 16px; background: var(--accent); color: #fff; border-radius: 18px; padding: 22px; text-decoration: none; }
.map-card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: var(--accent); flex-shrink: 0; }
.map-card small { display: block; color: #c7d2ef; }

/* ---------- Unterseiten ---------- */
.page-hero { background: var(--accent); color: #fff; padding: clamp(40px, 6vw, 64px) 0; background-image: radial-gradient(rgba(255,255,255,.07) 1.5px, transparent 1.6px); background-size: 22px 22px; }
.page-hero h1 { color: #fff; margin: 18px 0 0; font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
.page-hero .lead { color: #dfe8ff; }
.prose { font-size: 1.08rem; line-height: 1.65; }
.prose h2, .prose h3 { color: var(--accent); margin: 1.4em 0 .4em; }
.prose h3:first-child, .prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose ul li::marker { color: var(--green); }
.section-navy .prose, .section-deep .prose { color: #dfe8ff; }
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.side-card { background: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--shadow); position: sticky; top: 130px; }
.side-card h3 { margin-top: 0; color: var(--accent); }
.side-links { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.side-links a { padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.side-links a:hover, .side-links a.active { background: var(--accent-soft); color: var(--accent); }
.service-img { border-radius: 20px; overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow); }
.service-img img { width: 100%; display: block; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.team-card { background: #fff; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); text-align: center; }
.team-card img, .team-card .avatar { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 12px; font-size: 2rem; }
.team-card h3 { margin: 0; font-size: 1.12rem; }
.team-card p { margin: 4px 0 0; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.fact { background: var(--accent-soft); border-radius: 16px; padding: 20px; display: flex; gap: 14px; align-items: center; font-weight: 700; }
.fact .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.about-img img { width: 100%; border-radius: 20px; box-shadow: var(--shadow); display: block; }

.job-card { background: #fff; border-radius: 18px; padding: 26px; box-shadow: var(--shadow); border-left: 6px solid var(--green); }
.job-card h3 { margin: 10px 0 0; font-size: 1.35rem; }
.job-card .prose { font-size: 1rem; margin-top: 8px; }
.job-list { display: flex; flex-direction: column; gap: 18px; }

/* ---------- Fuß ---------- */
.site-footer { background: var(--navy-deep); color: #c7d2ef; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-logo { background: #fff; border-radius: 14px; padding: 8px 12px; width: 180px; height: auto; }
.site-footer h3 { color: #fff; margin: 0 0 10px; font-size: 1.05rem; }
.site-footer a { display: block; color: #c7d2ef; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 12px 0 0; }
.footer-since { color: var(--green); font-weight: 800; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 18px; padding-bottom: 22px; font-size: .9rem; }
.footer-bottom a { display: inline; }
.call-fab { display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: var(--accent); align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }

/* ---------- Bewegung ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes hint { 0%, 100% { translate: -50% -50%; } 50% { translate: -40% -50%; } }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .hero-text > * { animation: fadeUp .8s cubic-bezier(.2,.8,.2,1) both; }
  .slide.is-active .hero-text > :nth-child(2) { animation-delay: .1s; }
  .slide.is-active .hero-text > :nth-child(3) { animation-delay: .2s; }
  .slide.is-active .hero-text > :nth-child(4) { animation-delay: .3s; }
  .slide.is-active .hero-figure { animation: popIn .9s .15s cubic-bezier(.2,.8,.2,1) both; }
  .hero-frame { animation: floaty 6s ease-in-out infinite; }
  .slide.is-active .sticker, .slide.is-active .bubble, .services-figure.in .bubble { animation: popIn .6s 1s cubic-bezier(.2,.8,.2,1) both; }
  .ticker-track { animation: ticker 36s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  .ba:not(.touched) .ba-knob { animation: hint 1.6s ease-in-out 3; }
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Kundenportal ---------- */
.portal .topbar .brand-logo { max-height: 46px; }
.portal-main { padding-bottom: 60px; }
.portal-foot { text-align: center; color: var(--muted); padding: 10px 16px 30px; font-size: .9rem; }
.portal-foot a { color: var(--muted); }
.project-switch { max-width: 420px; }
.steps-bar { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 8px 0 0; position: relative; }
.steps-bar li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; position: relative; }
.steps-bar li::before { content: ""; position: absolute; top: 19px; left: -50%; right: 50%; height: 4px; background: var(--line); z-index: 0; }
.steps-bar li:first-child::before { display: none; }
.steps-bar li.done::before, .steps-bar li.now::before { background: var(--green); }
.step-dot { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); font-weight: 800; color: var(--muted); position: relative; z-index: 1; }
.steps-bar li.done .step-dot { background: var(--green); border-color: var(--green); color: var(--accent); }
.steps-bar li.now .step-dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--accent-soft); }
.step-label { font-size: .88rem; font-weight: 700; color: var(--muted); }
.steps-bar li.now .step-label { color: var(--accent); }
.steps-bar li.now.paused::before { background: #facc15; }
.steps-bar li.now.paused .step-dot { background: #facc15; border-color: #facc15; color: #713f12; box-shadow: 0 0 0 6px var(--warn-soft); }
.steps-bar li.now.paused .step-label { color: var(--warn); }
.step-label small { display: block; font-size: .8em; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--warn); }
/* Projektkarte im Portal: Zeitraum oben rechts */
.project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.project-head h2 { margin: 0; }
.plan-box { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-dark); min-width: 0; }
.plan-box svg { flex: none; }
.plan-box small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.plan-box strong { display: block; font-size: 17px; }
.plan-box .plan-old { display: block; font-size: 13px; font-weight: 500; }
.plan-box.paused { background: var(--warn-soft); color: #713f12; border: 2px solid #facc15; }
.plan-box.done { background: var(--ok-soft); color: var(--ok); }
/* Verwaltung: Pause-Schalter */
.pause-box { margin: 18px 0; padding: 16px 18px; border-radius: 14px; border: 2px dashed var(--line); }
.pause-box.on { border: 2px solid #facc15; background: var(--warn-soft); }
.pause-box .field { margin: 12px 0 0; }

.portal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.portal-grid .card { margin: 0; }
.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--bg); text-decoration: none; color: var(--text); }
.mini-item .ic { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.mini-item small { display: block; color: var(--muted); }
.date-box { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 14px; background: var(--accent); color: #fff; flex-shrink: 0; line-height: 1.1; }
.date-box b { font-size: 1.5rem; }
.date-box small { font-size: .78rem; text-transform: uppercase; font-weight: 700; }
.appt { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.appt-body { flex: 1; min-width: 200px; }
.appt-body h3 { margin: 0 0 4px; }
.appt-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.welcome { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.welcome img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.photo-grid .photo > a { cursor: zoom-in; }

/* ---------- Verwaltung ---------- */
.image-field .image-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.image-preview { width: 120px; height: 90px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.image-preview.empty { display: grid; place-items: center; color: #cbd5e1; }
.image-actions { display: flex; flex-direction: column; gap: 6px; font-weight: 400; }
.check-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.check-inline input { width: 20px; height: 20px; accent-color: var(--green-text); }
.content-tabs { flex-wrap: wrap; }
.list-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--bg); display: block; }
.sort-btns { display: inline-flex; gap: 2px; }
.inq-msg { white-space: pre-wrap; background: var(--bg); padding: 14px; border-radius: 12px; }
.def { display: grid; grid-template-columns: 140px 1fr; gap: 6px 16px; margin: 0 0 16px; }
.def dt { color: var(--muted); font-weight: 600; }
.def dd { margin: 0; overflow-wrap: anywhere; }
.inq-row.is-new td:first-child { box-shadow: inset 4px 0 0 var(--green); }
.status-select { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.status-select .field { flex: 1; min-width: 200px; margin: 0; }
.cust-row { text-decoration: none; color: var(--text); }
.admin-main .seg-tabs { overflow-x: auto; }
.preview-link { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Responsiv ---------- */
@media (max-width: 1060px) {
  .site-burger { display: flex; }
  .site-nav { position: fixed; left: 0; right: 0; top: var(--header-bottom, 112px); bottom: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 30px; overflow-y: auto; opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease, visibility .2s; visibility: hidden; pointer-events: none; }
  body.menu-open .site-nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  .site-nav > a:not(.btn) { font-size: 1.3rem; padding: 16px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav > a:not(.btn)::after { display: none; }
  .nav-portal { margin: 20px 0 0; min-height: 56px; font-size: 1.15rem; }
  .nav-call { display: flex !important; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; min-height: 56px; border-radius: 14px; background: var(--accent); color: #fff !important; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
  .card-grid, .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
}
@media (max-width: 760px) {
  .infobar-left { display: none; }
  .infobar .wrap { justify-content: center; }
  .site-logo img { width: 150px; }
  .wrap { padding: 0 16px; }
  .card-grid, .card-grid.two, .card-grid.four, .comic-grid, .flow, .portal-grid, .facts, .about-grid { grid-template-columns: 1fr; }
  .hero .wrap { gap: 48px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .sticker { left: 0; }
  .bubble { right: 0; }
  .ba { aspect-ratio: 4 / 3; }
  .ba-knob { width: 50px; height: 50px; }
  .footer-grid { grid-template-columns: 1fr; }
  .call-fab { display: flex; }
  .steps-bar { grid-template-columns: 1fr; gap: 0; }
  .steps-bar li { flex-direction: row; text-align: left; gap: 14px; padding: 6px 0; }
  .steps-bar li::before { top: -50%; bottom: 50%; left: 19px; right: auto; width: 4px; height: auto; }
  .def { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}

/* ---------- Kundenportal: Anmeldung ---------- */
.portal-login { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; padding-top: 2vh; }
.portal-login .auth-card { margin: 0; flex: 1 1 380px; max-width: 460px; }
.portal-login h1 { color: var(--accent); }
.portal-login-info { flex: 1 1 300px; max-width: 420px; }
.portal-login-info h2 { color: var(--accent); font-size: 1.6rem; }
.login-marco { width: 180px; height: 180px; border-radius: 20px; box-shadow: var(--shadow); display: block; margin-bottom: 22px; }
.check-list-big { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 1.08rem; }
.check-list-big li { display: flex; gap: 10px; align-items: flex-start; }
.check-list-big .icon { color: var(--green-text); margin-top: 2px; }
.photo-grid.mini { grid-template-columns: repeat(3, 1fr); }
details.decline summary { list-style: none; cursor: pointer; }
details.decline summary::-webkit-details-marker { display: none; }
.danger-zone h2 { color: var(--err); }
.mini-item .chip { margin-top: 4px; }
.topbar-back { margin-left: auto; }
@media (max-width: 700px) {
  .doc-item { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .doc-item > div:nth-child(2) { flex: 1 1 calc(100% - 80px) !important; }
  .doc-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .plan-box { width: 100%; }
}
/* 1.2: Info im Baustellen-Kasten, Kundennummer, Terminwünsche, Kunden-Uploads */
.project-info { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.project-info h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--accent); font-size: 1.05rem; }
.project-info p { margin: 0 0 8px; line-height: 1.55; }
.project-info .project-info-note { font-weight: 700; }
.cust-no { display: inline-block; margin-top: 8px; }
.wish-card { border: 2px solid #f87171; }
.wish-card h2 { display: flex; align-items: center; gap: 8px; color: var(--err); }
.wish-item { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.wish-item:first-of-type { border-top: 0; padding-top: 4px; }
.wish-new { font-weight: 800; color: var(--err); margin: 4px 0; }
.wish-box { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--err-soft); line-height: 1.5; }
.mini-item .warn-text { display: block; }
.doc-item.from-customer { box-shadow: inset 4px 0 0 var(--green); }

/* ---------- 1.3: Slider oben auf der Startseite ---------- */
.hero-slider { position: relative; display: grid; background: var(--accent); overflow: hidden; }
.hero-slider > .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; position: relative; }
.hero-slider > .slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slider .hero .wrap, .hero-slider .slide .wrap { position: relative; z-index: 2; }
.slide .hero-text h2.slide-title { margin: 24px 0 0; font-size: clamp(2.5rem, 6.2vw, 4.2rem); line-height: 1.04; color: #fff; font-weight: 800; }
.slide .hero-text h2.slide-title .lime, .slide h1 .lime { color: var(--green); display: inline-block; margin-top: 8px; }
.hero-frame.is-video { aspect-ratio: 4 / 5; background: #0b1530; }
.hero-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Video als Hintergrund */
.slide-bg { min-height: clamp(460px, 72vh, 720px); display: flex; align-items: center; }
.slide-bg > .wrap { width: 100%; }
.slide-video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.slide-bg::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,20,60,.82) 0%, rgba(0,20,60,.55) 50%, rgba(0,20,60,.15) 100%); }
.slide-bg .hero-text { max-width: 680px; }
/* Pfeile und Punkte */
.slider-arrow { position: absolute; top: 50%; z-index: 5; width: 52px; height: 52px; margin-top: -26px; border-radius: 999px; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.slider-arrow:hover, .slider-arrow:focus-visible { background: rgba(255,255,255,.32); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 5; display: flex; justify-content: center; gap: 4px; }
.slider-dots button { width: 34px; height: 30px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.slider-dots button span { display: block; width: 26px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.4); transition: background .2s, width .2s; }
.slider-dots button.on span { background: var(--green); width: 34px; }

/* ---------- 1.3: „Das machen wir“ mit Figur ---------- */
.services-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 400px); gap: 40px; align-items: end; }
.services-split.no-figure { grid-template-columns: 1fr; }
.services-split .section-head { margin-bottom: 24px; }
.s-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.s-item { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); border: 2px solid transparent; text-decoration: none; color: var(--text); transition: transform .2s, border-color .2s, box-shadow .2s; }
.s-item:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 12px 28px rgba(16,24,40,.12); }
.s-item .s-icon { width: 48px; height: 48px; border-radius: 13px; flex: none; }
.s-item:nth-child(even) .s-icon { background: var(--green-soft); color: var(--green-text); }
.s-item-text { flex: 1; min-width: 0; }
.s-item-text strong { display: block; font-size: 1.08rem; }
.s-item-text small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .92rem; line-height: 1.4; margin-top: 2px; }
.s-item-go { color: var(--accent); flex: none; transition: transform .2s; }
.s-item:hover .s-item-go { transform: translateX(3px); }
.services-figure { position: relative; align-self: end; }
.services-figure img { display: block; width: 100%; max-height: 640px; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 18px 24px rgba(16,24,40,.18)); }
.services-figure .bubble { top: 8%; bottom: auto; right: auto; left: -18%; max-width: 70%; }
.services-figure .bubble::before { top: auto; bottom: -10px; left: auto; right: 26px; border: 10px solid transparent; border-top-color: #fff; border-bottom: 0; }

/* ---------- 1.3: Untermenü Leistungen ---------- */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-link { font-weight: 800; font-size: 1.02rem; color: var(--text); text-decoration: none; padding: 10px 2px 10px 12px; border-radius: 10px; position: relative; }
.nav-drop-link::after { content: ""; position: absolute; left: 12px; right: 2px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--green); transform: scaleX(0); transition: transform .2s; }
.nav-drop:hover .nav-drop-link::after, .nav-drop-link.active::after { transform: scaleX(1); }
.nav-drop-link.active { color: var(--accent); }
.nav-drop-toggle { border: 0; background: none; color: var(--text); padding: 8px 6px; cursor: pointer; display: grid; place-items: center; border-radius: 8px; }
.nav-drop-toggle svg { transition: transform .2s; }
.nav-sub { position: absolute; top: 100%; left: 0; min-width: 300px; background: #fff; border-radius: 16px; box-shadow: 0 18px 44px rgba(16,24,40,.18); border: 1px solid var(--line); padding: 10px; display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 70; }
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub, .nav-drop.open .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-drop:hover .nav-drop-toggle svg, .nav-drop.open .nav-drop-toggle svg { transform: rotate(180deg); }
.nav-sub a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--accent-soft); color: var(--accent); }
.nav-sub-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.nav-sub a.nav-sub-all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--accent); font-weight: 800; justify-content: space-between; }

@media (max-width: 1060px) {
  .nav-drop { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-drop-link { flex: 1; font-size: 1.3rem; padding: 16px 6px; border-radius: 0; }
  .nav-drop-link::after { display: none; }
  .nav-drop-toggle { width: 52px; height: 52px; background: var(--accent-soft); color: var(--accent); border-radius: 12px; }
  .nav-sub { position: static; min-width: 0; width: 100%; box-shadow: none; border: 0; padding: 0 0 12px; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav-sub::before { display: none; }
  .nav-drop.open .nav-sub { display: grid; }
  .nav-drop:hover .nav-drop-toggle svg { transform: none; }
  .nav-drop.open .nav-drop-toggle svg { transform: rotate(180deg); }
  .nav-sub a { font-size: 1.1rem; padding: 12px 8px; }
  .services-split { grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); gap: 24px; }
  .s-list { grid-template-columns: 1fr; }
  .services-figure .bubble { left: 0; top: 2%; font-size: 1rem; }
}
@media (max-width: 760px) {
  .slider-arrow { display: none; }
  .hero-slider .slide .wrap { padding-bottom: 72px; }
  .slide-bg { min-height: 560px; }
  .slide-bg::after { background: linear-gradient(180deg, rgba(0,20,60,.55) 0%, rgba(0,20,60,.85) 100%); }
  .services-split { display: block; position: relative; }
  .services-split .section-head { padding-right: 118px; min-height: 230px; align-items: flex-start; }
  .services-figure { position: absolute; top: -12px; right: -4px; width: 120px; }
  .services-figure img { max-height: 260px; }
  .services-figure .bubble { display: none; }
}

/* 1.3: Verwaltung Slider */
.list-thumb.wide { width: 84px; height: 56px; object-fit: cover; border-radius: 10px; display: block; background: var(--accent-soft); }
.slider-teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--accent-soft); margin-bottom: 26px; }
.slider-teaser .stat-icon { width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--accent); display: grid; place-items: center; }
.slide-form .segmented { margin-right: 10px; }
.slide-form video.image-preview { object-fit: cover; background: #0b1530; }
.link-custom { margin-top: 8px; }
[data-show][hidden] { display: none !important; }
/* Handy-Menü: backdrop-filter würde das feste Menü auf die Kopfleiste begrenzen */
@media (max-width: 1060px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
}

/* 1.3.1: Untermenü zweispaltig (breiter statt länger) */
@media (min-width: 1061px) {
  .nav-sub { min-width: 0; width: 600px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 6), auto); grid-auto-flow: column; column-gap: 6px; left: 50%; margin-left: -230px; }
  .nav-sub a.nav-sub-all { margin-top: 0; border-top: 0; border-radius: 10px; background: var(--accent-soft); }
}
@media (min-width: 1061px) and (max-width: 1240px) {
  .nav-sub { margin-left: -300px; }
}
@media (min-width: 600px) and (max-width: 1060px) {
  .nav-drop.open .nav-sub { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 6), auto); grid-auto-flow: column; column-gap: 12px; }
}
body.menu-open .call-fab { display: none !important; }
/* 1.3.2: Sprechblase an der Figur auf Mundhöhe, links neben dem Daumen */
.services-figure { justify-self: end; width: fit-content; max-width: 100%; }
.services-figure img { width: auto; max-width: 100%; }
.services-figure .bubble { top: 7%; bottom: auto; left: auto; right: 86%; width: max-content; max-width: 190px; font-size: 1.15rem; line-height: 1.3; padding: 12px 18px; text-wrap: balance; text-align: center; }
.services-figure .bubble::before { top: 50%; bottom: auto; left: auto; right: -10px; margin-top: -10px; border: 10px solid transparent; border-left-color: #fff; border-right: 0; }
@media (max-width: 1060px) {
  .services-figure .bubble { left: auto; top: 1%; right: 66%; font-size: .95rem; max-width: 130px; padding: 10px 14px; }
}

/* 1.4: Hervorgehobene Leistung – Bild rechts immer so hoch wie der Kasten links */
.highlight { align-items: stretch; }
.highlight-img { position: relative; min-height: 0; }
.highlight-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (max-width: 760px) {
  .highlight-img { aspect-ratio: 4 / 3; }
}
/* 1.4: Weiße Schrift auf allen grünen Buttons und Icons (wie bei den blauen) */
.btn-success, .btn-success:hover, .btn-success:focus { color: #fff; }
.btn-success svg { color: #fff; }
.pill-green, .sticker, .ba-knob, .flow-num, .map-card .ic, .call-fab, .form-card-go, .steps-bar li.done .step-dot, .nav-portal { color: #fff; }
.btn-success, .pill-green, .sticker, .flow-num, .nav-portal { text-shadow: 0 1px 1px rgba(0, 40, 0, .18); }

/* ===== 1.5 ===== */
/* Kundenportal-Kasten: heller Hintergrund wie bei der hervorgehobenen Leistung */
.portal-teaser { background: var(--bg); }
.portal-teaser .pill { background: var(--green); color: #fff; border-color: transparent; }

/* Video statt Bild bei der hervorgehobenen Leistung */
.highlight-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Social Media */
.social-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.social-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent); color: #fff !important; text-decoration: none; transition: transform .2s ease, background .2s ease; flex-shrink: 0; }
.social-btn:hover, .social-btn:focus-visible { transform: translateY(-2px); background: var(--green); }
.social-btn .social-svg { display: block; }
.infobar .social-mini { gap: 4px; margin-left: 4px; }
.infobar .social-mini .social-btn { display: inline-grid; width: 28px; height: 28px; background: rgba(255,255,255,.12); gap: 0; }
.infobar .social-mini .social-btn:hover { background: var(--green); }
.infobar .social-mini .social-svg { width: 15px; height: 15px; }
.site-footer .social-footer { margin-top: 16px; }
.site-footer .social-footer .social-btn { display: inline-grid; background: rgba(255,255,255,.12); padding: 0; }
.site-footer .social-footer .social-btn:hover { background: var(--green); }
.info-social { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.info-social strong { color: var(--accent); }
.social-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4px 20px; }
.social-field > span { display: flex !important; align-items: center; gap: 10px; }
.social-field .social-btn { width: 32px; height: 32px; }

/* Leistungs-Seite: PDFs zum Download */
.service-layout.no-side { grid-template-columns: minmax(0, 1fr); }
.download-card h3 { display: flex; align-items: center; gap: 10px; }
.dl-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.dl-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); background: #fff; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.dl-item:hover, .dl-item:focus-visible { border-color: var(--green); background: var(--accent-soft); transform: translateY(-1px); }
.dl-ic { width: 44px; height: 52px; border-radius: 8px; background: #d93a2b; color: #fff; font-weight: 900; font-size: .78rem; letter-spacing: .04em; display: grid; place-items: center; flex-shrink: 0; position: relative; }
.dl-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dl-text strong { line-height: 1.25; overflow-wrap: anywhere; }
.dl-text small { color: var(--muted); }
.dl-go { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex-shrink: 0; }

/* Verwaltung: PDF-Liste */
.pdf-admin-list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 18px; }
.pdf-admin-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pdf-admin-item .dl-ic { width: 38px; height: 46px; }
.pdf-rename { display: flex; gap: 8px; flex: 1 1 260px; min-width: 0; align-items: center; }
.pdf-rename input { flex: 1; min-width: 0; height: 44px; }
.pdf-admin-item .actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-left: auto; min-width: 214px; }
.note { background: var(--accent-soft); color: var(--accent); border-radius: 12px; padding: 12px 16px; font-weight: 600; }

/* Referenzen: Filter nach Leistung */
.filter-chips { align-items: center; }
.filter-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--accent); margin-right: 4px; }
.filter-chips button { display: inline-flex; align-items: center; gap: 6px; }
.filter-chips button small { background: var(--bg); color: var(--muted); border-radius: 999px; padding: 1px 8px; font-weight: 800; font-size: .78rem; }
.filter-chips button.on small { background: rgba(255,255,255,.2); color: #fff; }
.filter-chips button:hover:not(.on) { border-color: var(--accent); color: var(--accent); }
.filter-empty { margin: 0 0 20px; }

/* ===== 1.6 ===== */
/* Menü: grüner Knopf „Termin buchen“ + blauer Knopf „Kundenportal“ */
.nav-portal.nav-login { margin-left: 8px; text-shadow: none; }
.nav-portal { white-space: nowrap; }
@media (min-width: 1061px) and (max-width: 1300px) {
  .site-nav > a:not(.btn), .nav-drop-link { padding-left: 9px !important; padding-right: 9px !important; }
  .nav-portal { padding-left: 14px; padding-right: 14px; font-size: .95rem; }
}
@media (max-width: 1060px) {
  .nav-portal.nav-book { margin-top: 20px; }
  .nav-portal.nav-login { margin: 10px 0 0; }
  .site-nav > a.nav-call { background: #fff !important; color: var(--accent) !important; border: 2px solid var(--accent); border-radius: 14px; padding: 0 12px; }
}

/* Referenzen: Galerie-Hinweis auf der Karte */
.ref-img { position: relative; }
.ref-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(10, 20, 50, .78); color: #fff; font-weight: 800; font-size: .85rem; padding: 6px 11px; border-radius: 999px; pointer-events: none; }
.lightbox img { cursor: pointer; user-select: none; }
.lightbox-nav[hidden] { display: none; }
.lightbox-caption { font-weight: 600; padding: 0 70px; }

/* Verwaltung: Galerie einer Referenz */
.gal-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 6px 0 18px; }
.gal-admin-item { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.gal-admin-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gal-pos { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-weight: 800; font-size: .8rem; border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; padding: 0 6px; }
.gal-actions { display: flex; justify-content: space-between; align-items: center; padding: 6px; gap: 4px; }

/* Seite „Wir“: größere Bilder im Team */
.team-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.team-card { padding: 16px 16px 22px; }
.team-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 14px; object-fit: contain; object-position: center bottom; background: var(--bg); margin: 0 0 14px; }
.team-card .avatar { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 14px; display: grid; place-items: center; font-size: 3.4rem; margin: 0 0 14px; }
.team-card h3 { font-size: 1.2rem; }

/* Startseite: „Neues vom Dach“ kleiner, beide Karten gleich hoch */
.home-news .comic-grid { gap: 26px; }
.news-mini { display: flex; flex-direction: column; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; overflow: hidden; height: 100%; }
.news-mini-img { aspect-ratio: 16 / 9; overflow: hidden; background: rgba(255,255,255,.06); }
.news-mini .news-mini-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 0; box-shadow: none; }
.news-mini .news-mini-img img:hover { transform: scale(1.03); }
.news-mini-body { padding: 18px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-mini h3 { margin: 4px 0 0; font-size: 1.25rem; }
.news-mini-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .98rem; }
.news-mini-text > * { margin: 0 0 .4em; }
.news-mini .more-link { margin-top: auto; padding-top: 12px; color: var(--green); }
.site .lightbox { background: rgba(8, 12, 22, .96); }
body.lb-open .call-fab { display: none !important; }
@media (max-width: 600px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .team-card { padding: 10px 10px 14px; }
  .team-card .avatar { font-size: 2.2rem; }
  .team-card h3 { font-size: 1rem; }
  .team-card p { font-size: .88rem; }
}

/* ===== 1.7 ===== */
/* Popup „Termin buchen“ */
.booking-dialog { border: 0; padding: 0; border-radius: 22px; width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; box-shadow: 0 30px 80px rgba(0, 20, 60, .35); background: #fff; color: var(--text); }
.booking-dialog::backdrop { background: rgba(8, 14, 32, .62); backdrop-filter: blur(3px); }
.booking-dialog[open] { animation: bookIn .22s ease-out; }
@keyframes bookIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.booking-head { display: flex; gap: 14px; align-items: flex-start; padding: 22px 22px 6px; position: sticky; top: 0; background: #fff; z-index: 1; }
.booking-head h2 { margin: 0; color: var(--accent); font-size: 1.5rem; }
.booking-head p { margin: 4px 0 0; color: var(--muted); }
.booking-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--green); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.booking-close { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--bg); color: var(--text); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.booking-close:hover { background: var(--accent-soft); color: var(--accent); }
.booking-form { padding: 12px 22px 22px; }
.booking-form .field { margin-bottom: 12px; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.booking-msg { background: #fff4e5; color: #8a4b00; border-radius: 12px; padding: 10px 14px; font-weight: 600; margin: 8px 0; }
.booking-done { padding: 30px 22px 34px; text-align: center; }
.booking-ok { width: 70px; height: 70px; border-radius: 50%; background: var(--green); color: #fff; display: inline-grid; place-items: center; }
.booking-done-text { font-size: 1.12rem; font-weight: 600; margin: 16px auto 22px; max-width: 440px; }
.booking-frame { width: 100%; height: min(680px, calc(100dvh - 170px)); border: 0; display: block; }
.booking-alt { text-align: center; margin: 8px 0 16px; }
@media (max-width: 600px) {
  .booking-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .booking-head { padding: 16px 16px 4px; }
  .booking-head p { font-size: .92rem; }
  .booking-form { padding: 10px 16px 24px; }
  .booking-actions .btn { flex: 1 1 100%; }
}

/* Verwaltung: Datensicherung */
.backup-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff7d6; border: 1px solid #f3d36b; color: #6b4e00; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; }
.backup-banner span { flex: 1; min-width: 200px; }
.backup-state { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.backup-state.is-due { border: 2px solid #f3d36b; background: #fffbea; }
.backup-state.is-ok .stat-icon { background: var(--green); color: #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.steps-list { margin: 6px 0 16px; padding-left: 22px; line-height: 1.6; }
.steps-list li { margin-bottom: 6px; }
.snap-item { flex-wrap: wrap; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Kundenportal: formatierter Info-Text */
.info-text u { text-underline-offset: 3px; }
.info-text ul, .info-text ol { margin: 6px 0; padding-left: 22px; }
.auto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 10px 0 8px; }
.auto-box { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: var(--bg); }
.auto-box h3 { margin: 0 0 6px; color: var(--accent); }
.auto-box .hint { margin: 14px 0 0; }

/* ===== 1.8 Unterseiten ===== */
.sub-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.sub-split.img-right { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.sub-split.img-right .sub-img { order: 2; }
.sub-split.no-img { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.sub-img { margin: 0; position: sticky; top: 130px; }
.sub-img img { width: 100%; height: auto; display: block; border-radius: 20px; }
.pdf-table { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.pdf-tr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(90px, .5fr); gap: 16px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.pdf-th { background: var(--accent); color: #fff; font-weight: 800; border-top: 0; }
.pdf-tr:nth-child(odd):not(.pdf-th) { background: #fafbfd; }
.pdf-name { font-weight: 800; color: var(--accent); }
.pdf-dl { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.pdf-dl .dl-arrow { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; transition: transform .2s, background .2s; }
.pdf-dl:hover .dl-arrow { transform: translateY(2px); background: var(--accent); }
.pdf-dl .dl-ic { width: 34px; height: 40px; font-size: .68rem; }
.pdf-dl small { display: block; color: var(--muted); font-size: .8rem; }
@media (max-width: 860px) {
  .sub-split, .sub-split.img-right { grid-template-columns: 1fr; gap: 26px; }
  .sub-split.img-right .sub-img { order: 0; }
  .sub-img { position: static; max-width: 480px; }
  .pdf-th { display: none; }
  .pdf-tr { grid-template-columns: 1fr; gap: 6px; padding: 16px; }
  .pdf-tr > span[data-label]::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .pdf-tr > .pdf-name::before { display: none !important; }
  .pdf-name { font-size: 1.1rem; }
}
/* Verwaltung: Zeilen der PDF-Tabelle */
.sp-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: #fff; }
.sp-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr auto; gap: 10px; align-items: end; flex: 1 1 600px; min-width: 0; }
.sp-form .field { margin: 0; min-width: 0; }
.sp-row .actions { display: flex; gap: 4px; }
.sp-pdf { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font-size: .85rem; margin-bottom: 4px; }
.sp-pdf .dl-ic { width: 26px; height: 30px; font-size: .55rem; }
.sp-new { border: 1px dashed var(--line); border-radius: 14px; padding: 12px; background: var(--bg); }
@media (max-width: 900px) { .sp-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sp-form { grid-template-columns: 1fr; } }
/* 1.9 Kundenportal: Handy-Menü mit drei Strichen */
.portal-burger { display: none; position: relative; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.portal-burger span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--accent); transition: transform .25s, opacity .2s; }
.portal-burger .burger-dot { position: absolute; top: 7px; right: 7px; width: 10px; height: 10px; border-radius: 50%; background: #dc2626; border: 2px solid #fff; }
body.portal-nav-open .portal-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.portal-nav-open .portal-burger span:nth-child(2) { opacity: 0; }
body.portal-nav-open .portal-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 860px) {
  .portal .portal-burger { display: flex; }
  .portal .topbar { gap: 10px; }
  .portal .topbar-user { gap: 6px; }
  .portal .topbar-user form .btn { padding-left: 10px; padding-right: 10px; }
  .portal .kiosk-tabs { display: none; position: fixed; left: 0; right: 0; top: var(--portal-top, 70px); z-index: 60; flex-direction: column; gap: 4px; padding: 10px 12px 14px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 30, 90, .18); max-height: calc(100vh - var(--portal-top, 70px)); overflow-y: auto; }
  .portal .kiosk-tabs a, .portal .kiosk-tabs a:first-child, .portal .kiosk-tabs a:last-child { margin: 0; padding: 14px 16px; font-size: 1.08rem; border-bottom: 0; border-radius: 12px; color: var(--text); }
  .portal .kiosk-tabs a svg { color: var(--accent); }
  .portal .kiosk-tabs a.active { background: var(--accent-soft, #eef3fb); color: var(--accent); box-shadow: inset 4px 0 0 var(--green); }
  .portal .kiosk-tabs .tab-badge { margin-left: auto; }
  body.portal-nav-open .kiosk-tabs { display: flex; }
  .portal .topbar-user .avatar { display: none; }
  body.portal-nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 55; }
  body.portal-nav-open .topbar { z-index: 61; }
}
/* 1.10 Leistungsseiten: Bild/Figur links oder rechts neben dem Text */
.svc-split { gap: 36px; }
.service-layout:not(.no-side) .svc-split { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 28px; }
.service-layout:not(.no-side) .svc-split.img-right { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
@media (max-width: 860px) {
  .service-layout .svc-split, .service-layout .svc-split.img-right, .service-layout:not(.no-side) .svc-split, .service-layout:not(.no-side) .svc-split.img-right { grid-template-columns: 1fr; gap: 24px; }
  .svc-split .sub-img { max-width: 420px; }
}
/* 1.11 Bilder schützen */
.protect-img img, .protect-img video { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
/* 1.11 Fenster „Cookies & Datenschutz“ */
.cc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: flex; justify-content: center; padding: 16px; pointer-events: none; }
.cc-banner[hidden] { display: none; }
.consent-box { pointer-events: auto; width: min(760px, 100%); background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 30, 90, .28); border-top: 5px solid var(--green); padding: 22px 24px 16px; max-height: calc(100vh - 32px); overflow-y: auto; animation: consentIn .35s ease-out; }
@keyframes consentIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.consent-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.consent-head h2 { margin: 0; font-size: 1.3rem; color: var(--accent); }
.consent-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.consent-text { margin: 0 0 14px; color: var(--text); font-size: .98rem; line-height: 1.55; }
.consent-details { display: grid; gap: 10px; margin: 0 0 14px; }
.consent-details[hidden] { display: none; }
.consent-opt { display: flex; gap: 12px; align-items: flex-start; background: var(--bg, #f2f4f8); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.consent-opt input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }
.consent-opt small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-actions .btn { width: 100%; justify-content: center; min-height: 50px; font-size: 1.02rem; }
.consent-actions .consent-save { grid-column: 1 / -1; }
.consent-actions .consent-save[hidden] { display: none; }
.consent-links { margin: 12px 0 0; text-align: center; font-size: .9rem; color: var(--muted); }
.consent-links a, .link-btn { color: var(--accent); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
body.consent-open .call-fab { display: none !important; }
@media (max-width: 560px) {
  .cc-banner { padding: 0; }
  .consent-box { border-radius: 20px 20px 0 0; padding: 18px 16px 14px; max-height: 85vh; }
  .consent-actions { grid-template-columns: 1fr; }
}
/* Externe Inhalte: Platzhalter bis zur Zustimmung */
.consent-gate { text-align: center; background: var(--bg, #f2f4f8); border-radius: 16px; padding: 26px 20px; margin: 6px 0 10px; }
.consent-gate[hidden] { display: none; }
.consent-gate-ic { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--accent); display: inline-grid; place-items: center; margin-bottom: 8px; }
.consent-gate p { margin: 0 0 12px; color: var(--text); }
.consent-gate .small { margin: 10px 0 0; font-size: .9rem; }
.booking-frame[hidden] { display: none; }
.info-box { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; margin: 6px 0 16px; font-size: .95rem; }
.copy-box { width: 100%; font: inherit; font-size: .92rem; line-height: 1.5; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fafbfd; color: var(--text); resize: vertical; }

/* 1.14: Hintergrundbild im Kopfbereich (Leistungen, Unterseiten) */
.page-hero.has-bg { position: relative; overflow: hidden; background-image: none; padding: clamp(56px, 9vw, 110px) 0; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.page-hero.has-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0, 32, 92, .92) 0%, rgba(0, 32, 92, .72) 45%, rgba(0, 32, 92, .15) 100%); }
.page-hero.has-bg .wrap { position: relative; z-index: 2; }
.page-hero.has-bg .wrap > * { max-width: 640px; }
.page-hero.has-bg h1 { text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.page-hero.has-bg .lead { color: #fff; }
@media (max-width: 700px) {
  .page-hero.has-bg::before { background: linear-gradient(180deg, rgba(0, 32, 92, .55) 0%, rgba(0, 32, 92, .88) 100%); }
}

/* 1.15: Video statt Bild (Leistungen, Unterseiten) – läuft stumm, Klick = groß mit Ton */
.media-video { position: relative; cursor: pointer; border-radius: 20px; overflow: hidden; background: #0b1530; }
.media-video video { width: 100%; height: auto; display: block; }
.media-sound { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(0, 32, 92, .82); color: #fff; font-size: .9rem; font-weight: 700; transition: background .2s, transform .2s; }
.media-video:hover .media-sound, .media-video:focus-visible .media-sound { background: var(--green); transform: scale(1.05); }
.vid-dlg { width: min(1100px, 100vw); max-width: 100vw; max-height: 100vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.vid-dlg::backdrop { background: rgba(5, 12, 30, .88); }
.vid-dlg video { width: 100%; max-height: 86vh; display: block; border-radius: 14px; background: #000; }
.vid-dlg-close { position: absolute; top: -48px; right: 4px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #fff; color: var(--accent); font-size: 1.6rem; line-height: 1; cursor: pointer; }
@media (max-width: 700px) { .vid-dlg video { border-radius: 0; } .vid-dlg-close { top: -50px; right: 10px; } }

/* 1.17: Kostenrechner */
.calc-section { padding-top: clamp(28px, 4vw, 48px); }
.calc-app { max-width: 860px; margin: 0 auto; padding: clamp(18px, 3vw, 34px); position: relative; scroll-margin-top: 110px; }
.calc-top { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 10px; }
.calc-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 0; }
.calc-back[hidden] { display: none; }
.calc-count { margin-left: auto; font-size: .9rem; font-weight: 700; color: var(--muted); }
.calc-progress { height: 8px; border-radius: 99px; background: #e8ecf3; overflow: hidden; margin: 8px 0 22px; }
.calc-progress span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--green), color-mix(in srgb, var(--green) 70%, #fff)); transition: width .35s ease; }
.calc-anim { animation: calcIn .35s ease; }
@keyframes calcIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.calc-q { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 0 0 6px; color: var(--accent); }
.calc-help-text { color: var(--muted); margin: 0 0 18px; }
.calc-multi-hint { margin: 0 0 12px; font-size: .9rem; font-weight: 700; color: var(--green-text); }
.calc-opts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 14px 0 20px; }
.calc-opt { display: flex; align-items: center; gap: 12px; text-align: left; padding: 16px; min-height: 74px; border: 2px solid var(--line); border-radius: 16px; background: #fff; font: inherit; color: var(--text); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.calc-opt:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: var(--shadow); }
.calc-opt.on { border-color: var(--green); background: var(--green-soft); }
.calc-opt-mark { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid #c3cad6; background: #fff; position: relative; }
.calc-opt.multi .calc-opt-mark { border-radius: 6px; }
.calc-opt.on .calc-opt-mark { border-color: var(--green); background: var(--green); }
.calc-opt.on .calc-opt-mark::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.calc-opt-text { display: flex; flex-direction: column; gap: 2px; }
.calc-opt-text strong { font-size: 1.05rem; }
.calc-opt-text small { color: var(--muted); font-size: .88rem; }
.calc-amount-box { margin: 18px 0 24px; padding: 22px; border-radius: 18px; background: #f6f8fc; }
.calc-amount-val { display: flex; align-items: center; justify-content: center; gap: 14px; }
.calc-amount-val label { display: inline-flex; align-items: baseline; gap: 8px; font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.calc-num { width: 150px; text-align: center; font: inherit; font-size: 2.2rem; font-weight: 800; color: var(--accent); border: 2px solid var(--line); border-radius: 14px; padding: 4px 8px; background: #fff; }
.calc-pm { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 1.6rem; line-height: 1; color: var(--accent); cursor: pointer; }
.calc-pm:hover { border-color: var(--green); }
.calc-range-in { width: 100%; margin: 22px 0 6px; accent-color: var(--green); height: 28px; }
.calc-range-ends { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.calc-live { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: var(--accent); color: #fff; }
.calc-live[hidden] { display: none; }
.calc-live span { font-size: .9rem; color: #dfe8ff; }
.calc-live strong { font-size: 1.25rem; }
.calc-result { text-align: center; }
.calc-result-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: var(--green-soft); color: var(--green-text); font-weight: 800; font-size: .9rem; }
.calc-range { font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 900; color: var(--accent); margin: 14px 0 4px; letter-spacing: -.02em; }
.calc-range-sub { color: var(--muted); margin: 0 0 18px; }
.calc-disclaimer { display: flex; gap: 12px; text-align: left; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: #fff8e1; border: 1px solid #f3d27a; color: #6b4e00; margin: 0 0 24px; }
.calc-disclaimer svg { flex: 0 0 auto; margin-top: 2px; }
.calc-disclaimer p { margin: 0; }
.calc-result h3 { text-align: left; color: var(--accent); margin: 0 0 8px; }
.calc-summary { list-style: none; margin: 0 0 22px; padding: 0; text-align: left; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.calc-summary li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.calc-summary li:last-child { border-bottom: 0; }
.calc-summary li span { color: var(--muted); font-size: .92rem; }
.calc-summary li strong { text-align: right; }
.calc-edit { border: 0; background: none; color: var(--green-text); font: inherit; font-size: .88rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.calc-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.calc-form { text-align: left; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.calc-form[hidden], .calc-done[hidden], .calc-result[hidden], .calc-body[hidden] { display: none; }
.calc-form-msg { color: var(--err); font-weight: 700; }
.calc-done { margin-top: 24px; padding: 22px; border-radius: 16px; background: var(--green-soft); }
.calc-note-small { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; text-align: center; color: var(--muted); font-size: .92rem; margin: 18px auto 0; max-width: 860px; }
.calc-card-meta { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.svc-calc { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; padding: 18px 20px; border-radius: 18px; background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 40%, white); }
.svc-calc-ic { flex: 0 0 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--green); color: #fff; }
.svc-calc-text { flex: 1 1 240px; }
.svc-calc-text strong { display: block; font-size: 1.1rem; color: var(--accent); }
.svc-calc-text span { color: var(--muted); font-size: .95rem; }
@media (max-width: 600px) {
  .calc-opts-grid { grid-template-columns: 1fr; }
  .calc-summary li { grid-template-columns: 1fr auto; }
  .calc-summary li strong { grid-column: 1; text-align: left; }
  .calc-summary li .calc-edit { grid-row: 1 / span 2; grid-column: 2; }
  .calc-num { width: 110px; font-size: 1.8rem; }
  .calc-actions .btn { width: 100%; justify-content: center; }
}

/* 1.17: Menü passt mit „Kostenrechner“ auch auf kleinere Bildschirme */
@media (min-width: 1061px) and (max-width: 1380px) {
  .site-header .wrap { gap: 12px; }
  .site-logo img { width: 175px; }
  .site-nav { gap: 0; }
  .site-nav > a:not(.btn), .site-nav .nav-drop-link { font-size: .95rem; padding-left: 8px; padding-right: 8px; }
  .site-nav > a:not(.btn)::after { left: 8px; right: 8px; }
  .nav-portal { margin-left: 6px; padding-left: 14px; padding-right: 14px; font-size: .95rem; }
}
@media (min-width: 1061px) and (max-width: 1220px) {
  .site-logo img { width: 150px; }
  .nav-portal svg { display: none; }
  .nav-portal { padding-left: 12px; padding-right: 12px; }
  .site-nav > a:not(.btn), .site-nav .nav-drop-link { font-size: .9rem; padding-left: 6px; padding-right: 6px; }
}

/* 1.17.2: Adresse im Kostenrechner-Formular */
.calc-form-sub { margin: 6px 0 2px; font-weight: 800; color: var(--accent); }
.calc-plz-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }

/* 1.24: aktueller Schritt im Fortschritt pulsiert leicht */
@keyframes step-pulse {
  0% { box-shadow: 0 0 0 6px var(--ring), 0 0 0 6px color-mix(in srgb, var(--pulse) 45%, transparent); }
  75% { box-shadow: 0 0 0 6px var(--ring), 0 0 0 18px color-mix(in srgb, var(--pulse) 0%, transparent); }
  100% { box-shadow: 0 0 0 6px var(--ring), 0 0 0 18px transparent; }
}
.steps-bar li.now .step-dot { --pulse: var(--accent); --ring: var(--accent-soft); animation: step-pulse 2s ease-out infinite; }
.steps-bar li.now.paused .step-dot { --pulse: #eab308; --ring: var(--warn-soft); }
@media (prefers-reduced-motion: reduce) { .steps-bar li.now .step-dot { animation: none; } }

/* 1.26: Neues vom Dach – Video oder mehrere Bilder als Slider */
.news-slider { position: relative; }
.ns-track { display: grid; border-radius: 20px; overflow: hidden; background: rgba(0, 32, 92, .06); }
.news-page .news-slider .ns-track { box-shadow: var(--shadow); }
.ns-slide { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.ns-slide.on { opacity: 1; visibility: visible; }
.ns-slide > img, .ns-slide > .media-video { width: 100%; }
.comic .news-slider img, .news-page .comic .news-slider img { border-radius: 0; box-shadow: none; }
.comic .news-slider img:hover { transform: none; }
.ns-slide .media-video { border-radius: 0; }
.ns-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--accent); font-size: 1.7rem; line-height: 1; font-weight: 700; display: grid; place-items: center; padding: 0 0 3px; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .22); transition: background .2s, color .2s, transform .2s; z-index: 2; }
.ns-arrow:hover, .ns-arrow:focus-visible { background: var(--green); color: #fff; transform: translateY(-50%) scale(1.06); }
.ns-arrow.prev { left: 10px; }
.ns-arrow.next { right: 10px; }
.ns-count { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(0, 32, 92, .78); color: #fff; font-size: .82rem; font-weight: 700; pointer-events: none; }
.ns-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ns-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 32, 92, .22); cursor: pointer; transition: background .2s, transform .2s; }
.ns-dots button.on { background: var(--green); transform: scale(1.3); }
.news-mini .ns-dots { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; z-index: 2; }
.news-mini .ns-dots button { background: rgba(255, 255, 255, .55); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.news-mini .ns-dots button.on { background: var(--green); }
/* Startseite: feste 16:9-Fläche, Bild/Video füllt sie */
.news-mini-img .ns-track { height: 100%; border-radius: 0; background: transparent; }
.news-mini-img .ns-slide, .news-mini-img .ns-slide > img, .news-mini-img > .media-video, .news-mini-img .media-video { height: 100%; }
.news-mini-img .media-video { border-radius: 0; }
.news-mini-img .media-video video { width: 100%; height: 100%; object-fit: cover; }
.news-mini .news-mini-img .ns-slide > img { object-fit: cover; object-position: center top; }
.news-mini-img .media-sound { bottom: auto; top: 10px; right: 10px; padding: 6px 10px; font-size: .8rem; }
.news-mini-img > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (max-width: 700px) { .ns-arrow { width: 36px; height: 36px; font-size: 1.45rem; } .ns-arrow.prev { left: 6px; } .ns-arrow.next { right: 6px; } }
