/* VSP Consulting & Solutions – Basis-Stylesheet
   Designsystem „Präzision & Nähe“ (siehe Dokumentation/KONZEPT.md) */

:root {
  --ink: #141412;
  --ink-2: #3E3B38;
  --mute: #5E5A56;
  --line: #D9D7D0;          /* Linien-Grau aus dem Corporate Design (seit 23.11.2026, vorher #E6E2DD) */
  --soft: #F6F4F1;
  --dark: #161513;
  --dark-line: #2E2B28;
  --on-dark: #F4F1EC;
  --on-dark-mute: #B5AFA8;
  --orange: #985746;        /* Terracotta aus dem Corporate Design (Intranet, Stand 14.10.2026) */
  --orange-text: #985746;   /* 5,5:1 auf Weiß, 5,0:1 auf Warmgrau */
  --orange-light: #C9907E;  /* Variante für das dunkle Band, 6,9:1 auf #161513 */
  --font-sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', Menlo, Consolas, monospace;
  --wrap: 1360px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
picture { display: contents; }   /* WebP-Quelle: das Bild bleibt direktes Kind von Figure und Zelle */
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--orange-text); }
h1, h2, h3, p, figure, ul, ol, dl { margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.band-orange :focus-visible { outline-color: #fff; }
.band-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--orange-light); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; }
.span4 { grid-column: span 4; } .span5 { grid-column: span 5; } .span6 { grid-column: span 6; }
.span7 { grid-column: span 7; } .span8 { grid-column: span 8; } .span12 { grid-column: span 12; }
.section { padding: 88px 0; }
.section-sm { padding: 72px 0; }
.band-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.band-dark .mark-outline { position: absolute; right: -260px; bottom: -300px; width: 760px; height: 760px; opacity: .55; pointer-events: none; }
.band-orange { background: var(--orange); color: #fff; }
/* Terracotta ist dunkler als das frühere Orange: Text und Links auf dem Band in Weiß (5,5:1), dunkler Text läge bei 3,3:1.
   Hover auf dem Band: Linie bzw. Unterstrich verschwindet, weil keine dunklere Textfarbe den Kontrast hält. */
.band-orange a { color: #fff; }
.band-orange a:hover { color: #fff; text-decoration-color: transparent; }
.band-orange .btn-ghost { color: #fff; border-color: #fff; }
.band-orange .btn-ghost:hover { color: #fff; border-color: transparent; }
.band-orange .contact-card { background: rgba(20,20,18,.12); }
.band-orange .contact-card .mono { color: #fff; }
.band-orange .btn { background: var(--ink); border-color: var(--ink); color: #fff; }
.band-orange .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Typografie */
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.mono-dark { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-mute); }
.band-dark .mono { color: var(--on-dark-mute); }
.band-orange .mono { color: #F2F0ED; }
.mono-accent { color: var(--orange-text); }
.band-dark .mono-accent { color: var(--orange-light); }
.h-display { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
.h2 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.08; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
.h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -.01em; font-weight: 600; }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.band-dark .lead { color: var(--on-dark-mute); }
.band-orange .lead { color: #F2F0ED; }
.band-orange .muted { color: #F2F0ED; }
.muted { color: var(--mute); }
.band-dark .muted { color: var(--on-dark-mute); }
.kw { color: var(--orange); }
.band-orange .kw { color: #fff; }
.placeholder { border: 1px dashed #B9B5AE; padding: 8px 14px; color: #8A847E; }

/* Buttons */
.btn, .btn-orange, .btn-ghost { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 500; font-size: 16px; border-radius: 2px; cursor: pointer; }
.btn { padding: 0 22px; background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-orange { padding: 0 22px; background: var(--orange); color: #fff; border: 1px solid var(--orange); }
.btn-orange:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ghost { padding: 0 4px; color: var(--ink); border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: none; }
.btn-ghost:hover { color: var(--orange-text); border-color: var(--orange-text); }
.band-dark .btn-ghost { color: var(--on-dark); border-color: var(--on-dark); }
.band-dark .btn-ghost:hover { color: var(--orange-light); border-color: var(--orange-light); }
.arrow { width: 48px; height: 48px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; border-radius: 2px; color: var(--ink); justify-self: end; }
.arrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* Header und Navigation */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
/* Logo: Vektoren aus „Logo cognac.ai“ (Austauschordner, 2024). Header als Zeile wie in der Signatur-Fassung 2025:
   Wortmarke + Marke | Unterzeile in zwei Zeilen. Mobil bleibt nur Wortmarke + Marke. */
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { display: block; width: auto; height: 34px; }
.brand-divider { width: 1px; height: 30px; background: var(--line); flex: 0 0 1px; }
.brand-text-logo { display: block; width: auto; height: 22px; }
.nav-links { display: flex; gap: 32px; align-items: center; font-size: 15px; font-weight: 500; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-links a[aria-current="page"], .nav-links a[aria-current="true"] { color: var(--orange-text); border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.nav-links .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
/* Untermenü „Leistungen“: öffnet bei Hover und Tastaturfokus, ohne JavaScript */
.nav-item { position: relative; display: flex; align-items: center; }
.has-sub > a::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.sub-menu { display: none; position: absolute; top: 100%; left: -20px; min-width: 272px; margin: 0; padding: 8px 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 12px 32px rgba(20,20,18,.08); z-index: 60; }
.nav-item:hover .sub-menu, .nav-item:focus-within .sub-menu { display: block; }
.sub-menu a { display: flex; min-height: 44px; padding: 0 20px; font-size: 15px; font-weight: 500; }
.sub-menu a:hover { background: var(--soft); color: var(--ink); }
.sub-menu a[aria-current="page"] { border-bottom: 0; padding-bottom: 0; color: var(--orange-text); }
.nav-links .btn[aria-current="page"] { background: var(--orange-text); border-color: var(--orange-text); color: #fff; }
.nav-toggle { display: none; min-height: 42px; padding: 0 16px; font-size: 15px; }
.nav-mobile { display: none; }

/* Hero */
.hero { padding-top: 40px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero-figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; max-height: min(62vh, 600px); object-fit: cover; display: block; border: 1px solid var(--line); filter: saturate(.85); }
figcaption.mono { margin-top: 0; }

/* Faktenzeile und Partner */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fact { background: #fff; padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.partners { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; padding-top: 28px; }
.partners-logos { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; flex: 1 1 auto; }
.partners img { height: 28px; width: auto; display: block; filter: grayscale(1); opacity: .8; }

/* Leistungsliste (Startseite) */
.svc-list-wrap { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 140px minmax(0, 1.1fr) minmax(0, 1fr) 56px; column-gap: 32px; align-items: start; padding: 36px 0; border-top: 1px solid var(--line); }
.svc:hover { background: #FAF8F5; }
.svc-tags { display: flex; flex-direction: column; gap: 6px; }
.svc-body { display: flex; flex-direction: column; gap: 10px; }
.svc-list { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; color: var(--ink-2); font-size: 16px; }
.svc-list li { display: flex; gap: 12px; align-items: baseline; }
.svc-list li::before { content: ""; width: 6px; height: 6px; background: var(--orange); flex: 0 0 6px; transform: translateY(-2px); }

/* Linienraster-Zellen */
.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cell { background: #fff; padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 14px; }
.band-dark .cells { background: var(--dark-line); border-color: var(--dark-line); }
.band-dark .cell { background: var(--dark); min-height: 240px; }
.band-dark .cell p { color: var(--on-dark-mute); font-size: 16px; }

/* Vorgehen */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--ink); position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 3px; background: var(--orange); }
.band-dark .steps { gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); }
.band-dark .step { background: var(--dark); padding: 28px 26px 32px; border-top: 0; min-height: 200px; }
.band-dark .step::before { display: none; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; }
.col { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--ink); position: relative; }
.col::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 3px; background: var(--orange); }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.team-cell { background: #fff; display: flex; flex-direction: column; }
.team-cell img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; filter: saturate(.85); }
.team-meta { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.photo-wide { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.photo-wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 45%; display: block; border: 1px solid var(--line); filter: saturate(.85); }

/* Zitat, Key-Value */
.quote { margin: 0; border-left: 3px solid var(--orange); padding: 8px 0 8px 40px; display: flex; flex-direction: column; gap: 28px; }
.quote p.quote-text { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; letter-spacing: -.015em; font-weight: 500; text-wrap: pretty; color: inherit; }
.band-dark .quote { border-color: var(--orange-light); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 12px 24px; font-size: 16px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; font-weight: 500; }
.band-dark .kv dt { color: var(--on-dark-mute); }
.logo-box { border: 1px solid var(--line); padding: 20px 24px; display: inline-flex; align-items: center; align-self: flex-start; background: #fff; }
.logo-box img { height: 36px; width: auto; display: block; }

/* Unternavigation, Spec-Tabellen, Matrix (Leistungen) */
.subnav { display: flex; border: 1px solid var(--line); flex-wrap: wrap; }
.subnav a { flex: 1 1 200px; padding: 18px 24px; border-right: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 16px; }
.subnav a:last-child { border-right: 0; }
.subnav a:hover { background: #FAF8F5; }
.block { padding: 72px 0; border-top: 1px solid var(--line); }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.spec-cell { background: #fff; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; min-height: 140px; }
.spec-cell.head { background: var(--soft); }
.matrix { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mx { background: #fff; padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; min-height: 112px; hyphens: auto; overflow-wrap: anywhere; }
.mx:hover { background: #FAF8F5; }
.mx .code { font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; color: var(--orange-text); font-weight: 500; }

/* FAQ (details/summary) */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 28px; line-height: 1; color: var(--ink); }
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--orange-text); }
.faq .faq-body { padding: 0 0 24px; color: var(--ink-2); max-width: none; }

/* Formular */
.form { display: flex; flex-direction: column; gap: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 500; }
.field .opt { font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #B9B5AE; border-radius: 2px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 20px; accent-color: var(--orange); }
.form-note { font-size: 14px; color: var(--mute); }
.panel { border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 24px; background: #fff; }
.panel .kv { grid-template-columns: 1fr; gap: 4px 0; }
.panel .kv dd { margin-bottom: 10px; }
.contact-card { display: flex; gap: 24px; align-items: center; border: 1px solid rgba(20,20,18,.35); padding: 24px; background: rgba(255,255,255,.12); }
.contact-card img { width: 120px; height: 120px; object-fit: cover; object-position: 50% 20%; display: block; flex: 0 0 120px; }

/* Footer */
.site-footer { background: var(--dark); color: #E8E4DE; }
.site-footer .wrap { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 56px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 40px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot-logo { display: block; width: 180px; height: auto; margin-bottom: 14px; }   /* Vollständiges Logo, gestapelt, in der hellen CD-Variante #D9D7D0 */
.foot-links a { color: #E8E4DE; display: inline-flex; align-items: center; min-height: 32px; }
.foot-links a:hover { color: var(--orange-light); }
.foot-bottom { border-top: 1px solid var(--dark-line); padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand-divider, .brand-text-logo { display: none; }   /* mobil nur Wortmarke + Marke */
  .nav-mobile { display: none; border-top: 1px solid var(--line); background: #fff; }
  .nav-mobile.is-open { display: block; }
  .nav-mobile ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; display: flex; flex-direction: column; }
  .nav-mobile a { display: flex; align-items: center; min-height: 52px; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--line); }
  .nav-mobile li:last-child a { border-bottom: 0; }
  .sub-mobile { list-style: none; margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; }
  .sub-mobile a { min-height: 46px; font-size: 16px; font-weight: 400; color: var(--ink-2); }
  .sub-mobile li:last-child a { border-bottom: 1px solid var(--line); }
  .nav-mobile a[aria-current="page"], .nav-mobile a[aria-current="true"] { color: var(--orange-text); }
  .grid12 { column-gap: 0; }   /* einspaltig: die 11 Spaltenabstände würden sonst 352 px Mindestbreite erzwingen */
  .grid12 > * { grid-column: span 12 !important; }
  .svc { grid-template-columns: 1fr; row-gap: 16px; }
  .arrow { justify-self: start; }
  .kv { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-sm { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .wrap { padding: 0 20px; }
  .block { padding: 64px 0; }
}
@media (max-width: 400px) {   /* sehr schmale Handys: Ansprechpartner-Karte passt sonst nicht */
  .contact-card { gap: 16px; padding: 18px; }
  .contact-card img { width: 96px; height: 96px; flex-basis: 96px; }
  .contact-card > div { min-width: 0; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
