/* Monteurwohnungen Korte – Premium
   Layout-Idee: Nachtblau als Grundton, Goldgelb als Akzent, breite Archivo-Überschriften,
   nummerierte Kapitel, große Fotos. Schriften lokal (DSGVO). */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --navy: #0f2340;
  --navy-deep: #0a1a31;
  --gold: #f0b14a;
  --gold-ink: #a8650f;
  --paper: #f4f2ee;
  --white: #ffffff;
  --ink: #172033;
  --muted: #4c5668;
  --soft: #c9d4e4;
  --line: #d9d4ca;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.disp { font-family: var(--display); font-stretch: 112%; font-weight: 800; letter-spacing: -0.02em; line-height: 1; text-wrap: balance; margin: 0; color: var(--navy); }
.num { font-family: var(--display); font-stretch: 115%; font-weight: 800; font-variant-numeric: tabular-nums; }
.kicker { font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: 15px; letter-spacing: .1em; color: var(--gold-ink); }
h1.disp { font-size: clamp(42px, 6vw, 76px); color: var(--white); }
h2.disp { font-size: clamp(34px, 4.4vw, 56px); }
h3.disp { font-size: clamp(32px, 3.4vw, 44px); }
section { padding: 112px 0; }
.head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 600 17px var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #f5c26b; color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); }
.btn-line { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-line:hover { border-color: var(--white); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-wa { background: #1f8f4e; color: var(--white); }
.btn-wa:hover { background: #18773f; color: var(--white); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 8px; background: var(--gold); color: var(--navy); display: grid; place-items: center; font: 900 20px var(--display); }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-family: var(--display); font-stretch: 110%; font-weight: 800; color: var(--white); font-size: 18px; }
.brand-text span { color: #9fb0c8; font-size: 13px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: #e7ecf4; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--gold); }
.nav .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.menu-btn { display: none; background: none; border: 2px solid rgba(255,255,255,.3); color: var(--white); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; }
  .nav .btn { margin-top: 14px; }
}

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: 0; }
.hero-row { display: flex; flex-wrap: wrap; }
.hero-copy { flex: 1 1 560px; display: flex; justify-content: flex-end; padding: 88px 0 72px; }
.hero-copy > div { max-width: 640px; width: 100%; padding: 0 48px 0 32px; display: grid; gap: 26px; align-content: start; }
.hero-copy .kicker { color: var(--gold); }
.hero-copy p { font-size: 20px; color: var(--soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { flex: 1 1 520px; min-height: 560px; position: relative; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote { position: absolute; left: 24px; bottom: 24px; right: 24px; max-width: 360px; background: var(--white); color: var(--ink); border-radius: 14px; padding: 16px 20px; display: flex; gap: 14px; align-items: center; box-shadow: 0 20px 40px -18px rgba(0,0,0,.5); font-size: 15px; line-height: 1.4; }
.quote .num { font-size: 40px; color: var(--navy); line-height: .6; }
.quote span span { color: #5d6778; }
.stats { border-top: 1px solid rgba(255,255,255,.1); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.stats div { display: grid; gap: 2px; }
.stats .num { font-size: 40px; color: var(--gold); }
.stats span:last-child { color: var(--soft); font-size: 15px; }
@media (max-width: 760px) {
  .hero-copy { padding: 56px 0 48px; }
  .hero-copy > div { padding: 0 20px; }
  .hero-photo { min-height: 380px; }
  .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Wohnungen */
.units-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 72px; }
.units-intro p { max-width: 420px; color: var(--muted); }
.unit { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.unit + .unit { margin-top: 88px; }
.unit.rev { flex-wrap: wrap-reverse; }
.collage { flex: 1 1 520px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 220px 200px; gap: 12px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.collage .big { grid-column: span 2; grid-row: span 2; }
.unit-text { flex: 1 1 400px; display: grid; gap: 20px; }
.tag { justify-self: start; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px; letter-spacing: .04em; }
.unit-text > p { color: var(--muted); font-size: 18px; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.specs div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: #6b7486; font-size: 14px; }
.specs dd { margin: 0; font-weight: 600; }
@media (max-width: 760px) { .collage { grid-template-rows: 160px 140px; } }

/* Teamplaner */
.planner { background: var(--gold); border-radius: 28px; padding: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.planner-left { flex: 1 1 420px; display: grid; gap: 20px; }
.planner-left .kicker { color: var(--navy); }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes button { width: 50px; height: 50px; border-radius: 14px; border: 2px solid var(--navy); background: transparent; color: var(--navy); font: 800 22px var(--display); cursor: pointer; }
.sizes button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.rec { flex: 1 1 420px; background: var(--navy); color: var(--white); border-radius: 20px; padding: 32px; display: grid; gap: 14px; min-height: 240px; align-content: start; }
.rec small { color: var(--gold); font-weight: 600; font-size: 14px; letter-spacing: .08em; }
.rec .disp { color: var(--white); font-size: 36px; }
.rec p { color: var(--soft); }
.rec .btn { justify-self: start; margin-top: 4px; }
@media (max-width: 760px) { .planner { padding: 32px 22px; } }

/* Inklusive */
.white { background: var(--white); }
.incl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--navy); }
.incl div { padding: 28px 24px 28px 0; border-bottom: 1px solid #e3ded4; display: grid; gap: 8px; align-content: start; }
.incl svg { width: 32px; height: 32px; fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.incl strong { font-size: 18px; color: var(--navy); }
.incl span { color: #5d6778; font-size: 15px; }
@media (max-width: 900px) { .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .incl { grid-template-columns: 1fr; } }

/* Galerie */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 12px; }
.mosaic button { padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: #ddd; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.mosaic button:hover img { transform: scale(1.04); }
.mosaic .w2 { grid-column: span 2; } .mosaic .h2 { grid-row: span 2; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } .mosaic .h2 { grid-row: auto; } }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8,16,30,.94); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; border-radius: 8px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; cursor: pointer; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 16px; } .lb-next { right: 16px; }

/* Firmen */
.dark { background: var(--navy); color: var(--white); }
.dark .disp { color: var(--white); }
.dark .kicker { color: var(--gold); }
.firm { display: flex; flex-wrap: wrap; gap: 64px; }
.firm-left { flex: 1 1 460px; display: grid; gap: 22px; align-content: start; }
.firm-left p { color: var(--soft); font-size: 18px; max-width: 32em; }
.firm-cards { flex: 1 1 460px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.firm-cards div { background: rgba(255,255,255,.06); border-radius: 18px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.firm-cards .num { color: var(--gold); font-size: 28px; }
.firm-cards span:last-child { color: var(--soft); font-size: 15px; }
@media (max-width: 520px) { .firm-cards { grid-template-columns: 1fr; } }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { border-top: 4px solid var(--navy); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.steps .num { font-size: 44px; color: var(--gold-ink); }
.steps strong { font-size: 19px; color: var(--navy); }
.steps span:last-child { color: #5d6778; }
.facts-line { display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 48px; }
.facts-line strong { color: var(--navy); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-weight: 600; color: var(--navy); font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 24px var(--display); color: var(--gold-ink); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 16px; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

/* Anfrage */
.contact { background: var(--white); border-radius: 28px; padding: 56px; display: flex; flex-wrap: wrap; gap: 48px; box-shadow: 0 30px 60px -40px rgba(15,35,64,.45); }
.contact-left { flex: 1 1 320px; display: grid; gap: 16px; align-content: start; }
.contact-left dl { margin: 8px 0 0; display: grid; gap: 14px; }
.contact-left dt { color: #6b7486; font-size: 14px; }
.contact-left dd { margin: 0; font-weight: 600; font-size: 18px; }
form { flex: 2 1 520px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
form .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
input, select, textarea { font: 400 17px var(--body); color: var(--ink); padding: 12px 14px; border: 1px solid #c9c3b8; border-radius: 10px; background: #faf9f6; width: 100%; }
textarea { min-height: 110px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-note { color: #6b7486; font-size: 14px; }
.form-status { font-weight: 600; color: var(--navy); min-height: 1.6em; }
@media (max-width: 760px) { .contact { padding: 28px 20px; } form { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: var(--navy-deep); color: #9fb0c8; padding: 36px 0; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot a { color: #e7ecf4; }

/* Rechtstexte */
.legal { padding: 72px 0; }
.legal .wrap { max-width: 800px; display: grid; gap: 16px; }
.legal h1 { font-size: 48px; }
.legal h2 { font-family: var(--display); font-stretch: 110%; font-size: 22px; color: var(--navy); margin: 18px 0 0; }
.todo { background: #fff0c2; padding: 0 4px; border-radius: 3px; }
@media (max-width: 760px) { section { padding: 72px 0; } .wrap { padding: 0 20px; } .units-intro { margin-bottom: 48px; } }

/* Logo */
.brand-logo { height: 46px; width: auto; }
.brand-text { border-left: 1px solid rgba(255,255,255,.25); padding-left: 12px; }
.foot .wrap { align-items: center; }
.foot-logo { height: 40px; width: auto; opacity: .9; }
@media (max-width: 420px) { .brand-text span { display: none; } }

/* SEO-Abschnitt & Hero-Überschrift */
h1.kicker { margin: 0; font-size: 15px; line-height: 1.4; }
h2.disp.hero-h { font-size: clamp(42px, 6vw, 76px); color: var(--white); }
.seo-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.seo-text { display: grid; gap: 16px; color: var(--muted); font-size: 18px; max-width: 760px; }

/* Foto-Slider Nov 2026 */
.collage.slider { position: relative; }
.collage.slider img { transition: opacity .25s ease; cursor: pointer; }
.collage.solo .big { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.collage.duo .big { grid-column: 2 / span 2; grid-row: 1 / span 2; }
.cnav { grid-row: 2; align-self: end; justify-self: center; z-index: 2; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 4px; border-radius: 999px; background: rgba(10,26,49,.72); color: #fff; font-size: 13px; font-weight: 600; }
.collage.solo .cnav { grid-column: 1 / span 2; }
.collage.duo .cnav { grid-column: 2 / span 2; }
.cnav button, .gal-nav button { width: 34px; height: 34px; border-radius: 999px; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.cnav button:hover { background: rgba(255,255,255,.3); }
.c-count { min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.mosaic img { transition: opacity .25s ease, transform .35s; }
.gal-nav { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.gal-nav button { width: 44px; height: 44px; background: var(--navy, #0f2340); font-size: 22px; }
.gal-nav .g-pause { font-size: 13px; letter-spacing: -2px; }
.gal-nav button:hover { background: var(--gold-ink, #a8650f); }

.mosaic button { position: relative; }
.mosaic img.xfade { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; pointer-events: none; }

/* Mobil: erst Überschrift, dann Fotos */
@media (max-width: 980px) {
  .unit, .unit.rev { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 20px; }
  .unit-text { display: contents; }
  .unit .tag { order: 1; align-self: flex-start; }
  .unit h3 { order: 2; }
  .unit .collage { order: 3; flex: none; width: 100%; margin: 4px 0 8px; }
  .unit-text > p { order: 4; }
  .unit .specs { order: 5; }
}
