/*
Theme Name: AK TEAM GmbH
Theme URI: https://akteam.de
Author: AK TEAM GmbH
Author URI: https://akteam.de
Description: Custom WordPress theme for AK TEAM GmbH – Meisterbetrieb Duisburg.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: akteam
*/

/* ─── RESET ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0f0f0f;
  --bg-2:        #161616;
  --bg-3:        #1e1e1e;
  --blue:        #2563eb;
  --blue-light:  #60a5fa;
  --blue-glow:   rgba(37,99,235,0.08);
  --yellow:      #f59e0b;
  --yellow-lt:   #fbbf24;
  --yellow-glow: rgba(245,158,11,0.18);
  --red:         #dc2626;
  --red-glow:    rgba(220,38,38,0.1);
  --white:       #ffffff;
  --muted:       rgba(255,255,255,0.5);
  --muted-aa:    rgba(255,255,255,0.72);
  --muted-2:     rgba(255,255,255,0.22);
  --border:      rgba(255,255,255,0.08);
  --border-hi:   rgba(255,255,255,0.15);
  --card:        rgba(255,255,255,0.03);
  --card-hi:     rgba(255,255,255,0.06);
  --font:        'Inter', sans-serif;
  --r:           14px;
  --r-lg:        22px;
  --ease:        cubic-bezier(.4,0,.2,1);
  --t:           .3s var(--ease);
}

@property --sa {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

html { scroll-behavior: smooth; background: #07091a; }

body {
  font-family: var(--font);
  color: var(--white);
  background: var(--bg);
  line-height: 1.6;
}

img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
button { font-family: var(--font); }

/* ─── LAYOUT ────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.orb { display: none; }
.grid-bg { display: none; }

/* ─── NOISE OVERLAY ─────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}

/* ─── TYPOGRAPHY ────────────────────────────────────────────────── */
.label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
}
.h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.sub {
  font-size: 1rem;
  color: var(--muted-aa);
  line-height: 1.8;
  max-width: 540px;
}

/* ─── CHIP ──────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: rgba(255,255,255,.04);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  backdrop-filter: blur(8px);
}
.chip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.6); }
}

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .88rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1;
  letter-spacing: .01em;
  cursor: pointer;
  border: none;
  transition: var(--t);
  white-space: nowrap;
  font-family: var(--font);
  text-align: center;
}
.btn-yellow {
  background: linear-gradient(170deg, rgba(255,214,80,0.92) 0%, rgba(214,115,0,0.88) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,220,100,0.45);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(0,0,0,0.12), 0 6px 28px rgba(245,158,11,0.25);
  color: #1a0900;
  position: relative;
  overflow: hidden;
}
.btn-yellow::after {
  content: '';
  position: absolute;
  top: -50%; left: -80%;
  width: 45%; height: 200%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.28), transparent);
  animation: btn-shine 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shine {
  0%        { left: -80%; }
  45%, 100% { left: 130%; }
}
.btn-yellow:hover {
  background: linear-gradient(170deg, rgba(255,225,100,0.95) 0%, rgba(230,130,0,0.92) 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.5), 0 8px 40px rgba(245,158,11,.4);
}
.btn-ghost {
  --sa: 0deg;
  background:
    linear-gradient(rgba(15,15,15,0.88), rgba(15,15,15,0.88)) padding-box,
    conic-gradient(from var(--sa), rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.9) 68%, rgba(245,158,11,0.55) 74%, rgba(255,255,255,0.06) 88%) border-box;
  border: 1.5px solid transparent;
  color: var(--white);
  animation: shimmer-spin 3s linear infinite;
}
.btn-ghost:hover {
  background:
    linear-gradient(rgba(15,15,15,0.82), rgba(15,15,15,0.82)) padding-box,
    conic-gradient(from var(--sa), rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.08) 42%, #ffffff 62%, rgba(245,158,11,0.85) 70%, rgba(255,255,255,0.08) 84%) border-box;
  transform: translateY(-2px);
}
@keyframes shimmer-spin { to { --sa: 360deg; } }

.btn-outline {
  background: transparent;
  border: 1.5px solid #d1d5db;
  color: #374151;
  font-weight: 600;
}
.btn-outline:hover { border-color: #9ca3af; background: #fff; }

/* ─── HEADER ────────────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  /* Kein transition – verhindert dass env(safe-area-inset-top)-Änderungen
     beim iOS-Scroll animiert werden und der Header scheinbar "mitscrollt" */
}
#header.scrolled {
  background: rgba(7,9,26,.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-right { display: flex; align-items: center; gap: 1rem; }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img {
  height: 72px; width: auto; display: block;
  filter: drop-shadow(0 2px 16px rgba(37,99,235,.45));
  transition: var(--t);
}
.logo-link:hover .logo-img { filter: drop-shadow(0 2px 24px rgba(245,158,11,.6)); }
.logo-svg {
  height: 72px; width: auto;
  filter: drop-shadow(0 0 14px rgba(37,99,235,.5));
  transition: var(--t);
}
.logo-link:hover .logo-svg { filter: drop-shadow(0 0 20px rgba(245,158,11,.55)); }

/* ─── NAV (pill-style) ──────────────────────────────────────── */
nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}
.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  padding: 0.25rem;
}
.nav-pill {
  position: absolute;
  top: 0.25rem; bottom: 0.25rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  transition: left .35s cubic-bezier(.4,0,.2,1), width .35s cubic-bezier(.4,0,.2,1), opacity .2s;
  pointer-events: none;
  opacity: 0;
}
.nav-links a {
  position: relative; z-index: 1;
  padding: .46rem 1.05rem;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  transition: color var(--t);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.nav-active { color: var(--yellow); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--t); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: var(--bg);
  /* muss über Header + Scroll-Nav liegen, sonst lässt sich das Menü nicht zuverlässig schließen */
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.5rem; font-weight: 700; }
.mobile-nav a:hover { color: var(--yellow); }
.mobile-close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 1.25rem);
  right: 1.5rem;
  background: none; border: none;
  color: var(--white); font-size: 1.8rem; cursor: pointer;
}

/* ─── HERO ──────────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 7rem;
  padding-bottom: 5rem;
  background:
    linear-gradient(to right, rgba(15,15,15,0.93) 32%, rgba(15,15,15,0.60) 62%, rgba(15,15,15,0.18) 100%),
    url('https://images.unsplash.com/photo-1615406020658-6c4b805f1f30?w=1800&q=80&auto=format') center center / cover no-repeat;
}
.hero-inner { position: relative; z-index: 1; text-align: left; max-width: 720px; }
.hero-chip { margin-bottom: 2.25rem; }
.hero-company {
  display: flex; align-items: center; gap: .85rem;
  font-size: 1.05rem; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 1.5rem;
}
.hero-company::before { content: ''; display: block; width: 36px; height: 2px; background: var(--yellow); flex-shrink: 0; }
.hero-title { font-size: clamp(2.8rem, 5vw, 5.5rem); font-weight: 900; line-height: 1.04; letter-spacing: -.028em; margin-bottom: 1.25rem; }
.ht-1 { display: block; color: var(--white); }
.ht-2 { display: block; background: linear-gradient(105deg, #f59e0b 0%, #fde68a 55%, #fbbf24 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; padding-bottom: 0.12em; }
.hero-tagline { font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.55); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2rem; display: flex; align-items: center; gap: .75rem; }
.hero-tagline::before { content: ''; display: block; width: 20px; height: 1px; background: rgba(255,255,255,.3); flex-shrink: 0; }
.hero-sub { font-size: clamp(.95rem, 1.4vw, 1.1rem); color: var(--muted-aa); max-width: 500px; margin: 0 0 2.75rem; line-height: 1.85; }
.hero-btns { display: flex; justify-content: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.hero-line { width: 48px; height: 3px; background: var(--yellow); margin: 0 0 3rem; border-radius: 2px; }
.hero-stats { display: flex; justify-content: flex-start; gap: 3.5rem; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 2.6rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--white); }
.stat-num span { color: var(--yellow); }
.stat-lbl { font-size: .72rem; color: var(--muted-aa); text-transform: uppercase; letter-spacing: .12em; margin-top: .4rem; }

/* ─── MARQUEE ────────────────────────────────────────────────────── */
.marquee-wrap { padding: 1.25rem 0; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 0; animation: marquee 28s linear infinite; width: max-content; }
.marquee-item { display: flex; align-items: center; gap: 1.25rem; padding: 0 2.5rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--yellow); flex-shrink: 0; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── SERVICES ───────────────────────────────────────────────────── */
#leistungen { padding: 8rem 0; background: var(--bg-2); position: relative; overflow: hidden; }
.services-glow { display: none; }
.services-hd { text-align: center; margin-bottom: 4rem; position: relative; z-index: 1; }
.services-hd .sub { margin: 1rem auto 0; text-align: center; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; position: relative; z-index: 1; }
.svc { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; transition: var(--t); display: flex; flex-direction: column; }
.svc:nth-child(3n) { border-right: none; }
.svc:nth-last-child(-n+3):nth-child(3n+1), .svc:nth-last-child(-n+2):nth-child(3n+2), .svc:nth-last-child(-n+1) { border-bottom: none; }
.svc-glow { display: none; }
.svc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.svc:hover { background: rgba(245,158,11,.04); }
.svc:hover::before { transform: scaleX(1); }
.svc-num { font-size: .65rem; font-weight: 700; letter-spacing: .18em; color: var(--muted-2); text-transform: uppercase; margin-bottom: .45rem; position: relative; z-index: 1; }
.svc-img { width: 100%; height: 190px; position: relative; overflow: hidden; flex-shrink: 0; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s var(--ease); }
.svc:hover .svc-img img { transform: scale(1.07); }
.svc-img::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.55)); pointer-events: none; z-index: 1; }
.svc-body { padding: 1.5rem 2rem 2rem; flex: 1; display: flex; flex-direction: column; }
.svc-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: .55rem; position: relative; z-index: 1; }
.svc-text { font-size: .86rem; color: var(--muted); line-height: 1.72; position: relative; z-index: 1; }
.svc { cursor: pointer; }
.svc-more { display: flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 700; color: var(--yellow); margin-top: auto; padding-top: 1.25rem; letter-spacing: .03em; transition: gap var(--t); }
.svc:hover .svc-more { gap: .65rem; }

/* ─── ABOUT ──────────────────────────────────────────────────────── */
#ueber-uns { padding: 8rem 0; position: relative; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; position: relative; z-index: 1; }
.about-visual { position: relative; }
.about-img-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.about-img-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(245,158,11,.08) 0%, transparent 55%); }
.about-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--border); }
.about-float { position: absolute; bottom: -1.75rem; right: -1.75rem; background: rgba(15,15,15,.95); border: 1px solid var(--border-hi); backdrop-filter: blur(20px); border-radius: var(--r); padding: 1.25rem 1.75rem; display: flex; align-items: center; gap: 1rem; z-index: 2; }
.about-float-num { font-size: 2.6rem; font-weight: 900; letter-spacing: -.04em; color: var(--yellow); line-height: 1; }
.about-float-txt { font-size: .8rem; color: var(--muted-aa); line-height: 1.5; }
.about-float-txt strong { display: block; color: var(--white); font-weight: 600; font-size: .88rem; }
.about-points { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.apt { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: var(--r); border: 1px solid transparent; transition: var(--t); }
.apt:hover { background: var(--card); border-color: var(--border); }
.apt-icon { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-hi); display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(255,255,255,.03); }
.apt-icon svg { width: 18px; height: 18px; stroke: var(--yellow); stroke-width: 2; }
.apt h3 { font-size: .92rem; font-weight: 700; margin-bottom: .2rem; }
.apt p  { font-size: .83rem; color: var(--muted-aa); line-height: 1.65; }

/* ─── PROCESS ────────────────────────────────────────────────────── */
#ablauf { padding: 8rem 0; background: var(--bg-2); position: relative; overflow: hidden; }
.process-glow { display: none; }
.process-hd { text-align: center; margin-bottom: 4.5rem; position: relative; z-index: 1; }
.process-hd .sub { margin: 1rem auto 0; text-align: center; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; position: relative; z-index: 1; }
.pstep { padding: 2.5rem 2rem; border-right: 1px solid var(--border); transition: var(--t); }
.pstep:last-child { border-right: none; }
.pstep:hover { background: var(--card-hi); }
.pstep-num { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.5rem; }
.pstep-icon { display: flex; align-items: center; margin-bottom: 1.25rem; }
.pstep-icon svg { width: 28px; height: 28px; stroke: var(--yellow); stroke-width: 1.75; }
.pstep-title { font-size: 1rem; font-weight: 700; letter-spacing: -.015em; margin-bottom: .6rem; }
.pstep-text  { font-size: .84rem; color: var(--muted-aa); line-height: 1.7; }

/* ─── EU FÖRDERUNG ──────────────────────────────────────────────── */
#foerderung { padding: 2.5rem 0; background: var(--bg); }
.eu-banner { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem 2rem; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--card); position: relative; overflow: hidden; }
.eu-banner::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, #003399, #FFCC00); }
.eu-flag-wrap { flex-shrink: 0; }
.eu-sep { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }
.eu-prog-title { font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-light); }
.eu-prog-sub { font-size: .72rem; color: var(--muted-aa); margin-top: .2rem; }
.eu-msg { flex: 1; display: flex; align-items: center; gap: 1rem; }
.eu-msg-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.eu-msg-icon svg { width: 16px; height: 16px; stroke: var(--yellow); stroke-width: 2; }
.eu-msg-title { font-size: .88rem; font-weight: 700; }
.eu-msg-text  { font-size: .77rem; color: var(--muted-aa); line-height: 1.5; margin-top: .1rem; }
@media (max-width: 768px) { .eu-banner { flex-wrap: wrap; } .eu-sep { display: none; } .eu-msg { flex-basis: 100%; } }

/* ─── CONTACT ────────────────────────────────────────────────────── */
#kontakt { padding: 8rem 0; position: relative; overflow: hidden; }
.contact-orb { display: none; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; position: relative; z-index: 1; }
.contact-info .sub { margin-top: .75rem; margin-bottom: 2.25rem; }
.contact-items { display: flex; flex-direction: column; gap: .9rem; }
.citem { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-radius: var(--r); border: 1px solid var(--border); background: var(--card); transition: var(--t); }
.citem:hover { border-color: var(--border-hi); background: var(--card-hi); }
.citem-icon { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-hi); display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: rgba(255,255,255,.03); }
.citem-icon svg { width: 18px; height: 18px; stroke: var(--yellow); stroke-width: 2; }
.citem-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-aa); font-weight: 600; }
.citem-val   { font-size: .9rem; font-weight: 600; margin-top: .1rem; }
.cform { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2.5rem; }
.cform-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: 1.75rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg   { margin-bottom: .9rem; }
.fg label { display: block; font-size: .72rem; font-weight: 600; color: var(--muted-aa); margin-bottom: .45rem; text-transform: uppercase; letter-spacing: .07em; }
.fg input, .fg textarea, .fg select { width: 100%; padding: .82rem 1rem; border: 1px solid var(--border); border-radius: 10px; font-family: var(--font); font-size: .88rem; color: var(--white); background: rgba(255,255,255,.04); transition: var(--t); appearance: none; }
.fg select option { background: var(--bg-2); }
.fg input:focus, .fg textarea:focus, .fg select:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.fg textarea { resize: vertical; min-height: 108px; }
.f-submit { width: 100%; justify-content: center; margin-top: .5rem; border-radius: 12px; padding: 1rem; }
.field-error { display: block; color: #f87171; font-size: .82rem; margin-top: .3rem; }
.field-error[hidden] { display: none; }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.footer-tagline { font-size: .86rem; color: var(--muted-aa); margin-top: 1.1rem; line-height: 1.75; max-width: 280px; }
.fcol h4 { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1.5rem; }
.fcol ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; padding-left: 0; }
.fcol ul li { margin-bottom: 0; }
.fcol ul a { font-size: .86rem; color: var(--muted-aa); transition: var(--t); text-decoration: none; }
.fcol ul a:hover { color: var(--white); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 2rem; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-size: .78rem; color: var(--muted-aa); }
.flinks { display: flex; gap: 1.5rem; }
.flinks a { font-size: .78rem; color: var(--muted-aa); transition: var(--t); }
.flinks a:hover { color: var(--white); }

/* ─── LIGHT SECTIONS ─────────────────────────────────────────────── */
.marquee-wrap { background: #ebebeb !important; border-color: #d8d8d8 !important; }
.marquee-item { color: #999 !important; }
#leistungen { background: #f2f2f2 !important; }
#ablauf     { background: #f2f2f2 !important; }
#ueber-uns  { background: #ffffff !important; }
#foerderung { background: #ffffff !important; }
#kontakt    { background: #f8f8f8 !important; }
#leistungen .h2, #ueber-uns .h2, #ablauf .h2, #kontakt .h2 { color: #111111; }
#leistungen .sub, #ueber-uns .sub, #ablauf .sub, #kontakt .sub { color: #555555; }
#leistungen .label, #ueber-uns .label, #ablauf .label, #kontakt .label { color: var(--yellow); }
.services-grid { border-color: #d8d8d8; }
.svc { background: #ffffff; border-color: #e0e0e0; }
.svc:hover { background: #fffcf0 !important; }
.svc-num   { color: #c0c0c0; }
.svc-title { color: #111111; }
.svc-text  { color: #666666; }
.svc-img::after { background: linear-gradient(to bottom, transparent, rgba(255,255,255,.55)) !important; }
.process-steps { border-color: #d8d8d8; }
.pstep { background: #ffffff; border-color: #e0e0e0; }
.pstep:hover { background: #fffcf0 !important; }
.pstep-num   { color: #c0c0c0; }
.pstep-title { color: #111111; }
.pstep-text  { color: #666666; }
#ueber-uns .about-float { background: #ffffff; border-color: #e0e0e0; box-shadow: 0 8px 32px rgba(0,0,0,.08); }
#ueber-uns .about-float-num { color: var(--yellow); }
#ueber-uns .about-float-txt { color: #666; }
#ueber-uns .about-float-txt strong { color: #111; }
#ueber-uns .about-img { border-color: #e0e0e0; }
#ueber-uns .apt:hover  { background: #f8f8f8; border-color: #e0e0e0; }
#ueber-uns .apt h3     { color: #111111; }
#ueber-uns .apt p      { color: #666666; }
#ueber-uns .apt-icon   { background: #f5f5f5; border-color: #e0e0e0; }
#ueber-uns .h2         { color: #111111; }
#ueber-uns .sub        { color: #555555; }
.citem        { background: #ffffff; border-color: #e0e0e0; }
.citem:hover  { background: #fffcf0; border-color: #f0d060; }
.citem-icon   { background: #f5f5f5; border-color: #e0e0e0; }
.citem-label  { color: #999999; }
.citem-val    { color: #111111; }
#kontakt .h2  { color: #111111; }
#kontakt .sub { color: #555555; }
.cform        { background: #ffffff; border-color: #e0e0e0; box-shadow: 0 4px 24px rgba(0,0,0,.06); }
.cform-title  { color: #111111; }
.fg label     { color: #666666 !important; }
.fg input, .fg textarea, .fg select { background: #f5f5f5 !important; border-color: #e0e0e0 !important; color: #111111 !important; }
.fg select option { background: #ffffff; color: #111111; }
.fg input::placeholder, .fg textarea::placeholder { color: #aaa; }
.fg input:focus, .fg textarea:focus, .fg select:focus { background: #ffffff !important; border-color: var(--yellow) !important; }
.eu-banner { background: #ffffff; border-color: #e0e0e0; }
.eu-prog-title { color: #2563eb; }
.eu-prog-sub   { color: #777; }
.eu-msg-title  { color: #111111; }
.eu-msg-text   { color: #666666; }
.eu-sep        { background: #e0e0e0; }

/* ─── MODAL ──────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity .28s ease; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box { background: #ffffff; border-radius: 20px; max-width: 580px; width: 100%; max-height: 88vh; overflow-y: auto; position: relative; transform: translateY(22px) scale(.97); transition: transform .35s cubic-bezier(.4,0,.2,1); box-shadow: 0 24px 64px rgba(0,0,0,.18); }
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-hero { width: 100%; height: 220px; position: relative; overflow: hidden; border-radius: 20px 20px 0 0; flex-shrink: 0; }
.modal-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(to bottom, transparent, rgba(255,255,255,.5)); pointer-events: none; }
.modal-body { padding: 1.75rem 2.25rem 2.5rem; }
.modal-close { position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; color: #333; transition: var(--t); line-height: 1; z-index: 10; }
.modal-close:hover { background: #111; color: #fff; border-color: #111; }
.modal-num   { font-size: .65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #bbb; margin-bottom: .4rem; }
.modal-title { font-size: 1.55rem; font-weight: 900; letter-spacing: -.03em; color: #111; margin-bottom: .65rem; }
.modal-desc  { font-size: .9rem; color: #555; line-height: 1.8; margin-bottom: 1.6rem; }
.modal-list  { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1rem; margin-bottom: 2rem; }
.modal-list li { display: flex; align-items: flex-start; gap: .55rem; font-size: .84rem; color: #333; line-height: 1.45; }
.modal-list li::before { content: ''; width: 7px; height: 7px; min-width: 7px; border-radius: 50%; background: var(--yellow); margin-top: .33em; }
.modal-cta { display: flex; gap: .75rem; padding-top: 1.5rem; border-top: 1px solid #eee; }
@media (max-width: 540px) { .modal-body { padding: 1.25rem 1.25rem 0; } }

/* ─── HEIZUNGSPLANER CTA SECTION ─────────────────────────────────── */
#heizungsplaner-cta { background: linear-gradient(135deg, #0d1b3e 0%, #0f172a 50%, #1a0a00 100%); padding: 7rem 0; position: relative; overflow: hidden; }
#heizungsplaner-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 600px 400px at 10% 50%, rgba(37,99,235,.12) 0%, transparent 70%), radial-gradient(ellipse 400px 300px at 90% 30%, rgba(245,158,11,.1) 0%, transparent 70%); pointer-events: none; }
.hp-cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; position: relative; z-index: 1; }
.hp-cta-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.hp-cta-list li { display: flex; align-items: center; gap: .65rem; font-size: .9rem; color: rgba(255,255,255,.75); font-weight: 500; }
.hp-cta-list li svg { width: 17px; height: 17px; stroke: var(--yellow); stroke-width: 2; flex-shrink: 0; }
.hp-cta-right { display: flex; justify-content: center; }
.hp-cta-card { background: #ffffff; border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.2); width: 100%; max-width: 380px; overflow: hidden; }
.hp-cta-card-head { background: #f9fafb; border-bottom: 1px solid #f3f4f6; padding: 1.25rem 1.5rem; }
.hp-cta-steps { display: flex; align-items: center; justify-content: center; gap: 0; }
.hp-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #d1d5db; background: #fff; color: #9ca3af; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hp-dot.active { border-color: #2563eb; background: #2563eb; color: #fff; }
.hp-line { flex: 1; height: 2px; background: #e5e7eb; min-width: 12px; }
.hp-cta-card-body { padding: 1.5rem; }
.hp-cta-q { font-size: .95rem; font-weight: 700; color: #111827; margin-bottom: 1rem; }
.hp-cta-opts { display: flex; flex-direction: column; gap: .5rem; }
.hp-cta-opt { padding: .7rem 1rem; border: 1.5px solid #e5e7eb; border-radius: 10px; font-size: .85rem; color: #374151; font-weight: 500; }
.hp-cta-opt.selected { border-color: #f59e0b; background: #fffbeb; color: #111; font-weight: 600; }
.hp-cta-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-top: 1px solid #f3f4f6; background: #fafafa; }
.hp-cta-tag { display: flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 600; color: #6b7280; }
.hp-cta-tag svg { width: 14px; height: 14px; stroke: #2563eb; stroke-width: 2; }
.hp-cta-start { font-size: .84rem; font-weight: 700; color: #f59e0b; transition: var(--t); }
.hp-cta-start:hover { color: #d97706; }

/* ─── SCROLL TOP ─────────────────────────────────────────────────── */
#scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(245,158,11,.45); background: rgba(245,158,11,.12); color: var(--yellow); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; backdrop-filter: blur(8px); opacity: 0; transform: translateY(10px); transition: var(--t); z-index: 998; }
#scroll-top.show { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--yellow); color: #060912; }

/* ─── SCROLL REVEAL ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: .1s; }
.rd2 { transition-delay: .2s; }
.rd3 { transition-delay: .3s; }
.rd4 { transition-delay: .4s; }

/* ─── ACCESSIBILITY ──────────────────────────────────────────────── */
.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; top: -100%; left: 1rem; background: var(--yellow); color: #1a0900; padding: .55rem 1.25rem; border-radius: 0 0 10px 10px; font-weight: 700; font-size: .9rem; z-index: 10000; transition: top .2s; }
.skip-link:focus { top: 0; outline: 3px solid #1a0900; outline-offset: 2px; }
:focus-visible { outline: 3px solid var(--yellow) !important; outline-offset: 3px !important; }
#leistungen :focus-visible, #ueber-uns :focus-visible, #ablauf :focus-visible, #foerderung :focus-visible, #heizungsplaner-cta :focus-visible { outline-color: #1d4ed8 !important; }
.fg input:focus, .fg textarea:focus, .fg select:focus { outline: none; }
.fg input:focus-visible, .fg textarea:focus-visible, .fg select:focus-visible { outline: 3px solid var(--yellow) !important; outline-offset: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee-track { animation: none; overflow: hidden; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hp-cta-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hp-cta-right { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .svc:nth-child(3n) { border-right: 1px solid var(--border); }
  .svc:nth-child(2n) { border-right: none; }
  .svc:nth-last-child(-n+3):nth-child(3n+1) { border-bottom: 1px solid var(--border); }
  .svc:nth-last-child(-n+2):nth-child(2n+1), .svc:nth-last-child(-n+1) { border-bottom: none; }
  .process-steps { grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); }
  .pstep:nth-child(2) { border-right: none; }
  .pstep:nth-child(3) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
  .pstep:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .header-right .btn { display: none; }
  .burger { display: flex; }
  .hero-stats { gap: 2.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .svc { border-right: none !important; }
  .svc:last-child { border-bottom: none; }
  .process-steps { grid-template-columns: 1fr; }
  .pstep { border-right: none; border-bottom: 1px solid var(--border); }
  .pstep:last-child { border-bottom: none; }
  .frow { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .about-float { right: 0; bottom: -1.5rem; }

  /* Mobile Header: volle Breite, clean & farblich wie die Haupt-Navy */
  #header {
    position: relative;
    top: auto; left: auto; right: auto;
    width: 100%;
    margin: 0;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 0 10px;
    border-radius: 0;
    background: rgba(7,9,26,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    z-index: 2100;
    transition: none;
  }

  /* Burger als dezenter Button (besser lesbar, wirkt hochwertiger) */
  .burger {
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .burger span { width: 22px; height: 2px; }

  /* Hero: kein extra padding-top mehr nötig (Header ist jetzt im Flow) */
  #hero { padding-top: 2.5rem; }

  /* Modal als Bottom-Sheet auf Mobile */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-box {
    max-width: 100%;
    width: 100%;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .modal-overlay.open .modal-box {
    transform: translateY(0) scale(1);
  }
  .modal-hero {
    height: 140px;
    flex-shrink: 0;
    border-radius: 24px 24px 0 0;
  }
  .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.25rem 0;
    -webkit-overflow-scrolling: touch;
  }
  .modal-cta {
    flex-shrink: 0;
    flex-direction: column;
    background: #ffffff;
    border-top: 1px solid #eee;
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
    margin-top: 0;
    padding-top: 1rem;
  }
  .modal-list { grid-template-columns: 1fr; }
}

/* Safe-Area-Filler: iOS Statusbar-Zone farblich passend (sonst „heller Streifen“/Bleed) */
#safe-area-bar{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: env(safe-area-inset-top, 0px);
  background: rgba(7,9,26,.92);
  /* über dem Mobile-Menü (2000), unter dem Header (2100) */
  z-index: 2050;
  pointer-events: none;
}

/* ─── MOBILE FLOATING SCROLL-NAV (Mobile only) ───────────────────── */
/* Hidden on desktop */
#mobile-pill-nav { display: none; }

@media (max-width: 768px) {
  /* Mobile scroll-nav: bar unsichtbar, nur Logo + Menü-Button sichtbar */
  #mobile-pill-nav{
    display:flex;
    align-items:center;
    justify-content:space-between;

    position:fixed;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    left: 12px;
    right: 12px;

    /* über dem Mobile-Menü, damit Burger als Toggle zum Schließen nutzbar bleibt */
    z-index: 2101;

    /* Bar selbst unsichtbar */
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 0 !important;
    box-shadow: none !important;

    padding: 0;
    height: auto;

    opacity: 0;
    pointer-events: none; /* Scroll bleibt frei */
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease;
  }


  #mobile-pill-nav.pill-visible{
    opacity:1;
    pointer-events: none;
    transform: translateY(0);
  }

  .pill-brand{
    display:flex;
    align-items:center;
    gap: .65rem;
    text-decoration:none;
    min-width:0;
  }
  /* Elemente klickbar machen, obwohl Container pointer-events:none hat */
  #mobile-pill-nav .pill-brand,
  #mobile-pill-nav .pill-burger{ pointer-events: auto; }


  /* Scroll-Logo: kleiner und näher am Look der Hauptnavigation */
  .pill-logo-img{
    height: 34px;
    width:auto;
    max-width: 180px;
    display:block;
    /* kein kastenförmiger Schatten um das Logo */
    filter: none !important;
  }

  .pill-burger{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap: 6px;

    width: 54px;
    height: 54px;

    /* Farbe passend zur Hauptnavigationsleiste (dunkles Navy) */
    background: rgba(7,9,26,.78);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;

    /* leichte Glas-Anmutung nur am Button (nicht an der Leiste) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    cursor:pointer;
    padding:0;
    flex-shrink:0;

    box-shadow: 0 12px 26px rgba(0,0,0,.22);
  }

  .pill-burger span{
    display:block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,.92);
    border-radius: 2px;
    transition: var(--t);
  }
}


/* ═══════════════════════════════════════════════════════════════════
   HEIZUNGSPLANER PAGE
   ═══════════════════════════════════════════════════════════════════ */

/* ─── HP HERO ────────────────────────────────────────────────────── */
#hp-hero {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding-top: 7rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to right, rgba(10,10,10,.92) 30%, rgba(10,10,10,.65) 65%, rgba(10,10,10,.40) 100%),
    url('https://images.unsplash.com/photo-1700124113583-81aa99ea2aa2?w=1800&h=600&fit=crop&q=80&auto=format') center / cover no-repeat;
}
.hp-hero-inner { position: relative; z-index: 1; }
.hp-hero-label { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1rem; }
.hp-hero-label::before { content: ''; display: block; width: 28px; height: 2px; background: var(--yellow); flex-shrink: 0; }
.hp-hero-title { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; line-height: 1.06; letter-spacing: -.03em; color: var(--white); margin-bottom: .9rem; }
.hp-hero-sub { font-size: 1rem; color: rgba(255,255,255,.6); max-width: 480px; line-height: 1.75; }

/* ─── HP FORM SECTION ────────────────────────────────────────────── */
#hp-form { background: #f2f2f2; padding: 4rem 0 6rem; }
.hp-card { background: #ffffff; border-radius: 24px; box-shadow: 0 4px 40px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06); max-width: 680px; margin-inline: auto; overflow: hidden; }

/* ─── PROGRESS STEPPER ──────────────────────────────────────────── */
.hp-progress { padding: 2.5rem 2.5rem 0; background: #fff; }
.hp-stepper { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: .75rem; }
.hp-step-circle { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #d1d5db; background: #fff; color: #9ca3af; font-size: .82rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--t); position: relative; z-index: 1; }
.hp-step-circle.current { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.15); }
.hp-step-circle.done { border-color: #93c5fd; background: #dbeafe; color: var(--blue); }
.hp-step-line { flex: 1; height: 2px; background: #e5e7eb; transition: background var(--t); min-width: 20px; }
.hp-step-line.done { background: #93c5fd; }
.hp-step-counter { text-align: center; font-size: .78rem; color: #6b7280; font-weight: 500; padding-bottom: .75rem; }

/* ─── HP FORM BODY ───────────────────────────────────────────────── */
.hp-form-body { padding: 2.25rem 2.5rem 2.5rem; }
.hp-step-content { display: none; }
.hp-step-content.active { display: block; }
.hp-question { font-size: 1.2rem; font-weight: 800; color: #111827; letter-spacing: -.022em; line-height: 1.3; margin-bottom: 1.5rem; }
.hp-question-sub { font-size: .9rem; color: #6b7280; margin-top: .35rem; margin-bottom: 1.5rem; font-weight: 400; line-height: 1.6; }
.hp-options { display: flex; flex-direction: column; gap: .65rem; }
.hp-option { width: 100%; padding: 1.05rem 1.5rem; border: 1.5px solid #e5e7eb; border-radius: 12px; background: #fff; color: #1f2937; font-size: .95rem; font-weight: 500; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hp-option:hover { border-color: #fbbf24; background: #fffbeb; }
.hp-option.selected { border-color: var(--yellow); background: #fffbeb; color: #111; font-weight: 600; }
.hp-option.selected::after { content: ''; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); flex-shrink: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.hp-subquestion { margin-bottom: 2rem; }
.hp-subquestion:last-child { margin-bottom: 0; }
.hp-sublabel { font-size: 1rem; font-weight: 700; color: #1f2937; margin-bottom: .85rem; letter-spacing: -.01em; }
.hp-options-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.hp-option-sm { padding: .75rem 1rem; border: 1.5px solid #e5e7eb; border-radius: 10px; background: #fff; color: #374151; font-size: .88rem; font-weight: 500; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.hp-option-sm:hover { border-color: #fbbf24; background: #fffbeb; }
.hp-option-sm.selected { border-color: var(--yellow); background: #fffbeb; color: #111; font-weight: 600; }

/* ─── HP CONTACT FORM (Step 7) ───────────────────────────────────── */
.hp-fields { display: flex; flex-direction: column; gap: .9rem; }
.hp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.hp-fg { display: flex; flex-direction: column; gap: .4rem; }
.hp-fg label { font-size: .72rem; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .08em; }
.hp-fg input { padding: .82rem 1rem; border: 1.5px solid #e5e7eb; border-radius: 10px; font-family: var(--font); font-size: .9rem; color: #111827; background: #fff; transition: border-color .2s, box-shadow .2s; width: 100%; }
.hp-fg input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.hp-fg input.invalid { border-color: #ef4444; }
.hp-privacy { display: flex; align-items: flex-start; gap: .7rem; margin-top: .5rem; padding: .9rem 1rem; background: #f9fafb; border-radius: 10px; border: 1px solid #e5e7eb; }
.hp-privacy input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--yellow); margin-top: .15rem; flex-shrink: 0; cursor: pointer; }
.hp-privacy label { font-size: .82rem; color: #6b7280; line-height: 1.5; cursor: pointer; }
.hp-privacy a { color: var(--blue); text-decoration: underline; }

/* ─── HP NAVIGATION ──────────────────────────────────────────────── */
.hp-nav { display: flex; gap: .75rem; padding: 1.5rem 2.5rem 2rem; border-top: 1px solid #f3f4f6; background: #fafafa; }
.hp-btn-back { flex: 1; padding: .9rem; border: 1.5px solid #d1d5db; border-radius: 12px; background: #1f2937; color: #fff; font-size: .95rem; font-weight: 700; cursor: pointer; transition: var(--t); }
.hp-btn-back:hover { background: #111827; }
.hp-btn-back:disabled { opacity: .35; cursor: not-allowed; }
.hp-btn-next { flex: 1; padding: .9rem; border: none; border-radius: 12px; font-size: .95rem; font-weight: 700; cursor: pointer; transition: var(--t); background: linear-gradient(170deg, rgba(255,214,80,.96) 0%, rgba(200,105,0,.92) 100%); color: #1a0900; position: relative; overflow: hidden; box-shadow: 0 4px 18px rgba(245,158,11,.28); }
.hp-btn-next:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(245,158,11,.4); }
.hp-btn-next:disabled { background: #e5e7eb; color: #9ca3af; cursor: not-allowed; transform: none; box-shadow: none; }

/* ─── HP SUCCESS STATE ───────────────────────────────────────────── */
.hp-success { display: none; text-align: center; padding: 4rem 2.5rem; }
.hp-success.show { display: block; }
.hp-success-icon { width: 72px; height: 72px; border-radius: 50%; background: #dcfce7; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.hp-success-icon svg { width: 36px; height: 36px; stroke: #16a34a; stroke-width: 2; }
.hp-success h3 { font-size: 1.5rem; font-weight: 800; color: #111827; margin-bottom: .75rem; }
.hp-success p { color: #6b7280; line-height: 1.7; margin-bottom: 1.5rem; }

/* HP accessibility */
#hp-form :focus-visible { outline-color: #1d4ed8 !important; }
.hp-fg input:focus-visible { outline: 3px solid #1d4ed8 !important; outline-offset: 0 !important; }
.hp-fields .field-error { font-size: .78rem; color: #ef4444; margin-top: .3rem; display: flex; align-items: center; gap: .3rem; }
.hp-fields .field-error[hidden] { display: none; }

/* HP Responsive */
@media (max-width: 768px) {
  .hp-card { border-radius: 16px; }
  .hp-progress { padding: 1.75rem 1.5rem 0; }
  .hp-form-body { padding: 1.75rem 1.5rem; }
  .hp-nav { padding: 1.25rem 1.5rem 1.75rem; }
  .hp-options-row { grid-template-columns: 1fr; }
  .hp-field-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hp-stepper { gap: 0; }
  .hp-step-circle { width: 30px; height: 30px; font-size: .72rem; }
  .hp-step-line { min-width: 12px; }
  .hp-question { font-size: 1.05rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   DANKE PAGE
   ═══════════════════════════════════════════════════════════════════ */
body.page-template-page-danke,
body.danke-page {
  background: #f2f2f2 !important;
  color: #111827 !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-template-page-danke nav,
body.page-template-page-danke .burger,
body.page-template-page-danke .mobile-nav,
body.page-template-page-danke .header-right,
body.danke-page nav,
body.danke-page .burger,
body.danke-page .mobile-nav,
body.danke-page .header-right { display: none !important; }
body.page-template-page-danke #main-content,
body.danke-page #main-content {
  flex: 1;
  padding: 9rem 0 6rem;
  display: flex;
  align-items: center;
}
body.page-template-page-danke footer,
body.danke-page footer { padding: 3rem 0 1.5rem; }
body.page-template-page-danke .footer-inner,
body.danke-page .footer-inner { display: none; }

.danke-wrap { max-width: 720px; margin-inline: auto; width: 100%; }
.danke-check { width: 90px; height: 90px; border-radius: 50%; background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); display: flex; align-items: center; justify-content: center; margin: 0 auto 2rem; box-shadow: 0 0 0 16px rgba(16,185,129,.08), 0 8px 32px rgba(16,185,129,.2); animation: pop-in .6s cubic-bezier(.175,.885,.32,1.275) both; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
.danke-check svg { width: 44px; height: 44px; stroke: #059669; stroke-width: 2.5; animation: draw-check .5s .3s ease both; }
@keyframes draw-check { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
.danke-check svg polyline { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw-check .5s .4s ease forwards; }
.danke-label { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #059669; margin-bottom: .85rem; }
.danke-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: #111827; text-align: center; letter-spacing: -.035em; line-height: 1.1; margin-bottom: 1rem; }
.danke-sub { font-size: 1.05rem; color: #6b7280; text-align: center; max-width: 480px; margin: 0 auto 3rem; line-height: 1.75; }
.danke-card { background: #ffffff; border-radius: 20px; box-shadow: 0 4px 40px rgba(0,0,0,.08); padding: 2.25rem 2.5rem; margin-bottom: 2.5rem; }
.danke-card-title { font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--yellow); margin-bottom: 1.75rem; }
.danke-steps { display: flex; flex-direction: column; gap: 0; }
.danke-step { display: flex; gap: 1.25rem; align-items: flex-start; position: relative; }
.danke-step:not(:last-child)::after { content: ''; position: absolute; left: 19px; top: 40px; width: 2px; height: calc(100% - 4px); background: linear-gradient(to bottom, #e5e7eb, transparent); }
.danke-step-num { width: 40px; height: 40px; border-radius: 50%; background: #f9fafb; border: 2px solid #e5e7eb; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; }
.danke-step-num svg { width: 18px; height: 18px; stroke: var(--yellow); stroke-width: 2; }
.danke-step-body { padding-top: .15rem; padding-bottom: 2rem; }
.danke-step:last-child .danke-step-body { padding-bottom: 0; }
.danke-step-title { font-size: .95rem; font-weight: 700; color: #111827; margin-bottom: .25rem; }
.danke-step-text { font-size: .88rem; color: #6b7280; line-height: 1.6; }
.danke-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.danke-cta .btn { font-size: 1rem; padding: 1rem 2.25rem; }
.danke-note { text-align: center; margin-top: 2rem; font-size: .84rem; color: #9ca3af; }
.danke-note a { color: var(--blue); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .danke-check { animation: none; }
  .danke-check svg, .danke-check svg polyline { animation: none; stroke-dashoffset: 0; }
}
@media (max-width: 600px) {
  .danke-card { padding: 1.75rem 1.25rem; }
  .danke-cta { flex-direction: column; align-items: stretch; }
  .danke-cta .btn { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   LEGAL PAGES (IMPRESSUM / DATENSCHUTZ)
   ═══════════════════════════════════════════════════════════════════ */
body.page-template-page-impressum,
body.page-template-page-datenschutz {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container-narrow { max-width: 860px; }
.page-hero { padding: 9rem 0 4rem; position: relative; overflow: hidden; background: var(--bg); }
.page-hero::before { content: ''; position: absolute; width: 600px; height: 400px; top: -100px; left: 50%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(37,99,235,.15) 0%, transparent 70%); pointer-events: none; }
.page-hero-label { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); margin-bottom: .85rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; color: var(--white); }
.legal-wrap { flex: 1; padding-bottom: 5rem; background: #f2f2f2; }
.legal-card { background: #ffffff; border: 1px solid #e0e0e0; border-radius: 20px; padding: clamp(2rem, 5vw, 3.5rem); margin-bottom: 3rem; }
.legal-card h2 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; color: #111111; margin-top: 2.25rem; margin-bottom: .75rem; padding-top: 2.25rem; border-top: 1px solid #e0e0e0; }
.legal-card h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-card p { font-size: .92rem; color: #555555; line-height: 1.85; margin-bottom: .6rem; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card strong { color: #111111; font-weight: 600; }
.legal-card a { color: var(--yellow); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-card a:hover { color: #111111; }
.legal-card ul { font-size: .92rem; color: #555555; line-height: 1.85; padding-left: 1.5rem; margin-bottom: .6rem; }
.legal-card ul li { margin-bottom: .25rem; }
.info-grid { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1.5rem; font-size: .92rem; line-height: 1.7; margin-bottom: .75rem; }
.info-grid dt { color: #999999; font-weight: 500; white-space: nowrap; }
.info-grid dd { color: #555555; }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 3rem; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }
