@font-face { font-family: "Lexend"; font-weight: 500; font-style: normal; font-display: swap; src: url("../schriften/lexend-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 600; font-style: normal; font-display: swap; src: url("../schriften/lexend-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-weight: 700; font-style: normal; font-display: swap; src: url("../schriften/lexend-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap; src: url("../schriften/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-style: normal; font-display: swap; src: url("../schriften/source-sans-3-latin-600-normal.woff2") format("woff2"); }

/* FM Hausmeisterservice – Gestaltung
   Layout: helle, aufgeräumte Firmenseite. Logo-Bogen als wiederkehrendes Motiv, Inhalte in klaren Bändern.
   Bewusst nur ein (helles) Farbschema, passend zum Logo auf Weiß. */
:root {
  --navy: #0d2a80;
  --blue: #3a6de5;
  --ink: #16213f;
  --muted: #56627f;
  --paper: #ffffff;
  --sky: #f0f4fc;
  --line: #d9e1f1;
  --ok: #1f7a4d;
  --display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
main section[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper); }
h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.inner { max-width: var(--wrap); margin: 0 auto; }
.eyebrow { font-family: var(--display); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }

.btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--display); font-weight: 600; font-size: 1rem; text-decoration: none; border-radius: 999px; padding: .8em 1.5em; border: 2px solid var(--navy); cursor: pointer; transition: background .15s, color .15s; }
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--sky); }

/* Kopfzeile */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
header.top .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.logo img { display: block; height: 56px; width: auto; }
nav.main { display: flex; align-items: center; gap: 28px; }
nav.main a { font-family: var(--display); font-weight: 500; color: var(--ink); text-decoration: none; }
nav.main a:hover { color: var(--blue); }
nav.main a.active { color: var(--blue); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
nav.main .btn { color: var(--paper); padding: .6em 1.2em; }
.menu-btn { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; color: var(--navy); }
@media (max-width: 820px) {
  .logo img { height: 44px; }
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  nav.main .btn { justify-content: center; margin-top: 12px; border-bottom: 2px solid var(--navy); }
}

/* Startbereich */
.hero { background: linear-gradient(180deg, var(--paper) 0%, var(--sky) 100%); overflow: hidden; }
.hero .inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 56px 72px; }
.hero-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-text .lead { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.slogan { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--display); font-weight: 600; color: var(--navy); }
.slogan span { display: inline-flex; align-items: center; gap: 8px; }
.slogan span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { min-width: 0; }
.hero-art { position: relative; padding-bottom: 18px; }
.hero-rahmen { position: relative; border-radius: 20px; overflow: hidden; background: var(--paper); box-shadow: 0 18px 40px rgba(13,42,128,.18); }
.hero-haus { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* Übergang beim Öffnen: erst Logo, dann wischt ein blauer Streifen es weg und zeigt das Haus.
   Ohne JavaScript oder mit „Bewegung reduzieren“ sieht man direkt das Haus. */
.hero-logo, .hero-wisch { display: none; }
.js .hero-logo { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14%; background: var(--paper); }
.js .hero-wisch { display: block; position: absolute; top: 0; bottom: 0; left: 0; width: 18%; background: var(--blue); transform: translateX(-100%); will-change: transform; }
.js .hero-art.los .hero-logo { animation: heroWegwischen 1.1s cubic-bezier(.7,0,.3,1) .9s both; }
.js .hero-art.los .hero-wisch { animation: heroWischen 1.1s cubic-bezier(.7,0,.3,1) .9s both; }
.js .hero-art .hero-swoosh path { stroke-dasharray: 420; stroke-dashoffset: 420; }
.js .hero-art.los .hero-swoosh path { animation: heroBogen 1.2s ease 1.8s both; }
@keyframes heroWegwischen { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 118%); } }
@keyframes heroWischen { from { transform: translateX(-100%); } to { transform: translateX(555.6%); } }
@keyframes heroBogen { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero-logo, .js .hero-wisch { display: none; }
  .js .hero-art .hero-swoosh path { stroke-dashoffset: 0; animation: none !important; }
}
.hero-swoosh { position: absolute; left: -4%; right: -4%; bottom: 0; width: 108%; height: 36px; display: block; }
@media (max-width: 820px) {
  .hero .inner { grid-template-columns: 1fr; padding-block: 36px 48px; gap: 28px; }
  .hero-art { max-width: 560px; }
}

/* Logo-Bogen als Trenner */
.swoosh { display: block; width: 100%; height: 40px; }

/* Über uns */
.about .inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; padding-block: 72px; }
.about .side { display: flex; flex-direction: column; gap: 14px; }
.about .copy { display: flex; flex-direction: column; gap: 16px; max-width: 65ch; min-width: 0; }
.about .copy p { color: var(--ink); }
.philo { border-left: 4px solid var(--blue); padding: 4px 0 4px 20px; display: flex; flex-direction: column; gap: 6px; }
.philo strong { font-family: var(--display); color: var(--navy); font-weight: 600; }
.facts { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.fact { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.fact svg { flex: none; width: 22px; height: 22px; color: var(--blue); margin-top: 2px; }
@media (max-width: 820px) { .about .inner { grid-template-columns: 1fr; gap: 24px; padding-block: 48px; } }

/* Leistungen */
.services { background: var(--sky); }
.services .inner { padding-block: 72px; display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 60ch; }
.section-head p { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 14px; }
.icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--sky); color: var(--navy); display: grid; place-items: center; }
.icon svg { width: 28px; height: 28px; }
.card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.card li { display: flex; gap: 10px; color: var(--muted); }
.card li::before { content: ""; flex: none; width: 14px; height: 2px; background: var(--blue); margin-top: .8em; border-radius: 2px; }
.card.cta { background: var(--navy); border-color: var(--navy); color: var(--paper); justify-content: space-between; }
.card.cta h3 { color: var(--paper); }
.card.cta p { color: #cfd9f5; }
.card.cta .btn { background: var(--paper); color: var(--navy); border-color: var(--paper); align-self: flex-start; }
.card.cta .btn:hover { background: var(--sky); }

/* Ablauf */
.steps .inner { padding-block: 72px; display: flex; flex-direction: column; gap: 32px; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 3px solid var(--line); min-width: 0; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--blue); line-height: 1; }
.steps li p { color: var(--muted); }
@media (max-width: 820px) { .steps ol { grid-template-columns: 1fr; } .steps .inner { padding-block: 48px; } }

/* Kontakt */
.contact { background: var(--navy); color: var(--paper); }
.contact .inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; padding-block: 72px; }
.contact h2 { color: var(--paper); }
.contact .eyebrow { color: #9fbaf7; }
.contact .copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contact .copy p { color: #dbe3f8; max-width: 52ch; }
.contact-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.contact-item { display: flex; gap: 14px; align-items: center; }
.contact-item svg { width: 22px; height: 22px; flex: none; color: #9fbaf7; }
.contact-item small { display: block; color: #9fbaf7; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.ph { background: rgba(255,255,255,.12); border: 1px dashed rgba(255,255,255,.45); border-radius: 6px; padding: 0 .4em; font-style: normal; }
.legal .ph, .card .ph { background: #fff6d6; border-color: #d6b23a; color: #6b5300; }
form { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; align-self: start; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { font-family: var(--display); font-weight: 500; font-size: .9rem; color: var(--navy); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(58,109,229,.2); }
textarea { min-height: 120px; resize: vertical; }
.field.check { flex-direction: row; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.check input { width: auto; margin-top: 5px; }
form .btn { justify-self: start; }
.form-note { grid-column: 1 / -1; font-size: .95rem; color: var(--ok); }
@media (max-width: 820px) {
  .contact .inner { grid-template-columns: 1fr; gap: 28px; padding-block: 48px; }
  form { grid-template-columns: 1fr; padding: 20px; }
}

.mail { overflow-wrap: anywhere; user-select: all; }
.wa-btn { background: var(--blue); border-color: var(--blue); color: #ffffff; align-self: flex-start; margin-top: 4px; }
.wa-btn:hover { background: #ffffff; border-color: #ffffff; color: var(--navy); }
.wa-float { position: fixed; z-index: 6; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 60px; height: 60px; border-radius: 50%; background: var(--blue); color: #ffffff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(13,42,128,.25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }

/* Einsatzgebiet */
.area .inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; padding-block: 72px; }
.area-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.area-text p { color: var(--muted); max-width: 46ch; }
.area-text .btn { align-self: flex-start; margin-top: 6px; }
.map { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.map svg { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.map figcaption { font-size: .85rem; color: var(--muted); }
@media (max-width: 820px) { .area .inner { grid-template-columns: 1fr; gap: 24px; padding-block: 48px; } }

/* Leistungen als Bildkacheln */
.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.svc-wrap { display: flex; min-width: 0; }
.svc { font: inherit; text-align: left; cursor: pointer; padding: 0; width: 100%; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.svc:hover { border-color: var(--blue); box-shadow: 0 8px 22px rgba(13,42,128,.12); }
.svc img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.svc:hover img { transform: scale(1.04); }
.svc-label { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; background: var(--paper); position: relative; }
.svc-title { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--navy); }
.svc-more { font-size: .95rem; color: var(--blue); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .svc img { transition: none; } .svc:hover img { transform: none; } }
.dots { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dots li { display: flex; gap: 10px; color: var(--ink); }
.dots li::before { content: ""; flex: none; width: 14px; height: 2px; background: var(--blue); margin-top: .8em; border-radius: 2px; }
dialog#svcDialog { border: none; border-radius: 18px; padding: 0; width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(13,42,128,.3); }
dialog#svcDialog::backdrop { background: rgba(13,42,128,.5); }
#dImg { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.d-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.d-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* Fußzeile */
footer { background: #0a1f5e; color: #b8c6ec; }
footer .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px; font-size: .95rem; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--paper); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Impressum / Datenschutz */
.legal .inner { max-width: 760px; padding-block: 56px 80px; display: flex; flex-direction: column; gap: 18px; }
.legal h3 { margin-top: 12px; }
.legal p { color: var(--ink); }
.legal .back { align-self: flex-start; }
.legal .stand { color: var(--muted); font-size: .95rem; margin-top: 12px; }
.hint { background: var(--sky); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: .95rem; }

body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1; }
img { max-width: 100%; }
.hp { display: none; }

/* Echte Karte: lädt erst nach Klick */
.map-box { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #e9eef9; }
.map-box svg { border: none; border-radius: 0; }
.map-box iframe { display: block; width: 100%; aspect-ratio: 600 / 460; border: 0; }
.map-consent { position: absolute; inset: auto 12px 12px 12px; background: var(--paper); border-radius: 12px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; box-shadow: 0 6px 18px rgba(13,42,128,.15); }
.map-consent p { font-size: .9rem; color: var(--muted); flex: 1 1 220px; }
.map-consent .btn { padding: .6em 1.2em; }
@media (max-width: 480px) { .map-consent { position: static; border-radius: 0; box-shadow: none; } }


/* Leistungen ploppen beim Runterscrollen nacheinander auf (nur mit JavaScript, nicht bei „Bewegung reduzieren“) */
@media (prefers-reduced-motion: no-preference) {
  .js .grid > .aufploppen { opacity: 0; transform: translateY(28px) scale(.96); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.3,1.15); transition-delay: var(--verzoegerung, 0s); }
  .js .grid > .aufploppen.sichtbar { opacity: 1; transform: none; }
}

/* Kopfzeile wird beim Runterscrollen etwas kleiner und bekommt einen Schatten */
header.top { transition: box-shadow .3s ease, border-color .3s ease; }
header.top .inner { transition: padding .3s ease; }
.logo img { transition: height .3s ease; }
header.top.klein { box-shadow: 0 6px 20px rgba(13,42,128,.10); border-bottom-color: transparent; }
header.top.klein .inner { padding-block: 4px; }
header.top.klein .logo img { height: 44px; }
@media (max-width: 820px) { header.top.klein .logo img { height: 36px; } }

/* Slogan erscheint Wort für Wort */
@media (prefers-reduced-motion: no-preference) {
  .slogan span { animation: sloganRein .5s cubic-bezier(.2,.8,.3,1.2) both; }
  .slogan span:nth-child(1) { animation-delay: .35s; }
  .slogan span:nth-child(2) { animation-delay: .6s; }
  .slogan span:nth-child(3) { animation-delay: .85s; }
}
@keyframes sloganRein { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }

/* Logo-Bogen als Übergang zwischen den Abschnitten */
.bogen { background: var(--oben); line-height: 0; margin-top: -1px; margin-bottom: -1px; }
.bogen svg { display: block; width: 100%; height: clamp(28px, 4vw, 56px); }
.bogen-flaeche { fill: var(--unten); }
.bogen-linie { fill: none; stroke: var(--blue); stroke-width: 3; vector-effect: non-scaling-stroke; }

/* Milchglas-Kopfzeile: leicht durchsichtig, Inhalt dahinter verschwimmt beim Scrollen */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  header.top { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }
  header.top.klein { background: rgba(255, 255, 255, .66); }
}

/* Fortschrittsbalken: dünne blaue Linie oben, zeigt wie weit gescrollt wurde */
.fortschritt { position: fixed; z-index: 7; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left center; pointer-events: none; }

/* Lebendige Knöpfe: heben sich beim Drüberfahren leicht an, Pfeil gleitet */
.btn { transition: background .15s, color .15s, border-color .15s, transform .2s ease, box-shadow .2s ease; }
.pfeil { display: inline-block; transition: transform .2s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(13,42,128,.18); }
  .svc:hover .pfeil { transform: translateX(5px); }
  .wa-float:hover { transform: translateY(-2px) scale(1.06); }
}
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }

/* Formular: Häkchen bei richtig ausgefüllten Feldern, Hinweis bei Fehlern */
.field.gueltig input, .field.gueltig textarea { border-color: #1f7a4d; padding-right: 40px; background-repeat: no-repeat; background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.field.gueltig input { background-position: right 12px center; }
.field.gueltig textarea { background-position: right 12px top 12px; }
.field.fehler input, .field.fehler textarea { border-color: #b42318; }
.feld-hinweis { font-size: .88rem; color: #b42318; }
