/* ==========================================================================
   SEO-Couch – Stylesheet
   Aufbau: 1 Variablen · 2 Basis · 3 Bausteine · 4 Header/Footer · 5 Startseite
           6 Referenzen · 7 Kontakt · 8 Konfigurator · 9 Blog · 10 Animationen
   ========================================================================== */

/* ---------- 1. Variablen ------------------------------------------------- */
:root {
  --bg: hsl(240 20% 98%);
  --fg: hsl(210 24.4% 16.1%);
  --muted: hsl(220 27.3% 95.7%);
  --muted-fg: hsl(208.9 17.9% 29.6%);
  --border: hsl(220 13% 91%);
  --card: #fff;
  --primary: hsl(8.4 56.7% 47.1%);
  --primary-dark: hsl(8.4 56.7% 40%);
  --accent: hsl(17.9 65.3% 53.7%);
  --dark: hsl(210 24% 15%);
  --radius: .31rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-sm: 0 1px 3px rgb(20 30 40 / .08), 0 1px 2px rgb(20 30 40 / .06);
  --shadow-lg: 0 10px 25px -5px rgb(20 30 40 / .12), 0 8px 10px -6px rgb(20 30 40 / .08);
  --shadow-xl: 0 25px 50px -12px rgb(20 30 40 / .25);
  --container: 72rem;
  --header-h: 4.25rem;
}

/* ---------- 2. Basis ----------------------------------------------------- */
@font-face { font-family: Roboto; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/roboto-Regular.woff) format("woff"); }
@font-face { font-family: Roboto; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/roboto-Medium.woff) format("woff"); }
@font-face { font-family: Roboto; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/roboto-Bold.woff) format("woff"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 999px; transition: top .2s; }
.skip-link:focus { top: 1rem; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }

/* ---------- 3. Bausteine ------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: 5rem; position: relative; overflow: hidden; }
.section--muted { background: var(--muted); }
.eyebrow { color: var(--primary); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; margin-bottom: .75rem; }
.h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; line-height: 1.1; }
.lead { color: var(--muted-fg); font-size: 1.1rem; line-height: 1.7; }
.text-center { text-align: center; }
.glow::before { content: ""; position: absolute; top: 5rem; right: -6rem; width: 24rem; height: 24rem; border-radius: 50%; background: hsl(17.9 65% 53% / .1); filter: blur(110px); pointer-events: none; }

/* Buttons */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.75rem; padding: 0 1.5rem; border: 1px solid transparent; border-radius: var(--radius);
  background: var(--primary); color: #fff; font-weight: 700; font-size: .95rem; white-space: nowrap;
  transition: transform .3s, box-shadow .3s, background-color .3s, border-color .3s, color .3s;
}
.btn:hover { background: var(--primary-dark); transform: scale(1.03); }
.btn--shimmer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .25), transparent); background-size: 200% 100%; animation: shimmer 3s ease-in-out infinite; pointer-events: none; }
.btn--lg { height: 3.5rem; padding: 0 2rem; font-size: 1rem; border-radius: 999px; }
.btn--pill { border-radius: 999px; }
.btn--glass { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgb(255 255 255 / .22); }
.btn--hero:hover { box-shadow: 0 12px 28px hsl(8 57% 47% / .35); transform: scale(1.05); }
.btn--dark { background: var(--dark); }
.btn--dark:hover { background: hsl(210 24% 24%); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: var(--muted); transform: none; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .icon { position: relative; z-index: 1; }

/* Karten */
.card { background: var(--card); border: 1px solid hsl(220 13% 91% / .6); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.card--hover:hover { transform: translateY(-.5rem); box-shadow: var(--shadow-xl); }
.icon-box { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: .75rem; background: hsl(8.4 56.7% 47.1% / .1); color: var(--primary); flex: none; }
.icon-box--solid { background: var(--primary); color: #fff; }
.icon-circle { border-radius: 50%; }

/* Hero für Unterseiten */
.page-hero { position: relative; overflow: hidden; min-height: 40vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.page-hero .blob { position: absolute; border-radius: 50%; pointer-events: none; }
.page-hero .blob--a { top: -5rem; left: -5rem; width: 24rem; height: 24rem; background: rgb(255 255 255 / .1); filter: blur(100px); }
.page-hero .blob--b { bottom: 0; right: 0; width: 24rem; height: 24rem; background: hsl(17.9 65% 54% / .4); filter: blur(120px); }
.page-hero .shape { position: absolute; border: 1px solid rgb(255 255 255 / .4); background: rgb(255 255 255 / .1); display: none; }
.page-hero .shape--sq { top: 4rem; right: 14%; width: 3rem; height: 3rem; border-radius: 1rem; animation: floatA 8s ease-in-out infinite; }
.page-hero .shape--ci { bottom: 3rem; left: 12%; width: 2rem; height: 2rem; border-radius: 50%; animation: floatB 6s ease-in-out 2s infinite; }
.page-hero__inner { position: relative; max-width: 56rem; margin-inline: auto; padding: 4rem 1.5rem; text-align: center; animation: fadeUp .7s ease-out both; }
.page-hero h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.05; letter-spacing: -.02em; }
.page-hero p { margin: 1.25rem auto 0; max-width: 42rem; font-size: 1.15rem; opacity: .95; }
.pill-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem 1rem; border-radius: 999px; background: rgb(255 255 255 / .15); border: 1px solid rgb(255 255 255 / .3); font-size: .875rem; font-weight: 500; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .page-hero .shape { display: block; } }

/* Formulare */
.form-grid { display: grid; gap: 1rem; }
.field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .25rem; }
.field input, .field textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:hover, .field textarea:hover { border-color: hsl(8 57% 47% / .5); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px hsl(8 57% 47% / .18); }
.field textarea { resize: vertical; min-height: 7rem; }
.field--check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--muted-fg); }
.field--check input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--primary); flex: none; }
.field--check a { color: var(--primary); text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--muted-fg); }
.form-status { padding: .9rem 1rem; border-radius: var(--radius); font-size: .95rem; display: none; }
.form-status.is-error { display: block; background: hsl(0 80% 96%); color: hsl(0 60% 35%); border: 1px solid hsl(0 60% 85%); }
.form-status.is-ok { display: block; background: hsl(140 50% 95%); color: hsl(140 45% 25%); border: 1px solid hsl(140 40% 80%); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }

/* ---------- 4. Header / Footer ------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 100; background: hsl(240 20% 98% / .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.is-scrolled { box-shadow: 0 2px 16px rgb(20 30 40 / .08); border-color: var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { height: 2.4rem; width: auto; }
.nav { display: none; align-items: center; gap: 1.5rem; }
.nav a { font-size: .875rem; font-weight: 500; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); }
.nav .btn { height: 2.5rem; padding: 0 1.1rem; font-size: .85rem; }
.nav a.btn:hover { color: #fff; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 0; background: none; border-radius: var(--radius); }
.menu-toggle:hover { background: var(--muted); }
.menu-toggle .icon-x { display: none; }
.menu-toggle[aria-expanded="true"] .icon-x { display: block; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--bg); padding: .75rem 1.5rem 1.25rem; }
.mobile-nav.is-open { display: block; }
.mobile-nav a:not(.btn) { display: block; padding: .8rem 0; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav a[aria-current="page"] { color: var(--primary); }
.mobile-nav .btn { width: 100%; margin-top: 1rem; border-bottom: 0; }
@media (min-width: 900px) { .nav { display: flex; } .menu-toggle, .mobile-nav { display: none !important; } }

.site-footer { background: var(--muted); padding-top: 4rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { height: 2.6rem; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted-fg); font-size: .875rem; max-width: 20rem; }
.footer-col h3 { font-size: 1rem; margin-bottom: 1rem; }
.footer-col li + li { margin-top: .6rem; }
.footer-col a { color: var(--muted-fg); font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-contact li { display: flex; align-items: center; gap: .5rem; color: var(--muted-fg); font-size: .875rem; }
.footer-contact .icon { color: var(--primary); width: 1rem; height: 1rem; }
.footer-bar { background: var(--primary); color: #fff; font-size: .85rem; }
.footer-bar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; padding-block: 1.1rem; }
.footer-bar nav { display: flex; gap: 1.25rem; }
.footer-bar a:hover { text-decoration: underline; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 5. Startseite ------------------------------------------------ */
.hero { position: relative; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; }
.hero__bg { position: absolute; inset: 0; background: center/cover no-repeat; animation: slowZoom 20s ease-in-out infinite alternate; }
.hero__shade { position: absolute; inset: 0; background: rgb(0 0 0 / .4); }
.hero__fade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(0 0 0 / .6), transparent 50%, hsl(240 20% 98% / .9)); }
.hero__blob { position: absolute; width: 24rem; height: 24rem; border-radius: 50%; filter: blur(120px); mix-blend-mode: overlay; pointer-events: none; }
.hero__blob--a { top: 25%; left: 25%; background: hsl(8.4 56.7% 47.1% / .4); animation: floatA 10s ease-in-out infinite; }
.hero__blob--b { bottom: 25%; right: 25%; background: hsl(17.9 65.3% 53.7% / .4); animation: floatB 8s ease-in-out 2s infinite; }
.hero__inner { position: relative; z-index: 1; max-width: 56rem; padding: 5rem 1.5rem 8rem; text-align: center; animation: fadeUp .8s ease-out both; }
.hero .pill-badge { background: rgb(255 255 255 / .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow-lg); margin-bottom: 1.5rem; }
.hero .pill-badge .icon { color: var(--accent); }
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; text-shadow: 0 8px 24px rgb(0 0 0 / .35); }
.hero h1 span { background: linear-gradient(90deg, #fff, rgb(255 255 255 / .9), rgb(255 255 255 / .7)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 1.5rem auto 0; max-width: 42rem; font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 500; color: rgb(255 255 255 / .92); text-shadow: 0 2px 8px rgb(0 0 0 / .3); }
.hero__cta { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; align-items: stretch; }
@media (min-width: 640px) { .hero__cta { flex-direction: row; justify-content: center; align-items: center; } }

.contact-strip { background: var(--muted); padding-block: 1.5rem; }
.contact-strip__card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: grid; max-width: 60rem; margin-inline: auto; }
.contact-strip__item { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; transition: background-color .3s; }
a.contact-strip__item:hover { background: hsl(8 57% 47% / .05); }
.contact-strip__item + .contact-strip__item { border-top: 1px solid var(--border); }
.contact-strip__item b { display: block; font-size: 1rem; }
.contact-strip__item div span { display: block; color: var(--muted-fg); font-size: .85rem; }
@media (min-width: 768px) { .contact-strip__card { grid-template-columns: repeat(3, 1fr); } .contact-strip__item + .contact-strip__item { border-top: 0; border-left: 1px solid var(--border); } }
@media (max-width: 767px) { .contact-strip__item { flex-direction: column; text-align: center; padding: 1.5rem; } }

.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.media-frame { position: relative; }
.media-frame img { width: 100%; border-radius: var(--radius-lg); box-shadow: 0 20px 60px hsl(8 57% 47% / .2), var(--shadow-lg); }
.media-frame--float img { animation: floatC 9s ease-in-out infinite; }
.check-list { margin-top: 1.75rem; display: grid; gap: .9rem; }
.check-list li { display: flex; align-items: center; gap: .75rem; font-weight: 500; }
.check-list .tick { width: 1.5rem; height: 1.5rem; border-radius: .3rem; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.check-list .icon { width: .9rem; height: .9rem; stroke-width: 3; }

.intro-grid { display: grid; gap: 2rem; align-items: end; margin-bottom: 4rem; }
@media (min-width: 900px) { .intro-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.service-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { padding: 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; height: 100%; }
.service-card h3 { font-size: 1.1rem; }
.service-card p { color: var(--muted-fg); font-size: .9rem; }
.service-card .icon-box { width: 3.5rem; height: 3.5rem; border-radius: 1rem; transition: transform .3s; }
.service-card:hover .icon-box { transform: scale(1.1) rotate(-4deg); }

.teaser { position: relative; overflow: hidden; border-radius: 2rem; padding: 2.5rem; color: #fff; background: linear-gradient(135deg, hsl(210 24% 15%) 40%, hsl(8 32% 26%)); box-shadow: var(--shadow-xl); display: grid; gap: 2.5rem; align-items: center; }
.teaser::before { content: ""; position: absolute; top: -6rem; right: -6rem; width: 22rem; height: 22rem; border-radius: 50%; background: hsl(8 57% 47% / .35); filter: blur(100px); animation: floatB 9s ease-in-out infinite; }
.teaser > * { position: relative; }
.teaser h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-top: 1.25rem; }
.teaser p { margin-top: 1.25rem; color: rgb(255 255 255 / .75); font-size: 1.05rem; }
.teaser .btn { margin-top: 2rem; }
.teaser .pill-badge { margin: 0; background: rgb(255 255 255 / .08); }
.teaser-steps { display: grid; gap: .8rem; }
.teaser-steps li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: .75rem; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); font-weight: 700; transition: transform .3s, background-color .3s; }
.teaser-steps li:hover { transform: translateX(.4rem); background: rgb(255 255 255 / .1); }
.teaser-steps .num { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: hsl(8 57% 47% / .35); color: hsl(8 70% 62%); display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; flex: none; }
@media (min-width: 900px) { .teaser { grid-template-columns: 1.1fr 1fr; padding: 3.5rem; gap: 3.5rem; } }

.feature-list { margin-top: 2.25rem; display: grid; gap: 1.75rem; }
.feature { display: flex; gap: 1.25rem; align-items: flex-start; }
.feature .icon-box { width: 2.75rem; height: 2.75rem; border-radius: .6rem; transition: transform .3s; }
.feature:hover .icon-box { transform: scale(1.1); }
.feature h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.feature p { color: var(--muted-fg); font-size: .9rem; }

.trust { padding-block: 3.5rem; background: var(--muted); }
.trust__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.trust h2 { font-size: clamp(1.5rem, 3vw, 2rem); max-width: 22rem; }
.stats { display: flex; gap: 3rem; }
.stat b { display: block; font-size: clamp(2.75rem, 5vw, 3.5rem); line-height: 1; color: var(--primary); }
.stat span { display: block; margin-top: .5rem; font-weight: 500; color: var(--muted-fg); }

.testimonials { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); padding-block: 5rem; }
.testimonials .blob { position: absolute; border-radius: 50%; pointer-events: none; }
.testimonials .blob--a { bottom: 0; left: 0; width: 24rem; height: 24rem; background: hsl(17.9 65% 54% / .4); filter: blur(120px); }
.testimonials .shape { position: absolute; border: 1px solid rgb(255 255 255 / .4); background: rgb(255 255 255 / .1); display: none; }
.testimonials .shape--sq { top: 3.5rem; left: 12%; width: 3rem; height: 3rem; border-radius: 1rem; animation: floatC 9s ease-in-out infinite; }
.testimonials .shape--ci { bottom: 2.5rem; right: 14%; width: 2rem; height: 2rem; border-radius: 50%; animation: floatA 7s ease-in-out 1s infinite; }
@media (min-width: 640px) { .testimonials .shape { display: block; } }
.testimonials__head { position: relative; text-align: center; margin-bottom: 3rem; }
.testimonials__head .eyebrow { color: rgb(255 255 255 / .85); font-size: .72rem; }
.testimonials__head p:last-child { margin-top: .75rem; opacity: .9; }
.testimonial-grid { position: relative; display: grid; gap: 2rem; }
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial { background: #fff; color: var(--fg); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.testimonial:hover { transform: translateY(-.4rem); box-shadow: var(--shadow-xl); }
.stars { display: flex; gap: .15rem; color: var(--primary); }
.stars .icon { fill: currentColor; stroke-width: 1; width: 1.1rem; height: 1.1rem; }
.testimonial blockquote { margin: 1rem 0 1.5rem; font-style: italic; font-size: .9rem; line-height: 1.8; flex: 1; }
.testimonial figcaption { border-top: 1px solid var(--border); padding-top: 1rem; font-weight: 700; font-size: .78rem; }

.cta-final { text-align: center; }
.cta-final .h2 { max-width: 36rem; margin-inline: auto; }
.cta-final .lead { margin-top: 1.5rem; }
.cta-final .phone { display: inline-block; margin-top: 2rem; font-size: clamp(1.8rem, 4.5vw, 2.5rem); font-weight: 700; color: var(--primary); transition: transform .3s; }
.cta-final .phone:hover { transform: scale(1.04); }
.cta-final .btn { display: flex; width: max-content; margin: 2rem auto 0; }

/* ---------- 6. Referenzen ------------------------------------------------ */
.filter-bar { display: inline-flex; padding: .25rem; border-radius: 999px; background: var(--muted); margin-top: 1.5rem; }
.filter-bar button { border: 0; background: none; padding: .45rem 1.1rem; border-radius: 999px; font-weight: 500; font-size: .85rem; transition: background-color .25s, color .25s; }
.filter-bar button:hover { color: var(--primary); }
.filter-bar button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.ref-grid { margin-top: 3rem; display: grid; gap: 2rem; }
@media (min-width: 640px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .ref-grid { grid-template-columns: repeat(3, 1fr); } }
.ref-card { display: flex; flex-direction: column; width: 100%; text-align: left; padding: 0; overflow: hidden; border: 1px solid hsl(220 13% 91% / .7); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.ref-card:hover { transform: translateY(-.5rem); box-shadow: var(--shadow-xl); }
.ref-card[hidden] { display: none; }
.ref-grid > div { display: flex; }
.ref-grid > div[hidden] { display: none; }
.ref-card { height: 100%; }
.ref-card__body { display: block; flex: 1; }
.ref-card__img { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--muted); }
.ref-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.ref-card:hover .ref-card__img img { transform: scale(1.06); }
.ref-card__tag { position: absolute; top: .75rem; left: .75rem; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: rgb(255 255 255 / .92); font-size: .72rem; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow-sm); }
.ref-card__tag .icon { color: var(--primary); width: .85rem; height: .85rem; }
.ref-card__body { padding: 1.25rem; }
.ref-card__body h3 { font-size: 1.05rem; }
.ref-card__body p { margin-top: .35rem; color: var(--muted-fg); font-size: .85rem; }
.ref-cta { text-align: center; }
.ref-cta .h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.ref-cta__buttons { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(64rem, 94vw); width: 100%; }
dialog.lightbox::backdrop { background: rgb(10 15 20 / .8); backdrop-filter: blur(4px); }
.lightbox__box { position: relative; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl); }
.lightbox__box img { width: 100%; max-height: 75vh; object-fit: contain; background: var(--muted); }
.lightbox__cap { padding: 1rem 1.25rem; }
.lightbox__cap h3 { font-size: 1.1rem; }
.lightbox__cap p { color: var(--muted-fg); font-size: .9rem; margin-top: .2rem; }
.lightbox__close { position: absolute; top: .75rem; right: .75rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: rgb(255 255 255 / .95); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }

/* ---------- 7. Kontakt --------------------------------------------------- */
.contact-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.4fr 1fr; } }
.form-card { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); padding: 2rem; }
@media (min-width: 640px) { .form-card { padding: 2.5rem; } }
.form-card h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }
.aside-card { border-radius: var(--radius-xl); padding: 1.75rem; }
.aside-card + .aside-card { margin-top: 1.5rem; }
.aside-card--light { background: #fff; border: 1px solid hsl(8 57% 47% / .35); box-shadow: var(--shadow-sm); }
.aside-card--muted { background: var(--muted); }
.aside-card .icon { color: var(--primary); width: 1.6rem; height: 1.6rem; }
.aside-card h3 { margin: .9rem 0 .5rem; font-size: 1.15rem; }
.aside-card p { color: var(--muted-fg); font-size: .9rem; }
.aside-card .btn { margin-top: 1rem; height: 2.25rem; padding: 0 1rem; font-size: .85rem; }
.aside-card a.tel { color: var(--primary); font-weight: 700; }

/* ---------- 8. Konfigurator --------------------------------------------- */
.cfg-layout { position: relative; display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .cfg-layout { grid-template-columns: 1fr 300px; } .cfg-side { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.cfg-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); padding: 1.5rem; }
@media (min-width: 768px) { .cfg-card { padding: 2.5rem; } }
.progress { margin-bottom: 2rem; }
.progress__meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted-fg); margin-bottom: .5rem; }
.progress__bar { height: .5rem; border-radius: 999px; background: hsl(8 57% 47% / .15); overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: var(--primary); border-radius: 999px; transition: width .5s ease; }
.cfg-step { animation: stepIn .35s ease both; }
.cfg-step h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.cfg-step .hint { margin-top: .5rem; color: var(--muted-fg); }
.option-grid { margin-top: 1.5rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .option-grid { grid-template-columns: 1fr 1fr; } }
.option { position: relative; text-align: left; border: 2px solid var(--border); border-radius: .75rem; background: #fff; padding: 1.25rem; transition: transform .3s, box-shadow .3s, border-color .3s, background-color .3s; }
.option:hover { transform: translateY(-.25rem); box-shadow: var(--shadow-lg); border-color: hsl(8 57% 47% / .5); }
.option .icon-box { width: 2.75rem; height: 2.75rem; border-radius: .5rem; background: var(--muted); margin-bottom: .75rem; transition: background-color .3s, color .3s; }
.option b { display: block; }
.option small { display: block; margin-top: .25rem; color: var(--muted-fg); font-size: .875rem; }
.option .tick { position: absolute; top: .75rem; right: .75rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--primary); color: #fff; display: none; align-items: center; justify-content: center; }
.option .tick .icon { width: 1rem; height: 1rem; stroke-width: 3; }
.option[aria-checked="true"] { border-color: var(--fg); background: hsl(8 57% 47% / .05); box-shadow: 0 10px 25px hsl(8 57% 47% / .12); }
.option[aria-checked="true"] .icon-box { background: var(--primary); color: #fff; }
.option[aria-checked="true"] .tick { display: inline-flex; }
.cfg-nav { margin-top: 2rem; display: flex; justify-content: space-between; gap: 1rem; }
.cfg-nav .is-hidden { visibility: hidden; }
.result-box { margin-top: 1.25rem; border-radius: .75rem; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; padding: 1.5rem; text-align: center; box-shadow: var(--shadow-lg); }
.result-box small { display: block; opacity: .9; font-size: .875rem; }
.result-box .price { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 700; margin-top: .25rem; }
.result-box .note { font-size: .75rem; opacity: .9; margin-top: .5rem; }
.result-box .monthly { margin-top: .75rem; font-size: .9rem; font-weight: 500; padding-top: .75rem; border-top: 1px solid rgb(255 255 255 / .3); }
.cfg-form { margin-top: 2rem; display: grid; gap: 1rem; }
.cfg-form .ask { font-weight: 700; }
.cfg-form .actions { display: flex; flex-direction: column-reverse; gap: .75rem; }
@media (min-width: 640px) { .cfg-form .actions { flex-direction: row; justify-content: space-between; } }
.cfg-done { text-align: center; padding: 2.5rem 0; animation: stepIn .4s ease both; }
.cfg-done .ok { width: 4rem; height: 4rem; margin: 0 auto 1.25rem; border-radius: 50%; background: hsl(8 57% 47% / .1); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.cfg-done .ok .icon { width: 2.25rem; height: 2.25rem; }
.cfg-done h2 { font-size: 1.9rem; }
.cfg-done p { margin: .75rem auto 0; max-width: 28rem; color: var(--muted-fg); }
.cfg-done .price-gradient { margin-top: 1.25rem; font-size: 2.4rem; font-weight: 700; background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradientX 4s ease-in-out infinite; }
.cfg-done .btn { margin-top: 2rem; }
.cfg-side .summary { background: #fff; border: 1px solid hsl(8 57% 47% / .35); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.summary h3 { display: flex; align-items: center; gap: .6rem; font-size: 1rem; margin-bottom: 1.1rem; }
.summary h3 .icon { color: var(--primary); }
.summary dl { margin: 0; display: grid; gap: .8rem; }
.summary dt { font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-fg); }
.summary dd { margin: 0; font-weight: 500; font-size: .9rem; }
.summary .total { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.summary .total small { display: block; font-size: .75rem; color: var(--muted-fg); }
.summary .total b { display: block; margin-top: .15rem; font-size: 1.5rem; color: var(--primary); }
.summary .total em { display: block; margin-top: .3rem; font-style: normal; font-size: .75rem; color: var(--muted-fg); }
.mini-trust { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .mini-trust { grid-template-columns: repeat(3, 1fr); } }
.mini-trust .card { padding: 1.75rem; text-align: center; }
.mini-trust .icon-box { width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; }
.mini-trust h3 { font-size: 1.05rem; }
.mini-trust p { margin-top: .5rem; color: var(--muted-fg); font-size: .875rem; }

/* ---------- 9. Blog / Rechtstexte --------------------------------------- */
.post-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.post-card__img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--primary), var(--accent)); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-card__img img { transform: scale(1.06); }
.post-card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-card__meta { font-size: .78rem; color: var(--muted-fg); display: flex; gap: .75rem; }
.post-card__meta .cat { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.post-card h3 { font-size: 1.15rem; }
.post-card p { color: var(--muted-fg); font-size: .9rem; flex: 1; }
.post-card .more { color: var(--primary); font-weight: 700; font-size: .875rem; display: inline-flex; align-items: center; gap: .4rem; }
.post-card:hover .more .icon { transform: translateX(.25rem); }
.post-card .more .icon { transition: transform .3s; }
.empty-state { text-align: center; max-width: 34rem; margin-inline: auto; padding: 3rem 1.5rem; }
.empty-state .icon-box { width: 4rem; height: 4rem; border-radius: 1rem; margin-bottom: 1.25rem; }
.empty-state p { margin-top: .75rem; color: var(--muted-fg); }
.empty-state .btn { margin-top: 1.5rem; }

.article { max-width: 46rem; margin-inline: auto; }
.article__meta { color: var(--muted-fg); font-size: .875rem; display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: 1rem; }
.article h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.prose { font-size: 1.05rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: 1.75rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.3rem; margin-top: 2rem; }
.prose ul { list-style: disc; padding-left: 1.4rem; }
.prose ol { list-style: decimal; padding-left: 1.4rem; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin-left: 0; padding: .5rem 0 .5rem 1.25rem; border-left: 4px solid var(--primary); font-style: italic; color: var(--muted-fg); }
.prose img { border-radius: var(--radius-lg); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .6rem .8rem; border-bottom: 1px solid var(--border); text-align: left; }
.article__cta { margin-top: 3.5rem; padding: 2rem; border-radius: var(--radius-lg); background: var(--muted); text-align: center; }
.article__cta h2 { font-size: 1.5rem; }
.article__cta p { margin-top: .5rem; color: var(--muted-fg); }
.article__cta .btn { margin-top: 1.25rem; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--primary); font-weight: 500; margin-bottom: 1.5rem; }
.legal { max-width: 46rem; margin-inline: auto; }
.legal .notice { background: hsl(40 100% 94%); border: 1px solid hsl(40 80% 75%); color: hsl(30 70% 25%); padding: 1rem 1.25rem; border-radius: var(--radius); font-size: .9rem; margin-bottom: 2rem; }

/* ---------- 10. Animationen --------------------------------------------- */
@keyframes floatA { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-20px) rotate(3deg); } }
@keyframes floatB { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-15px) rotate(-2deg); } }
@keyframes floatC { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-25px) rotate(2deg); } }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.05); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes gradientX { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* Einblenden beim Scrollen (nur wenn JavaScript läuft) */
.js .reveal { opacity: 0; transform: translateY(3rem); transition: opacity 1s ease-out, transform 1s ease-out; transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Rechtstexte: kompaktere Überschriften */
.legal.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal.prose h1 { margin-bottom: 1rem; }
