/* ============================================================
   ImmoKonzept — Screen-CI  ·  Single Source of Truth
   Variante: Premium / Strategie- & Investorendokumente
   ------------------------------------------------------------
   Basis: Anthrazit · Akzent: Petrol (sparsam) · Off-White-Grund
   Schrift: Roboto Condensed (Display) + Inter (Fließtext)
   ------------------------------------------------------------
   Verwendung:  <link rel="stylesheet" href=".../immokonzept-ci.css">
   Tokens sind die verbindliche Markenquelle. Seiten-Layouts
   nutzen die Tokens, definieren bespoke Layout aber lokal.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* — Marke / Akzent ————————————————————————————— */
  --ik-petrol:        #0984E3;   /* Primär-Akzent (Flächen/Linien/große Akzente) — sparsam */
  --ik-petrol-dark:   #0770C2;   /* Hover / Tiefe */
  --ik-petrol-text:   #0A6AB4;   /* Petrol für TEXT/Links/Eyebrow auf hell — WCAG-AA */
  --ik-petrol-ondark: #3D9BE8;   /* Petrol für Text/Akzent auf dunkel — WCAG-AA */
  --ik-petrol-soft:   rgba(9, 132, 227, 0.08);   /* Akzentflächen */
  --ik-petrol-line:   rgba(9, 132, 227, 0.30);

  /* — Ink / Anthrazit (dominante Basis) ——————————— */
  --ik-ink:           #1E2123;   /* dunkelste Fläche, Display */
  --ik-anthrazit:     #2D3436;   /* dunkle Sektionsflächen */
  --ik-ink-soft:      #4A4E50;   /* Fließtext */
  --ik-ink-muted:     #62676A;   /* sekundär / Labels — WCAG-AA auf hell */

  /* — Flächen ————————————————————————————————————— */
  --ik-paper:         #F6F5F2;   /* warmes Off-White (Seitengrund) */
  --ik-white:         #ffffff;   /* Karten */
  --ik-surface-alt:   #EFEEEA;   /* alternierende Sektion */

  /* — Linien ——————————————————————————————————————— */
  --ik-line:          #D8D5CE;
  --ik-line-light:    #E8E6E1;

  /* — Funktionsfarben (sehr sparsam) ———————————————— */
  --ik-success:       #00B894;   /* positive Werte / Hebel (Flächen/Borders, große Werte auf dunkel) */
  --ik-success-soft:  rgba(0, 184, 148, 0.10);
  --ik-success-text:  #047857;   /* Grün für TEXT/Werte auf hell — WCAG-AA */
  --ik-warm:          #FDCB6E;   /* seltener Highlight */

  /* — Text auf dunkel ——————————————————————————————— */
  --ik-on-dark:        #F6F5F2;
  --ik-on-dark-soft:   #BEBEBC;   /* solide statt Alpha — stabiler Kontrast (8.7:1 auf ink) */
  --ik-on-dark-muted:  #9A9A98;   /* solide statt Alpha — WCAG-AA (5.7:1 auf ink) */
  --ik-on-dark-line:   rgba(246, 245, 242, 0.16);   /* Alpha nur für Linien/Deko ok */

  /* — Typografie ————————————————————————————————————— */
  --ik-font-display: 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
  --ik-font-body:    'Inter', system-ui, -apple-system, Segoe UI, sans-serif;

  /* — Radius / Schatten ————————————————————————————— */
  --ik-radius:       4px;
  --ik-radius-lg:    6px;
  --ik-shadow-sm:    0 1px 2px rgba(30, 33, 35, 0.05);
  --ik-shadow:       0 2px 10px rgba(30, 33, 35, 0.07);

  /* — Raster ————————————————————————————————————————— */
  --ik-wrap:         1240px;
  --ik-gap:          24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ik-font-body);
  color: var(--ik-ink-soft);
  background: var(--ik-paper);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ik-wrap { max-width: var(--ik-wrap); margin: 0 auto; padding: 0 32px; }

/* ============================================================
   TYPOGRAFIE
   ============================================================ */
.ik-display,
h1.ik {
  font-family: var(--ik-font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.4px;
  color: var(--ik-ink);
}

.ik-h2, h2.ik {
  font-family: var(--ik-font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.2px;
  color: var(--ik-ink);
}

.ik-h3, h3.ik {
  font-family: var(--ik-font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ik-ink);
}

.ik-h4, h4.ik {
  font-family: var(--ik-font-display);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ik-ink);
}

.ik-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--ik-ink-soft);
  max-width: 760px;
}

.ik-body { font-size: 15px; line-height: 1.62; color: var(--ik-ink-soft); }
.ik-small { font-size: 13px; line-height: 1.55; color: var(--ik-ink-muted); }

/* Eyebrow — das Petrol-Signal */
.ik-eyebrow {
  display: inline-block;
  font-family: var(--ik-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--ik-petrol-text);
}

/* Label — neutral, für Meta-Infos */
.ik-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ik-ink-muted);
}

/* Akzentstrich unter Headlines */
.ik-rule {
  width: 44px;
  height: 2px;
  background: var(--ik-petrol);
  border: 0;
  margin: 14px 0 0;
}

/* ============================================================
   FARB-/TEXT-UTILITIES
   ============================================================ */
.ik-c-petrol   { color: var(--ik-petrol); }
.ik-c-success  { color: var(--ik-success); }
.ik-c-ink      { color: var(--ik-ink); }
.ik-c-muted    { color: var(--ik-ink-muted); }
.ik-strong     { font-weight: 600; color: var(--ik-ink); }
.ik-num        { font-family: var(--ik-font-display); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============================================================
   SEKTIONEN & RHYTHMUS
   ============================================================ */
.ik-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--ik-line-light);
  background: var(--ik-paper);
}
.ik-section--alt { background: var(--ik-surface-alt); }

/* dunkle Sektion / Hero / Footer */
.ik-section--dark,
.ik-dark {
  background: var(--ik-ink);
  color: var(--ik-on-dark);
}
.ik-dark .ik-h2, .ik-dark h2.ik,
.ik-dark .ik-h3, .ik-dark h3.ik,
.ik-dark .ik-display, .ik-dark h1.ik { color: var(--ik-on-dark); }
.ik-dark .ik-lead { color: var(--ik-on-dark-soft); }
.ik-dark .ik-label { color: var(--ik-on-dark-muted); }
.ik-dark .ik-eyebrow { color: var(--ik-petrol-ondark); }

.ik-section-sub {
  color: var(--ik-ink-muted);
  font-size: 15px;
  margin-top: 18px;
  max-width: 720px;
}
.ik-dark .ik-section-sub { color: var(--ik-on-dark-soft); }

/* ============================================================
   KARTE
   ============================================================ */
.ik-card {
  background: var(--ik-white);
  border: 1px solid var(--ik-line-light);
  border-radius: var(--ik-radius);
  padding: 26px;
  box-shadow: var(--ik-shadow-sm);
}
.ik-card--accent { border-top: 2px solid var(--ik-petrol); }
.ik-card--success { border-top: 2px solid var(--ik-success); }
.ik-card--ink {
  background: var(--ik-ink);
  color: var(--ik-on-dark);
  border-color: transparent;
}
.ik-card--ink .ik-h3, .ik-card--ink h3.ik { color: var(--ik-on-dark); }
.ik-card--ink .ik-label { color: var(--ik-on-dark-muted); }

/* ============================================================
   TAG / CHIP
   ============================================================ */
.ik-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ik-ink-soft);
  background: var(--ik-paper);
  border: 1px solid var(--ik-line);
  padding: 3px 10px;
  border-radius: 100px;
}
.ik-tag--petrol {
  color: var(--ik-petrol-text);
  background: var(--ik-petrol-soft);
  border-color: var(--ik-petrol-line);
}
.ik-tag--success {
  color: var(--ik-success-text);
  background: var(--ik-success-soft);
  border-color: rgba(0, 184, 148, 0.30);
}

/* ============================================================
   BUTTON
   ============================================================ */
.ik-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ik-font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: var(--ik-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.ik-btn--primary { background: var(--ik-petrol-text); color: #fff; }
.ik-btn--primary:hover { background: var(--ik-petrol-dark); }
.ik-btn--ghost {
  background: transparent;
  color: var(--ik-petrol-text);
  border-color: var(--ik-petrol-line);
}
.ik-btn--ghost:hover { background: var(--ik-petrol-soft); }

/* ============================================================
   KPI / KENNZAHL
   ============================================================ */
.ik-kpi { text-align: left; }
.ik-kpi .ik-kpi-value {
  font-family: var(--ik-font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  color: var(--ik-ink);
  font-variant-numeric: tabular-nums;
}
.ik-kpi .ik-kpi-label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ik-ink-muted);
  margin-top: 8px;
  font-weight: 600;
}
.ik-kpi--success .ik-kpi-value { color: var(--ik-success-text); }
.ik-kpi--petrol .ik-kpi-value { color: var(--ik-petrol); }
.ik-dark .ik-kpi .ik-kpi-value { color: var(--ik-on-dark); }
.ik-dark .ik-kpi .ik-kpi-label { color: var(--ik-on-dark-muted); }

/* ============================================================
   RASTER-HELFER
   ============================================================ */
.ik-grid { display: grid; gap: var(--ik-gap); }
.ik-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ik-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ik-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   TRENNLINIE
   ============================================================ */
.ik-divider { height: 1px; background: var(--ik-line-light); border: 0; }
.ik-dark .ik-divider { background: var(--ik-on-dark-line); }

/* ============================================================
   LINK
   ============================================================ */
.ik-link { color: var(--ik-petrol-text); text-decoration: none; }
.ik-link:hover { color: var(--ik-petrol-dark); text-decoration: underline; }
.ik-dark .ik-link { color: #6fb6f0; }

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  .ik-section { page-break-inside: avoid; padding: 28px 0; border-color: var(--ik-line); }
  .ik-card { box-shadow: none; }
  .ik-no-print { display: none !important; }
  a { color: inherit; text-decoration: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .ik-grid-2, .ik-grid-3, .ik-grid-4 { grid-template-columns: 1fr; }
  .ik-section { padding: 48px 0; }
  .ik-wrap { padding: 0 22px; }
}
