/* Inter lokal eingebunden, keine Verbindung zu Google */
@font-face{font-family:"Inter";font-style:normal;font-weight:400 700;font-display:swap;src:url("fonts/inter-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 700;font-display:swap;src:url("fonts/inter-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* Realico Relaunch — Design System (siehe PLAN.md) */

@font-face {
  font-family: "Sitka Small";
  src: url("fonts/sitka-small.otf") format("opentype");
  font-display: swap;
}

:root {
  --brand: #004C99;
  --brand-dark: #0E2841;
  --accent: #004C99;
  --bg: #F7F8FA;
  --text: #0E2841;
  --grey: #6B7480;
  --line: #E3E7EC;
  --white: #FFFFFF;
  --radius: 12px;
  --max-width: 1200px;
  --section-space: 96px;
  --font-head: "Sitka Small", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--brand-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: none; }
.section.alt { background: var(--white); }
.section.brand { background: var(--brand-dark); color: #E9EEF5; }
.section.brand h2, .section.brand h3 { color: #FFFFFF; }
.section.brand a { color: #BFD6F0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.8em;
}

.lead { font-size: 1.15rem; color: var(--grey); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 500;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0a636b; }
.btn-secondary { background: transparent; color: var(--brand-dark); border-color: var(--brand-dark); }
.btn-secondary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { color: var(--brand); font-weight: 500; }

/* Header / Nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 48px; width: auto; }
.logo .wordmark {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--brand);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand-dark);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.96rem;
}
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-links a.active { color: var(--brand); }
.lang-switch {
  display: flex;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-switch a { color: var(--grey); padding: 4px 6px; border-radius: 4px; }
.lang-switch a.active { color: var(--brand); background: var(--bg); }

/* Hero */
.hero { padding: 72px 0 var(--section-space); border-top: none; }
.hero .container { max-width: 820px; text-align: left; }
.hero .lead { margin: 20px 0 32px; }
.hero .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero .esg-link { font-size: 0.95rem; color: var(--grey); }

/* Tiles / Cards */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.tile, .card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.tile h3, .card h3 { margin-bottom: 0.5em; }
.tile p, .card p { color: var(--grey); margin: 0; }
.tile .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* Two-problems */
.problems { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.problem { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.problem h3 { color: var(--accent); }

/* Staircase */
.staircase-wrap { margin-top: 48px; }
.staircase-svg { width: 100%; height: auto; }
.staircase-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.staircase-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.staircase-step .eyebrow { margin-bottom: 6px; }
.staircase-entries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 8px; }
.staircase-entry { background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px; font-weight: 500; }
.staircase-bar { margin-top: 32px; padding: 20px 24px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--line); color: var(--grey); }

/* Stats / cases */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.case { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.case .stat { font-family: var(--font-head); font-weight: 600; font-size: 2.2rem; color: var(--brand); margin: 6px 0; }
.case .stat small { font-size: 1.1rem; color: var(--grey); font-weight: 400; }
.case .note { font-size: 0.85rem; color: var(--grey); }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 32px; }
.person { text-align: left; }
.person img, .person .avatar-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  background: var(--white);
}
.avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--accent); font-weight: 500; font-size: 0.9rem; margin-bottom: 8px; }
.person p { color: var(--grey); font-size: 0.95rem; }

/* Build blocks */
.build-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 32px; }
.build-item h3 { color: var(--brand-dark); }
.build-item .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-family: var(--font-head);
  margin-bottom: 14px;
}

/* FAQ Accordion */
.faq { margin-top: 32px; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item:first-child { border-top: 1px solid var(--line); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
}
.accordion-trigger .icon { font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel p { padding-bottom: 20px; color: var(--grey); }
.accordion-item.open .accordion-panel { max-height: 400px; }
.accordion-item.open .accordion-trigger .icon { transform: rotate(45deg); }

/* Closing CTA */
.closing-cta { text-align: center; }
.closing-cta .container { max-width: 640px; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; margin-top: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table th { background: var(--bg); font-family: var(--font-head); font-weight: 600; color: var(--brand-dark); }
.compare-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* Role/objection table */
.role-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.role-table th, .role-table td { padding: 14px 18px; border: 1px solid var(--line); text-align: left; }
.role-table th { background: var(--white); font-family: var(--font-head); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; max-width: 640px; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.92rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--grey); margin-top: 16px; }

/* Insights teasers */
.insights-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.insight-card .date { font-size: 0.82rem; color: var(--grey); margin-bottom: 8px; }

/* Breadcrumb-ish intro */
.page-intro { max-width: 760px; }

/* Footer */
.site-footer { background: var(--brand-dark); color: #C9D6E8; padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #C9D6E8; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #9FB2CC;
}
.footer-lang { display: flex; gap: 8px; }
.footer-lang a { color: #C9D6E8; font-weight: 600; }
.footer-lang a.active { color: #fff; }

/* Responsive */
@media (max-width: 1024px) {
  :root { --section-space: 56px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-links { flex-direction: column; gap: 18px; width: 100%; }
  .nav-links a { font-size: 1.05rem; }
  .form-grid { grid-template-columns: 1fr; }
  .staircase-entries { grid-template-columns: 1fr; }
  .staircase-steps { grid-template-columns: 1fr; }
}

.lab-note{margin-top:1rem;padding:1rem 1.25rem;border:1px solid var(--line,#E3E7EC);border-radius:12px;background:var(--offwhite,#F7F8FA);font-size:.95rem}

.logo{display:inline-flex;align-items:center;gap:.6rem;text-decoration:none}
.logo img{height:48px;width:auto}

.hero-figure{margin-top:32px}
.hero-figure img{max-width:100%;border-radius:12px}

/* Header: Luft zwischen Logo und Menü */
.logo { margin-right: 32px; }
img { max-width: 100%; height: auto; }
table { width: 100%; border-collapse: collapse; }

/* Mobile-Feinschliff */
@media (max-width: 1024px) {
  .site-header .container { height: 64px; }
  .main-nav { inset: 64px 0 0 0; }
  .logo img { height: 40px; }
  .logo { margin-right: 12px; }
  .nav-links a { display: block; padding: 6px 0; }
  .hero { padding-top: 40px; }
  h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.15; }
  h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .lead { font-size: 1.05rem; }
  .staircase-svg { display: none; }
  .tiles, .problems, .cases, .team, .build-grid, .footer-grid { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .container { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 480px) {
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .btn { display: block; width: 100%; text-align: center; }
  .lang-switch { margin-top: 8px; }
  .person img, .person .avatar-placeholder { width: 120px; height: 120px; }
  .footer-grid { gap: 20px; }
}

.nav-links a { white-space: nowrap; }
.site-header .container { gap: 24px; }

/* Wortmarke neben Bildmarke */
.site-header .logo { display: inline-flex; align-items: center; gap: 14px; margin-right: 40px; text-decoration: none; flex-shrink: 0; }
.site-header .logo img { height: 43px; width: auto; display: block; }
.logo-word { display: flex; flex-direction: column; justify-content: center; line-height: 1; padding-left: 14px; border-left: 1px solid var(--line); }
.logo-name { font-family: "Inter", system-ui, sans-serif; font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--brand-dark); }
.logo-sub { font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 0.62rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--brand); margin-top: 5px; padding-left: 1px; }
.site-header .logo:hover .logo-name { color: var(--brand); }
.nav-links a { white-space: nowrap; }
@media (max-width: 1024px) {
  .site-header .logo { gap: 10px; margin-right: 12px; }
  .site-header .logo img { height: 36px; }
  .logo-word { padding-left: 10px; }
  .logo-name { font-size: 1.35rem; }
  .logo-sub { font-size: 0.55rem; letter-spacing: 0.28em; margin-top: 4px; }
}

/* Offizielles Realico-Logo */
.site-header .logo img { height: 52px; width: auto; }
@media (max-width: 1024px) { .site-header .logo img { height: 42px; } }

/* Bildmarke + offizielles Logo */
.site-header .logo { display: inline-flex; align-items: center; gap: 14px; }
.site-header .logo img.logo-mark { height: 41px; width: auto; }
.site-header .logo img.logo-type { height: 48px; width: auto; }
.logo-divider { width: 1px; align-self: stretch; margin: 10px 0; background: var(--line); }
@media (max-width: 1024px) {
  .site-header .logo { gap: 10px; }
  .site-header .logo img.logo-mark { height: 32px; }
  .site-header .logo img.logo-type { height: 38px; }
  .logo-divider { margin: 12px 0; }
}

/* Impressum */
.table-wrap{overflow-x:auto}
.legal-table{width:100%;max-width:860px;border-collapse:collapse;font-size:.98rem}
.legal-table th,.legal-table td{text-align:left;vertical-align:top;padding:12px 16px 12px 0;border-bottom:1px solid var(--line)}
.legal-table th{width:34%;font-weight:600;color:var(--brand-dark)}
@media (max-width:640px){.legal-table,.legal-table tbody,.legal-table tr,.legal-table th,.legal-table td{display:block;width:100%}.legal-table th{border-bottom:0;padding-bottom:2px}.legal-table td{padding-top:0}}

/* Listen mit Haken */
.check-list{list-style:none;padding:0;margin:20px 0;display:grid;gap:12px;max-width:860px}
.check-list li{position:relative;padding-left:30px}
.check-list li::before{content:"";position:absolute;left:0;top:.45em;width:14px;height:8px;border-left:2px solid var(--brand);border-bottom:2px solid var(--brand);transform:rotate(-45deg)}
.role-table th[scope="col"]{white-space:nowrap}

/* Datenschutzerklärung */
.legal-text{max-width:820px}
.legal-text h2{font-size:1.25rem;margin:36px 0 10px}
.legal-text p{margin:0 0 12px}

/* Untermenü Einsatzfelder */
.nav-links .has-sub { position: relative; }
.nav-links .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav-links .sub-nav { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: calc(100% + 14px); left: -18px; min-width: 260px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(14, 40, 65, 0.08); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; z-index: 60; }
.nav-links .sub-nav::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-links .has-sub:hover .sub-nav, .nav-links .has-sub:focus-within .sub-nav { opacity: 1; visibility: visible; transform: none; }
.nav-links .sub-nav a { display: block; padding: 9px 18px; font-size: 0.94rem; white-space: nowrap; }
.nav-links .sub-nav a:hover { background: var(--bg); }
.teaser-link { margin-top: 24px; font-weight: 500; }
@media (max-width: 1024px) {
  .nav-links .has-sub > a::after { display: none; }
  .nav-links .sub-nav { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0; margin: 10px 0 0; padding: 0 0 0 14px; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
  .nav-links .sub-nav::before { display: none; }
  .nav-links .sub-nav a { padding: 6px 0; font-size: 0.98rem; }
  .nav-links .sub-nav a:hover { background: transparent; }
}
