/* DeWe Immobilien – statische Informationsseite */
:root {
  --blue: #0a0596;
  --blue-dark: #070463;
  --green: #5fae62;
  --green-soft: #e9f4e9;
  --grey: #b9b9b9;
  --ink: #16182b;
  --muted: #5b5f72;
  --line: #e4e5ec;
  --bg: #ffffff;
  --bg-alt: #f5f6f9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 5, 150, .08);
  --max: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 720; }
h3 { font-size: 1.25rem; font-weight: 680; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; }
.brand strong { display: block; font-size: 1.15rem; color: var(--blue); letter-spacing: .02em; }
.brand span { display: block; font-size: .74rem; color: var(--muted); line-height: 1.2; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 560; font-size: .96rem; }
.nav a:hover { background: var(--bg-alt); color: var(--blue); }
.nav a.cta { background: var(--blue); color: #fff; }
.nav a.cta:hover { background: var(--blue-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(7,4,99,.86) 0%, rgba(7,4,99,.55) 45%, rgba(7,4,99,.05) 80%); }
.hero .container { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 88px; }
.hero .eyebrow { color: #bfe3c0; }
.hero p.lead { max-width: 560px; font-size: 1.2rem; color: rgba(255,255,255,.92); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--green); margin-bottom: 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 640; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #4f9a52; color: #fff; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Sections */
section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; color: var(--ink); }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--green-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card .more { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 620; font-size: .92rem; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fae62' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2em; padding: 0; list-style: none; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .9rem; color: var(--muted); }
.section-alt .tags li { background: #fff; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.gallery img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* Finanzierung band */
.band { background: var(--blue); color: #fff; }
.band h2, .band h3 { color: #fff; }
.band p { color: rgba(255,255,255,.85); }
.band .eyebrow { color: #a8dcaa; }
.band-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px; }
.stat strong { display: block; font-size: 2rem; line-height: 1.1; color: #fff; }
.stat span { font-size: .92rem; color: rgba(255,255,255,.8); }
.band .checklist li::before { background-color: rgba(255,255,255,.15); }
.partner { display: inline-flex; align-items: center; gap: 14px; margin-top: 12px; background: #fff; padding: 12px 18px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.partner img { height: 38px; width: auto; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-left: 40px; margin-bottom: 28px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.timeline time { display: block; font-weight: 700; color: var(--blue); }
.timeline p { margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-item h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-item a, .contact-item address { font-style: normal; font-size: 1.1rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-item a:hover { color: var(--blue); }
.contact-item small { display: block; color: var(--muted); margin-top: 6px; }

/* Footer */
.site-footer { background: #0d0c2b; color: rgba(255,255,255,.75); padding: 48px 0; font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer a { color: #fff; text-decoration: none; margin-left: 20px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { color: var(--green); }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.5em; }
.legal p, .legal li { color: #33364a; }

/* Responsive */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature, .band-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature.reverse .feature-media { order: 0; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 12px 16px 20px; }
  .nav a { padding: 12px 14px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  section { padding: 64px 0; }
  .cards, .gallery { grid-template-columns: 1fr; }
  .hero .container { padding-bottom: 56px; }
  .brand span { display: none; }
  .site-footer a { margin: 0 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.contact-item small a.inline { font-size: inherit; font-weight: 600; color: var(--blue); }
@media (max-width: 860px) {
  .hero::after { background: linear-gradient(180deg, rgba(7,4,99,.35) 0%, rgba(7,4,99,.82) 45%, rgba(7,4,99,.92) 100%); }
}

/* ---------- Scroll-Animationen ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.65,.3,1), transform .8s cubic-bezier(.2,.65,.3,1); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js .reveal.from-left { transform: translateX(-40px); }
.js .reveal.from-right { transform: translateX(40px); }
.js .reveal.zoom { transform: scale(.94); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hero: sanfter Zoom des Bildes + Text blendet nacheinander ein */
.js .hero img { animation: heroZoom 9s ease-out both; }
.js .hero .container > * { opacity: 0; animation: heroIn .9s cubic-bezier(.2,.65,.3,1) forwards; }
.js .hero .container > :nth-child(1) { animation-delay: .15s; }
.js .hero .container > :nth-child(2) { animation-delay: .3s; }
.js .hero .container > :nth-child(3) { animation-delay: .45s; }
.js .hero .container > :nth-child(4) { animation-delay: .6s; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Bilder zoomen leicht beim Überfahren */
.feature-media { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-media img { box-shadow: none; transition: transform .7s cubic-bezier(.2,.65,.3,1); }
.feature-media:hover img { transform: scale(1.04); }
.gallery img { transition: transform .4s, box-shadow .4s; }
.gallery figure:hover img { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Kopfzeile bekommt beim Scrollen Schatten */
.site-header { transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(10,5,150,.08); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero .container > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .hero img { animation: none; }
}
