/* ============================================================
   Kundida – Corporate Design System
   Farbwelt: Tiefes Marineblau, Cyan-Akzent, warmes Gold,
   helle Neutrals. Typografie: Inter + Space Grotesk (Headlines).
   ============================================================ */

:root {
  /* Brand – Light Mode (Default) */
  --c-bg:        #F7F8FB;
  --c-surface:   #FFFFFF;
  --c-ink:       #0B1F3A;     /* Tiefes Navy – Primärtext */
  --c-ink-2:     #1B2D4A;
  --c-brand:     #0B1F3A;     /* Marken-Schwarz für Buttons/CTAs – flippt NICHT */
  --c-on-brand:  #FFFFFF;     /* Text auf --c-brand */
  --c-muted:     #5A6478;
  --c-line:      #E4E8EF;
  --c-accent:    #00C2A8;     /* Teal/Cyan */
  --c-accent-2:  #0FA98F;
  --c-gold:      #E8B547;
  --c-warn:      #E0533C;
  --c-ok:        #2BAE76;

  /* Layered surfaces (dunkler Bereich) */
  --c-dark:      #081832;
  --c-dark-2:    #0F2647;

  /* Header-Hintergrund (blur) */
  --c-header-bg: rgba(247, 248, 251, 0.85);

  /* Texte auf dunklen Sektionen / Footer */
  --c-on-dark:        #E6ECF5;
  --c-on-dark-muted:  #B7C2D6;

  /* Typo */
  --f-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-head:   "Space Grotesk", "Inter", sans-serif;

  /* Spacing */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6rem;

  /* Radius / Schatten */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(11,31,58,.06), 0 1px 1px rgba(11,31,58,.04);
  --shadow-md: 0 10px 30px -12px rgba(11,31,58,.18);
  --shadow-lg: 0 30px 60px -25px rgba(11,31,58,.28);

  --container: 1200px;

  color-scheme: light;
}

/* ---------- Dark Mode ----------
   Aktiviert über:
   1) System (prefers-color-scheme: dark) – falls Nutzer:in keine Wahl getroffen hat
   2) Manueller Toggle: <html data-theme="dark"> bzw. data-theme="light"
   Werte werden via JS in localStorage('kundida_theme') gespeichert. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --c-bg:        #0A1426;
    --c-surface:   #11203A;
    --c-ink:       #F1F4FA;
    --c-ink-2:     #D7DEEC;
    --c-muted:     #8C97AE;
    --c-line:      #1F2E4C;
    --c-accent:    #2DD4B8;
    --c-accent-2:  #5FE6CF;
    --c-dark:      #050E1F;
    --c-dark-2:    #0B1A36;
    --c-header-bg: rgba(10, 20, 38, 0.85);
    --c-on-dark:        #E6ECF5;
    --c-on-dark-muted:  #A8B3C9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --c-bg:        #0A1426;
  --c-surface:   #11203A;
  --c-ink:       #F1F4FA;
  --c-ink-2:     #D7DEEC;
  --c-muted:     #8C97AE;
  --c-line:      #1F2E4C;
  --c-accent:    #2DD4B8;
  --c-accent-2:  #5FE6CF;
  --c-dark:      #050E1F;
  --c-dark-2:    #0B1A36;
  --c-header-bg: rgba(10, 20, 38, 0.85);
  --c-on-dark:        #E6ECF5;
  --c-on-dark-muted:  #A8B3C9;
  color-scheme: dark;
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 var(--sp-4); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 var(--sp-4); color: var(--c-ink-2); }
.lede { font-size: 1.15rem; color: var(--c-muted); max-width: 60ch; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }
.section { padding: var(--sp-9) 0; }
.section--tight { padding: var(--sp-8) 0; }
.section--dark {
  background: linear-gradient(180deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
  color: #E6ECF5;
}
.section--dark, .section--dark p { color: var(--c-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #FFFFFF; }
.section--dark p { color: var(--c-on-dark-muted); }

.grid { display: grid; gap: var(--sp-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--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--c-accent); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-brand); color: var(--c-on-brand);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--c-accent); color: var(--c-brand); transform: translateY(-1px); }
.btn--accent { background: var(--c-accent); color: var(--c-brand); }
.btn--accent:hover { background: #5ee9d3; transform: translateY(-1px); }
.btn--ghost { border: 1.5px solid var(--c-line); color: var(--c-ink); background: transparent; }
.btn--ghost:hover { border-color: var(--c-ink); }
.btn--light { background: var(--c-surface); color: var(--c-ink); }
.btn--light:hover { background: var(--c-accent); color: var(--c-brand); }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-header-bg);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-head); font-weight: 600; font-size: 1.2rem;
  color: var(--c-ink);
}
.brand-mark {
  width: 32px; height: 32px;
  background: var(--c-brand);
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--c-accent);
  font-weight: 700;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.brand-mark::after {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 10px; height: 10px; background: var(--c-gold); border-radius: 50%;
  border: 2px solid var(--c-bg);
}
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  padding: .55rem .9rem; border-radius: 999px;
  font-size: .95rem; color: var(--c-ink-2);
  transition: background .2s, color .2s;
}
.nav-links a:hover { color: var(--c-ink); background: rgba(11,31,58,.06); }
.nav-links a.active { color: var(--c-ink); background: rgba(0,194,168,.15); }
.nav-cta { display: flex; gap: .5rem; align-items: center; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px; border: 1px solid var(--c-line);
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block;
  width: 18px; height: 2px; background: var(--c-ink); border-radius: 2px;
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; width: 18px; }
.nav-toggle span::after  { position: absolute; top:  6px; left: 0; width: 18px; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-cta--desktop { display: none; }
  .nav-cta .btn { padding: .65rem 1rem; font-size: .9rem; }
  .nav.open + .mobile-menu { display: block; }
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--c-line);
  background: var(--c-surface);
  padding: var(--sp-4) 0;
}
.mobile-menu a {
  display: block; padding: .75rem var(--sp-5);
  color: var(--c-ink); border-bottom: 1px solid var(--c-line);
  font-weight: 500;
}
.mobile-menu a:last-child { border: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: var(--sp-9) 0 var(--sp-8);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0,194,168,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(232,181,71,.12), transparent 60%),
    var(--c-bg);
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-8);
  align-items: center;
}
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 strong { color: var(--c-accent-2); font-weight: 600; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--sp-4);
}
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem; font-size: .8rem; font-weight: 600;
  border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-line);
  color: var(--c-ink-2);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent); }
.hero-cta { display: flex; gap: .75rem; margin-top: var(--sp-5); flex-wrap: wrap; }

/* Hero Visual – versetzter Karten-Stack */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  min-height: 480px;
}
@media (max-width: 980px) {
  .hero-visual { margin: 2rem auto 0; min-height: 440px; }
}
.hero-card {
  position: absolute;
  background: var(--c-surface);
  color: var(--c-ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-line);
  padding: var(--sp-5);
  width: 64%;
}
.hero-card h4 { font-family: var(--f-head); font-size: 1rem; margin: 0 0 .35rem; }
.hero-card p  { font-size: .85rem; color: inherit; opacity: .85; margin: 0; line-height: 1.45; }
.hero-stat {
  font-family: var(--f-head);
  font-size: 1.9rem;
  font-weight: 600;
  margin-top: .9rem;
  line-height: 1;
}

.hero-card--1 {
  top: 0; left: 0;
  background: linear-gradient(135deg, #0B1F3A, #1B2D4A);
  color: #fff;
  z-index: 3;
}
.hero-card--2 {
  top: 38%; right: 0;
  z-index: 2;
}
.hero-card--3 {
  bottom: 0; left: 8%;
  background: linear-gradient(135deg, var(--c-accent), #5fe6cf);
  color: var(--c-brand);
  width: 58%;
  z-index: 1;
}

/* ---------- Cards ---------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(0,194,168,.12); color: var(--c-accent-2);
  margin-bottom: var(--sp-4);
}
.card h3 { margin-bottom: var(--sp-2); }
.card p  { font-size: .95rem; color: var(--c-muted); margin: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--c-surface); border: 1px solid var(--c-line);
}
.stat-value { font-family: var(--f-head); font-size: 2.2rem; font-weight: 600; color: var(--c-ink); }
.stat-label { font-size: .9rem; color: var(--c-muted); }

/* ---------- Standorte ---------- */
.locations { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 880px) { .locations { grid-template-columns: 1fr; } }
.location {
  position: relative; padding: var(--sp-5);
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-md); overflow: hidden;
}
.location::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-gold));
}
.location h3 { display: flex; align-items: center; gap: .5rem; }
.location .role { font-size: .8rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }

/* ---------- Innovation Block ---------- */
.innov {
  background: linear-gradient(135deg, var(--c-dark) 0%, var(--c-dark-2) 100%);
  color: var(--c-on-dark);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  position: relative; overflow: hidden;
}
.innov p { color: var(--c-on-dark-muted); position: relative; z-index: 1; }
.innov h2, .innov .eyebrow { position: relative; z-index: 1; }
.innov-pills, .innov .btn { position: relative; z-index: 1; }
.innov::after {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,194,168,.25), transparent 70%);
}
.innov h2 { color: #fff; max-width: 22ch; }
.innov-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--sp-5) 0; }
.pill {
  padding: .45rem .9rem; font-size: .85rem; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: #fff;
}
.pill--accent { background: rgba(0,194,168,.2); border-color: rgba(0,194,168,.4); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
@media (max-width: 720px) { .team { grid-template-columns: 1fr; } }
.member {
  display: flex; gap: var(--sp-5); align-items: center;
  padding: var(--sp-5);
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-brand), var(--c-accent));
  color: var(--c-on-brand); display: grid; place-items: center;
  font-family: var(--f-head); font-size: 1.4rem; font-weight: 600;
  flex-shrink: 0;
}
.member h3 { margin: 0 0 .15rem; }
.member .role { color: var(--c-muted); font-size: .9rem; }
.member .yrs { display: inline-block; margin-top: .25rem; font-size: .8rem; color: var(--c-accent-2); font-weight: 600; }

/* ---------- CTA Strip ---------- */
.cta-strip {
  background: var(--c-brand);
  color: var(--c-on-brand);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  display: grid; grid-template-columns: 1.5fr auto; gap: var(--sp-6);
  align-items: center;
}
@media (max-width: 880px) { .cta-strip { grid-template-columns: 1fr; } }
.cta-strip h2 { color: #fff; margin: 0; }
.cta-strip p  { color: var(--c-on-dark-muted); margin: .5rem 0 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--c-dark);
  color: var(--c-on-dark-muted);
  padding: var(--sp-8) 0 var(--sp-5);
  margin-top: var(--sp-9);
}
.footer p, .footer li, .footer a { color: var(--c-on-dark-muted); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: var(--sp-4); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; }
.footer a:hover { color: var(--c-accent); }
.footer .brand { color: #fff; margin-bottom: var(--sp-4); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: var(--sp-5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3);
  font-size: .85rem;
}

/* ---------- Misc ---------- */
.section-head { max-width: 760px; margin-bottom: var(--sp-7); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.list-check { list-style: none; padding: 0; }
.list-check li {
  position: relative; padding-left: 2rem; margin-bottom: .75rem; color: var(--c-ink-2);
}
.list-check li::before {
  content: ""; position: absolute; left: 0; top: .4em;
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--c-accent);
  box-shadow: inset 0 0 0 4px var(--c-bg);
  border: 2px solid var(--c-accent);
}

.kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85rem; padding: .15rem .4rem;
  background: rgba(11,31,58,.06); border-radius: 6px;
}

.breadcrumb {
  font-size: .85rem; color: var(--c-muted); margin-bottom: var(--sp-4);
}
.breadcrumb a:hover { color: var(--c-ink); }

/* ---------- Theme Toggle ---------- */
.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-ink);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--c-ink); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ---------- Mobile / iPad Feintuning ---------- */
@media (max-width: 768px) {
  :root { --sp-9: 4rem; --sp-8: 3rem; --sp-7: 2rem; }
  h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .container { padding: 0 var(--sp-4); }
  .innov { padding: var(--sp-6) var(--sp-5); }
  .cta-strip { padding: var(--sp-6); }
  .hero { padding: var(--sp-7) 0 var(--sp-6); }
  .btn { padding: .85rem 1.2rem; min-height: 44px; }  /* iOS-Touch-Target */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-visual { min-height: 380px; }
  .hero-card { padding: var(--sp-4); }
  .hero-card--3 { width: 64%; }
  .footer-grid { gap: var(--sp-5); }
}
/* Verhindert iOS-Zoom beim Fokus auf Inputs */
@media (max-width: 768px) {
  input, textarea, select { font-size: 16px; }
}

/* Skip link (Barrierefreiheit) */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-ink); color: #fff; padding: .5rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; z-index: 100; }

/* Focus */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px; border-radius: 6px;
}
