/* ==========================================================================
   Kernintelligenz – Stylesheet
   Farben: Dunkelblau #0F2A44 · Graphit #2B2F36 · Honiggelb #E3A72F
   Schrift: IBM Plex Sans (lokal eingebunden, siehe fonts/LIESMICH.txt)
   ========================================================================== */

/* ---------- Schriften (lokal, keine externen Dienste) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/IBMPlexSans-Light.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/IBMPlexSans-Bold.woff2") format("woff2"); }

/* ---------- Grundwerte ---------- */
:root {
  --navy: #0F2A44;
  --navy-2: #15324F;
  --navy-3: #1E3A57;
  --navy-dark: #0B1F33;
  --graphit: #2B2F36;
  --text: #4A525E;
  --text-muted: #5A6270;
  --honey: #E3A72F;
  --honey-dark: #8A5A00;
  --light: #F4F6F8;
  --border: #E1E6EC;
  --on-navy: #DCE4EC;
  --on-navy-muted: #A9BCCE;
  --on-navy-text: #C9D6E3;
  --radius: 10px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--graphit);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--navy); }
a:hover { color: #1E4A73; }

/* Sichtbarer Fokus für Tastaturbedienung */
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 4px; }

/* Sprungmarke für Screenreader und Tastatur */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--honey); color: var(--navy); font-weight: 600;
  padding: 10px 16px; border-radius: 6px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 880px; }
.container--text { max-width: 820px; }

/* Abschnitt-Anker nicht unter der fixierten Kopfzeile verstecken */
section[id] { scroll-margin-top: 80px; }

/* ---------- Schaltflächen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 26px; border-radius: 6px;
  font: inherit; font-size: 17px; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer; border: 0;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--honey); color: var(--navy); }
.btn--primary:hover { background: #EDB84B; color: var(--navy); }
.btn--outline { background: transparent; color: #FFFFFF; border: 1.5px solid #8FA6BD; font-weight: 500; }
.btn--outline:hover { border-color: #FFFFFF; color: #FFFFFF; }
.btn--large { font-size: 18px; padding: 18px 30px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); border-bottom: 1px solid var(--navy-3);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none; }
.brand:hover { color: #FFFFFF; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-size: 22px; letter-spacing: .5px; white-space: nowrap; }
.brand__name b { font-weight: 700; }
.brand__name .accent { color: var(--honey); }
.brand__name .light { font-weight: 300; }

.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav a { color: var(--on-navy); text-decoration: none; }
.nav a:hover { color: #FFFFFF; }
.nav .nav__cta { background: var(--honey); color: var(--navy); font-weight: 600; padding: 12px 18px; border-radius: 6px; }
.nav .nav__cta:hover { background: #EDB84B; color: var(--navy); }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: transparent; color: #FFFFFF; border: 1.5px solid #8FA6BD; border-radius: 6px;
  min-height: 44px; padding: 8px 14px; font: inherit; font-size: 15px; cursor: pointer;
}
.nav-toggle__icon { width: 20px; height: 20px; }

/* ---------- Kopfbereich (Hero) ---------- */
.hero { background: var(--navy); color: #FFFFFF; }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 80px; padding-top: 88px; padding-bottom: 96px; }
.hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.hero__kicker { font-size: 16px; line-height: 1.5; letter-spacing: .3px; }
.hero__kicker strong { color: var(--honey); font-weight: 600; }
.hero__kicker span { color: var(--on-navy-muted); }
.hero h1 { font-size: clamp(2.5rem, 2rem + 2.6vw, 4.125rem); line-height: 1.08; font-weight: 600; letter-spacing: -1px; }
.hero__lead { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); line-height: 1.5; color: #E6EDF4; max-width: 640px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.hero__visual { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.wabe-grafik { width: 460px; max-width: 100%; height: auto; }

/* ---------- Abschnitte allgemein ---------- */
.section { padding: 104px 0; }
.section--white { background: #FFFFFF; }
.section--light { background: var(--light); }
.section--navy { background: var(--navy); color: #FFFFFF; }

.section__head { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin-bottom: 40px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--honey-dark); }
.section--navy .eyebrow { color: var(--honey); }
.section-title { font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.5rem); line-height: 1.15; font-weight: 600; color: var(--navy); }
.section--navy .section-title { color: #FFFFFF; }
.section-lead { font-size: 19px; line-height: 1.65; color: var(--text); }

/* ---------- Vision ---------- */
.principles-intro { margin: 32px 0 20px; font-size: 19px; font-weight: 500; color: var(--graphit); }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; list-style: none; padding: 0; }
.principle { border-top: 3px solid var(--honey); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.principle h3 { font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--navy); }
.principle p { font-size: 17px; line-height: 1.65; color: var(--text); }

/* ---------- Karten ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; list-style: none; padding: 0; }
.cards--four { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 14px;
}
.card__icon { width: 36px; height: 36px; color: var(--navy); }
.card h3 { font-size: 21px; line-height: 1.3; font-weight: 600; color: var(--navy); }
.card p { font-size: 16px; line-height: 1.6; color: var(--text); }
.section--navy .card { background: var(--navy-2); border-color: #2E5378; }
.section--navy .card__icon { color: var(--honey); }
.section--navy .card h3 { color: #FFFFFF; }
.section--navy .card p { color: var(--on-navy-text); }

.ico { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Wissensassistent ---------- */
.assistant { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 72px; }
.assistant__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.assistant__title { font-size: clamp(1.625rem, 1.35rem + 1vw, 2.125rem); line-height: 1.2; font-weight: 600; color: var(--navy); }
.assistant__text > p { font-size: 18px; line-height: 1.65; color: var(--text); }
.checklist { list-style: none; padding: 0; margin-top: 8px; display: flex; flex-direction: column; gap: 12px; font-size: 17px; color: var(--graphit); }
.checklist li { display: flex; align-items: flex-start; gap: 12px; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--navy); margin-top: 2px; }

.assistant__demo { flex: 1 1 440px; min-width: 0; }
.chat {
  background: var(--light); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.chat__head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.chat__head svg { width: 18px; height: 18px; flex: none; }
.chat__q {
  align-self: flex-end; max-width: 85%; background: var(--navy); color: #FFFFFF;
  padding: 14px 18px; border-radius: 14px 14px 4px 14px; font-size: 16px; line-height: 1.5;
}
.chat__a {
  align-self: flex-start; max-width: 90%; background: #FFFFFF; border: 1px solid var(--border);
  padding: 16px 18px; border-radius: 14px 14px 14px 4px; font-size: 16px; line-height: 1.55; color: var(--graphit);
  display: flex; flex-direction: column; gap: 12px;
}
.chat__sources { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chat__sources li {
  font-size: 13px; background: #FDF3DD; color: #6B4600; border: 1px solid #F0D79A;
  padding: 4px 10px; border-radius: 999px;
}
.chat__note { font-size: 12px; color: var(--text-muted); }

.branchen {
  border-top: 1px solid var(--border); margin-top: 56px; padding-top: 28px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; font-size: 16px; color: var(--text);
}
.branchen strong { color: var(--navy); }

/* ---------- Versprechen / Hausskizze ---------- */
.haus { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 40px; }
.haus-grafik { width: 100%; height: auto; }
.haus-grafik--breit { max-width: 1000px; }
.haus-grafik--mobil { display: none; max-width: 420px; }
.haus__liste { display: none; }
.haus figcaption { font-size: 16px; line-height: 1.6; color: var(--on-navy-text); text-align: center; max-width: 720px; }

.cta-line {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 16px 28px; padding-top: 48px; text-align: center;
}
.cta-line span { font-size: 20px; font-weight: 500; color: #FFFFFF; }

/* ---------- Zusammenarbeit ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__num { position: relative; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; }
.step__num svg { position: absolute; inset: 0; width: 56px; height: 56px; }
.step__num span { position: relative; color: #FFFFFF; font-weight: 600; font-size: 20px; }
.step--last .step__num span { color: var(--navy); font-weight: 700; }
.step h3 { font-size: 20px; line-height: 1.3; font-weight: 600; color: var(--navy); }
.step p { font-size: 16px; line-height: 1.6; color: var(--text); }
.step .step__result { font-size: 14px; line-height: 1.5; color: var(--graphit); }

/* ---------- Ihr Ansprechpartner ---------- */
.person { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.person__text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.person__claim { display: flex; align-items: flex-start; gap: 12px; font-size: 18px; line-height: 1.5; font-weight: 500; color: var(--navy); }
.person__claim svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.person__text > p.person__intro { font-size: 18px; line-height: 1.7; color: var(--text); }
.person__photo {
  flex: 0 1 320px; min-width: 240px; width: 320px; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 30%; border-radius: 12px;
}
.timeline-title { margin-top: 8px; font-size: 14px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.timeline { list-style: none; padding: 0; margin: 0 0 0 9px; border-left: 2px solid #C9D2DC; display: flex; flex-direction: column; gap: 18px; }
.timeline li { position: relative; padding-left: 28px; font-size: 17px; line-height: 1.4; color: var(--graphit); }
.timeline li svg { position: absolute; left: -10px; top: 2px; width: 18px; height: 18px; }
.timeline li.timeline__current { font-weight: 600; color: var(--navy); }

/* ---------- Kontakt ---------- */
.contact { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.contact__mark { width: 56px; height: 56px; }
.contact h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); line-height: 1.1; font-weight: 600; color: var(--navy); }
.contact > p { font-size: 18px; line-height: 1.7; color: var(--text); }

.form {
  width: 100%; margin-top: 16px; text-align: left;
  background: var(--light); border: 1px solid var(--border); border-radius: 14px; padding: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px;
}
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field--full { grid-column: 1 / -1; }
.form label { font-size: 15px; font-weight: 500; color: var(--graphit); }
.form label .optional { font-weight: 400; color: var(--text-muted); }
.form input, .form textarea {
  font: inherit; font-size: 16px; color: var(--graphit);
  background: #FFFFFF; border: 1px solid #B8C3CF; border-radius: 6px;
  padding: 12px 14px; min-height: 48px; width: 100%;
}
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--navy); outline: 3px solid rgba(227, 167, 47, .5); outline-offset: 0; }
.form__hint { font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.contact-line {
  margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--border); width: 100%;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px;
  list-style: none; padding-left: 0; font-size: 16px; color: var(--graphit);
}
.contact-line li, .contact-line a { display: flex; align-items: center; gap: 10px; }
.contact-line a { color: var(--graphit); text-decoration: none; }
.contact-line a:hover { color: var(--navy); text-decoration: underline; }
.contact-line svg { width: 20px; height: 20px; flex: none; color: var(--navy); }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--navy-dark); color: var(--on-navy-text); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 20px; padding-top: 40px; padding-bottom: 40px; font-size: 14px;
}
.site-footer strong { color: #FFFFFF; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.site-footer a { color: var(--on-navy-text); }
.site-footer a:hover { color: #FFFFFF; }

/* ---------- Rechtstexte und einfache Seiten ---------- */
.page-main { padding: 72px 0 104px; }
.legal { display: flex; flex-direction: column; gap: 22px; font-size: 17px; line-height: 1.7; color: var(--graphit); }
.legal h1 { font-size: clamp(2.125rem, 1.8rem + 1.4vw, 2.75rem); line-height: 1.15; font-weight: 600; color: var(--navy); }
.legal h2 { margin-top: 20px; font-size: 24px; line-height: 1.3; font-weight: 600; color: var(--navy); }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal .back { margin-top: 24px; }

.message { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.message h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); line-height: 1.15; font-weight: 600; color: var(--navy); }
.message p { font-size: 18px; line-height: 1.7; color: var(--text); }
.message ul { padding-left: 22px; color: var(--graphit); }

/* ---------- Mobil ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid var(--navy-3); padding: 8px 20px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--navy-3); font-size: 17px; }
  .nav .nav__cta { margin-top: 16px; text-align: center; border-bottom: 0; }
  .no-js .nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 0 0 16px; border: 0; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-header__inner { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero__inner { padding-top: 56px; padding-bottom: 64px; gap: 48px; }
  .hero__text { gap: 28px; }
  .hero__actions .btn { width: 100%; }
  .brand__name { font-size: 19px; }
  .brand__mark { width: 34px; height: 34px; }
  .site-header__inner { min-height: 66px; }
  .assistant { gap: 40px; padding-top: 56px; }
  .chat { padding: 20px; }
  .haus-grafik--breit { display: none; }
  .haus-grafik--mobil { display: block; }
  .haus__liste {
    display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0;
    width: 100%; max-width: 420px; font-size: 15px; color: var(--on-navy-text);
  }
  .haus__liste li { display: flex; align-items: flex-start; gap: 10px; }
  .haus__liste svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
  .person { gap: 40px; }
  .person__photo { width: 100%; max-width: 360px; flex-basis: auto; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .form__actions .btn { width: 100%; }
  .contact-line { flex-direction: column; align-items: center; }
  .cta-line .btn { width: 100%; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .nav-toggle, .form, .hero__actions, .cta-line { display: none !important; }
  .section, .hero__inner { padding: 24px 0; }
  .hero, .section--navy { background: #FFFFFF !important; color: #000000 !important; }
}
.message pre { white-space: pre-wrap; word-break: break-word; background: var(--light); border: 1px solid var(--border); border-radius: 8px; padding: 16px; font-size: 13px; max-width: 100%; overflow-x: auto; }
