/* aular Startseite für Google-Ads-Besucher
   Zweigeteilter Hero (Dunkelblau + Projektfoto), danach ruhige weiße Abschnitte. Farben und Schriften von aular.de. */

:root {
  --bg: #ffffff;
  --surface: #f2f3f5;
  --line: #dcdee4;
  --ink: #1c1937;
  --muted: #4e5163;
  --accent: #f18700;
  --accent-hover: #ffa126;
  --inverse-muted: #c9c8d6;

  --font-display: 'Open Sans', Arial, sans-serif;
  --font-text: 'Roboto', system-ui, sans-serif;

  --step-small: 0.9375rem;
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  --step-h3: clamp(1.1875rem, 1.1rem + 0.3vw, 1.375rem);
  --step-h2: clamp(1.875rem, 1.3rem + 2vw, 3rem);
  --step-h1: clamp(2.25rem, 1rem + 5vw, 4.25rem);

  --margin: clamp(1rem, 4vw, 3rem);
  --max: 84rem;
  --section: clamp(4rem, 8vw, 7.5rem);
  --top-h: 4.5rem;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, figure, ul, ol, blockquote, address { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
address { font-style: normal; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:target { scroll-margin-top: calc(var(--top-h) + 1rem); }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem; background: var(--accent); color: var(--ink); font-weight: 700; text-decoration: none; border-radius: var(--radius); }
.skip:focus { top: 1rem; }

.h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--step-h2); line-height: 1.1; letter-spacing: -0.025em; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--step-h3); line-height: 1.3; letter-spacing: -0.01em; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-decoration-color 180ms ease; }
.link:hover { text-decoration-color: var(--accent); }

/* ---------- Buttons ---------- */
.button { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); color: var(--ink); font-family: var(--font-text); font-size: 1.0625rem; font-weight: 700; line-height: 1.2; text-decoration: none; border-radius: var(--radius); transition: background-color 180ms ease, transform 140ms ease; }
.button:hover { background: var(--accent-hover); }
.button:active { transform: scale(0.98); }
.button .arrow { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 240ms var(--ease); }
.button:hover .arrow { transform: translateX(3px); }
.button-small { min-height: 2.75rem; padding: 0 1.1rem; font-size: 0.9375rem; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; }
.top-inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); height: var(--top-h); }
.top-logo { flex: none; display: block; }
.top-logo img { width: auto; height: 2.5rem; }
.top-act { margin-left: auto; display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); }
/* ---------- Hero ---------- */
.hero { display: grid; background: var(--ink); color: #fff; }
.hero-text { padding: clamp(2.25rem, 6vw, 4.5rem) var(--margin) clamp(2rem, 5vw, 3.5rem); display: flex; flex-direction: column; align-items: flex-start; }
.hero-from { margin-bottom: 0.9rem; font-size: var(--step-lead); font-weight: 500; color: var(--inverse-muted); }
.hero-from strong { color: var(--accent); font-family: var(--font-display); font-weight: 800; }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-h1); line-height: 1.04; letter-spacing: -0.03em; }
.hero-title span { display: block; }
.hero-lead { margin-top: 1.25rem; max-width: 34em; font-size: var(--step-lead); line-height: 1.5; color: #fff; }
.hero-act { margin-top: 2rem; }
.hero-points { margin-top: 1.25rem; display: grid; gap: 0.5rem; }
.hero-points li { position: relative; padding-left: 1.6rem; font-weight: 500; }
.hero-points li::before { content: ''; position: absolute; left: 0.15rem; top: 0.45em; width: 0.8rem; height: 0.45rem; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.hero-region { margin-top: clamp(1.75rem, 4vw, 2.75rem); padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.2); } /* taste-skill-ignore: Trennlinien wie im Mockup bzw. Akkordeon-Liste */
.hero-region-label { font-size: var(--step-small); color: var(--inverse-muted); }
.hero-region-names { margin-top: 0.15rem; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.hero-visual { position: relative; padding: 0 var(--margin) clamp(3rem, 8vw, 4rem); }
.hv-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: #2a2748; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.55); } /* taste-skill-ignore: Hochglanz-Bühne im Hero */
.hv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hv-photo figcaption { position: absolute; right: 0.85rem; bottom: 0.85rem; padding: 0.3rem 0.6rem; background: rgb(28 25 55 / 0.85); color: #fff; font-size: 0.8125rem; border-radius: var(--radius); }
.hv-card { position: absolute; z-index: 1; display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem 0.95rem; background: #fff; color: var(--ink); border-radius: 12px; box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.45); line-height: 1.2; } /* taste-skill-ignore: schwebende Cards im Hero */
.hv-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.hv-big { display: block; margin-top: 0.2rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.hv-sub { display: block; margin-top: 0.15rem; font-size: 0.8125rem; color: var(--muted); }
.hv-price { display: block; left: calc(var(--margin) - 0.5rem); top: -1.25rem; min-width: 11rem; }
.hv-bar { display: block; height: 4px; margin-top: 0.6rem; border-radius: 2px; background: var(--surface); overflow: hidden; }
.hv-bar i { display: block; height: 100%; width: 72%; background: var(--accent); border-radius: 2px; }
.hv-rating { right: calc(var(--margin) - 0.5rem); bottom: 1rem; }
.hv-rating strong, .hv-check strong { font-family: var(--font-display); font-weight: 800; }
.hv-g { width: 1.75rem; height: 1.75rem; flex: none; }
.hv-stars { display: inline-flex; gap: 1px; vertical-align: -1px; }
.hv-stars svg { width: 0.85rem; height: 0.85rem; fill: #fbbc05; }
.hv-check { display: none; left: calc(var(--margin) + 1rem); bottom: 1.25rem; }
.hv-tick { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: #1fa64a; }
.hv-tick svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* Handy: Bewertung steht direkt darunter im Vertrauensstreifen, daher hier Netzanmeldung statt Google-Card */
@media (max-width: 39.99em) { .hv-rating { display: none; } .hv-check { display: flex; left: auto; right: calc(var(--margin) - 0.5rem); bottom: 1.25rem; } .hv-photo figcaption { right: auto; left: 0.85rem; } }
@media (min-width: 40em) { .hv-check { display: flex; } .hv-rating { bottom: auto; top: 38%; right: calc(var(--margin) - 1rem); } }

@media (min-width: 60em) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(44rem, calc(100svh - var(--top-h))); }
  .hero-text { justify-content: center; padding-left: max(var(--margin), calc((100vw - var(--max)) / 2 + var(--margin))); padding-right: clamp(2rem, 4vw, 4rem); }
  .hero-title { font-size: min(var(--step-h1), 3.85vw); }
  .hero-title span { white-space: nowrap; }
  .hero-visual { display: flex; align-items: center; padding: clamp(3rem, 5vw, 4.5rem) max(var(--margin), calc((100vw - var(--max)) / 2 + var(--margin))) clamp(3rem, 5vw, 4.5rem) clamp(1rem, 3vw, 3rem); }
  .hv-photo { flex: 1; aspect-ratio: 1 / 1; max-height: 34rem; }
  .hv-price { left: clamp(-1rem, -1vw, 0rem); top: 18%; }
  .hv-rating { top: 46%; right: max(1rem, calc((100vw - var(--max)) / 2 + var(--margin) - 1.5rem)); }
  .hv-check { left: clamp(0rem, 2vw, 2rem); bottom: 16%; }
  .hv-photo figcaption { right: 1.1rem; bottom: 1.1rem; }
}

/* ---------- Vertrauen ---------- */
.trust { border-bottom: 1px solid var(--line); } /* taste-skill-ignore: Trennlinien wie im Mockup bzw. Akkordeon-Liste */
.trust-inner { display: flex; flex-direction: column; gap: 1.25rem; padding-block: 1.5rem; }
.rating { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; align-self: flex-start; border-radius: var(--radius); }
.rating-g { width: 2rem; height: 2rem; flex: none; }
.rating-text { display: flex; flex-direction: column; line-height: 1.3; }
.rating-score { display: flex; align-items: center; gap: 0.5rem; font-size: 1.125rem; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 0.95rem; height: 0.95rem; fill: #e7a400; }
.rating-meta { white-space: nowrap; font-size: 0.875rem; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.2em; }
.rating:hover .rating-meta { text-decoration-color: var(--accent); }
.facts { display: grid; gap: 0.6rem; }
.facts li { font-weight: 500; padding-left: 1.6rem; position: relative; }
.facts li::before { content: ''; position: absolute; left: 0.15rem; top: 0.5em; width: 0.8rem; height: 0.45rem; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
@media (min-width: 48em) {
  .facts { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 2rem; }
}
@media (min-width: 76em) {
  .trust-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.75rem; }
  .facts { display: flex; }
  .facts li { white-space: nowrap; padding: 0 clamp(1rem, 1.6vw, 2rem); border-left: 1px solid var(--line); } /* taste-skill-ignore: Trennlinien wie im Mockup bzw. Akkordeon-Liste */
  .facts li:last-child { padding-right: 0; }
  .facts li::before { display: none; }
}

/* ---------- Über aular ---------- */
.about { display: grid; gap: clamp(1.75rem, 4vw, 4rem); padding-block: var(--section); align-items: center; }
.about-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 30% 60%; border-radius: var(--radius); }
.about-lead { margin-top: 1rem; font-size: var(--step-lead); line-height: 1.45; }
.about-text > p:last-of-type { margin-top: 1rem; color: var(--muted); max-width: 38em; }
.about-cta { margin-top: 1.75rem; }
@media (min-width: 60em) { .about { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

/* ---------- Referenzen ---------- */
.refs { padding-bottom: var(--section); }
.refs-head { display: grid; gap: 1rem; }
.refs-lead { color: var(--muted); font-size: var(--step-lead); line-height: 1.5; max-width: 34em; }
.refs-grid { margin-top: clamp(1.75rem, 3.5vw, 3rem); }
.ref { position: relative; overflow: hidden; border-radius: 6px; background: var(--surface); }
.ref img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 700ms var(--ease); }
.ref figcaption { position: absolute; left: 0.75rem; bottom: 0.75rem; display: grid; gap: 0.1rem; padding: 0.6rem 0.85rem 0.65rem; max-width: calc(100% - 1.5rem); background: rgb(28 25 55 / 0.9); color: #fff; border-radius: 4px; line-height: 1.25; }
.ref-type { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.ref figcaption strong { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 800; }
.ref-kwp { font-size: 0.9375rem; color: var(--inverse-muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .ref:hover img { transform: scale(1.04); } }
.refs-hint { display: none; }

/* Handy: wischbare Reihe, das nächste Bild schaut an */
@media (max-width: 47.99em) {
  .refs-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 0.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin); margin-inline: calc(var(--margin) * -1); padding-inline: var(--margin); scrollbar-width: none; overscroll-behavior-x: contain; }
  .refs-grid::-webkit-scrollbar { display: none; }
  .ref { scroll-snap-align: start; }
  .refs-hint { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.85rem; font-size: var(--step-small); color: var(--muted); }
  .refs-hint .arrow { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
}
/* Tablet: zwei Spalten, die großen Bilder über die volle Breite */
@media (min-width: 48em) {
  .refs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(0.75rem, 1.5vw, 1.25rem); }
  .ref-big, .ref-wide { grid-column: span 2; }
  .ref-big img, .ref-wide img { aspect-ratio: 2 / 1; }
}
/* Desktop: Mosaik aus sechs Spalten */
@media (min-width: 64em) {
  .refs-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: clamp(2rem, 5vw, 5rem); }
  .refs-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(12rem, 17vw, 16.5rem); }
  .ref { grid-column: span 2; }
  .ref img, .ref-big img, .ref-wide img { aspect-ratio: auto; }
  .ref-big { grid-column: span 4; grid-row: span 2; }
  .ref-wide { grid-column: span 4; }
  .ref-big figcaption { left: 1.25rem; bottom: 1.25rem; padding: 0.85rem 1.1rem 0.9rem; }
  .ref-big figcaption strong { font-size: 1.375rem; }
}

.voices { margin-top: clamp(3rem, 6vw, 5rem); }
.voices-list { margin-top: 1.5rem; display: grid; gap: 1.5rem clamp(1.5rem, 3vw, 3rem); }
.voice { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.voice p { font-size: 1.0625rem; line-height: 1.5; }
.voice footer { margin-top: 0.6rem; font-size: var(--step-small); color: var(--muted); }
.voices-src { margin-top: 1.75rem; font-size: var(--step-small); }
@media (min-width: 40em) { .voices-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .voices-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Ablauf ---------- */
.steps { background: var(--surface); padding-block: var(--section); }
.steps-list { margin-top: clamp(1.75rem, 3.5vw, 3rem); display: grid; gap: 1.75rem; counter-reset: step; }
.steps-list li { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-content: start; padding: 0.75rem 0.75rem clamp(1.5rem, 2.5vw, 2rem); background: #fff; border-radius: 10px; }
.step-art { grid-column: 1 / -1; grid-row: 1; display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; margin-bottom: 1.5rem; background: #f6f6f8; border-radius: 6px; }
.steps-list li h3 { grid-column: 2; grid-row: 2; align-self: center; padding-right: 0.75rem; }
.steps-list li p { grid-column: 2; grid-row: 3; padding-right: 0.75rem; }
.step-art text { font-family: var(--font-display); }
.step-art .a-cursor { opacity: 0; }
.steps-list li::before { content: counter(step); grid-column: 1; grid-row: 2 / span 2; padding-left: 0.75rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.75rem, 2rem + 1.6vw, 3.5rem); line-height: 0.9; letter-spacing: -0.03em; color: #a35300; }
.steps-list p { margin-top: 0.4rem; color: var(--muted); max-width: 32em; }
.steps-cta { margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 52em) {
  .steps-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
}

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section); }
.faq-list { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line); max-width: 56rem; } /* taste-skill-ignore: Trennlinien wie im Mockup bzw. Akkordeon-Liste */
.faq-item { border-bottom: 1px solid var(--line); } /* taste-skill-ignore: Trennlinien wie im Mockup bzw. Akkordeon-Liste */
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; flex: none; width: 0.75rem; height: 0.75rem; margin-right: 0.35rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-25%) rotate(45deg); transition: transform 240ms var(--ease); }
.faq-item[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.faq-item summary:hover .faq-q { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.faq-q { font-family: var(--font-display); font-weight: 700; font-size: var(--step-h3); line-height: 1.35; }
.faq-a { padding-bottom: 1.5rem; color: var(--muted); max-width: 68ch; }
.faq-a > * + * { margin-top: 0.75rem; }
.faq-a ul { padding-left: 1.2rem; }
.faq-a li + li { margin-top: 0.5rem; }
.faq-a strong { color: var(--ink); font-weight: 500; }

/* ---------- Abschluss ---------- */
.close { background: var(--ink); color: #fff; }
.close-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.close-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-h2); line-height: 1.1; letter-spacing: -0.025em; }
@media (min-width: 52em) { .close-inner { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ---------- Footer ---------- */
.foot-inner { display: grid; gap: 1.25rem; padding-block: 2.5rem; font-size: var(--step-small); color: var(--muted); }
.foot-logo { width: auto; height: 2.75rem; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.foot-legal a, .foot-contact a { display: inline-block; padding-block: 0.35rem; }
@media (min-width: 52em) { .foot-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 2.5rem; } }

/* ---------- Mobile Leiste „Preis berechnen“ ---------- */
.dock { display: none; }
@media (max-width: 59.99em) {
  .dock { display: block; position: fixed; inset: auto 0 0; z-index: 30; padding: 0.75rem var(--margin) calc(0.75rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 320ms var(--ease), visibility 0s linear 320ms; visibility: hidden; } /* taste-skill-ignore: Trennlinien wie im Mockup bzw. Akkordeon-Liste */
  .dock.is-shown { transform: none; visibility: visible; transition: transform 320ms var(--ease); }
  .dock .button { width: 100%; }
  .dock-on .top .button { display: none; }
  .foot { padding-bottom: 5.5rem; }
}

/* ---------- Beratungs-Widget unten rechts ---------- */
.chat { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem; transition: bottom 320ms var(--ease); pointer-events: none; }
.chat > * { pointer-events: auto; }
.chat-row { display: flex; align-items: center; gap: 0.6rem; }
.chat-tag { position: relative; padding: 0.55rem 0.85rem; border: 0; border-radius: 10px; background: #fff; color: var(--ink); font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; line-height: 1.2; white-space: nowrap; cursor: pointer; box-shadow: 0 6px 20px rgb(28 25 55 / 0.2); transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s; } /* taste-skill-ignore: schwebendes Widget */
.chat-tag::after { content: ''; position: absolute; right: -5px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.chat-tag:hover { color: #a35300; }
.chat-tag { display: inline-flex; align-items: center; gap: 0.5rem; }
.chat-live { position: relative; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #1fa64a; }
@media (prefers-reduced-motion: no-preference) {
  .chat-live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #1fa64a; animation: k-live 1.8s ease-out infinite; }
}
@keyframes k-live { from { opacity: 0.6; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
.chat.is-open .chat-tag { opacity: 0; visibility: hidden; transform: translateX(8px); transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms; }
.chat-avatar { flex: none; width: 4rem; height: 4rem; padding: 0; border: 0; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 6px 20px rgb(28 25 55 / 0.25); transition: transform 200ms var(--ease); } /* taste-skill-ignore: schwebendes Widget */
.chat-avatar img { width: 100%; height: 100%; border-radius: 50%; }
.chat-avatar:hover { transform: scale(1.06); }
.chat-bubble { position: relative; width: min(21rem, calc(100vw - 2rem)); max-height: calc(100dvh - 7rem); overflow-y: auto; padding: 1.1rem 1.1rem 1.2rem; background: #fff; color: var(--ink); border-radius: 14px 14px 2px 14px; box-shadow: 0 10px 32px rgb(28 25 55 / 0.22); opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.97); transform-origin: bottom right; transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s linear 260ms; } /* taste-skill-ignore: schwebendes Widget */
.chat:not(.is-open) .chat-bubble { pointer-events: none; }
.chat.is-open .chat-bubble { opacity: 1; visibility: visible; transform: none; transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
.chat-text { padding-right: 2rem; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.35; }
.chat-sub { margin-top: 0.3rem; font-size: 0.875rem; color: var(--muted); }
.chat-form { margin-top: 0.9rem; display: none; gap: 0.6rem; }
.chat-start { width: 100%; margin-top: 0.9rem; min-height: 2.75rem; font-size: 0.9375rem; }
.chat.is-expanded .chat-form { display: grid; }
.chat.is-expanded .chat-start { display: none; }
.chat-f { display: grid; gap: 0.2rem; font-size: 0.8125rem; font-weight: 500; }
.chat-f input { width: 100%; min-height: 2.75rem; padding: 0 0.75rem; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: var(--surface); border: 1.5px solid transparent; border-radius: var(--radius); }
.chat-f input:focus { outline: none; border-color: var(--accent); background: #fff; }
.chat-f input.is-invalid { border-color: #c4271b; }
.chat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: verstecktes Bot-Feld */
.chat-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
.chat-consent input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.1rem; accent-color: var(--accent); }
.chat-consent.is-invalid span { color: #c4271b; }
.chat-error { font-size: 0.8125rem; color: #c4271b; }
.chat-error a { color: inherit; }
.chat-submit { width: 100%; margin-top: 0.2rem; }
.chat-close { position: absolute; top: 0.45rem; right: 0.45rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; background: none; border-radius: 50%; color: var(--muted); cursor: pointer; }
.chat-close:hover { background: var(--surface); color: var(--ink); }
.chat-close svg { width: 0.9rem; height: 0.9rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 59.99em) {
  .dock-on .chat { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .chat-avatar { width: 3.5rem; height: 3.5rem; }
}

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .hero-text > * { animation: rise 700ms var(--ease) both; }
  .hero-text > :nth-child(2) { animation-delay: 80ms; }
  .hero-text > :nth-child(3) { animation-delay: 160ms; }
  .hero-text > :nth-child(n+4) { animation-delay: 240ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
/* Hero: Foto und Cards kommen einmal herein, das Schweben nur ohne reduzierte Bewegung */
.hv-photo { animation: k-photo 900ms var(--ease) both; }
.hv-card { animation: k-card 700ms var(--ease) 450ms both; }
.hv-rating { animation-delay: 650ms; }
.hv-check { animation-delay: 850ms; }
.hv-bar i { animation: k-bar 1.4s var(--ease) 900ms both; transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .hv-card { animation: k-card 700ms var(--ease) both, k-float 6s ease-in-out infinite; animation-delay: 450ms, 1.2s; }
  .hv-rating { animation-delay: 650ms, 2.2s; animation-duration: 700ms, 7s; }
  .hv-check { animation-delay: 850ms, 1.6s; animation-duration: 700ms, 6.5s; }
}
@keyframes k-photo { from { opacity: 0; transform: scale(0.97); } }
@keyframes k-card { from { opacity: 0; transform: translateY(18px) scale(0.94); } }
@keyframes k-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes k-bar { from { transform: scaleX(0); } }

/* Ablauf als kleine Geschichte: konfigurieren, Angebot, Anlage auf dem Dach liefert Strom.
   Ohne JavaScript oder mit reduzierter Bewegung steht jeweils das fertige Bild. */
.step-art [class^="a-"] { transform-box: fill-box; }
.js .a-cursor { animation: k-cursor 2.6s var(--ease) both; }
.js .a-check { transform-origin: center; animation: k-pop 360ms var(--ease) var(--d) both; }
.js .a-bar { transform-origin: left; animation: k-grow 1.5s var(--ease) 0.75s both; }
.js .a-doc { animation: k-up 600ms var(--ease) both; }
.js .a-line { transform-origin: left; animation: k-grow 380ms var(--ease) var(--d) both; }
.js .a-badge { transform-origin: center; animation: k-pop 450ms var(--ease) 1.5s both; }
.js .a-panel { animation: k-drop 520ms var(--ease) var(--d) both; }
.js .a-sun { animation: k-rise 900ms var(--ease) 1s both; }
.js .a-glow { animation: k-fade 600ms ease 1.7s both; }
.js .a-flow, .js .a-bolt { transform-origin: center; animation: k-fade 300ms ease 1.9s both; }
/* Dauerbewegung nur, wenn niemand reduzierte Bewegung eingestellt hat */
@media (prefers-reduced-motion: no-preference) {
  .js .a-rays { transform-origin: center; animation: k-spin 24s linear 1s infinite; }
  .js .a-flow { animation: k-fade 300ms ease 1.9s both, k-flow 700ms linear 1.9s infinite; }
  .js .a-bolt { animation: k-fade 300ms ease 1.9s both, k-pulse 1.4s ease-in-out 2.2s infinite; }
}
.js [data-step]:not(.is-play) .step-art * { animation-play-state: paused; }
@keyframes k-cursor {
  0%, 8% { opacity: 0; transform: translate(250px, 190px); }
  14% { opacity: 1; }
  26%, 31% { transform: translate(63px, 67px); }
  46%, 52% { transform: translate(63px, 99px); }
  67%, 73% { transform: translate(63px, 131px); }
  90% { opacity: 1; transform: translate(222px, 142px); }
  100% { opacity: 0; transform: translate(222px, 142px); }
}
@keyframes k-pop { from { opacity: 0; transform: scale(0.3); } 60% { opacity: 1; transform: scale(1.12); } }
@keyframes k-grow { from { transform: scaleX(0); } }
@keyframes k-up { from { opacity: 0; transform: translateY(26px); } }
@keyframes k-drop { from { opacity: 0; transform: translateY(-34px); } 70% { opacity: 1; transform: translateY(2px); } }
@keyframes k-rise { from { opacity: 0; transform: translateY(34px); } }
@keyframes k-spin { to { transform: rotate(360deg); } }
@keyframes k-fade { from { opacity: 0; } }
@keyframes k-flow { to { stroke-dashoffset: -18; } }
@keyframes k-pulse { 50% { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.step-art *, .hero-visual, .hero-visual *), *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
