/* =========================================================
   OPEX Beratung – Stylesheet
   Helles, ruhiges Design. Keine externen Schriften, keine Cookies.
   ========================================================= */

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

:root {
  --navy: #1f3556;
  --navy-deep: #122240;
  --blue: #2478c8;
  --blue-dark: #1b5f9f;
  --bg: #ffffff;
  --bg-soft: #f3f6fa;
  --text: #17233a;
  --muted: #55627a;
  --border: #dde4ee;
  --radius: 14px;
  --container: 1120px;
  --shadow: 0 10px 30px rgba(18, 34, 64, .08);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
a:hover { color: var(--navy); }

h1, h2, h3 { color: var(--navy); line-height: 1.2; letter-spacing: -.01em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus {
  left: 16px; top: 16px; z-index: 1000;
  background: #fff; color: var(--navy);
  padding: 10px 14px; border-radius: 10px; border: 2px solid var(--blue);
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--bg-soft); color: var(--navy); }
.btn-outline { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-nav {
  max-width: var(--container); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: inline-flex; flex: 0 0 auto; }
.brand-logo { display: block; width: 130px; height: auto; }

.nav-pills { display: flex; gap: 4px; flex: 1 1 auto; flex-wrap: wrap; }
.nav-pills a {
  padding: 8px 14px; border-radius: 999px;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px;
}
.nav-pills a:hover { background: var(--bg-soft); }
.nav-pills a[aria-current="page"] { color: var(--blue-dark); background: #e8f1fb; }

.nav-cta { flex: 0 0 auto; padding: 10px 20px; font-size: 15px; }

@media (max-width: 720px) {
  .site-nav { flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px; }
  .brand-logo { width: 110px; }
  .nav-cta { margin-left: auto; padding: 9px 16px; }
  .nav-pills { order: 3; flex: 0 0 100%; gap: 2px; margin: 0 -6px; }
  .nav-pills a { padding: 7px 10px; font-size: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy-deep);
  min-height: clamp(520px, 74vh, 760px);
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; margin: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 48%;
  display: block;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(10, 20, 40, .88) 0%, rgba(10, 20, 40, .66) 48%, rgba(10, 20, 40, .28) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 64px; padding-bottom: 64px; }
.hero-content { max-width: 720px; }
.eyebrow {
  margin: 0 0 14px; font-size: 14px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #9cc8f1;
}
.hero h1 { color: #fff; margin: 0 0 18px; font-size: clamp(34px, 5.2vw, 56px); }
.hero-lead { margin: 0 0 26px; font-size: clamp(17px, 2vw, 20px); color: #e3ebf6; max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 22px 0 0; font-size: 14px; color: #b8c6da; }

@media (max-width: 560px) {
  .hero::after { background: linear-gradient(to bottom, rgba(10, 20, 40, .72), rgba(10, 20, 40, .86)); }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Fakten-Leiste ---------- */
.facts { background: var(--navy); color: #fff; }
.facts ul {
  list-style: none; margin: 0; padding: 22px 20px;
  max-width: var(--container); margin-inline: auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.facts li { display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-size: 18px; }
.facts span { font-size: 14px; color: #b8c6da; }
@media (max-width: 820px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sektionen ---------- */
.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 36px); }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; }
@media (max-width: 720px) { .section { padding: 46px 0; } }

/* Karten */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; font-size: 21px; }
.card p { margin: 0; color: var(--muted); }
.card .card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 14px;
  background: #e8f1fb; color: var(--blue-dark); font-weight: 800;
}
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }

/* Ausgangslagen */
.situations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.situations li {
  position: relative; padding: 4px 0 4px 34px; font-size: 18px;
}
.situations li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 14px; height: 14px; border-radius: 3px; background: var(--blue);
  box-shadow: 8px -8px 0 -2px var(--navy);
}
@media (max-width: 720px) { .situations { grid-template-columns: 1fr; } }

/* Über mich */
.about-grid { display: grid; grid-template-columns: 200px 1fr; gap: 34px; align-items: start; }
.about-portrait { margin: 0; }
.about-portrait img {
  display: block; width: 220px; height: auto;
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.about-text p { margin: 0 0 16px; color: var(--muted); font-size: 17px; }
.about-text p:last-of-type { margin-bottom: 22px; }
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait img { width: 160px; }
}

/* Kontakt */
.contact-box {
  background: var(--navy); color: #fff; border-radius: 20px; padding: 40px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center;
}
.contact-box h2 { color: #fff; margin: 0 0 10px; font-size: clamp(26px, 3vw, 34px); }
.contact-box p { margin: 0; color: #d7e2f1; font-size: 18px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; }
.contact-region { margin-top: 14px !important; font-size: 15px !important; color: #9fb2cd !important; }
@media (max-width: 820px) { .contact-box { grid-template-columns: 1fr; padding: 28px 22px; } }

/* ---------- Lebenslauf ---------- */
.cv-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.cv-title h1 { margin: 0; font-size: clamp(28px, 4vw, 38px); }
.cv-subtitle { margin: 6px 0 0; color: var(--muted); }
.cv-contact { display: grid; gap: 4px; color: var(--muted); }
.hr { height: 1px; background: var(--border); margin: 22px 0; }

.cv-grid { display: grid; grid-template-columns: 340px 1fr; gap: 34px; }
.cv-aside h2, .cv-main h2 { font-size: 22px; margin: 0 0 12px; }
.cv-aside p { color: var(--muted); }
.skill-cluster {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin: 10px 0;
}
.skill-title { margin: 0 0 4px; font-size: 16px; }
.skill-text { margin: 0; color: var(--muted); font-size: 15px; }

.cv-item { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.cv-item:first-of-type { border-top: 0; }
.cv-date { color: var(--muted); font-weight: 700; font-size: 15px; }
.cv-role { margin: 0; font-size: 19px; }
.cv-org { color: var(--muted); margin: 3px 0 8px; }
.cv-body ul, .cv-list-tight, .cv-compact, .cv-aside ul { margin: 0; padding-left: 18px; color: var(--muted); }
.cv-body li, .cv-list-tight li, .cv-compact li { margin-bottom: 4px; }

@media (max-width: 980px) {
  .cv-grid { grid-template-columns: 1fr; }
  .cv-item { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Rechtstexte ---------- */
.legal-page { max-width: 820px; }
.legal-page h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 18px; }
.legal-page h2 { margin: 34px 0 10px; font-size: 23px; }
.legal-page h3 { margin: 22px 0 8px; font-size: 18px; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page .caps { text-transform: uppercase; font-size: 14.5px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 70px 0 90px; }
.notfound .code { font-size: clamp(64px, 12vw, 120px); font-weight: 800; color: var(--blue); line-height: 1; margin: 0; }
.notfound h1 { margin: 10px 0 10px; font-size: clamp(24px, 3.5vw, 32px); }
.notfound p { color: var(--muted); max-width: 52ch; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--muted); font-size: 15px; background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--muted); text-underline-offset: 3px; }
.footer-links a:hover { color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media print {
  .site-header, .site-footer, .skip-link, .nav-cta { display: none; }
  body { color: #000; }
  .section { padding: 12px 0; }
}

/* ---------- Werkzeug-Chips ---------- */
.chips-label { margin: 34px 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 600;
  background: #fff; border: 1px solid var(--border); color: var(--navy);
}

/* ---------- Über mich (erweitert) ---------- */
.about-portrait figcaption { margin-top: 12px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.about-portrait figcaption span { font-weight: 500; font-size: 14px; color: var(--muted); }
.about-lead { font-size: clamp(21px, 2.6vw, 26px) !important; font-weight: 700; color: var(--navy) !important; line-height: 1.3; margin-bottom: 14px !important; }
.about-sub { margin: 22px 0 8px; font-size: 18px; }
.about-list { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.about-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 17px; }
.about-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px;
  border-radius: 3px; background: var(--blue);
}
.about-list strong { color: var(--text); }
.about-quote {
  margin: 0 0 20px !important; padding: 14px 18px; border-left: 4px solid var(--blue);
  background: #fff; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 18px !important; font-weight: 700; color: var(--navy) !important;
}
.stations { margin: 0 0 22px !important; font-size: 15px !important; }
.stations span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 17px; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--blue); flex: 0 0 auto; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------- Einstiegs-Karte ---------- */
.card-feature { border-color: var(--blue); box-shadow: 0 14px 34px rgba(36, 120, 200, .16); }
.card-tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 6px;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.card-result { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text) !important; font-size: 15px; }

/* ---------- Aus der Praxis ---------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: #fff; }
.case-label { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-dark); }
.case h3 { margin: 0 0 8px; font-size: 20px; }
.case p:last-child { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .cases { grid-template-columns: 1fr; } }

/* ---------- Qualitäts-Fixes (Audit) ---------- */
/* lange Wörter brechen/trennen statt überlaufen */
h1, h2, h3, p, li, a, summary { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.cards-3 > *, .cases > *, .faq-list > *, .about-grid > *, .contact-box > * { min-width: 0; }
.legal-page a, .cv-contact a { overflow-wrap: anywhere; hyphens: manual; }
.hero h1, .hero-lead { hyphens: manual; }

/* Mindestschrift 14px */
.case-label, .stations span, .chips-label, .card-tag { font-size: 14px; }
.about-portrait figcaption span { font-size: 14px; }

/* Tipp-Flächen mindestens 44px */
.nav-pills a { min-height: 44px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
@media (max-width: 720px) {
  .nav-pills a { padding: 10px 12px; font-size: 15px; }
  .nav-cta { min-height: 44px; }
  html { scroll-padding-top: 130px; }
}

/* Porträt: Originaldatei ist klein, daher moderate Darstellungsgröße */
.about-portrait img { width: 200px; }
@media (max-width: 720px) { .about-portrait img { width: 150px; } }

/* sehr kleine Handys */
@media (max-width: 360px) {
  .container, .site-nav { padding-left: 16px; padding-right: 16px; }
  .card, .case { padding: 18px; }
  .contact-box { padding: 24px 18px; }
}

/* ---------- Feinschliff (Sichtprüfung) ---------- */
/* Hero: Text über hellen Bildstellen sicher lesbar */
.hero::after { background: linear-gradient(95deg, rgba(10, 20, 40, .92) 0%, rgba(10, 20, 40, .74) 52%, rgba(10, 20, 40, .38) 100%); }
.hero h1, .hero-lead, .hero-note, .eyebrow { text-shadow: 0 1px 14px rgba(5, 12, 28, .55); }
.hero-note { font-size: 15px; color: #d3deec; max-width: 62ch; }

/* Mobil: Menü in einer Zeile ("Ablauf" erreichbar über die Seite selbst) */
@media (max-width: 520px) {
  .nav-pills a[href$="#ablauf"] { display: none; }
  .nav-pills { gap: 0; }
}

/* Große Bildschirme: etwas mehr Luft und größere Schrift */
@media (min-width: 1800px) {
  :root { --container: 1280px; }
  body { font-size: 18px; }
  .section-head p, .situations li { font-size: 20px; }
  .card p, .about-text p, .faq-item p { font-size: 18px; }
  .hero h1 { font-size: 64px; }
  .hero-lead { font-size: 22px; }
  .hero-content { max-width: 800px; }
}

/* ---------- Bedienung ---------- */
/* Menü zeigt den aktuellen Abschnitt */
.nav-pills a[aria-current="location"] { color: var(--blue-dark); background: #e8f1fb; }

/* Kontakt: E-Mail-Adresse als Text (für Besucher ohne Mailprogramm) */
.contact-mail { margin: 4px 0 0 !important; font-size: 15px !important; color: #b8c6da !important; text-align: center; overflow-wrap: anywhere; user-select: all; }

/* Lebenslauf: Abschluss mit Kontakt */
.cv-contact-cta { margin-top: 44px; }

/* Rechtsseiten */
.back-link { margin: 0 0 14px; font-size: 15px; }
.back-link a { display: inline-flex; align-items: center; min-height: 44px; }
.toc { margin: 0 0 8px; padding: 16px 20px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.toc a { display: inline-block; padding: 4px 0; }
.legal-page h2 { scroll-margin-top: 90px; }

/* Schnellkontakt-Leiste (nur Handy) */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .98); border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(18, 34, 64, .10);
    transform: translateY(115%); transition: transform .22s ease;
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 46px; padding: 10px 12px; }

  /* Menü am Handy: nur die obere Zeile bleibt stehen, die Linkzeile scrollt weg */
  .site-header { top: -52px; }
  html { scroll-padding-top: 84px; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) { .mobile-bar { transition: none; } }

/* ---------- Lebenslauf: Feinschliff ---------- */
.cv-id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.cv-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--border), 0 6px 16px rgba(18,34,64,.12); flex: none; }
.cv-facts { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cv-facts li { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.cv-facts strong { display: block; font-size: 19px; color: var(--navy); line-height: 1.2; }
.cv-facts span { font-size: 14px; color: var(--muted); }
.cv-a1, .cv-a2 { display: block; }
.cv-a2 { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
/* Zeitleiste */
.cv-main .cv-item { position: relative; }
.cv-main .cv-item::before { content: ""; position: absolute; left: -17px; top: 24px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px #e8f1fb; }
.cv-main { border-left: 2px solid #dbe6f3; padding-left: 28px; }
.cv-main > h2 { margin-left: 0; }
@media (max-width: 900px) {
  .cv-facts { grid-template-columns: repeat(2, 1fr); }
  .cv-aside { display: contents; }
  .cv-a1 { order: 1; } .cv-main { order: 2; } .cv-a2 { order: 3; }
  .cv-grid { gap: 26px; }
}
@media (max-width: 520px) {
  .cv-photo { width: 72px; height: 72px; }
  .cv-id { gap: 14px; }
  .cv-main { padding-left: 20px; }
  .cv-main .cv-item::before { left: -25px; }
}
.cv-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cv-facts li { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 900px) { .cv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 360px) { .cv-facts strong { font-size: 17px; } .cv-facts li { padding: 10px 12px; } }
