/* =============================================================================
   Musterseite Sanitär & Heizung (MW IT-SERVICES)
   Eigene Farben, damit die Seite wie eine Kundenseite wirkt, nicht wie mw-itservices.de.
   3D nur dezent: gekipptes Handy im Kopfbereich, Karten mit leichter Neigung.
   ============================================================================= */
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("/assets/fonts/archivo-variable-latin.woff2") format("woff2");
}

:root {
    --ink: #0C1A24;
    --petrol: #12303F;
    --water: #3FA7CF;
    --water-soft: #D9EEF6;
    --amber: #F2A03D;
    --amber-dark: #C97A14;
    --bg: #F5F7F8;
    --tint: #EAF0F2;
    --card: #FFFFFF;
    --text: #15232B;
    --muted: #51626C;
    --line: rgba(21, 35, 43, .12);
    --on-dark: #EEF4F6;
    --on-dark-muted: rgba(238, 244, 246, .74);
    --copper: #8C4A25;
    --radius: 16px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --shadow: 0 1px 2px rgba(12, 26, 36, .06), 0 14px 34px -18px rgba(12, 26, 36, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Archivo", system-ui, "Segoe UI", sans-serif; font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg); padding-bottom: 0; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; font-stretch: 92%; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.3rem); font-weight: 750; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); font-weight: 720; }
h3 { font-size: 1.22rem; font-weight: 680; letter-spacing: -.01em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: min(100% - 40px, 1160px); margin-inline: auto; }
.narrow { width: min(100% - 40px, 760px); }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 6px; }

/* Hinweis Musterseite */
.demo-ribbon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 18px; padding: 9px 20px; background: #1A1512; color: #F4F0E8; font-size: .86rem; text-align: center; }
.demo-ribbon a { display: inline-flex; align-items: center; gap: 6px; color: #E5A976; font-weight: 650; text-decoration: none; }
.demo-ribbon a:hover { text-decoration: underline; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px max(20px, calc((100vw - 1160px) / 2)); background: rgba(12, 26, 36, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--on-dark); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(140deg, var(--water), #1F6E91); color: #fff; font-size: 1.15rem; }
.logo-text { display: grid; line-height: 1.2; }
.logo-text strong { font-size: 1.02rem; font-weight: 720; }
.logo-text span { font-size: .76rem; color: var(--on-dark-muted); }
.top-nav { display: flex; gap: 26px; font-size: .92rem; }
.top-nav a { text-decoration: none; color: var(--on-dark-muted); transition: color .2s; }
.top-nav a:hover { color: #fff; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn-lg { min-height: 64px; padding: 0 32px; font-size: 1.3rem; }
.btn-call { background: var(--amber); color: #201203; box-shadow: 0 10px 26px -12px rgba(242, 160, 61, .9); }
.btn-call:hover { background: #F7B25C; transform: translateY(-2px); }
.btn-primary { background: var(--petrol); color: #fff; }
.btn-primary:hover { background: #1A4459; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .34); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-copper { background: var(--copper); color: #fff; }
.btn-copper:hover { background: #A2582E; transform: translateY(-2px); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 680; font-size: .95rem; color: var(--petrol); text-decoration: none; }
.link .ico { transition: transform .2s var(--ease); }
.link:hover .ico { transform: translateX(3px); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 520px at 82% 18%, rgba(63, 167, 207, .26), transparent 62%), linear-gradient(180deg, var(--ink), var(--petrol)); color: var(--on-dark); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 40px; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; font-size: .86rem; color: var(--on-dark-muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: pulse 2.4s infinite; }
.hero h1 em { display: block; font-style: normal; color: var(--amber); }
.lead { margin-top: 20px; max-width: 52ch; font-size: 1.12rem; color: var(--on-dark-muted); }
.hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: .92rem; color: var(--on-dark-muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .ico { color: #4ADE80; }

/* 3D-Szene */
.scene { position: relative; display: grid; place-items: center; min-height: 440px; perspective: 1200px; }
.scene-float { animation: float 7s ease-in-out infinite; transform-style: preserve-3d; }
.phone { --rx: 0deg; --ry: 0deg; position: relative; width: 250px; height: 480px; padding: 12px; border-radius: 40px; background: linear-gradient(150deg, #24465A, #0A151C); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 30px 40px 70px -30px rgba(0, 0, 0, .7); transform: rotateY(calc(-17deg + var(--ry))) rotateX(calc(7deg + var(--rx))); transform-style: preserve-3d; transition: transform .35s var(--ease); will-change: transform; }
.phone-screen { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 16px 14px; border-radius: 30px; background: linear-gradient(180deg, #F7FAFB, #E6EEF1); color: var(--text); overflow: hidden; }
.ps-bar { display: flex; justify-content: center; }
.ps-bar span { width: 64px; height: 6px; border-radius: 6px; background: rgba(21, 35, 43, .18); }
.ps-title { font-weight: 720; font-size: .92rem; }
.ps-card { display: grid; gap: 4px; padding: 14px; border-radius: 18px; background: var(--ink); color: #fff; }
.ps-label { font-size: .72rem; color: var(--on-dark-muted); }
.ps-big { font-size: 1.25rem; font-weight: 740; letter-spacing: -.02em; }
.ps-call { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 999px; background: var(--amber); color: #201203; font-weight: 720; font-size: .88rem; }
.ps-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: #fff; font-size: .82rem; font-weight: 620; box-shadow: 0 1px 2px rgba(12, 26, 36, .08); }
.ps-row .ico { color: var(--water); }
.ps-lines { display: grid; gap: 8px; margin-top: 6px; }
.ps-lines span { height: 8px; border-radius: 8px; background: rgba(21, 35, 43, .1); }
.ps-lines span:nth-child(2) { width: 82%; }
.ps-lines span:nth-child(3) { width: 58%; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .96); color: var(--text); font-size: .82rem; font-weight: 680; white-space: nowrap; box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .55); }
.chip .ico { color: var(--amber-dark); }
.chip-a { top: 96px; right: -86px; transform: translateZ(70px); }
.chip-b { bottom: 78px; left: -92px; transform: translateZ(110px); }
.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-a { width: 86px; height: 86px; top: -30px; left: -44px; background: radial-gradient(circle at 32% 30%, #9EDCF3, #2C87AD 62%, #17506A); transform: translateZ(-60px); opacity: .9; }
.orb-b { width: 46px; height: 46px; bottom: -14px; right: -34px; background: radial-gradient(circle at 32% 30%, #FFD9A3, #F2A03D 62%, #B86A0C); transform: translateZ(40px); }
.scene-shadow { position: absolute; bottom: 4px; left: 50%; width: 260px; height: 34px; margin-left: -110px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); filter: blur(6px); }

/* Abschnitte */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tint { background: var(--tint); }
.head { margin-bottom: 34px; max-width: 720px; }
.kicker { margin-bottom: 10px; font-size: .82rem; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-dark); }

/* Weiche */
.weiche { padding-bottom: clamp(40px, 6vw, 72px); }
.switch { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 20px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }
.switch button { min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.switch button[aria-selected="true"] { background: var(--ink); color: #fff; }
.panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; padding: clamp(22px, 3.4vw, 40px); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.panel[hidden] { display: none; }
.panel-main { display: grid; gap: 16px; justify-items: start; align-content: start; }
.panel-main p, .form p { color: var(--muted); max-width: 54ch; }
.panel-side { display: grid; gap: 12px; align-content: start; counter-reset: s; padding: 20px; border-radius: 14px; background: var(--water-soft); font-size: .94rem; color: var(--muted); }
.panel-side li { position: relative; padding-left: 34px; counter-increment: s; }
.panel-side li::before { content: counter(s); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--petrol); color: #fff; font-size: .78rem; font-weight: 720; }
.panel-side strong { display: block; color: var(--text); }
#panel-projekt { grid-template-columns: 1fr; }
.form { display: grid; gap: 16px; justify-items: start; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; }
.fields label { display: grid; gap: 6px; font-size: .88rem; font-weight: 650; }
.fields input, .fields select { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid rgba(21, 35, 43, .24); border-radius: 12px; background: #fff; font: inherit; font-size: 1rem; color: var(--text); }
.fields input:focus, .fields select:focus { outline: 3px solid var(--water); outline-offset: 1px; border-color: var(--water); }
.fields [aria-invalid="true"] { border-color: #C0392B; }
.form-note { padding: 12px 16px; border-radius: 12px; background: var(--water-soft); font-size: .94rem; color: var(--text); }

/* Leistungs-Karten mit leichter Neigung */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.card { --rx: 0deg; --ry: 0deg; display: grid; gap: 12px; align-content: start; justify-items: start; padding: 26px 24px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { box-shadow: 0 1px 2px rgba(12, 26, 36, .06), 0 26px 46px -22px rgba(12, 26, 36, .45); }
.card p { color: var(--muted); font-size: .96rem; }
.card-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--water-soft); color: #1F6E91; font-size: 1.4rem; box-shadow: 0 10px 18px -12px rgba(31, 110, 145, .8), inset 0 1px 0 rgba(255, 255, 255, .8); }

/* Ablauf */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps p { color: var(--muted); }
.step-num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(150deg, #1A4459, var(--ink)); color: var(--amber); font-size: 1.5rem; font-weight: 760; box-shadow: 0 16px 24px -14px rgba(12, 26, 36, .7), inset 0 1px 0 rgba(255, 255, 255, .16); }

/* Einsatzgebiet und Bewertungen */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; align-items: start; }
.places { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.places li { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .92rem; font-weight: 620; }
.reviews { display: grid; gap: 10px; padding: 26px; border-radius: var(--radius); border: 1px dashed rgba(21, 35, 43, .3); background: var(--card); }
.reviews p:last-child { color: var(--muted); font-size: .96rem; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.faq summary { padding: 18px 22px; font-weight: 680; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--amber-dark); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* MW IT-SERVICES */
.mw { padding-block: clamp(56px, 8vw, 96px); background: #1A1512; color: #F4F0E8; text-align: center; }
.mw .kicker { color: #E5A976; }
.mw p { margin-top: 16px; color: rgba(244, 240, 232, .76); }
.mw-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.mw-back { margin-top: 22px; color: #E5A976; }

.foot { padding: 22px 20px 96px; background: #120E0C; color: rgba(244, 240, 232, .66); font-size: .86rem; text-align: center; }
.foot a { color: #E5A976; }

/* Schnellleiste am Handy */
.quick { display: none; }
.toast { position: fixed; left: 50%; bottom: 92px; z-index: 40; width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: .92rem; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.toast[hidden] { display: none; }

/* Einblenden beim Scrollen (nur mit JavaScript) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .card.rv.in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }

@media (max-width: 900px) {
    .top-nav { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .scene { min-height: 400px; order: 2; }
    .phone { width: 220px; height: 420px; }
    .chip-a { right: -40px; }
    .chip-b { left: -44px; }
    .panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .top .btn-call { display: none; }
    .fields { grid-template-columns: 1fr; }
    .hero-acts .btn { flex: 1 1 100%; }
    .btn-lg { width: 100%; font-size: 1.15rem; padding: 0 18px; }
    .chip-a { right: -18px; }
    .chip-b { left: -22px; }
    .quick { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(12, 26, 36, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-bottom: env(safe-area-inset-bottom); }
    .quick a { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; color: #fff; font-size: .8rem; font-weight: 680; text-decoration: none; }
    .quick a:first-child { background: var(--amber); color: #201203; }
    .quick .ico { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scene-float, .live-dot { animation: none; }
    .phone, .card, .btn, .js .rv { transition: none; }
    .js .rv { opacity: 1; transform: none; }
}

/* Fotos (Unsplash, lokal in bilder/) */
.hero-photo { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; opacity: .3; mix-blend-mode: luminosity; filter: contrast(1.1); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 26, 36, .94) 0%, rgba(12, 26, 36, .6) 55%, rgba(12, 26, 36, .35) 100%); }
.hero-grid { position: relative; z-index: 1; }
.card-photo { display: block; justify-self: stretch; margin: -26px -24px 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--tint); }
.card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-photo img { transform: scale(1.04); }
.card-photo + .card-ico { position: relative; margin-top: -42px; border: 4px solid var(--card); width: 60px; height: 60px; }
.foot .credits { margin-top: 8px; font-size: .78rem; opacity: .85; }
@media (prefers-reduced-motion: reduce) { .card-photo img { transition: none; } .card:hover .card-photo img { transform: none; } }
