/* LN Facility Management – Stylesheet
   Farben aus dem Logo. Keine externen Schriften oder Dienste. */

:root {
  --brand: #04406c;
  --brand-deep: #022b49;
  --brand-mid: #0b5489;
  --sky: #e8f1f7;
  --paper: #f7f9fb;
  --white: #ffffff;
  --ink: #12222f;
  --muted: #455868;
  --line: #cddae3;
  --signal: #f2b705;
  --signal-hover: #ffc928;
  --radius: 6px;
  --font: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body.has-callbar { padding-bottom: 72px; }

img, svg { max-width: 100%; display: block; }

a { color: var(--brand); }
a:hover { color: var(--brand-deep); }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.05rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 64ch; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--signal); color: var(--ink);
  padding: 8px 14px; border-radius: var(--radius);
}
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: var(--signal-hover); color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--brand); }
.btn-dark { background: var(--brand); color: var(--white); }
.btn-dark:hover { background: var(--brand-deep); color: var(--white); }
.btn-line { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-line:hover { background: var(--brand); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 74px; }
.brand { display: block; line-height: 0; }
.brand img { height: 54px; width: auto; }
.nav { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 4px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.header-call { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  background: var(--white); border: 2px solid var(--brand); border-radius: var(--radius); color: var(--brand);
}
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--white); }
.mobile-nav a { display: block; padding: 14px 20px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }

/* Hero */
.hero { background: var(--brand); color: var(--white); overflow: hidden; }
section.hero { padding: 0; }
.hero .wrap { display: grid; gap: 40px; align-items: center; padding-top: 52px; padding-bottom: 60px; }
.hero .lead { font-size: 1.2rem; color: #d3e4f0; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin: 18px 0 0; font-size: .95rem; color: #a9c6dc; }
.crumbs { font-size: .9rem; color: #a9c6dc; margin-bottom: 16px; }
.crumbs a { color: #d3e4f0; }

.facade { width: min(100%, 300px); margin: 0 auto; }
.facade .body { fill: var(--brand-mid); }
.facade .ground { stroke: #3d79a8; stroke-width: 2; }
.facade .door { fill: var(--brand-deep); }
.facade .win { fill: #1c6aa3; }
.facade .mull { stroke: var(--brand-mid); stroke-width: 3; }
.facade .win.lit { animation: light .7s ease-out both; animation-delay: var(--d, 0s); }
@keyframes light { from { fill: #1c6aa3; } to { fill: var(--signal); } }

/* Vertrauensleiste */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: grid; gap: 10px 24px; grid-template-columns: 1fr 1fr; }
.trust li { font-weight: 600; font-size: .95rem; padding-left: 14px; border-left: 4px solid var(--signal); line-height: 1.3; }

/* Sektionen */
section { padding: 68px 0; }
.sec-head { margin-bottom: 34px; }
.sec-head p { color: var(--muted); font-size: 1.1rem; }

/* Leistungen */
.services { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.services li { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.services h3 { margin: 0; }
.services h3 a { color: var(--ink); text-decoration: none; }
.services h3 a:hover { color: var(--brand); text-decoration: underline; }
.services p { margin: 0; color: var(--muted); }
.more { font-weight: 700; }
.services-extra { margin-top: 24px; font-weight: 600; }

/* Vorteile */
.band { background: var(--sky); }
.benefits { display: grid; gap: 28px; }
.benefit { border-top: 4px solid var(--signal); padding-top: 14px; }
.benefit h3 { margin-bottom: .3em; }
.benefit p { margin: 0; color: var(--muted); }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { position: relative; padding-left: 62px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--brand); color: var(--signal); font-weight: 800; font-size: 1.2rem; border-radius: 50%;
}
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); }

/* Galerie (nur sichtbar, wenn Fotos vorhanden sind) */
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 22%; border-radius: var(--radius); background: var(--sky); }

/* Über uns / dunkle Fläche */
.dark { background: var(--brand); color: var(--white); }
.dark p { color: #d3e4f0; }
.dark h2 { max-width: 22ch; }

/* Leistungsseiten */
.two-col { display: grid; gap: 36px; }
.check { list-style: none; margin: 0 0 1em; padding: 0; }
.check li { position: relative; padding: 8px 0 8px 34px; border-bottom: 1px solid var(--line); }
.check li::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 14px; height: 8px;
  border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg);
}
.hint { font-size: .95rem; color: var(--muted); }
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.link-list a { font-weight: 600; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 1.6rem; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Kontakt + Angebots-Assistent */
.contact-grid { display: grid; gap: 38px; }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; }
.contact-list li { margin-bottom: 14px; }
.contact-list strong { display: block; font-size: .9rem; color: var(--muted); font-weight: 600; }
.contact-list a { color: var(--ink); font-weight: 700; font-size: 1.2rem; }
address { font-style: normal; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.wizard fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.wizard legend { font-weight: 800; font-size: 1.2rem; padding: 0; margin-bottom: 14px; }
.wizard fieldset + fieldset { margin-top: 26px; }
.progress { display: none; margin: 0 0 18px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.progress-bar { height: 6px; background: var(--sky); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 33%; background: var(--brand); transition: width .25s; }
.wizard.js .progress { display: block; }
.step-actions { display: none; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.wizard.js .step-actions { display: flex; }
.wizard.js .final-actions { margin-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.chip span {
  display: block; padding: 11px 16px; border: 2px solid #9db6c6; border-radius: 999px;
  font-weight: 600; background: var(--white); transition: background-color .15s, border-color .15s, color .15s;
}
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.sub { font-weight: 700; margin: 18px 0 10px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #8ba3b3; border-radius: var(--radius); padding: 12px 14px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--signal); outline-offset: 1px; border-color: var(--brand); }
.two { display: grid; gap: 0 16px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.consent input { width: 22px; height: 22px; margin-top: 3px; flex: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.msg { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius); display: none; }
.msg.show { display: block; background: #fdecea; color: #7a1b12; }
.status { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); display: none; }
.status.ok { display: block; background: #e3f4e6; color: #14502a; }
.status.err { display: block; background: #fdecea; color: #7a1b12; }

/* Call-to-action-Band */
.cta-band { background: var(--signal); color: var(--ink); padding: 44px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band .btn-dark { min-height: 52px; }


/* Fotos */
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% center; border-radius: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.side-photo { margin: 0 0 28px; }
.side-photo img { width: 100%; height: auto; border-radius: 8px; }
.about-grid { display: grid; gap: 32px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; border-radius: 10px; }
.gallery figcaption { margin-top: 8px; font-weight: 700; }
.gallery figcaption a { color: var(--ink); text-decoration: none; }
.gallery figcaption a:hover { text-decoration: underline; color: var(--brand); }
.gallery a { display: block; }
.note { font-size: .88rem; color: var(--muted); margin-top: 18px; }
.legal ul { padding-left: 1.2em; max-width: 64ch; }
.legal li { margin-bottom: .4em; }

/* Footer */
.site-footer { background: var(--brand-deep); color: #b8cfe0; padding: 44px 0 30px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 28px; }
.footer-logo { width: 190px; height: auto; margin-bottom: 14px; }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legal-row { margin-top: 28px; padding-top: 18px; border-top: 1px solid #1c4a6d; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

/* Mobile Anruf-Leiste */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--white); border-top: 1px solid var(--line);
}
.callbar .btn { flex: 1; min-height: 50px; }

/* Rechtstexte und 404 */
.legal { padding: 56px 0 72px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.todo { background: #fff3c4; padding: 2px 6px; border-radius: 3px; }
.notice { border-left: 5px solid var(--signal); background: var(--white); padding: 16px 18px; margin: 0 0 28px; max-width: 70ch; }

@media (min-width: 720px) {
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .services li { grid-template-columns: 1fr 1.6fr auto; gap: 24px; align-items: baseline; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .two { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav { display: flex; gap: 22px; }
  .menu-btn, .mobile-nav { display: none !important; }
  .hero .wrap { grid-template-columns: 1.3fr 1fr; padding-top: 76px; padding-bottom: 84px; }
  .hero.slim .wrap { padding-top: 56px; padding-bottom: 60px; }
  .benefits { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .two-col { grid-template-columns: 1.2fr 1fr; gap: 64px; }
  .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 60px; }
  .about-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  section { padding: 92px 0; }
  .callbar { display: none; }
  body.has-callbar { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .facade .win.lit { animation: none; fill: var(--signal); }
  .btn, .chip span, .progress-bar span { transition: none; }
}
