/* Glas- und Gebäudereinigung Vielkind */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --blue: #316098;      /* aus dem Logo */
  --blue-dark: #264d7b;
  --navy: #18344f;
  --silver: #c3c8ce;
  --air: #f4f7fa;
  --sky: #e4edf6;
  --ink: #1d2733;
  --muted: #566475;
  --line: #dbe2e9;
  --white: #fff;
  --radius: 14px;
  --wrap: 1280px;
  --head: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--head); color: var(--navy); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.kicker { font-family: var(--head); font-weight: 700; color: var(--blue); font-size: 1rem; margin-bottom: .5rem; }
.prose { max-width: 42em; }
.muted { color: var(--muted); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-air { background: var(--air); }
.section-navy { background: var(--navy); color: #dbe5ef; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 46em; margin-bottom: clamp(28px, 4vw, 48px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--head); font-weight: 700; font-size: 1rem; padding: .85em 1.4em; border-radius: 8px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-ghost:hover { background: var(--blue); color: var(--white); }
.section-navy .btn-ghost { border-color: var(--silver); color: var(--white); }
.section-navy .btn-ghost:hover { background: var(--white); color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand img { height: 52px; width: auto; border-radius: 3px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li > a { display: block; padding: 10px 12px; font-family: var(--head); font-weight: 600; font-size: .98rem; color: var(--navy); text-decoration: none; border-radius: 6px; }
.nav > ul > li > a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.has-sub { position: relative; }
.sub { list-style: none; margin: 0; padding: 10px; position: absolute; left: -10px; top: 100%; min-width: 290px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(24,52,79,.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; border-radius: 6px; font-size: .95rem; }
.sub a:hover { background: var(--air); color: var(--blue); }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; font: 700 1rem var(--head); color: var(--navy); background: var(--air); border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 12px; padding: 12px clamp(16px, 4vw, 40px) 24px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 12px; min-width: 0; }
  .brand img { height: 44px; }
}

/* Fenster-Rahmen: das Fenstermotiv aus dem Logo */
.window { position: relative; border: 10px solid var(--white); outline: 1px solid var(--silver); border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(24,52,79,.45); overflow: hidden; background: var(--sky); }
.window img { width: 100%; height: 100%; object-fit: cover; }
.window::before, .window::after { content: ""; position: absolute; background: var(--white); pointer-events: none; }
.window::before { top: 0; bottom: 0; left: var(--mx, 38%); width: 8px; } /* --mx/--my: Kreuz pro Bild verschieben, damit es keine Gesichter schneidet */
.window::after { left: 0; right: 0; top: var(--my, 34%); height: 8px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--air) 0%, var(--white) 100%); padding: clamp(40px, 6vw, 88px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .window { aspect-ratio: 4 / 4.2; }
.hero h1 { max-width: 13em; }
.hero-sub { font-size: 1.25rem; color: var(--navy); font-weight: 500; max-width: 32em; }
.page-hero .window { aspect-ratio: 4 / 3.4; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.page-hero-text { max-width: 36em; }
.page-hero.no-image .hero-grid { grid-template-columns: 1fr; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .window, .page-hero .window { aspect-ratio: 4 / 3; }
}

/* Kennzahlen */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.facts li { padding: 8px 28px; border-left: 1px solid rgba(195,200,206,.35); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; font-family: var(--head); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--white); line-height: 1.1; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; row-gap: 24px; } .facts li:nth-child(3) { border-left: 0; padding-left: 0; } }

/* Zweispaltig */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.top { align-items: start; }
.split .media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Leistungskacheln */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.tile a { display: block; text-decoration: none; color: inherit; }
.tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); transition: filter .2s; }
.tile h3 { margin: 16px 0 4px; }
.tile p { color: var(--muted); font-size: .98rem; margin: 0; }
.tile a:hover h3 { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.tile a:hover img { filter: brightness(1.06) saturate(1.05); }
.tile .noimg { aspect-ratio: 4/3; border-radius: var(--radius); background: var(--sky); display: grid; place-items: center; color: var(--blue); font: 700 1.1rem var(--head); }
@media (max-width: 960px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* Zielgruppen */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.audience article { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.audience img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.audience div { padding: 28px clamp(20px, 3vw, 36px) 32px; }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } }

/* Listen */
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 4px; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%23316098' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.checks.cols { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 640px) { .checks.cols { grid-template-columns: 1fr; } }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.section-air .panel { border-color: transparent; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.panel h3 { margin-bottom: .4em; }
.panel p:last-child { margin-bottom: 0; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; }
.gallery.wide img { aspect-ratio: 4/3; }

/* Vorher / Nachher */
.compare { max-width: 880px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 32px; }
.compare figure { margin: 0; position: relative; }
.compare img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; }
.compare figcaption { position: absolute; left: 12px; top: 12px; background: var(--white); color: var(--navy); font: 700 .9rem var(--head); padding: 4px 10px; border-radius: 6px; }
.compare figure:last-child figcaption { background: var(--blue); color: var(--white); }

/* Abschluss-CTA */
.cta-band { background: var(--blue); color: #eaf1f8; padding: clamp(48px, 7vw, 88px) 0; }
.cta-band h2 { color: var(--white); max-width: 22em; }
.cta-band p { max-width: 40em; }
.cta-band .btn-primary { background: var(--white); color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--navy); color: var(--white); }

/* Orte */
.places { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.places li { background: var(--white); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font: 600 1rem var(--head); color: var(--navy); }
.places li:first-child { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* Zitat Geschäftsführung */
.portrait img { border-radius: var(--radius); aspect-ratio: 5/6; object-fit: cover; width: 100%; max-width: 460px; }
.signature { font-family: var(--head); font-weight: 700; color: var(--navy); }

/* Formulare */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label, .form legend { display: block; font: 600 .95rem var(--head); color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #b9c3ce; border-radius: 8px; padding: 12px 14px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(49,96,152,.35); border-color: var(--blue); }
.form fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid #b9c3ce; border-radius: 8px; cursor: pointer; font-weight: 500; color: var(--ink); background: var(--white); margin: 0; }
.choice label:has(input:checked) { border-color: var(--blue); background: var(--sky); }
.choice input { accent-color: var(--blue); }
.business-only { display: none; }
.form:has(input[value="Geschäftskunde"]:checked) .business-only { display: grid; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.consent input { margin-top: .35em; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 8px; background: var(--sky); color: var(--navy); font-weight: 600; }
.notice.error { background: #fbe9e9; color: #8a1f1f; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list strong { display: block; font: 600 .9rem var(--head); color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #c4d1de; padding: 64px 0 28px; font-size: .97rem; }
.site-footer a { color: #e6eef6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-name { font: 800 1.2rem var(--head); color: var(--white); margin-bottom: .4em; }
.footer-head { font: 700 1rem var(--head); color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; margin-top: 16px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(195,200,206,.25); font-size: .9rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.placeholder { background: #fff6d6; padding: 0 .25em; border-radius: 3px; }
