/* ==========================================================================
   Klarhaus – Hausbetreuung & Service (Branchen-Demo, fiktive Marke)
   Farben aus der Visitenkarte (Navy / Grün / Weiß), leicht weicher abgestimmt
   ========================================================================== */

@font-face {
  font-family: "Nunito";
  src: url("/demo/klarhaus/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  src: url("/demo/klarhaus/assets/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Open Sans";
  src: url("/demo/klarhaus/assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  src: url("/demo/klarhaus/assets/fonts/open-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #2e4b78;
  --navy-dark: #22395e;
  --navy-soft: #e9eff7;
  --green: #7cb84f;
  --green-dark: #5f9a36;
  --green-soft: #eef6e7;
  --ink: #1f2d40;
  --muted: #5b6878;
  --line: #dde5ee;
  --bg: #ffffff;
  --bg-tint: #f5f8f3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(34, 57, 94, 0.08);
  --shadow-lg: 0 20px 50px rgba(34, 57, 94, 0.16);
  --font-head: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--navy-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0 0 1em; }
a { color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
small { font-size: .85em; color: var(--muted); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(124, 184, 79, .35); }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: .55em 1.2em; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(34,57,94,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; }
@media (max-width: 400px) { .brand-logo { height: 38px; } }
.footer-logo { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: var(--navy); letter-spacing: -.01em; }
.brand-tag { font-family: var(--font-body); font-weight: 700; font-size: .72rem; color: var(--green-dark); letter-spacing: .02em; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav .btn { white-space: nowrap; }
.brand-text { white-space: nowrap; }
.site-nav a:not(.btn) {
  display: block; padding: .5em .8em; border-radius: 8px;
  font-family: var(--font-head); font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.site-nav a:not(.btn):hover { color: var(--green-dark); background: var(--green-soft); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { content: ""; left: 0; top: -7px; }
.nav-toggle-bar::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s ease, opacity .2s ease, visibility .2s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .site-nav a:not(.btn) { padding: .8em .6em; font-size: 1.1rem; }
  .site-nav .btn { margin-top: 10px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(124,184,79,.55), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(124,184,79,.35), transparent 60%),
    linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 55%, #3b6a6a 100%);
}
.hero-bg::after {
  /* Diagonale Linie wie auf der Visitenkarte */
  content: ""; position: absolute; top: -10%; bottom: -10%; right: 38%;
  width: 10px; background: var(--green); opacity: .5; transform: skewX(-12deg);
  box-shadow: 22px 0 0 0 rgba(255,255,255,.08);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center;
  padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(90px, 12vw, 150px);
}
.hero h1 { color: #fff; }
.hero .accent { color: #b9e39a; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.25rem); color: rgba(255,255,255,.9); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-badges li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: rgba(255,255,255,.92); }
.hero-badges .icon { color: #b9e39a; }

.eyebrow {
  display: inline-block; margin: 0 0 .9em; padding: .3em .9em; border-radius: 999px;
  font-family: var(--font-head); font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--green-soft); color: var(--green-dark);
}
.eyebrow-light { background: rgba(255,255,255,.14); color: #d6f0c3; }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; fill: var(--bg); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-bg::after { right: 8%; opacity: .35; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-tint { background: var(--bg-tint); }
.section-navy { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }
.section-head-light h2 { color: #fff; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-visual { position: relative; }
.about-quote {
  position: relative; margin: -60px 0 0 auto; max-width: 320px;
  background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--green);
}
.about-quote p { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--navy-dark); font-size: 1.02rem; }
.about-copy p:not(.eyebrow) { color: #334255; }
.signature { margin-top: 1.4em; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--navy) !important; }
.signature span { display: block; font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--green-dark); }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-quote { margin: -40px auto 0; }
}

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  background: #fff; border-radius: var(--radius); padding: 26px 22px 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfe6bd; }
.service h3 { font-size: 1.1rem; }
.service p { color: var(--muted); font-size: .97rem; margin: 0; }
.service-illu {
  height: 130px; margin: -8px -6px 18px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-soft), #f6f9fc);
}
.service:nth-child(even) .service-illu { background: linear-gradient(160deg, var(--green-soft), #f8fbf5); }
.service-illu.winter { background: linear-gradient(170deg, #d7e6f6, #eef4fb) !important; }
.service-illu svg { width: 100%; height: 100%; display: block; }
.service:hover .service-illu svg { transform: scale(1.04); }
.service-illu svg { transition: transform .35s ease; }

@media (max-width: 1060px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.partner-note {
  margin-top: 32px; display: flex; gap: 20px; align-items: flex-start;
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow-lg);
}
.partner-note h3 { color: #fff; }
.partner-note p { margin: 0; color: rgba(255,255,255,.88); }
.partner-icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--green); }
.partner-icon .icon { width: 30px; height: 30px; }
@media (max-width: 560px) { .partner-note { flex-direction: column; } }

/* ---------- Vorteile ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.benefit { padding: 8px 4px; }
.benefit p { color: var(--muted); margin: 0; }
.benefit-icon {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px;
  border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 10px 22px rgba(124,184,79,.35);
}
.benefit-icon .icon { width: 28px; height: 28px; }
.benefit:nth-child(3n+2) .benefit-icon { background: var(--navy); box-shadow: 0 10px 22px rgba(46,75,120,.3); }
@media (max-width: 900px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 28px 22px 22px;
}
.step h3 { color: #fff; }
.step p { margin: 0; color: rgba(255,255,255,.82); font-size: .97rem; }
.step-no {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 50%;
  background: var(--green); font-family: var(--font-head); font-weight: 900; font-size: 1.3rem;
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-family: var(--font-head); font-weight: 800; font-size: 1.08rem; color: var(--navy-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-dark); font-size: 1.3rem; line-height: 1; transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info > p:not(.eyebrow) { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list small { display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.contact-list a { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--navy-dark); word-break: break-word; }
.contact-list a:hover { color: var(--green-dark); }
.contact-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: #fff; color: var(--green-dark); box-shadow: var(--shadow); flex: none; }

.contact-form { background: #fff; border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.contact-form h3 { font-size: 1.4rem; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row.wide-first { grid-template-columns: 1.5fr 1fr; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--navy-dark); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75em .9em; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfd;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(124,184,79,.18); background: #fff; }
.field .invalid, .check.invalid span { border-color: #d9534f; color: inherit; }
.check.invalid span { color: #b3322e; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 4px 0 18px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-dark); flex: none; }
.form-hint { font-size: .85rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.form-hint.error { color: #b3322e; font-weight: 600; }
.form-hint.ok { color: var(--green-dark); font-weight: 600; }

@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field-row, .field-row.wide-first { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.8); padding: 56px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #b9e39a; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand .brand-name { color: #fff; margin: 0; }
.footer-tag { margin: 0; color: #b9e39a; font-weight: 700; font-size: .85rem; }
.footer-title { font-family: var(--font-head); font-weight: 800; color: #fff; margin-bottom: .6em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom { flex-wrap: wrap; align-items: center; }
.credit { color: rgba(255, 255, 255, .6); }
.site-footer .credit a { color: #b9e39a; font-weight: 600; }
.site-footer .credit a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Floating Call Button (mobil) ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: none; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); color: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.25);
}
.fab .icon { width: 26px; height: 26px; }
@media (max-width: 760px) { .fab { display: grid; } }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(48px, 7vw, 90px) 0; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal p, .legal li { color: #334255; }
.legal .todo { background: #fff6d6; border: 1px dashed #d9b64a; padding: 0 .3em; border-radius: 4px; }

/* ==========================================================================
   Illustrationen & Animationen
   ========================================================================== */
.twinkle, .floaty, .rise, .mist, .fly, .snow, .glow { transform-box: fill-box; transform-origin: center; }
.floaty { animation: floaty 5s ease-in-out infinite; }
.rise { animation: rise 6s ease-in infinite; }
.mist { animation: mist 3s ease-out infinite; transform-origin: right center; }
.fly { animation: fly 1.6s ease-in-out infinite alternate; }
.snow { animation: snow 3.5s linear infinite; }
.glow { animation: glow 2s ease-in-out infinite; }
.d1 { animation-delay: .7s; } .d2 { animation-delay: 1.4s; } .d3 { animation-delay: 2.1s; }

@keyframes twinkle { 0%, 100% { transform: scale(.55) rotate(0); opacity: .45; } 50% { transform: scale(1.1) rotate(25deg); opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-90px) scale(1.05); opacity: 0; } }
@keyframes mist { 0% { transform: scale(.4); opacity: 0; } 15% { opacity: .9; } 60% { transform: scale(1.2) translateX(-10px); opacity: 0; } 100% { opacity: 0; } }
@keyframes fly { 0% { transform: translate(0, 0); } 50% { transform: translate(14px, -10px); } 100% { transform: translate(-6px, -18px); } }
@keyframes snow { 0% { transform: translateY(-20px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(60px); opacity: 0; } }
@keyframes glow { 50% { opacity: .35; } }

/* Hero-Grafik */
.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 520px; }
.hero-illu { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .15)); }
.hero-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: .55em 1em; border-radius: 999px; background: #fff; color: var(--navy-dark);
  font-family: var(--font-head); font-weight: 800; font-size: .95rem; box-shadow: var(--shadow-lg);
  animation: floaty 5s ease-in-out infinite;
}
.hero-chip .icon { color: var(--green-dark); }
.hero-chip-1 { top: 8%; left: -2%; }
.hero-chip-2 { bottom: -1%; right: 6%; animation-delay: 1.5s; }
.hero-bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bubble {
  position: absolute; bottom: -80px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45);
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .06) 45%, rgba(185, 227, 154, .12) 100%);
  animation: bubble-up var(--d, 14s) linear infinite var(--delay, 0s);
}
@keyframes bubble-up {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(var(--sway, 30px), -55vh); }
  100% { transform: translate(0, -115vh); opacity: .2; }
}

@media (max-width: 900px) {
  .hero-visual { max-width: 400px; margin-top: 8px; }
  .hero-chip { font-size: .82rem; }
}

/* Zahlen */
.stats-wrap { position: relative; z-index: 3; margin-top: -58px; }
.stats {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stats li { padding: 22px 18px; text-align: center; border-right: 1px solid var(--line); }
.stats li:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--navy); line-height: 1.1; }
.stats li:nth-child(odd) strong { color: var(--green-dark); }
.stats li > span { font-size: .9rem; color: var(--muted); font-weight: 600; }
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(2) { border-right: 0; }
  .stats li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Über mich */
.about-illu { width: 100%; max-width: 440px; margin: 0 auto; display: block; }
.about-quote { margin-top: -30px; }

/* Laufband */
.ticker { background: var(--green); color: #fff; overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg); margin: -6px -10px 0; box-shadow: 0 10px 30px rgba(95, 154, 54, .25); }
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; font-family: var(--font-head); font-weight: 900; font-size: 1.25rem; white-space: nowrap; }
.ticker span::after { content: "✦"; color: var(--navy); font-size: 1.1rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Vorher / Nachher */
.ba {
  position: relative; max-width: 960px; margin: 0 auto; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid #fff; aspect-ratio: 800 / 450; user-select: none; touch-action: pan-y;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ba-dirty { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .25); pointer-events: none; }
.ba-handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); border: 4px solid #fff;
}
.ba-label {
  position: absolute; top: 16px; padding: .35em .9em; border-radius: 999px; pointer-events: none;
  font-family: var(--font-head); font-weight: 900; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
}
.ba-label-before { left: 16px; background: rgba(60, 50, 30, .75); color: #fff; }
.ba-label-after { right: 16px; background: var(--green); color: #fff; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible + * { outline: none; }
.ba:focus-within { outline: 3px solid var(--green); outline-offset: 4px; }

/* Ablauf-Icons */
.step { overflow: hidden; }
.step-icon { position: absolute; right: -8px; top: -8px; width: 92px; height: 92px; color: #fff; opacity: .09; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.faq-aside > p:not(.eyebrow) { color: var(--muted); }
.faq-illu { width: 100%; max-width: 300px; margin-top: 16px; }
@media (max-width: 860px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-illu { max-width: 220px; }
}

/* Kontakt */
.contact-illu { width: 100%; max-width: 320px; margin-top: 28px; }

/* Stadt-Skyline */
.city { position: relative; background: linear-gradient(180deg, #fff 0%, var(--navy-soft) 100%); padding-top: clamp(56px, 8vw, 90px); text-align: center; overflow: hidden; }
.city-copy { position: relative; z-index: 1; }
.city-copy p { color: var(--muted); font-size: 1.1rem; }
.skyline { display: block; width: 100%; height: max(150px, calc(100vw * 240 / 1440)); margin-top: -10px; }
.site-footer { margin-top: -1px; }

@media (prefers-reduced-motion: reduce) {
  .twinkle, .floaty, .rise, .mist, .fly, .snow, .glow, .hero-chip, .hero-bubble, .ticker-track { animation: none !important; }
  .hero-bubble { display: none; }
}
main { overflow-x: clip; }
@media (max-width: 560px) { .ba { border-width: 4px; border-radius: 16px; } .ba-label { font-size: .7rem; top: 10px; } .ba-label-before { left: 10px; } .ba-label-after { right: 10px; } .ba-handle span { width: 42px; height: 42px; } }

/* ProjectEdge demó-sáv (app/demo/demo-bar.css másolata — statikus oldal, a Next nem tölti be) */
/* ════ Mintaprojekt-sáv + demó értesítés — minden /demo oldalon ════ */

:root {
  /* a demó oldalak saját sticky fejléce ez alá tapad ki */
  --demo-bar-h: 44px;
}

.demo-bar {
  background: #11171c;
  border-bottom: 1px solid rgba(245, 245, 245, 0.12);
  color: #f5f5f5;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  height: var(--demo-bar-h);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  z-index: 300;
}

.demo-bar-inner {
  align-items: center;
  display: flex;
  gap: 12px;
  height: 100%;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 clamp(14px, 4vw, 32px);
}

.demo-bar-tag {
  background: #ff5722;
  border-radius: 999px;
  color: #fff;
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.demo-bar-text {
  color: rgba(245, 245, 245, 0.7);
  flex: 1 1 auto;
  font-size: 13px;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-bar-text.short {
  display: none;
}

.demo-bar-text strong {
  color: #f5f5f5;
  font-weight: 600;
}

.demo-bar-link {
  align-items: center;
  border: 1px solid rgba(245, 245, 245, 0.28);
  border-radius: 999px;
  color: #f5f5f5;
  display: inline-flex;
  flex: none;
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
  padding: 6px 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.demo-bar-link:hover {
  background: rgba(245, 245, 245, 0.1);
  border-color: rgba(245, 245, 245, 0.5);
}

.demo-bar-arrow {
  border-bottom: 1.6px solid currentColor;
  border-left: 1.6px solid currentColor;
  display: block;
  height: 7px;
  transform: rotate(45deg);
  width: 7px;
}

.demo-bar-link-short {
  display: none;
}

@media (max-width: 720px) {
  :root {
    --demo-bar-h: 40px;
  }

  .demo-bar-tag,
  .demo-bar-text:not(.short),
  .demo-bar-link-long {
    display: none;
  }

  .demo-bar-text.short {
    display: block;
  }

  .demo-bar-link-short {
    display: block;
  }
}

/* ── demó értesítés (toast) ── */

.demo-notice {
  bottom: 22px;
  display: flex;
  justify-content: center;
  left: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  z-index: 400;
}

.demo-notice-inner {
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(17, 23, 28, 0.95);
  border: 1px solid rgba(245, 245, 245, 0.18);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  color: rgba(245, 245, 245, 0.82);
  display: flex;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  gap: 12px;
  line-height: 1.5;
  margin: 0 16px;
  max-width: 520px;
  opacity: 0;
  padding: 13px 17px;
  transform: translateY(14px);
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-notice.is-on .demo-notice-inner {
  opacity: 1;
  transform: none;
}

.demo-notice-tag {
  background: #ff5722;
  border-radius: 999px;
  color: #fff;
  flex: none;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 9px;
  text-transform: uppercase;
}

.demo-notice p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .demo-notice-inner {
    transition: opacity 0.2s ease;
  }
}

.demo-bar a{text-decoration:none}
.demo-bar p{line-height:normal}
.site-header{top:var(--demo-bar-h)}
html{scroll-padding-top:calc(var(--header-h) + var(--demo-bar-h) + 12px)}

/* Marke */
.brand-mark{width:46px;height:46px;display:block;flex:none}
.footer-brand{display:flex;align-items:center;gap:12px}
.footer-brand .brand-mark{width:52px;height:52px}
.footer-brand .brand-name{color:#fff}
.footer-brand .brand-tag{color:#b9e39a}
