/* ============================================================
   Offertenfuchs Design System
   Farben: Orange #ED6F04 / Anthrazit #262C32 · Fonts: Figtree/Inter
   ============================================================ */

:root {
  --orange: #ED6F04;
  --orange-dark: #C75D03;
  --orange-soft: #FDF1E6;
  --dark: #262C32;
  --dark-2: #323A42;
  --gray-50: #FAFAFB;
  --gray-100: #F4F5F6;
  --gray-200: #EEEFF1;
  --gray-300: #DCDCDE;
  --text: #262C32;
  --muted: #5B6470;
  --green: #15803D;
  --green-soft: #EAF7EF;
  --red: #B91C1C;
  --red-soft: #FDEBEB;
  --blue: #1D4ED8;
  --blue-soft: #EAF0FD;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(38,44,50,.07), 0 8px 24px rgba(38,44,50,.07);
  --shadow-lg: 0 4px 12px rgba(38,44,50,.1), 0 16px 48px rgba(38,44,50,.14);
  --font-head: 'Figtree', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; display: inline-block; }
a { color: var(--orange); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--dark); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.icon { vertical-align: -0.22em; flex-shrink: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px 14px; z-index: 999; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: 14px 26px; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: all .18s ease; min-height: 48px;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(237,111,4,.35); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--gray-200); }
.btn-outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange-soft); }
.btn-sm { padding: 9px 16px; min-height: 38px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--dark); color: #E7E9EB; font-size: .85rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.topbar-claim { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.topbar-claim .icon { color: var(--orange); }
.topbar-nav { display: flex; gap: 18px; }
.topbar-nav a { color: #E7E9EB; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar-nav a:hover { color: var(--orange); }

.site-header { background: #fff; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 60; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand img { display: block; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--dark);
  text-decoration: none; padding: 10px 14px; border-radius: 8px; background: none; border: 0; cursor: pointer;
}
.nav-link:hover { background: var(--gray-100); color: var(--orange); }
.nav-cta { margin-left: 8px; }
.nav-item.has-sub { position: relative; }
.caret { display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 6px; }
.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; background: #fff; min-width: 240px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 70;
}
.nav-item.has-sub.open .sub-menu, .nav-item.has-sub:hover .sub-menu { display: block; }
.sub-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; text-decoration: none; color: var(--dark); border-radius: 8px; font-weight: 500; }
.sub-menu a:hover { background: var(--orange-soft); color: var(--orange); }
.sub-menu .icon { color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; color: var(--dark); cursor: pointer; padding: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .38; }
.hero-grad { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(38,44,50,.94) 25%, rgba(38,44,50,.55) 70%, rgba(38,44,50,.35)); }
.hero-inner { position: relative; padding: 72px 0 84px; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p.lead { font-size: 1.12rem; color: #E3E6E9; max-width: 620px; }
.hero .btn-primary { margin-top: 10px; }
.hero-badge { position: absolute; right: 4%; top: 48px; width: 130px; z-index: 2; filter: drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; color: #C9CDD2; }

/* Trust-Leiste */
.trust-strip { background: #fff; border-bottom: 1px solid var(--gray-200); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item .icon { color: var(--green); margin-top: 3px; }
.trust-item strong { font-family: var(--font-head); display: block; }
.trust-item span { color: var(--muted); font-size: .88rem; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--gray-50); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { font-family: var(--font-head); color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.section-head p { color: var(--muted); }

/* Kategorie-Karten */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease; border: 1px solid var(--gray-200);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card-img { aspect-ratio: 16/10; background-size: cover; background-position: center; }
.cat-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-card h3 { display: flex; align-items: center; gap: 10px; margin: 0; }
.cat-card h3 .icon { color: var(--orange); }
.cat-card p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.cat-card .cat-cta { font-family: var(--font-head); font-weight: 700; color: var(--orange); text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; display: inline-flex; align-items: center; gap: 6px; }

/* Feature/Warum-Karten */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature .icon-wrap { width: 52px; height: 52px; border-radius: 12px; background: var(--orange-soft); color: var(--orange); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Ablauf */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card { position: relative; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 30px 26px 26px; box-shadow: var(--shadow); }
.step-card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 22px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange); color: #fff; font-family: var(--font-head); font-weight: 800;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(237,111,4,.4);
}
.step-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); margin-bottom: 10px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--dark);
  padding: 16px 46px 16px 18px; position: relative;
}
.faq-q::after { content: ''; position: absolute; right: 18px; top: 22px; width: 9px; height: 9px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(225deg); top: 26px; }
.faq-a { display: none; padding: 0 18px 16px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* CTA-Band + Footer */
.cta-band { background: linear-gradient(100deg, var(--orange), #F5891F); color: #fff; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 1.5rem; }
.cta-band p { margin: 0; opacity: .92; }

.site-footer { background: var(--dark); color: #C9CDD2; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 56px 20px 36px; }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer a { color: #C9CDD2; text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--orange); }
.site-footer address { font-style: normal; margin: 14px 0 10px; line-height: 1.7; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px 26px; border-top: 1px solid var(--dark-2); flex-wrap: wrap; }
.footer-social a { display: inline; margin-left: 16px; }

/* ---------- Formulare ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }
.req { color: var(--orange); }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="date"], input[type="url"], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .97rem; color: var(--text); background: #fff; transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(237,111,4,.15); }
textarea { min-height: 110px; resize: vertical; }
.hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field-error { border-color: var(--red) !important; }
.error-msg { color: var(--red); font-size: .84rem; margin-top: 4px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check-row input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.radio-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pills label { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--gray-300); padding: 9px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; font-family: var(--font-body); margin: 0; }
.radio-pills input { accent-color: var(--orange); }
.radio-pills label:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }

.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin: 0 0 16px; font-size: .94rem; }
.alert-success { background: var(--green-soft); color: var(--green); border: 1px solid #BEE3CC; }
.alert-error { background: var(--red-soft); color: var(--red); border: 1px solid #F1C5C5; }
.alert-info { background: var(--blue-soft); color: var(--blue); border: 1px solid #C6D4F5; }

.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-orange { background: var(--orange-soft); color: var(--orange-dark); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-gray { background: var(--gray-200); color: var(--muted); }

/* ---------- Funnel-Wizard ---------- */
.funnel-hero { position: relative; background: var(--dark); padding: 48px 0 84px; }
.funnel-hero .hero-bg { opacity: .3; }
.funnel-wrap { position: relative; max-width: 860px; margin: 0 auto; }
.funnel-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 34px clamp(20px, 4vw, 44px) 30px; }
.funnel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.funnel-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--orange); margin-bottom: 4px; }
.funnel-head .badge-img { width: 96px; flex-shrink: 0; margin-top: -60px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.funnel-progress { height: 6px; background: var(--gray-200); border-radius: 3px; margin: 18px 0 26px; overflow: hidden; }
.funnel-progress span { display: block; height: 100%; background: var(--orange); border-radius: 3px; transition: width .3s ease; }
.funnel-step-label { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.funnel-q { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin-bottom: 18px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 8px; }
.opt-card {
  border: 2px solid var(--gray-300); border-radius: var(--radius); background: #fff; cursor: pointer;
  padding: 20px 14px; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  display: flex; flex-direction: column; align-items: center; gap: 10px; transition: all .15s ease; color: var(--dark);
}
.opt-card .icon { color: var(--orange); width: 34px; height: 34px; }
.opt-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.opt-card.selected { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 3px rgba(237,111,4,.15); }
.funnel-note { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }
.funnel-actions { display: flex; gap: 12px; margin-top: 24px; }
.funnel-actions .btn { flex: 1; }
.funnel-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 18px; padding: 12px 16px; border: 1px solid #BEE3CC; background: var(--green-soft); border-radius: var(--radius-sm); font-size: .88rem; color: var(--green); font-weight: 600; }
.funnel-trust span { display: inline-flex; align-items: center; gap: 7px; }
.upload-drop { border: 2px dashed var(--gray-300); border-radius: var(--radius); padding: 30px; text-align: center; color: var(--muted); cursor: pointer; transition: border .15s; }
.upload-drop:hover, .upload-drop.drag { border-color: var(--orange); background: var(--orange-soft); }
.upload-list { list-style: none; padding: 0; margin: 12px 0 0; font-size: .9rem; }
.upload-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 12px; background: var(--gray-100); border-radius: 8px; margin-bottom: 6px; }
.upload-list button { background: none; border: 0; color: var(--red); cursor: pointer; font-size: 1rem; }

/* SEO-Text unter dem Funnel */
.seo-block { max-width: 820px; margin: 0 auto; }
.seo-block h2 { margin-top: 1.6em; }
.seo-block ul { color: var(--muted); }
.seo-block p { color: var(--muted); }

/* ---------- Auth (Login) ---------- */
.auth-wrap { min-height: calc(100vh - 200px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { background: var(--dark) url('/img/hero-home.jpg') center/cover; position: relative; }
.auth-visual::after { content: ''; position: absolute; inset: 0; background: rgba(38,44,50,.82); }
.auth-visual-inner { position: relative; z-index: 1; color: #fff; padding: 60px 48px; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.auth-visual h2 { color: #fff; }
.auth-visual p { color: #C9CDD2; max-width: 380px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form-inner { width: 100%; max-width: 400px; }
.auth-form-inner .sub { color: var(--muted); margin-bottom: 26px; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .18s, box-shadow .18s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-img { aspect-ratio: 16/9; background-size: cover; background-position: center; }
.post-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.post-meta { font-size: .82rem; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.post-card p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.article { max-width: 760px; margin: 0 auto; }
.article-hero { aspect-ratio: 21/9; border-radius: var(--radius); background-size: cover; background-position: center; margin-bottom: 30px; }
.article h2 { margin-top: 1.6em; }
.article ul { color: var(--text); }
.prose p { color: #3A424C; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
table.data th { text-align: left; font-family: var(--font-head); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--gray-100); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: var(--gray-50); }
table.data .num { text-align: right; white-space: nowrap; }

/* ---------- Sticky Mobile CTA ---------- */
.sticky-cta { display: none; }

/* ---------- Cookie-Banner ---------- */
.consent-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 480px; z-index: 200;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px;
}
.consent-banner h3 { margin-bottom: 6px; }
.consent-banner p { font-size: .88rem; color: var(--muted); }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent-actions .btn { flex: 1; padding: 11px 14px; min-height: 42px; font-size: .82rem; }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .cat-card, .post-card, .opt-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badge { display: none; }
}
@media (max-width: 767px) {
  .topbar-claim { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 14px 20px 20px; gap: 4px;
    border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .sub-menu { position: static; display: none; box-shadow: none; padding: 0 0 0 12px; }
  .nav-item.has-sub.open .sub-menu { display: block; }
  .nav-item.has-sub:hover .sub-menu { display: none; }
  .nav-item.has-sub.open .sub-menu { display: block; }
  .nav-cta { margin: 10px 0 0; }
  .hero-inner { padding: 48px 0 60px; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-top: 40px; }
  .section { padding: 52px 0; }
  .funnel-head .badge-img { width: 72px; margin-top: -48px; }
  .opt-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--gray-200);
  }
  .sticky-cta .btn { flex: 1; }
  body.has-sticky-cta { padding-bottom: 74px; }
}

/* ============================================================
   Funnel v2 — Autocomplete, Animationen, Validierung, Vorschau
   ============================================================ */

/* PLZ-Autocomplete */
.plz-host { position: relative; }
.plz-suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); max-height: 264px; overflow-y: auto; margin-top: 4px;
}
.plz-suggest-item {
  display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 11px 14px; font-family: var(--font-body); font-size: .95rem; color: var(--text);
  border-bottom: 1px solid var(--gray-100);
}
.plz-suggest-item:last-child { border-bottom: 0; }
.plz-suggest-item:hover, .plz-suggest-item.active { background: var(--orange-soft); }
.plz-suggest-item strong { color: var(--orange); font-family: var(--font-head); }
.plz-kt { color: var(--muted); font-size: .8rem; float: right; margin-top: 2px; }

/* Schritt-Übergänge */
.funnel-frame { will-change: transform, opacity; }
.funnel-frame.slide-in { animation: of-slide-in .28s ease both; }
.funnel-frame.slide-back { animation: of-slide-back .28s ease both; }
@keyframes of-slide-in { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes of-slide-back { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.shake { animation: of-shake .35s ease; }
@keyframes of-shake { 0%,100% { transform: none; } 25% { transform: translateX(-6px); } 55% { transform: translateX(5px); } 80% { transform: translateX(-3px); } }

/* Options-Karten: Auswahl-Feedback */
.opt-card { position: relative; }
.opt-check {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.4); transition: all .18s ease;
}
.opt-card.selected .opt-check { opacity: 1; transform: scale(1); }
.opt-card.selected { animation: of-pop .22s ease; }
@keyframes of-pop { 0% { transform: scale(1); } 50% { transform: scale(1.035); } 100% { transform: scale(1); } }

/* Kontakt: Live-Validierung */
.field-box { position: relative; }
.field-check {
  position: absolute; right: 12px; top: 38px; color: var(--green); font-weight: 700;
  opacity: 0; transform: scale(.5); transition: all .18s ease; pointer-events: none;
}
.field-box.valid .field-check { opacity: 1; transform: scale(1); }
.field-box.valid input { border-color: #86C79E; }

/* Zusammenfassung */
.summary-title { font-size: .85rem; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.summary-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: var(--orange-soft);
  border: 1px solid #F5CFA9; color: var(--dark); border-radius: 999px; padding: 6px 12px;
  font-size: .85rem; font-family: var(--font-body); cursor: pointer; transition: border .15s;
}
.chip:hover { border-color: var(--orange); }
.chip-edit { color: var(--orange); font-size: .75rem; font-weight: 600; }

/* Upload-Vorschau */
.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.upload-thumb {
  position: relative; border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--gray-100); aspect-ratio: 1;
}
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-thumb-pdf { display: flex; align-items: center; justify-content: center; height: 100%; font-family: var(--font-head); font-weight: 800; color: var(--muted); }
.upload-thumb-name {
  position: absolute; left: 0; right: 0; bottom: 0; background: rgba(38,44,50,.75); color: #fff;
  font-size: .68rem; padding: 3px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.upload-thumb-x {
  position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(38,44,50,.8); color: #fff; border: 0; cursor: pointer; font-size: .75rem;
}
.upload-thumb-x:hover { background: var(--red); }

/* Sende-Spinner */
.spinner {
  display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: of-spin .7s linear infinite; vertical-align: -3px;
}
@keyframes of-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .funnel-frame.slide-in, .funnel-frame.slide-back, .opt-card.selected, .shake { animation: none; }
  .spinner { animation-duration: 1.4s; }
}
