/* ==========================================================================
   Malic Service Group – Stylesheet (Design „Handwerk v2“)
   Schriften liegen in assets/fonts (selbst gehostet, DSGVO-konform).
   ========================================================================== */

/* ---------- Schriften ---------- */
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 600; font-display: swap; src: url(assets/fonts/schibsted-grotesk-600.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 700; font-display: swap; src: url(assets/fonts/schibsted-grotesk-700.woff2) format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 800; font-display: swap; src: url(assets/fonts/schibsted-grotesk-800.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url(assets/fonts/hanken-grotesk-400.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url(assets/fonts/hanken-grotesk-500.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url(assets/fonts/hanken-grotesk-600.woff2) format('woff2'); }

/* ---------- Farben & Maße ---------- */
:root {
  --navy: #0d1b4c;
  --navy-hover: #16255e;
  --bg: #f7f5f0;
  --paper: #fbfaf7;
  --text: #1a1f33;
  --text-2: #3a3f52;
  --text-3: #4a4f60;
  --muted: #6b6f7e;
  --muted-2: #8a8e9a;
  --line: #dcd7cc;
  --input-line: #d6d1c5;
  --placeholder: #e9e5dc;
  --on-navy: #cfd4e4;
  --on-navy-2: #dfe3ef;
  --on-navy-3: #aeb6d4;

  --head: 'Schibsted Grotesk', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, sans-serif;
  --gutter: clamp(24px, 5vw, 96px);
  --header-h: 81px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--navy-hover); }
input[type=range] { accent-color: var(--navy); }

h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: -.025em; color: var(--navy); margin: 0; }
h1 { font-size: clamp(48px, 8vw, 104px); line-height: .98; letter-spacing: -.03em; }
h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.05; }
h3 { font-size: 24px; line-height: 1.15; }
p { text-wrap: pretty; }

.wrap { max-width: 1600px; margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.section > h2 { margin-bottom: 56px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3  0 0 0 0 .28  0 0 0 0 .25  0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-align: center; text-decoration: none; white-space: nowrap;
  font: inherit; font-weight: 600; font-size: 17px; line-height: 1.4;
  padding: 16px 26px; border-radius: 10px; border: 0; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-hover); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--on-navy-2); color: var(--navy); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.6); color: #fff; padding: 14.5px 24.5px; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: transparent; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(247,245,240,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { flex: none; display: block; width: 94px; height: 70px; overflow: hidden; margin: 4px 0; }
.brand img { width: 100px; height: 100px; max-width: none; margin: -15px 0 0 -5px; }
.main-nav { flex: 1; display: flex; justify-content: flex-end; gap: 32px; font-weight: 500; font-size: 16px; }
.main-nav a { color: var(--text); text-decoration: none; }
.main-nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; }
.header-cta { flex: none; font-size: 16px; padding: 12px 20px; }
.nav-toggle {
  display: none; flex: none; width: 48px; height: 48px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--navy); }
.mobile-nav { background: var(--paper); border-top: 1px solid var(--line); padding: 8px var(--gutter) 24px; flex-direction: column; }
.mobile-nav:not([hidden]) { display: flex; }
.mobile-nav a:not(.btn) { display: block; padding: 16px 0; border-bottom: 1px solid #e6e1d6; font-size: 18px; font-weight: 600; color: var(--text); text-decoration: none; }
.mobile-nav .btn { margin-top: 20px; white-space: normal; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: max(580px, calc(100vh - var(--header-h)));
  clip-path: inset(0); overflow: hidden; background: var(--navy); color: #fff;
}
.hero-media { position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100vh - var(--header-h)); z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
@supports (-webkit-touch-callout: none) { /* iOS Safari: kein fixiertes Bild */
  .hero-media { position: absolute; inset: 0; height: auto; }
}
.hero-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(0deg, rgba(9,19,58,.92) 0%, rgba(9,19,58,.55) 45%, rgba(9,19,58,.1) 75%, rgba(9,19,58,0) 100%); }
.hero-content { position: relative; z-index: 4; width: 100%; padding-top: clamp(96px, 14vh, 160px); padding-bottom: clamp(40px, 6vh, 64px); }
.eyebrow { display: block; font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy); margin-bottom: 20px; }
.hero h1 { color: #fff; margin-bottom: 28px; max-width: 10em; }
.hero-lead { font-size: 20px; line-height: 1.55; color: var(--on-navy-2); margin: 0 0 36px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: clamp(40px, 6vh, 64px); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); font-size: 15px; color: var(--on-navy); }

.sheen {
  position: absolute; top: 0; bottom: 0; left: 0; width: 22%; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  animation: sheen 10s ease-in-out 1.5s infinite;
  transform: translateX(-150%) skewX(-18deg);
}
.sheen-navy { background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); animation-duration: 12s; animation-delay: 3s; }
@keyframes sheen { 0% { transform: translateX(-150%) skewX(-18deg); } 35%, 100% { transform: translateX(450%) skewX(-18deg); } }

/* ---------- Kundenlogos ---------- */
.clients { position: relative; padding-top: 28px; padding-bottom: 28px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; background: var(--bg); animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; width: 170px; height: 60px; margin: 0 36px; display: flex; align-items: center; justify-content: center; }
.marquee-track img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; opacity: .55; transform: scale(var(--s, 1)); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Fotos / Platzhalter ---------- */
.photo { position: relative; width: 100%; overflow: hidden; border-radius: 16px; background: var(--placeholder); }
.photo::before, .ba-layer::before {
  content: attr(data-placeholder); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  max-width: 80%; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; color: var(--muted);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-4-5 { aspect-ratio: 4 / 5; }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px 40px; }
.services article { display: flex; flex-direction: column; }
.services .photo { margin-bottom: 24px; }
.services h3 { margin-bottom: 12px; }
.services p { margin: 0 0 12px; color: var(--text-3); }
.services .items { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Vorher / Nachher ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 48px; margin-bottom: 40px; }
.section-head p { font-size: 18px; line-height: 1.55; color: var(--text-3); margin: 0; max-width: 26em; }
.ba { --pos: 50; position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: 16px; user-select: none; -webkit-user-select: none; background: var(--placeholder); touch-action: pan-y; }
.ba-layer { position: absolute; inset: 0; background: var(--placeholder); }
.ba-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after::before { left: 75%; max-width: 40%; }
.ba-before { background: #e1dccf; clip-path: inset(0 calc((100 - var(--pos)) * 1%) 0 0); }
.ba-before::before { left: 25%; max-width: 40%; }
.ba-badge { position: absolute; top: 16px; z-index: 2; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 10px; pointer-events: none; }
.ba-badge-before { left: 16px; background: var(--navy); color: #fff; }
.ba-badge-after { right: 16px; background: #fff; color: var(--navy); }
.ba-line { position: absolute; top: 0; bottom: 0; z-index: 3; left: calc(var(--pos) * 1%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(13,27,76,.12); pointer-events: none; }
.ba-handle {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 18px; font-weight: 700; cursor: ew-resize; pointer-events: auto; touch-action: none; box-shadow: 0 6px 20px rgba(13,27,76,.25);
}
.ba-range { width: 100%; height: 24px; margin-top: 16px; }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--navy); }
.steps h3 { display: flex; align-items: baseline; gap: 12px; }
.steps .dash { font-weight: 600; color: #9a9ca6; }
.steps p { margin: 0; color: var(--text-3); }

/* ---------- Navy-Flächen ---------- */
.navy { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.navy h2 { color: #fff; }

/* ---------- Preisrechner ---------- */
.calc-logo { position: absolute; right: -6%; top: -18%; height: 140%; width: auto; max-width: none; filter: brightness(0) invert(1); opacity: .06; pointer-events: none; will-change: transform; }
.calc-inner {
  position: relative; z-index: 1; padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: end;
}
.calc-inputs { display: flex; flex-direction: column; gap: 40px; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.calc-row label { font-weight: 500; color: var(--on-navy); }
.calc-row output { font-weight: 600; font-size: 20px; }
#calc-area { width: 100%; height: 28px; accent-color: #fff; }
.calc fieldset { border: 0; margin: 0; padding: 0; }
.calc legend { padding: 0; font-weight: 500; color: var(--on-navy); margin-bottom: 12px; }
.freq { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.freq label { position: relative; }
.freq input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.freq span { display: block; text-align: center; font-weight: 600; font-size: 17px; padding: 11px 0; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.3); color: #fff; cursor: pointer; transition: background-color .2s, color .2s; }
.freq input:checked + span { background: #fff; border-color: #fff; color: var(--navy); }
.freq input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.calc-label { font-size: 15px; color: var(--on-navy); margin-bottom: 8px; }
.calc-total { font-family: var(--head); font-weight: 700; letter-spacing: -.025em; font-size: clamp(56px, 7vw, 88px); line-height: 1; margin-bottom: 12px; }
.calc-note { font-size: 15px; line-height: 1.6; color: var(--on-navy); margin-bottom: 32px; }

/* ---------- Betrieb ---------- */
.betrieb {
  padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center;
}
.betrieb .photo { max-width: min(496px, calc((100svh - 140px) * .8)); justify-self: center; } /* 4:5, max. 620 px bzw. Bildschirmhöhe – ganzes Foto ohne Beschnitt */
.betrieb .photo img { object-position: 50% 20%; }
.betrieb-text { display: flex; flex-direction: column; gap: 28px; max-width: 34em; }
.betrieb-text > p { font-size: 19px; line-height: 1.65; color: var(--text-2); margin: 0; }
.signature { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; border-left: 2px solid var(--navy); }
.signature strong { font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: -.01em; color: var(--navy); }
.signature span { font-size: 15px; color: var(--muted); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; font-size: 17px; color: var(--text); }
.betrieb .btn { align-self: flex-start; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.faq > h2 { margin: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 18px; color: var(--text); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--navy); }
.faq-list details[open] summary::after { content: '–'; }
.faq-list details p { margin: 0 0 20px; font-size: 17px; line-height: 1.65; color: var(--text-3); }

/* ---------- Kontakt ---------- */
.contact-map { position: absolute; inset: 0; background: #0d1b4c url(assets/hamburg-karte.jpg) center / cover no-repeat; }
.contact-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, rgba(13,27,76,.85) 0%, rgba(13,27,76,.45) 50%, rgba(13,27,76,.1) 100%); }
.osm-credit { position: absolute; right: 12px; bottom: 8px; z-index: 2; font-size: 11px; color: #8f98bb; text-decoration: none; }
.osm-credit:hover { color: #fff; }
.contact-inner {
  position: relative; z-index: 1; padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: start;
}
.contact-text { display: flex; flex-direction: column; align-self: stretch; }
.contact-text h2 { margin-bottom: 20px; }
.contact-text > p { font-size: 19px; color: var(--on-navy); margin: 0; max-width: 24em; }
.contact-lines { margin-top: auto; padding-top: 48px; display: flex; flex-direction: column; }
.contact-lines a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; }
.contact-lines a > span:first-child { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.contact-lines small { font-size: 13px; color: var(--on-navy-3); }
.contact-lines strong { font-family: var(--head); font-weight: 600; font-size: 17px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.contact-lines .arrow { font-size: 17px; color: var(--on-navy-3); transition: transform .2s; }
.contact-lines a:hover .arrow { transform: translateX(4px); color: #fff; }

.form-card { background: #fff; color: var(--text); padding: clamp(24px, 3.5vw, 40px); border-radius: 10px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.form-card > label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; }
.form-card em { font-style: normal; font-weight: 400; color: var(--muted-2); }
.form-card input:not([type=checkbox]), .form-card textarea, .form-card select {
  font: inherit; font-size: 17px; font-weight: 400; color: var(--text); width: 100%;
  padding: 14px 16px; border: 1px solid var(--input-line); border-radius: 10px; background: var(--paper); outline: none;
}
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13,27,76,.12); }
.form-card textarea { resize: vertical; }
.form-card .full { grid-column: 1 / -1; }
.form-card .consent { flex-direction: row; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.55; color: #5a5f70; }
.form-card .consent input { margin: 2px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.form-card button { margin-top: 4px; padding: 17px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 14px; color: var(--muted); }
.site-footer div { display: flex; gap: 24px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--navy); }

/* ---------- Mobile Anruf-Leiste ---------- */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251,250,247,.97); border-top: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mobile-bar .btn { font-size: 16px; padding: 13px; }

@media (max-width: 899px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-bar { display: grid; }
  body.has-mobile-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Rechtliche Seiten ---------- */
.legal { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px); max-width: 860px; }
.legal h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin-bottom: 32px; }
.legal h2 { font-size: 22px; line-height: 1.2; margin: 40px 0 10px; }
.legal p, .legal address, .legal li { color: var(--text-2); font-style: normal; }
.legal-footer { border-top: 1px solid var(--line); }

/* ---------- Danke-Seite ---------- */
.thanks { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; }
.thanks .wrap { max-width: 720px; padding-top: 64px; padding-bottom: 64px; }
.thanks h1 { color: #fff; font-size: clamp(44px, 6vw, 72px); margin-bottom: 20px; }
.thanks p { font-size: 19px; color: var(--on-navy-2); margin: 0 0 32px; }
.thanks a:not(.btn) { color: #fff; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.header-back { font-size: 16px; padding: 12px 20px; }

/* ---------- Preisrechner: Material, Einsatzort, Aufschlüsselung ---------- */
.freq.opts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.freq.opts span { font-size: 15px; line-height: 1.25; padding: 11px 6px; height: 100%; display: flex; align-items: center; justify-content: center; }
.calc-hint { margin: 10px 0 0; font-size: 14px; color: var(--on-navy-3); min-height: 1.6em; }
.calc-lines { margin: 0 0 16px; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; gap: 6px; max-width: 30em; }
.calc-lines div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.calc-lines dt { color: var(--on-navy); }
.calc-lines dd { margin: 0; font-weight: 600; white-space: nowrap; }
.calc-inner { align-items: start; }

/* ---------- Preisrechner: Preisrahmen + Angaben für das Angebot ---------- */
.calc-total { font-size: clamp(40px, 5.4vw, 72px); }
.calc-more { display: flex; flex-direction: column; gap: 24px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); }
.calc-more-title { margin: 0; font-family: var(--head); font-weight: 700; font-size: 20px; color: #fff; }
.calc-more-title span { font-family: inherit; font-weight: 500; font-size: 15px; color: var(--on-navy-3); }
.calc-more .calc-hint { margin: 0; min-height: 0; }
@media (min-width: 900px) {
  .calc-result { position: sticky; top: calc(var(--header-h, 72px) + 32px); }
}
@media (min-width: 900px) {
  .calc-inner { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .calc-inputs { grid-column: 1; grid-row: 1; }
  .calc-more { grid-column: 1; grid-row: 2; }
  .calc-result { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
}
.navy.calc { overflow: clip; } /* statt hidden, damit der Preis beim Scrollen stehen bleibt */
.calc-sub { margin-top: 18px; }
.calc-sub-title { margin: 0 0 10px; font-weight: 500; color: var(--on-navy); }
.freq.opts2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#calc-ma { width: 100%; height: 28px; accent-color: #fff; }
.calc-lines div[hidden], .calc-sub[hidden] { display: none; }

/* ---------- Hover-Effekte für Bilder (nur Geräte mit Maus) ---------- */
.photo { transition: box-shadow .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1); }
.photo img { transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .6s; }
.photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,27,76,0) 55%, rgba(13,27,76,.28)); opacity: 0; transition: opacity .5s; }
.marquee-track img { transition: filter .4s, opacity .4s; }
@media (hover: hover) and (pointer: fine) {
  /* Leistungen: ganze Karte reagiert */
  .services article:hover .photo { transform: translateY(-6px); box-shadow: 0 22px 44px -18px rgba(13,27,76,.45); }
  .services article:hover .photo img { transform: scale(1.06); filter: saturate(1.08) brightness(1.03); }
  .services article:hover .photo::after { opacity: 1; }
  /* Inhaber-Foto: sanfter Zoom, Gesicht bleibt im Bild */
  .betrieb .photo img { transform-origin: 50% 25%; }
  .betrieb .photo:hover { box-shadow: 0 24px 48px -20px rgba(13,27,76,.45); }
  .betrieb .photo:hover img { transform: scale(1.04); }
  /* Kundenlogos: in Farbe beim Drüberfahren */
  .marquee-track li:hover img { filter: none; opacity: 1; }
}

/* ---------- Leistungskarten: ganze Karte führt zur passenden Anfrage ---------- */
.services article { position: relative; }
.service-cta { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.service-cta span { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.service-cta::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 16px; }
.service-cta:focus-visible { outline: none; }
.service-cta:focus-visible::after { outline: 2px solid var(--navy); outline-offset: 6px; }
.services article { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .services article:hover .service-cta span { transform: translateX(5px); }
}
.form-card select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230d1b4c' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }

/* ---------- Ablauf: Foto über jedem Schritt ---------- */
.steps li { border-top: 0; padding-top: 0; }
.steps .photo { margin-bottom: 8px; }
.steps h3 { padding-top: 20px; border-top: 2px solid var(--navy); }

/* ---------- Preisrechner: Reiter (Büro / Fenster / Treppenhaus) ---------- */
.calc-tabs { position: relative; z-index: 1; padding-top: clamp(56px, 7vw, 96px); display: flex; gap: 8px; flex-wrap: wrap; }
.calc-tabs button { font: inherit; font-weight: 600; font-size: 16px; color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,.3); border-radius: 999px; padding: 10px 22px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.calc-tabs button[aria-selected="true"] { background: #fff; border-color: #fff; color: var(--navy); }
.calc-tabs button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .calc-tabs button[aria-selected="false"]:hover { border-color: #fff; } }
.calc-tabs + .calc-inner, .calc-tabs ~ .calc-inner { padding-top: clamp(32px, 4vw, 48px); }
.calc-inner[hidden] { display: none; }

/* ---------- Fenster-Rechner ---------- */
.freq.opts4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 480px) { .freq.opts4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.freq.opts5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 480px) { .freq.opts5 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .freq.opts5 label { grid-column: span 2; } .freq.opts5 label:nth-child(n+4) { grid-column: span 3; } }
.win-rows { display: flex; flex-direction: column; gap: 14px; }
.win-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.win-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.win-label strong { font-weight: 600; color: #fff; }
.win-label span { font-size: 14px; color: var(--on-navy-3); }
.stepper { flex: none; display: flex; align-items: center; border: 1.5px solid rgba(255,255,255,.3); border-radius: 10px; overflow: hidden; }
.stepper button { font: inherit; font-size: 20px; font-weight: 600; width: 44px; height: 44px; color: #fff; background: transparent; border: 0; cursor: pointer; }
.stepper button:hover { background: rgba(255,255,255,.1); }
.stepper input { width: 56px; height: 44px; text-align: center; font: inherit; font-weight: 600; font-size: 17px; color: #fff; background: transparent; border: 0; border-left: 1.5px solid rgba(255,255,255,.3); border-right: 1.5px solid rgba(255,255,255,.3); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
@media (max-width: 560px) {
  .calc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .calc-tabs button { padding: 10px 6px; font-size: 15px; }
}

/* ---------- Leistungen: Anfrage als Button ---------- */
.services .service-cta { color: #fff; margin-top: auto; align-self: flex-start; padding: 13px 22px; font-size: 16px; gap: 10px; position: static; }
.services article .items { margin-bottom: 20px; }
@media (hover: hover) and (pointer: fine) {
  .services article:hover .service-cta { background: var(--navy-hover); }
}
@media (max-width: 560px) { .services .service-cta { align-self: stretch; justify-content: center; } }

/* Hintergrund-Logo im Rechner als SVG: gestochen scharf, ohne Rand → etwas kleiner setzen */
.calc-logo[src$=".svg"] { height: 108%; top: -4%; right: -2%; }

/* ---------- Hero: mehr Bewegung ---------- */
/* 1) Langsamer Kamera-Zoom über das Hamburg-Foto (Ken-Burns-Effekt) */
.hero-media { transform: scale(calc(1 + var(--hero-scroll, 0) * .08)); transform-origin: 50% 40%; will-change: transform; }
.hero-media img { transform-origin: 62% 45%; animation: heroDrift 28s ease-in-out infinite alternate; will-change: transform; }
@keyframes heroDrift {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  100% { transform: scale(1.16) translate3d(-2.5%, -1.5%, 0); }
}
/* 2) Warmes Abendlicht, das langsam über die Stadt wandert */
.hero-glow { position: absolute; inset: -20%; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: .55;
  background: radial-gradient(40% 35% at 30% 35%, rgba(255,186,120,.28), transparent 70%),
              radial-gradient(35% 30% at 75% 25%, rgba(120,160,255,.22), transparent 70%);
  animation: heroGlow 18s ease-in-out infinite alternate; }
@keyframes heroGlow {
  0%   { transform: translate3d(-4%, 2%, 0) scale(1); }
  100% { transform: translate3d(6%, -3%, 0) scale(1.12); }
}
/* 3) Beim Scrollen wird das Bild dunkler, der Text bleibt lesbar */
.hero::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: rgba(9,19,58,1); opacity: calc(var(--hero-scroll, 0) * .45); }
/* 4) Text fährt beim Laden nacheinander ein */
.hero-content > * { animation: heroIn 1s cubic-bezier(.2,.7,.2,1) both; }
.hero-content > :nth-child(1) { animation-delay: .15s; }
.hero-content > :nth-child(2) { animation-delay: .3s; }
.hero-content > :nth-child(3) { animation-delay: .45s; }
.hero-content > :nth-child(4) { animation-delay: .6s; }
.hero-content > :nth-child(5) { animation-delay: .75s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- Kundenstimmen ---------- */
.quote-section { background: var(--navy); color: #fff; padding: clamp(56px, 7vw, 96px) 0; }
.quote-head { color: #fff; text-align: center; font-size: clamp(28px, 3.6vw, 40px); margin-bottom: clamp(28px, 4vw, 48px); }
.quote-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: stretch; }
.quote { margin: 0; display: flex; flex-direction: column; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: clamp(24px, 3vw, 40px); }
.quote-stars { color: #f2c14e; font-size: 20px; letter-spacing: 4px; margin-bottom: 10px; }
.quote-title { color: #fff; font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 16px; }
.quote blockquote { margin: 0; flex: 1; }
.quote blockquote p { color: var(--on-navy-2); font-size: 16.5px; line-height: 1.7; margin: 0 0 14px; }
.quote blockquote p:last-child { color: #fff; font-weight: 600; margin-bottom: 0; }
.quote figcaption { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; gap: 2px; }
.quote figcaption strong { font-family: var(--head); font-size: 16px; }
.quote figcaption span { color: var(--on-navy-3); font-size: 14px; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-more { text-align: center; margin: 28px 0 0; }
.quote-more a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(255,255,255,.4); }
.quote-more a:hover { color: #fff; text-decoration-color: #fff; }
