/* ============================================================
   Frank Münchow Versicherungsmakler — Stylesheet
   ============================================================ */

/* --- Self-hosted fonts (no external requests to Google) --- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plusjakartasans-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/plusjakartasans-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Design tokens --- */
:root {
  --ink: #14192A;
  --ink-soft: #4B5468;
  --ink-faint: #7B8296;

  --navy: #131B31;
  --navy-deep: #0B1120;
  --navy-2: #202B4A;

  --paper: #FBF7EF;
  --paper-dim: #F1E8D6;
  --cream: #FFFDF9;
  --line: #E6DCC5;
  --line-soft: #EEE6D4;

  --accent: #C17A3B;
  --accent-2: #E2A65C;
  --accent-ink: #7A4D22;
  --accent-soft: #F4E1C6;

  --sage: #4F6D5B;

  --on-navy: #F5F0E4;
  --on-navy-dim: #AEB6CC;
  --line-on-navy: rgba(245, 240, 228, 0.14);

  --font-display: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-xs: clamp(0.78rem, 0.75rem + 0.14vw, 0.86rem);
  --fs-sm: clamp(0.92rem, 0.88rem + 0.18vw, 1rem);
  --fs-base: clamp(1.03rem, 0.98rem + 0.22vw, 1.125rem);
  --fs-md: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
  --fs-lg: clamp(1.55rem, 1.35rem + 0.9vw, 2.1rem);
  --fs-xl: clamp(2rem, 1.6rem + 1.7vw, 3.05rem);
  --fs-2xl: clamp(2.5rem, 1.9rem + 2.6vw, 4.1rem);
  --fs-3xl: clamp(2.9rem, 2rem + 3.9vw, 5.5rem);

  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1.25rem;
  --space-md: 1.75rem;
  --space-lg: 2.5rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
  --space-section: clamp(4.5rem, 3.6rem + 4vw, 7.5rem);

  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 10px -4px rgba(18, 22, 40, 0.16);
  --shadow-md: 0 16px 36px -14px rgba(18, 22, 40, 0.24);
  --shadow-lg: 0 34px 80px -24px rgba(11, 17, 32, 0.4);
  --shadow-accent: 0 18px 40px -16px rgba(193, 122, 59, 0.4);

  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 300;
  background: var(--navy); color: var(--on-navy);
  padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --- Layout helpers --- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
section { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: ""; width: 1.5rem; height: 2px; background: var(--accent); border-radius: 2px;
}
.light .eyebrow { color: var(--accent-2); }

.section-head { max-width: 640px; margin-bottom: var(--space-xl); display: flex; flex-direction: column; gap: 0.9rem; }
.section-head h2, .section-head h3 { font-size: var(--fs-xl); color: var(--ink); }
.section-head.light h2 { color: var(--on-navy); }
.section-head.center { margin-inline: auto; text-align: center; align-items: center; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm);
  padding: 0.85rem 1.5rem; border-radius: var(--radius-full);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.3s var(--ease); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: var(--fs-base); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: var(--fs-xs); }

.btn-primary {
  background: var(--accent); color: var(--cream);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -16px rgba(193, 122, 59, 0.55); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: transparent; color: var(--ink); border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }

.btn-outline-light {
  background: transparent; color: var(--on-navy); border: 1.5px solid var(--line-on-navy);
}
.btn-outline-light:hover { border-color: var(--on-navy); transform: translateY(-2px); }

/* --- Header --- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 200;
  padding-block: 1.15rem;
  transition: padding 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.is-scrolled {
  padding-block: 0.7rem;
  background: rgba(251, 247, 239, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(18, 22, 40, 0.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: linear-gradient(150deg, var(--navy), var(--navy-2));
  color: var(--accent-2); font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.brand-role { font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.03em; }

.main-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2vw, 2.25rem); }
.main-nav a {
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-soft); position: relative; padding-block: 0.25rem;
  transition: color 0.3s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--accent);
  transition: right 0.35s var(--ease); border-radius: 2px;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { display: flex; align-items: center; gap: 0.45rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.header-phone svg { width: 1.05rem; height: 1.05rem; color: var(--accent); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--paper-dim); flex-shrink: 0;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  padding-top: clamp(8rem, 6rem + 8vw, 11rem);
  padding-bottom: var(--space-section);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(193, 122, 59, 0.22), transparent 60%),
    radial-gradient(45% 40% at 8% 30%, rgba(79, 109, 91, 0.14), transparent 60%),
    var(--paper);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }

.hero-title { font-size: var(--fs-3xl); color: var(--ink); margin-block: 1.1rem 1.4rem; max-width: 15ch; }
.hero-title em { font-style: italic; color: var(--accent-ink); font-weight: 500; }
.hero-lead { font-size: var(--fs-md); color: var(--ink-soft); max-width: 46ch; margin-bottom: var(--space-lg); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: var(--space-xl); }

.hero-trust { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; }
.hero-trust-item { font-size: var(--fs-sm); color: var(--ink-soft); }
.hero-trust-item strong { font-family: var(--font-display); font-size: 1.2em; color: var(--ink); font-weight: 600; }
.hero-trust-divider { width: 1px; height: 1.5rem; background: var(--line); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.portrait-card { position: relative; width: min(100%, 380px); }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 4.7; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 55%, #2b3a63 100%);
  box-shadow: var(--shadow-lg);
}
.portrait-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- Stats band --- */
.stats-band {
  background: var(--navy); background-image: radial-gradient(rgba(245, 240, 228, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  padding-block: var(--space-2xl);
  color: var(--on-navy);
}
.stats-label { text-align: center; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-navy-dim); margin-bottom: var(--space-lg); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat-card {
  text-align: center; padding: var(--space-lg) var(--space-sm); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(245, 240, 228, 0.06), rgba(245, 240, 228, 0.02));
  border: 1px solid var(--line-on-navy);
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
}
.stat-number-row { display: flex; align-items: baseline; gap: 0.15rem; }
.stat-number { font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 2vw, 3.6rem); font-weight: 600; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.stat-suffix { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); color: var(--accent-2); font-weight: 600; }
.stat-desc { color: var(--on-navy-dim); font-size: var(--fs-sm); max-width: 22ch; }
.stat-highlight { font-weight: 700; color: var(--navy); background: var(--accent-2); padding: 0.35rem 0.85rem; border-radius: 999px; font-size: var(--fs-xs); margin-top: 0.3rem; }

/* --- About --- */
.about { padding-block: var(--space-section); }
.about-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.about-card {
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: var(--on-navy); border-radius: var(--radius-lg); padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-lg); position: relative;
}
.about-card blockquote { font-family: var(--font-display); font-style: italic; font-size: var(--fs-lg); line-height: 1.35; font-weight: 500; }
.about-card span { display: block; margin-top: 1.25rem; color: var(--accent-2); font-size: var(--fs-sm); font-weight: 600; }
.about-content h2 { font-size: var(--fs-xl); margin-bottom: 1.25rem; max-width: 16ch; }
.about-content p { color: var(--ink-soft); font-size: var(--fs-base); margin-bottom: 1rem; max-width: 56ch; }
.check-list { display: flex; flex-direction: column; gap: 0.85rem; margin-top: var(--space-md); }
.check-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: var(--fs-sm); color: var(--ink); font-weight: 500; }
.check-list svg { width: 1.3rem; height: 1.3rem; flex-shrink: 0; color: var(--accent); margin-top: 0.1rem; }

/* --- Services --- */
.services { padding-block: var(--space-section); background: var(--paper-dim); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--cream); border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--line-soft); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  display: flex; flex-direction: column; gap: 1rem; min-width: 0;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent-soft); }
.service-number { font-family: var(--font-display); font-size: var(--fs-sm); color: var(--ink-faint); font-weight: 600; }
.service-icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent-ink);
}
.service-icon svg { width: 1.5rem; height: 1.5rem; }
.service-card h3 { font-size: 1.15rem; color: var(--ink); overflow-wrap: break-word; hyphens: auto; }
.service-card p { font-size: var(--fs-sm); color: var(--ink-soft); overflow-wrap: break-word; }

/* --- Process --- */
.process { padding-block: var(--space-section); background: var(--navy); background-image: radial-gradient(rgba(245, 240, 228, 0.05) 1px, transparent 1px); background-size: 24px 24px; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.process-steps::before {
  content: ""; position: absolute; top: 1.6rem; left: 8%; right: 8%; height: 1px;
  background: repeating-linear-gradient(to right, var(--line-on-navy) 0 10px, transparent 10px 20px);
}
.process-step { position: relative; display: flex; flex-direction: column; gap: 0.75rem; }
.step-number {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--navy-2); border: 1px solid var(--line-on-navy); color: var(--accent-2);
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; position: relative; z-index: 1;
}
.process-step h3 { color: var(--on-navy); font-size: 1.1rem; }
.process-step p { color: var(--on-navy-dim); font-size: var(--fs-sm); max-width: 26ch; }

/* --- Testimonials --- */
.testimonials { padding-block: var(--space-section); }
.testimonials-rating { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); margin-top: 0.25rem; }
.testimonials-rating:hover { color: var(--accent-ink); }
.testimonials-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.testimonials-grid--secondary { grid-template-columns: repeat(3, 1fr); }
.testimonials-secondary-head { margin-top: var(--space-2xl); }
.testimonial-card {
  background: var(--cream); border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-md);
  display: flex; flex-direction: column; gap: 1rem; border: 1px solid var(--line-soft);
}
.testimonial-stars { display: inline-flex; gap: 0.1rem; color: var(--accent-2); }
.testimonial-stars svg { width: 1rem; height: 1rem; }
.testimonial-quote { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink); line-height: 1.55; flex-grow: 1; }
.testimonial-source { font-style: normal; font-size: var(--fs-xs); color: var(--ink-faint); font-weight: 600; }

/* --- CTA band --- */
.cta-band { padding-block: var(--space-2xl); background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { font-size: var(--fs-lg); color: var(--cream); max-width: 20ch; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--navy); box-shadow: 0 18px 40px -16px rgba(11, 17, 32, 0.5); }
.cta-band .btn-outline-light { color: var(--cream); border-color: rgba(255, 253, 249, 0.55); }
.cta-band .btn-outline-light:hover { border-color: var(--cream); background: rgba(255, 253, 249, 0.12); }

/* --- Contact --- */
.contact { padding-block: var(--space-section); }
.contact-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.contact-form-wrap h2 { font-size: var(--fs-xl); margin-block: 1rem 0.75rem; max-width: 18ch; }
.form-trust { margin-bottom: 1.75rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.15rem; }
.form-row { display: flex; flex-direction: column; gap: 0.45rem; }
.form-row label { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); }
.form-row input, .form-row select, .form-row textarea {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0.85rem 1.05rem;
  background: var(--cream); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.form-checkbox { display: flex; align-items: flex-start; gap: 0.75rem; font-size: var(--fs-xs); color: var(--ink-faint); line-height: 1.5; }
.form-checkbox input { margin-top: 0.2rem; accent-color: var(--accent); width: 1.05rem; height: 1.05rem; flex-shrink: 0; }
.form-checkbox a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.contact-form .btn { align-self: flex-start; margin-top: 0.5rem; }
.form-note { font-size: var(--fs-sm); font-weight: 600; min-height: 1.2em; }
.form-note.is-success { color: var(--sage); }
.form-note.is-error { color: #a03d3d; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Multi-step ("wizard") forms, e.g. Policen-Check --- */
.form-progress { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; position: relative; }
.form-progress::before { content: ""; position: absolute; top: 0.95rem; left: 1rem; right: 1rem; height: 1px; background: var(--line); z-index: 0; }
.form-progress-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-faint); }
.form-progress-badge {
  display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--line); color: var(--ink-faint);
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.form-progress-badge svg { width: 1rem; height: 1rem; }
.form-progress-label { white-space: nowrap; }
.form-progress-step.is-active .form-progress-badge { background: var(--accent); border-color: var(--accent); color: var(--cream); }
.form-progress-step.is-active .form-progress-label { color: var(--ink); }
.form-progress-step.is-complete .form-progress-badge { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-ink); }

.form-step { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 1.15rem; animation: formStepIn 0.35s var(--ease); }
.form-step[hidden] { display: none; }
.form-step-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); padding: 0; width: 100%; }
.form-step-optional { font-family: var(--font-body); font-weight: 500; font-size: var(--fs-xs); color: var(--ink-faint); }
.form-step-actions { display: flex; gap: 0.85rem; margin-top: 0.25rem; }
@keyframes formStepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.choice-card {
  position: relative; display: flex; align-items: center; gap: 0.7rem; min-width: 0;
  padding: 0.9rem 1.05rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.choice-card::before {
  content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--line); transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.choice-card span { overflow-wrap: break-word; hyphens: auto; }
.choice-card input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice-card:hover { border-color: var(--accent-soft); }
.choice-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.choice-card:has(input:checked)::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--cream); }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.contact-info-card {
  background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: var(--on-navy);
  border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 1.15rem;
}
.contact-info-card h3 { font-size: 1.2rem; color: var(--on-navy); margin-bottom: 0.25rem; }
.contact-line { display: flex; align-items: center; gap: 0.75rem; font-size: var(--fs-sm); font-weight: 500; color: var(--on-navy); padding: 0.5rem 0; border-bottom: 1px solid var(--line-on-navy); transition: color 0.3s var(--ease), padding-left 0.3s var(--ease); }
.contact-line:last-of-type { border-bottom: none; }
.contact-line svg { width: 1.15rem; height: 1.15rem; color: var(--accent-2); flex-shrink: 0; }
.contact-line:hover { color: var(--accent-2); padding-left: 0.35rem; }
.contact-badge { margin-top: 0.5rem; font-size: var(--fs-xs); color: var(--on-navy-dim); border-top: 1px solid var(--line-on-navy); padding-top: 1.15rem; }

/* --- Page intro (Sparten-/Ratgeberseiten) --- */
.page-intro { position: relative; overflow: hidden; padding-top: clamp(7rem, 6rem + 4vw, 9rem); padding-bottom: var(--space-xl); }
.page-intro-inner { max-width: 760px; }
.page-intro h1 { font-family: var(--font-display); font-size: var(--fs-2xl); color: var(--ink); margin-block: 1rem 1.1rem; }
.page-intro-lead { font-size: var(--fs-md); color: var(--ink-soft); max-width: 56ch; margin-bottom: var(--space-lg); }

/* --- Sparten content --- */
.sparte-content { padding-block: var(--space-section); }
.sparte-content h2 { margin-top: var(--space-xl); }
.sparte-content h2:first-child { margin-top: 0; }

/* --- FAQ accordion --- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: var(--space-md); max-width: 760px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--cream); overflow: hidden; }
.faq-item[open] { border-color: var(--accent-soft); box-shadow: var(--shadow-sm); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--ink); cursor: pointer; list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ""; }
.faq-icon { width: 1.3rem; height: 1.3rem; color: var(--accent); flex-shrink: 0; transform-box: border-box; transition: transform 0.3s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 1.4rem 1.3rem; }
.faq-answer p { font-size: var(--fs-sm); color: var(--ink-soft); }

/* --- Related links --- */
.related { padding-block: var(--space-section); background: var(--paper-dim); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.service-more { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-sm); font-weight: 600; color: var(--accent-ink); }
.service-more svg { width: 1.05em; height: 1.05em; transition: transform 0.3s var(--ease); }
.service-card:hover .service-more svg { transform: translateX(3px); }

/* --- Promo band (Policen-Check) --- */
.promo-band { padding-block: var(--space-2xl); background: var(--sage); background-image: radial-gradient(rgba(245, 240, 228, 0.08) 1px, transparent 1px); background-size: 24px 24px; }
.promo-band .eyebrow { color: rgba(245, 240, 228, 0.75); }
.promo-band .eyebrow::before { background: var(--on-navy); }
.promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.promo-text h2 { font-size: var(--fs-lg); color: var(--on-navy); max-width: 24ch; margin-block: 0.6rem 0.5rem; }
.promo-text p { color: rgba(245, 240, 228, 0.85); max-width: 48ch; font-size: var(--fs-base); }
.promo-band .btn-primary { background: var(--navy); box-shadow: 0 18px 40px -16px rgba(11, 17, 32, 0.5); }

/* --- Check steps (Policen-Check-Ablauf) --- */
.check-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-block: var(--space-lg) var(--space-xl); max-width: 900px; }
.check-step { display: flex; flex-direction: column; gap: 0.75rem; }
.check-step h3 { font-size: 1.05rem; color: var(--ink); }
.check-step p { font-size: var(--fs-sm); color: var(--ink-soft); }

/* --- Footer --- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-dim); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 2.5rem; padding-block: var(--space-2xl) var(--space-xl); }
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand p { font-size: var(--fs-sm); max-width: 30ch; }
.footer-nav, .footer-legal, .footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-inner h4 { font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-navy); margin-bottom: 0.5rem; font-weight: 700; }
.footer-inner a { font-size: var(--fs-sm); transition: color 0.3s var(--ease); }
.footer-inner a:hover { color: var(--accent-2); }
.footer-contact p { font-size: var(--fs-sm); }

.footer-bottom { border-top: 1px solid var(--line-on-navy); }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-block: 1.5rem; font-size: var(--fs-xs); }

/* --- Back to top --- */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 150;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--navy); color: var(--on-navy); box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
/* On pages that also carry the chat widget (all of them), stack back-to-top above the chat toggle rather than overlapping it. */
.back-to-top { bottom: 5.25rem; }

/* --- Chat widget (scripted assistant, no AI/LLM — see main.js) --- */
.chat-toggle {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 150;
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: var(--accent-2);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.chat-toggle:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -16px rgba(11, 17, 32, 0.5); }
.chat-toggle svg { width: 1.5rem; height: 1.5rem; }
.chat-toggle .chat-icon-close { display: none; }
.chat-toggle[aria-expanded="true"] .chat-icon-open { display: none; }
.chat-toggle[aria-expanded="true"] .chat-icon-close { display: block; }

.chat-panel {
  position: fixed; right: 1.5rem; bottom: 5.25rem; z-index: 160;
  width: min(360px, calc(100vw - 2.5rem)); max-height: min(520px, calc(100vh - 8rem));
  background: var(--cream); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft); display: flex; flex-direction: column; overflow: hidden;
  animation: formStepIn 0.3s var(--ease);
}
.chat-panel[hidden] { display: none; }
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.3rem; background: var(--navy); color: var(--on-navy);
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; flex-shrink: 0;
}
.chat-close { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; color: var(--on-navy-dim); transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.chat-close:hover { background: rgba(245, 240, 228, 0.12); color: var(--on-navy); }
.chat-close svg { width: 1.1rem; height: 1.1rem; }

.chat-messages { padding: 1.1rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.9rem; }
.chat-turn { display: flex; flex-direction: column; gap: 0.5rem; }
.chat-bubble { max-width: 88%; padding: 0.7rem 1rem; border-radius: var(--radius-md); font-size: var(--fs-sm); line-height: 1.5; }
.chat-bubble-bot { align-self: flex-start; background: var(--paper-dim); color: var(--ink); border-bottom-left-radius: 6px; }
.chat-bubble-user { align-self: flex-end; background: var(--accent); color: var(--cream); border-bottom-right-radius: 6px; font-weight: 600; }
.chat-options { display: flex; flex-direction: column; gap: 0.5rem; align-self: stretch; }
.chat-option {
  text-align: left; padding: 0.65rem 0.95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.chat-option:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.chat-option:disabled { opacity: 0.5; pointer-events: none; }

@media (max-width: 480px) {
  .chat-panel { right: 1.25rem; left: 1.25rem; width: auto; bottom: 5rem; max-height: min(65vh, 520px); }
  .chat-toggle, .back-to-top { right: 1.25rem; }
}
.back-to-top svg { width: 1.2rem; height: 1.2rem; }

/* --- Scroll reveal --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.services-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.16s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.24s; }
.process-steps .process-step:nth-child(2) { transition-delay: 0.08s; }
.process-steps .process-step:nth-child(3) { transition-delay: 0.16s; }
.process-steps .process-step:nth-child(4) { transition-delay: 0.24s; }
.stats-grid .stat-card:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .stat-card:nth-child(3) { transition-delay: 0.2s; }

/* --- Legal pages --- */
.legal-page { padding-block: clamp(7rem, 6rem + 4vw, 9rem) var(--space-2xl); }
.legal-content { max-width: 760px; margin-inline: auto; }
.legal-content h1 { font-size: var(--fs-xl); margin-bottom: 0.5rem; }
.legal-updated { color: var(--ink-faint); font-size: var(--fs-sm); margin-bottom: var(--space-xl); }
.legal-content h2 { font-size: 1.3rem; margin-top: var(--space-lg); margin-bottom: 0.75rem; }
.legal-content h3 { font-size: 1.05rem; margin-top: var(--space-md); margin-bottom: 0.5rem; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: var(--fs-base); margin-bottom: 0.85rem; overflow-wrap: break-word; }
.legal-content ul { list-style: disc; padding-left: 1.4rem; }
.legal-content ul li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-content strong { color: var(--ink); }
.placeholder {
  background: var(--accent-soft); color: var(--accent-ink); padding: 0.1rem 0.4rem; border-radius: 6px; font-weight: 600;
}
.legal-notice {
  background: var(--paper-dim); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-md); margin-bottom: var(--space-xl); font-size: var(--fs-sm); color: var(--ink-soft);
}
.legal-back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); margin-bottom: var(--space-lg); }
.legal-back svg { width: 1.1rem; height: 1.1rem; }
.legal-back:hover { color: var(--accent-ink); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1239px) {
  .header-phone-landline { display: none; }
}

@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .process-steps::before { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
}

@media (max-width: 920px) {
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 1rem; }
  .portrait-card { width: min(100%, 300px); }
  .about-visual { order: 1; }
  .about-card { max-width: 420px; }
}

@media (max-width: 840px) {
  .main-nav { position: fixed; inset: 0; top: 0; z-index: 190; background: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.25rem; transform: translateX(100%); transition: transform 0.45s var(--ease); }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { color: var(--on-navy); font-family: var(--font-display); font-size: 1.6rem; }
  .main-nav a::after { background: var(--accent-2); }
  .header-phone { display: none; }
  .nav-toggle { display: flex; position: relative; z-index: 195; }
  .nav-toggle[aria-expanded="true"] span { background: var(--on-navy); }
  .nav-toggle[aria-expanded="true"] { position: fixed; right: clamp(1.25rem, 4vw, 2.5rem); top: 1.3rem; }
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; }
  .check-steps { grid-template-columns: 1fr; }
  .promo-inner { flex-direction: column; align-items: flex-start; }
  .choice-grid { grid-template-columns: 1fr; }
  .form-progress-label { display: none; }
  .form-step-actions { flex-direction: column-reverse; }
  .form-step-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero-title { max-width: none; }
  .btn-lg { padding: 0.95rem 1.5rem; }
  .footer-bottom-inner { flex-direction: column; }
  .header-actions .btn-primary { display: none; }
}
