:root {
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --ink: #0B1220;
  --muted: #56627A;
  --line: #E3E7F0;
  --navy: #0A1428;
  --navy-2: #12224A;
  --primary: #2F6BFF;
  --primary-2: #6A4CFF;
  --primary-ink: #FFFFFF;
  --accent: #FFB520;
  --radius: 22px;
  --shadow: 0 18px 50px -20px rgba(10, 20, 40, 0.35);
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070D1B; --surface: #101A33; --ink: #EAF0FF; --muted: #9AA8C7; --line: #1E2B4A;
    --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.05rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

/* Header */
.wrap:has(> .top) { position: sticky; top: 0; z-index: 50; width: 100%; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top { width: min(1160px, 100% - 2.5rem); margin-inline: auto; display: flex; align-items: center; gap: 0.5rem 1.5rem; padding: 0.8rem 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -0.01em; }
.logo { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-size: 0.95rem; font-weight: 800; box-shadow: 0 8px 20px -8px var(--primary); }
.top nav { display: flex; gap: 0.25rem; margin-left: auto; flex-wrap: wrap; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 0.5rem 0.95rem; border-radius: 999px; color: var(--muted); transition: background .2s, color .2s; }
.top nav a:hover { background: var(--line); color: var(--ink); }
.top nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.call { font-weight: 700; text-decoration: none; padding: 0.65rem 1.25rem; border-radius: 999px; white-space: nowrap; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 24px -10px var(--primary); transition: transform .2s, box-shadow .2s; }
.call:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px var(--primary); }

/* Hero */
main .wrap > .hero, main .wrap > .sub-hero { margin-top: 1.5rem; }
.hero, .sub-hero {
  position: relative; overflow: hidden; color: #fff; border-radius: 32px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(106, 76, 255, 0.55), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(47, 107, 255, 0.5), transparent 70%),
    linear-gradient(160deg, rgba(10, 20, 40, 0.94), rgba(18, 34, 74, 0.8)),
    var(--hero-img, none) center / cover no-repeat var(--navy);
}
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; padding: clamp(2rem, 5vw, 4rem); }
.sub-hero { padding: clamp(2rem, 5vw, 3.5rem); }
.hero.flat { background: none; color: var(--ink); overflow: visible; padding: 2rem 0 0; align-items: start; }
.badge { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.4rem 0.9rem; border-radius: 999px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--accent); margin-bottom: 1.25rem; }
h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 1.1rem; text-wrap: balance; }
.lead { font-size: 1.2rem; color: rgba(255, 255, 255, 0.78); max-width: 36rem; margin: 0 0 1.75rem; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; color: rgba(255, 255, 255, 0.75); }
.facts li { padding-left: 1.7rem; position: relative; }
.facts li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.facts strong { color: #fff; }

/* Cards & forms */
.card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow); }
.card h2 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin: 0 0 0.3rem; letter-spacing: -0.02em; line-height: 1.15; }
.card .sub { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.97rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.92rem; }
.field select, .field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 0.75rem 0.9rem; transition: border-color .2s, box-shadow .2s; }
.field select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
.field textarea { min-height: 4.5rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.btn { display: block; width: 100%; text-align: center; border: 0; cursor: pointer; font: inherit; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: 0.95rem 1.4rem; border-radius: 14px; box-shadow: 0 14px 28px -14px var(--primary); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px var(--primary); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink); }
.btns { display: grid; gap: 0.7rem; }
.btns.inline { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btns.inline .btn { display: inline-block; width: auto; }
.alt { text-align: center; margin: 0.9rem 0 0; font-size: 0.95rem; color: var(--muted); }
.alt a { font-weight: 700; color: var(--ink); }

/* Sections */
section.block { padding: 4.5rem 0 1rem; }
h2.title { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 2rem; max-width: 34rem; }

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.rows li { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1rem 3rem; align-items: center; padding: 1.7rem 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s, border-color .25s; }
.rows li:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.rows h3 { font-family: var(--display); font-weight: 800; font-size: 1.7rem; margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
.rows p { margin: 0 0 0.4rem; color: var(--muted); max-width: 36rem; }
.rows a { font-weight: 700; color: var(--primary); text-decoration: none; }
.rows a::after { content: " →"; }
.rows a:hover { text-decoration: underline; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.8rem; height: 2.8rem; background: linear-gradient(135deg, var(--accent), #FF7A3D); color: #1B1200; border-radius: 14px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin-bottom: 1rem; }
.steps h3 { font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin: 0 0 0.35rem; letter-spacing: -0.015em; }
.steps p { margin: 0; color: var(--muted); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.4rem; margin-bottom: 0.75rem; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0.7rem 0 0; color: var(--muted); max-width: 42rem; }

.cta { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 32px; padding: clamp(2rem, 5vw, 4rem); margin: 4.5rem 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(106, 76, 255, 0.6), transparent 70%); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 0.8rem; max-width: 32rem; }
.cta p { margin: 0 0 1.6rem; max-width: 32rem; color: rgba(255, 255, 255, 0.78); }
.cta .btn { background: #fff; color: var(--navy); box-shadow: none; }
.cta .btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.4); }
.cta .btn.ghost:hover { border-color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: #fff; }
.gallery-item img { display: block; width: 100%; height: 320px; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 20, 40, 0.85), transparent 60%); }
.gallery-item span { position: absolute; left: 1.25rem; bottom: 1.1rem; z-index: 1; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }

/* Subpages */
.sub-hero h1 { margin-bottom: 0.8rem; }
.sub-hero .lead { margin: 0; }
.layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 3rem; align-items: start; padding: 3rem 0 4rem; }
.layout aside { position: sticky; top: 5.5rem; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.15; letter-spacing: -0.02em; margin: 2.4rem 0 0.7rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 0.9rem; color: var(--muted); max-width: 42rem; }
.prose ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.prose li { position: relative; padding-left: 2rem; margin: 0.6rem 0; max-width: 42rem; }
.prose li::before { content: "✓"; position: absolute; left: 0; top: 0.1em; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-radius: 50%; }
.more { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.5rem; }
.more a { font-weight: 700; text-decoration: none; padding: 0.55rem 1.1rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); transition: border-color .2s; }
.more a:hover { border-color: var(--primary); color: var(--primary); }

.contact { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.contact > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.contact h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; margin: 0 0 0.5rem; }
.contact p { margin: 0 0 0.3rem; color: var(--muted); }
.contact a { font-weight: 600; color: var(--primary); }
.contact .big { font-family: var(--display); font-weight: 800; font-size: 1.9rem; text-decoration: none; color: var(--ink); }

.legal { padding: 2.5rem 0 4rem; max-width: 46rem; }
.legal h2 { font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin: 2rem 0 0.4rem; }
.legal p { margin: 0 0 0.7rem; color: var(--muted); }
.todo { background: var(--accent); color: #1B1200; padding: 0 0.3rem; border-radius: 4px; }

/* Footer */
footer { background: var(--navy); color: rgba(255, 255, 255, 0.7); margin-top: 2rem; padding: 3.5rem 0 2.5rem; font-size: 0.97rem; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.foot strong { color: #fff; font-family: var(--display); font-size: 1.15rem; }
.foot a { display: block; text-decoration: none; padding: 0.2rem 0; color: rgba(255, 255, 255, 0.85); }
.foot a:hover { color: var(--accent); }
.foot p { margin: 0.5rem 0 0; }
footer .wrap > div:last-child { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.5rem; }

/* Leistungen mit Foto */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.service { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .3s, box-shadow .3s, border-color .3s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.service figure { margin: 0; position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.service img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.service:hover img { transform: scale(1.07); }
.service .tag { position: absolute; left: 1rem; top: 1rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--accent); color: #1B1200; }
.service .body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.service h3 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin: 0; letter-spacing: -0.02em; }
.service p { margin: 0; color: var(--muted); flex: 1; }
.service .go { font-weight: 700; color: var(--primary); margin-top: 0.6rem; }
.service .go::after { content: " →"; display: inline-block; transition: transform .2s; }
.service:hover .go::after { transform: translateX(4px); }

/* Vorteile */
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.perks li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.perks svg { width: 2.8rem; height: 2.8rem; padding: 0.6rem; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 10px 22px -12px var(--primary); margin-bottom: 1rem; }
.perks h3 { font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin: 0 0 0.3rem; }
.perks p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Foto-Mosaik */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 1rem; }
.mosaic .gallery-item img { height: 100%; }
.mosaic .wide { grid-column: span 2; }
.mosaic .tall { grid-row: span 2; }

/* CTA mit Foto */
.cta.with-photo { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: center; }
.cta-photo { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); transform: rotate(2deg); transition: transform .4s; }
.cta-photo:hover { transform: rotate(0deg) scale(1.02); }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Fotos auf Unterseiten */
.photo { margin: 1.5rem 0 0.5rem; border-radius: var(--radius); overflow: hidden; position: relative; }
.photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo figcaption { position: absolute; left: 1rem; bottom: 1rem; background: color-mix(in srgb, var(--navy) 80%, transparent); color: #fff; font-size: 0.9rem; font-weight: 600; padding: 0.35rem 0.8rem; border-radius: 999px; backdrop-filter: blur(6px); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 0.5rem; }
.photo-pair .photo { margin: 0; }
.photo-pair .photo img { aspect-ratio: 4 / 3; }

/* Scroll-Animation (nur mit JS) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.hero > div:first-child > * { animation: rise .8s ease both; }
.hero > div:first-child > *:nth-child(2) { animation-delay: .08s; }
.hero > div:first-child > *:nth-child(3) { animation-delay: .16s; }
.hero > div:first-child > *:nth-child(4) { animation-delay: .24s; }
.hero > .card { animation: rise .9s .2s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
}
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .cta.with-photo { grid-template-columns: 1fr; }
  .cta-photo { transform: none; max-width: 28rem; }
}
@media (max-width: 560px) {
  .perks { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .mosaic .wide { grid-column: auto; }
  .mosaic .tall { grid-row: auto; }
  .photo-pair { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .layout { grid-template-columns: 1fr; gap: 2rem; }
  .layout aside { position: static; }
  .rows li { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.4rem; }
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 240px; }
  .foot { grid-template-columns: 1fr; gap: 1.75rem; }
  .top nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; }
  .call { margin-left: auto; }
}
@media (max-width: 480px) {
  .row2 { grid-template-columns: 1fr; }
  .call { padding: 0.55rem 0.9rem; font-size: 0.92rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Google-Karte */
.map { margin-top: 1.25rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; min-height: 320px; background: var(--surface); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) { .map { aspect-ratio: 4 / 5; } }
