:root {
  --navy: #0D1B2A;
  --navy-2: #142B43;
  --blue: #1B3A6B;
  --brand-blue: #4E68A3;
  --gold: #C9A84C;
  --orange: #FF7A21;
  --silver: #A8B2C0;
  --offwhite: #F5F7FA;
  --paper: #FFFFFF;
  --ink: #17212B;
  --muted: #586575;
  --line: #DDE3EA;
  --shadow: 0 18px 45px rgba(13,27,42,.10);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 870px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 9999; background: white; color: black; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(13,27,42,.08);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img { width: 310px; height: auto; max-height: 54px; object-fit: contain; }
#mainnav { display: flex; align-items: center; gap: 20px; }
#mainnav a { text-decoration: none; color: #283544; font-size: 14.5px; font-weight: 650; }
#mainnav a:hover { color: var(--brand-blue); }
#mainnav .nav-cta { background: var(--navy); color: white; padding: 10px 15px; border-radius: 999px; }
#mainnav .nav-cta:hover { background: var(--blue); color: white; }
.mobile-toggle { display: none; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 8px 12px; font: inherit; }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #08121D 0%, var(--navy) 52%, #132F4F 100%);
  color: white;
  padding: 96px 0 92px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -55% 35%;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78,104,163,.28) 0%, rgba(78,104,163,0) 68%);
  pointer-events: none;
}
.hero-glow { position: absolute; top: 0; right: 0; width: 42%; height: 100%; opacity: .18; background: repeating-linear-gradient(122deg, transparent 0 34px, rgba(255,255,255,.10) 35px 36px, transparent 37px 72px); transform: skewX(-10deg); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: 68px; align-items: center; }
.eyebrow { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .11em; font-size: 13px; font-weight: 800; color: var(--gold); }
.eyebrow.dark { color: var(--brand-blue); }
h1,h2,h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; }
h1 { max-width: 820px; font-size: clamp(44px, 6vw, 74px); font-weight: 760; }
h2 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 740; }
h3 { font-size: 23px; }
.lead { max-width: 760px; margin: 27px 0 0; font-size: 21px; line-height: 1.55; color: #E7ECF2; }
.lead.secondary { margin-top: 10px; color: #C9D2DD; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 800; transition: .18s ease; }
.button-primary { background: var(--gold); color: #111A23; box-shadow: 0 8px 24px rgba(201,168,76,.20); }
.button-primary:hover { transform: translateY(-1px); background: #D5B65C; }
.button-ghost { border: 1px solid rgba(255,255,255,.28); color: white; }
.button-ghost:hover { border-color: white; background: rgba(255,255,255,.06); }
.button.full { width: 100%; }
.microcopy { margin: 14px 0 0; color: #AFC0D1; font-size: 14px; }
.method-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 26px; box-shadow: 0 20px 50px rgba(0,0,0,.18); backdrop-filter: blur(6px); }
.method-kicker { margin: 0 0 16px; color: #C8D3DF; font-size: 14px; font-weight: 700; }
.method-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.method-steps li { display: grid; grid-template-columns: 86px 1fr; column-gap: 13px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.method-steps li:first-child { border-top: 0; }
.method-steps span { color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.method-steps strong { font-size: 18px; }
.method-steps small { grid-column: 2; margin-top: 2px; color: #AFC0D1; }

.section { padding: 92px 0; }
.section-soft { background: var(--offwhite); }
.section-dark { background: var(--navy); color: white; }
.section-heading { max-width: 850px; margin-bottom: 44px; }
.section-heading.light p:not(.eyebrow) { color: #C1CDD9; }
.section-heading p { margin: 16px 0 0; font-size: 19px; color: var(--muted); }
.section-lead { font-size: 21px; line-height: 1.55; color: #334354; }
.narrow p { margin: 20px 0 0; }

.why-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
.why-copy p { margin: 0 0 22px; }
.pullquote { padding: 22px 24px; border-left: 4px solid var(--gold); background: #FAFBFC; font-size: 22px; line-height: 1.45; font-weight: 730; color: var(--navy); }
.gap-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); background: white; }
.gap-label { color: var(--brand-blue); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px; }
.gap-row { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 700; }
.gap-row span:nth-child(2) { text-align: center; color: var(--gold); font-size: 24px; }
.gap-card p { margin: 14px 0 0; color: var(--muted); }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.process-card { position: relative; background: #12263B; border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 28px; min-height: 320px; }
.process-card.featured { background: linear-gradient(160deg, #173554, #1B3A6B); border-color: rgba(201,168,76,.55); }
.process-no { position: absolute; top: 20px; right: 22px; color: rgba(255,255,255,.12); font-size: 52px; font-weight: 850; }
.process-type { margin: 0 0 28px; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; }
.process-card h3 { max-width: 250px; color: white; }
.process-card p:last-child { color: #C3CFDA; margin-top: 18px; }
.result-strip { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 28px 30px; background: rgba(255,255,255,.035); }
.result-label { margin: 0 0 7px; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; }
.result-main { margin: 0; font-size: 21px; font-weight: 750; }
.result-strip blockquote { margin: 0; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); color: #E7EDF3; font-size: 19px; font-style: italic; }

.topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.topic-card h3 { font-size: 20px; color: var(--navy); }
.topic-card p { margin: 12px 0 0; color: var(--muted); }

.person-grid { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); gap: 72px; align-items: center; }
.portrait-wrap { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: #E9EDF1; }
.portrait-wrap img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.person-copy p { margin: 19px 0 0; }
.credentials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.credentials span { border: 1px solid var(--line); background: var(--offwhite); border-radius: 999px; padding: 8px 12px; font-size: 14px; font-weight: 700; color: #334354; }
.text-link { display: inline-block; margin-top: 24px; color: var(--brand-blue); text-decoration: none; font-weight: 800; }
.text-link:hover { text-decoration: underline; }

.location-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 54px; align-items: center; }
.location-copy p { margin: 18px 0 0; }
.building-photo { margin: 0; }
.building-photo picture { display: block; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.building-photo img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; object-position: center; }

.cta-section { background: linear-gradient(135deg, var(--navy) 0%, #102C48 100%); color: white; padding: 82px 0; }
.cta-inner { display: grid; grid-template-columns: 1.18fr .82fr; gap: 70px; align-items: center; }
.cta-inner h2 { max-width: 720px; }
.cta-inner > div:first-child > p:not(.eyebrow):not(.cta-question) { color: #C3CFDA; }
.cta-question { margin: 20px 0 0; font-size: 20px; font-weight: 720; }
.cta-card { background: white; color: var(--ink); border-radius: 20px; padding: 28px; box-shadow: 0 22px 55px rgba(0,0,0,.20); }
.cta-card h3 { color: var(--navy); }
.cta-card p { margin: 10px 0 0; color: var(--muted); }
.cta-card .button { margin-top: 22px; }
.mail-link { display: block; text-align: center; margin-top: 14px; color: var(--brand-blue); font-weight: 750; text-decoration: none; }

.site-footer { background: #08131E; color: #B8C3CF; padding: 38px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand links" "meta links"; gap: 10px 40px; align-items: center; }
.footer-brand { grid-area: brand; }
.footer-brand p { margin: 8px 0 0; font-size: 14px; }
.footer-wordmark { display: flex; align-items: baseline; gap: 10px; color: #F4F7FA; }
.footer-wordmark strong { font-size: 24px; letter-spacing: .02em; }
.footer-wordmark span { font-size: 14px; color: #D4DCE4; }
.footer-links { grid-area: links; display: flex; gap: 18px; }
.footer-links a { color: #D4DCE4; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: white; }
.footer-meta { grid-area: meta; font-size: 13px; color: #7F8D9A; }

/* Legal pages */
.legal-hero { background: var(--navy); color: white; padding: 58px 0; }
.legal-hero h1 { font-size: clamp(38px, 6vw, 58px); }
.legal-page { padding: 64px 0 90px; }
.legal-content { max-width: 860px; }
.legal-content h2 { font-size: 26px; margin: 42px 0 14px; }
.legal-content h3 { font-size: 20px; margin: 30px 0 8px; }
.legal-content p, .legal-content li { color: #374555; }
.legal-content a { color: var(--brand-blue); }
.legal-content ul { padding-left: 22px; }
.legal-content .back { display: inline-block; margin-bottom: 24px; font-weight: 800; text-decoration: none; color: var(--brand-blue); }

@media (max-width: 980px) {
  .brand img { width: 250px; }
  .mobile-toggle { display: inline-block; }
  #mainnav { position: absolute; left: 20px; right: 20px; top: 70px; display: none; flex-direction: column; align-items: stretch; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); }
  #mainnav.open { display: flex; }
  #mainnav a { padding: 9px 10px; }
  #mainnav .nav-cta { text-align: center; }
  .hero-grid, .why-grid, .person-grid, .location-grid, .cta-inner { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .method-card { max-width: 680px; }
  .process-grid, .topics-grid { grid-template-columns: 1fr 1fr; }
  .result-strip { grid-template-columns: 1fr; }
  .result-strip blockquote { padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .portrait-wrap { max-width: 560px; }
  .building-photo { order: -1; }
}

@media (max-width: 660px) {
  body { font-size: 16px; }
  .container { width: min(100% - 28px, var(--max)); }
  .header-inner { min-height: 68px; }
  .brand img { width: 205px; max-height: 44px; }
  .hero { padding: 74px 0 68px; }
  h1 { font-size: 43px; }
  h2 { font-size: 34px; }
  .lead, .section-lead { font-size: 18px; }
  .section { padding: 68px 0; }
  .process-grid, .topics-grid { grid-template-columns: 1fr; }
  .process-card { min-height: 0; }
  .method-steps li { grid-template-columns: 75px 1fr; }
  .pullquote { font-size: 19px; }
  .cta-section { padding: 66px 0; }
  .footer-grid { grid-template-columns: 1fr; grid-template-areas: "brand" "links" "meta"; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
.button-secondary-legal { border: 1px solid var(--line); color: var(--navy); background: white; min-height: 40px; padding: 8px 15px; font-size: 14px; }
.button-secondary-legal:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* Kontaktformular */
.contact-form { margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-top: 14px; }
.form-field label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 14px; font-weight: 750; }
.form-field .optional { color: var(--muted); font-weight: 500; }
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #CBD4DE;
  border-radius: 10px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field textarea { resize: vertical; min-height: 118px; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(65,105,180,.13); }
.privacy-check { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; cursor: pointer; }
.privacy-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brand-blue); }
.privacy-check a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 2px; }
.contact-form .button { border: 0; cursor: pointer; font: inherit; margin-top: 18px; }
.form-status { margin: 18px 0 4px; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 650; }
.form-status.success { color: #165B38; background: #E8F5EE; border: 1px solid #B6DFC8; }
.form-status.error { color: #7A2B21; background: #FBEDEA; border: 1px solid #EDC4BD; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

@media (max-width: 660px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}

/* V2.4.2: Kompetenznachweise */
.proofs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}
.proof-texts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.proof-label {
  color: #334354;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 760;
}
.tuev-proof {
  text-decoration: none;
  cursor: pointer;
}
.tuev-proof:hover,
.tuev-proof:focus-visible {
  color: var(--brand-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.defino-badge {
  width: 172px;
  height: auto;
  max-width: 100%;
}
.text-link-subtle {
  display: inline-block;
  margin-top: 1px;
  font-size: 14px;
  font-weight: 700;
}

/* Footer: Links und Datenschutz-Einstellungen einheitlich behandeln */
.footer-settings {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #D4DCE4;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.footer-settings:hover,
.footer-settings:focus-visible { color: white; text-decoration: underline; }

/* Datenschutz-Einstellungen für optionales LinkedIn-Tracking */
.consent-banner[hidden] { display: none !important; }
.consent-banner {
  position: fixed;
  z-index: 1000;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--ink);
}
.consent-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 20px 22px;
  background: rgba(255,255,255,.98);
  border: 1px solid #D7DEE6;
  border-radius: 16px;
  box-shadow: 0 20px 55px rgba(13,27,42,.24);
  backdrop-filter: blur(8px);
}
.consent-copy strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
}
.consent-copy p {
  margin: 6px 0 0;
  max-width: 720px;
  color: #4B5968;
  font-size: 14px;
  line-height: 1.5;
}
.consent-copy a { color: var(--brand-blue); text-underline-offset: 2px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.consent-button {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}
.consent-essential,
.consent-marketing {
  background: white;
  border: 1px solid #BFC9D4;
  color: var(--navy);
}
.consent-essential:hover,
.consent-marketing:hover {
  border-color: var(--navy);
  background: var(--offwhite);
}
.consent-button:hover { transform: translateY(-1px); }
.consent-button:focus-visible { outline: 3px solid rgba(78,104,163,.25); outline-offset: 2px; }

/* Danke-Seite */
.thanks-body { min-height: 100vh; display: flex; flex-direction: column; }
.thanks-main { flex: 1; display: grid; place-items: center; background: var(--offwhite); }
.thanks-section { width: 100%; padding: 74px 0; }
.thanks-card {
  max-width: 680px;
  padding: 42px 34px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.thanks-photo {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(13,27,42,.14);
}
.thanks-photo picture,
.thanks-photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.thanks-photo img {
  object-fit: cover;
  object-position: center 22%;
}
.thanks-card .eyebrow { margin-bottom: 12px; }
.thanks-card h1 { max-width: none; color: var(--navy); font-size: clamp(32px, 4.7vw, 48px); }
.thanks-lead { margin: 14px 0 26px; color: #455565; font-size: 19px; }

@media (max-width: 760px) {
  .consent-inner { grid-template-columns: 1fr; gap: 16px; }
  .consent-actions { justify-content: stretch; }
  .consent-button { flex: 1 1 180px; }
  .thanks-card { padding: 32px 20px; }
  .thanks-photo { width: 82px; height: 82px; }
}
.inline-settings {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--brand-blue);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
