/* MaklerHaus — Design System
   ------------------------------------------------------------------ */

/* Inter (Body) + Manrope (Display) via Google Fonts CDN (Prototyp).
   Beim Live-Deploy auf selbstgehostete woff2-Dateien umstellen für DSGVO-Konformität. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* CI Colors */
  --c-blue:        #000070;   /* iSurance Blau */
  --c-green:       #269D2E;   /* SDV Grün */
  --c-lightblue:   #67A0BA;   /* Helles Blau */
  --c-pastelgreen: #A5BFA6;   /* Pastellgrün */

  /* Neutral system */
  --c-bg:          #0B0E1A;   /* Dunkler Hintergrund (Premium) */
  --c-bg-alt:      #11152A;   /* Dezent abgesetzt */
  --c-bg-light:    #F5F7F8;   /* Helle Sektionen */
  --c-surface:     #FFFFFF;
  --c-ink:         #0E0E14;
  --c-text:        #E8EAF2;   /* Body auf Dark */
  --c-text-dark:   #2A2A2A;   /* Body auf Light */
  --c-muted:       #8A8FA8;
  --c-muted-dark:  #6B6B6B;
  --c-line:        rgba(255, 255, 255, 0.08);
  --c-line-dark:   #DDDDDD;

  /* Typography — Inter (Body) + Manrope (Display), iSurance-Stack-Standard */
  --ff-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ff-display: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ff-italic: 'Inter', serif; /* Slogan-Italic — später durch echte Italic-Schrift ersetzbar */

  --fs-display: clamp(3rem, 5.5vw, 5rem);     /* 48 - 80 */
  --fs-h1:      clamp(2rem, 3.5vw, 2.75rem);  /* 32 - 44 */
  --fs-h2:      clamp(1.5rem, 2.4vw, 2rem);   /* 24 - 32 */
  --fs-h3:      1.375rem;                     /* 22 */
  --fs-body:    1.0625rem;                    /* 17 */
  --fs-small:   0.875rem;                     /* 14 */
  --fs-xs:      0.75rem;                      /* 12 */

  /* Spacing scale (8pt) */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;
  --s-9:  6rem;
  --s-10: 8rem;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 40px rgba(38, 157, 46, 0.15);

  /* Layout */
  --container: 1200px;
  --content:   880px;
  --nav-h:     76px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:   180ms;
  --t-med:    320ms;
  --t-slow:   600ms;
}

/* ------------------ Reset ------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--c-green); color: #fff; }

/* ------------------ Typography ------------------ */
.eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-green);
  margin-bottom: var(--s-3);
  display: inline-block;
}
.display {
  font-family: var(--ff-display);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}
h1, .h1 {
  font-family: var(--ff-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h2, .h2 {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h3, .h3 {
  font-family: var(--ff-display);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}
.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--c-text);
  font-weight: 300;
  max-width: 60ch;
}
.subtle { color: var(--c-muted); }
.italic-quote {
  font-style: italic;
  font-weight: 400;
}

/* ------------------ Layout ------------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.content {
  max-width: var(--content);
  margin: 0 auto;
}
.section {
  padding: var(--s-9) 0;
  position: relative;
}
.section--tight { padding: var(--s-8) 0; }
.section--wide { padding: var(--s-10) 0; }
.section--light {
  background: var(--c-bg-light);
  color: var(--c-text-dark);
}
.section--light .subtle { color: var(--c-muted-dark); }
.section--alt { background: var(--c-bg-alt); }

/* ------------------ Grid helpers ------------------ */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ------------------ Buttons ------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.875rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  transition: all var(--t-fast) var(--ease-out);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--c-green); outline-offset: 3px; }
.btn--solid {
  background: #fff;
  color: var(--c-blue);
}
.btn--solid:hover { background: var(--c-pastelgreen); transform: translateY(-1px); }
.btn--green {
  background: var(--c-green);
  color: #fff;
}
.btn--green:hover { background: #208026; transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.btn--outline {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); }
.btn--ghost-dark {
  color: var(--c-blue);
  border-color: var(--c-blue);
}
.btn--ghost-dark:hover { background: var(--c-blue); color: #fff; }
.btn .arrow {
  transition: transform var(--t-fast) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ------------------ Cards ------------------ */
.card {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: all var(--t-med) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(38, 157, 46, 0.3);
  transform: translateY(-2px);
}
.section--light .card {
  background: #fff;
  border: 1px solid var(--c-line-dark);
  color: var(--c-text-dark);
}
.card__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: rgba(38, 157, 46, 0.12);
  color: var(--c-green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
}
.card__title {
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--s-3);
  color: #fff;
}
.section--light .card__title { color: var(--c-blue); }
.card__body {
  color: var(--c-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.section--light .card__body { color: var(--c-muted-dark); }

/* ------------------ Marker / quote / divider ------------------ */
.quote {
  border-left: 3px solid var(--c-green);
  padding-left: var(--s-5);
  font-size: 1.5rem;
  line-height: 1.4;
  font-style: italic;
  font-weight: 300;
  color: #fff;
  margin: var(--s-6) 0;
  max-width: 60ch;
}
.section--light .quote { color: var(--c-blue); }

.section-head { margin-bottom: var(--s-7); max-width: 720px; }
.section-head h2 { margin-bottom: var(--s-4); }

/* ------------------ Tables (vergleich) ------------------ */
.table-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.table-compare th, .table-compare td {
  padding: var(--s-4) var(--s-5);
  text-align: left;
  border-bottom: 1px solid var(--c-line-dark);
  color: var(--c-text-dark);
}
.table-compare thead th {
  background: var(--c-bg-light);
  font-weight: 600;
  color: var(--c-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--fs-xs);
}
.table-compare th:first-child { background: transparent; }
.table-compare tbody tr:last-child th, .table-compare tbody tr:last-child td { border-bottom: 0; }
.table-compare .col-mh {
  background: rgba(38, 157, 46, 0.08);
  color: var(--c-blue);
  font-weight: 600;
}
.table-compare th[scope="row"] {
  font-weight: 600;
  color: var(--c-blue);
  background: var(--c-bg-light);
}

/* ------------------ Stepper ------------------ */
.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  position: relative;
}
.stepper::before {
  content: '';
  position: absolute;
  top: 32px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--c-green), transparent);
  z-index: 0;
}
.step {
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  position: relative;
  z-index: 1;
  border: 1px solid var(--c-line-dark);
}
.step__num {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
  align-items: center; justify-content: center;
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.step__title { color: var(--c-blue); font-weight: 600; margin-bottom: var(--s-2); }
.step__meta {
  display: flex; gap: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--c-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--s-3);
}
@media (max-width: 800px) {
  .stepper { grid-template-columns: 1fr; }
  .stepper::before { display: none; }
}

/* ------------------ Forms ------------------ */
.form { display: grid; gap: var(--s-4); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--c-blue);
  margin-bottom: var(--s-2);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--c-line-dark);
  border-radius: var(--r-md);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--c-text-dark);
  background: #fff;
  transition: border-color var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(0, 0, 112, 0.08);
}
.field textarea { min-height: 120px; resize: vertical; }
.field--check {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-small);
  color: var(--c-muted-dark);
}
.field--check input { width: auto; margin-top: 0.25rem; }

/* ------------------ Form success/error message ------------------ */
.form-success {
  display: none;
  margin-top: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: rgba(38, 157, 46, 0.08);
  border: 1px solid var(--c-green);
  color: var(--c-blue);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.form-success[data-shown="true"] { display: block; }
/* Kontrast-Variante für Dark-Backgrounds (z. B. Interessenten-Modul) */
.interest__form .form-success {
  background: rgba(38, 157, 46, 0.12);
  border-color: rgba(38, 157, 46, 0.5);
  color: var(--c-pastelgreen);
}

/* ------------------ Pillars / list-with-icon ------------------ */
.pillar-list { display: grid; gap: var(--s-4); }
.pillar-list li {
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.5;
}
.pillar-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--c-green);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ------------------ Reveal animation ------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------ Hairlines ------------------ */
.hairline { height: 1px; background: var(--c-line); margin: 0; border: 0; }
.section--light .hairline { background: var(--c-line-dark); }

/* ------------------ Utility ------------------ */
.text-center { text-align: center; }
.flex { display: flex; }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-7 { margin-top: var(--s-7); }
.no-wrap { white-space: nowrap; }

/* ------------------ Responsive baseline ------------------ */
@media (max-width: 700px) {
  .section { padding: var(--s-7) 0; }
  .quote { font-size: 1.25rem; }
}

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

/* ------------------ Klaro Cookie-Banner (CI-Override) ------------------ */
.klaro .cookie-notice, .klaro .cookie-modal {
  font-family: var(--ff-sans);
}
.klaro .cookie-notice {
  background: var(--c-bg-alt) !important;
  border: 1px solid var(--c-line) !important;
  border-radius: var(--r-lg) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
  color: rgba(255,255,255,0.85) !important;
  max-width: 520px !important;
}
.klaro .cookie-notice .cn-body p,
.klaro .cookie-notice .cn-body strong { color: rgba(255,255,255,0.85) !important; }
.klaro .cookie-notice .cn-body a { color: var(--c-pastelgreen) !important; }
.klaro .cookie-notice .cn-buttons .cm-btn,
.klaro .cookie-modal .cm-btn {
  border-radius: 999px !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  padding: 0.625rem 1.25rem !important;
  transition: all var(--t-fast) var(--ease-out) !important;
}
.klaro .cm-btn-success,
.klaro .cm-btn-accept,
.klaro .cm-btn-accept-all {
  background: var(--c-green) !important;
  color: #fff !important;
  border: 1.5px solid var(--c-green) !important;
}
.klaro .cm-btn-success:hover,
.klaro .cm-btn-accept:hover,
.klaro .cm-btn-accept-all:hover { background: #208026 !important; }
.klaro .cm-btn-decline,
.klaro .cm-btn-info {
  background: transparent !important;
  color: rgba(255,255,255,0.85) !important;
  border: 1.5px solid rgba(255,255,255,0.3) !important;
}
.klaro .cm-btn-decline:hover,
.klaro .cm-btn-info:hover {
  border-color: #fff !important;
  background: rgba(255,255,255,0.05) !important;
}
.klaro .cookie-modal {
  font-family: var(--ff-sans);
}
.klaro .cookie-modal .cm-modal {
  background: var(--c-bg-alt) !important;
  color: rgba(255,255,255,0.85) !important;
  border-radius: var(--r-lg) !important;
}
.klaro .cookie-modal .cm-header h1,
.klaro .cookie-modal .cm-header h2 { color: #fff !important; }
.klaro .cookie-modal .cm-services .cm-service .cm-list-input + .cm-list-label .slider { background: rgba(255,255,255,0.2) !important; }
.klaro .cookie-modal .cm-services .cm-service .cm-list-input:checked + .cm-list-label .slider { background: var(--c-green) !important; }
