/* ==========================================================================
   Pro Consilia – Stylesheet
   Farbwelt: seriöses Ingenieur-Blau + kühles Anthrazit + heller Grund
   Akzent: ein warmes Kupfer/Bernstein als Signal (Energie), sparsam
   ========================================================================== */

/* Inter – selbst gehostet (DSGVO-konform, kein Google-Server) */
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:800; font-display:swap; src:url('fonts/inter-latin-800-normal.woff2') format('woff2'); }

:root {
  --blau-900: #0a1f3d;   /* dunkelstes Marineblau, Header/Hero/Footer */
  --blau-700: #123a72;   /* Primärblau, harmoniert mit Logo */
  --blau-500: #186eff;   /* Logo-Blau – Links, Akzente */
  --blau-300: #5a9bff;   /* helleres Logo-Blau */
  --blau-050: #eaf2ff;   /* zarter blauer Hintergrund (Logo-Ton) */
  --akzent:   #c98a2b;   /* Kupfer/Bernstein, sehr sparsam */
  --akzent-050: #faf3e8;
  --grund:    #ffffff;
  --grund-alt:#f6f8fb;
  --linie:    #e2e8f0;
  --text:     #1a2634;
  --text-muted:#5a6b7d;
  --weiss:    #ffffff;

  --radius: 10px;
  --radius-lg: 16px;
  --schatten: 0 1px 3px rgba(10,37,64,.06), 0 8px 24px rgba(10,37,64,.06);
  --schatten-hover: 0 4px 12px rgba(10,37,64,.10), 0 16px 40px rgba(10,37,64,.10);
  --breite: 1160px;

  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.65;
  background: var(--grund);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blau-500); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--blau-900); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; color: var(--text); }
.muted { color: var(--text-muted); }

/* Eyebrow-Label */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blau-500);
  margin-bottom: .8rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--akzent);
  vertical-align: middle;
  margin-right: 10px;
}

/* ========================= HEADER / NAV ========================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--blau-900); font-size: 1.15rem; letter-spacing: -.01em; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand .brand-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 14px;
  background: var(--blau-700); color: #fff; border-radius: 8px;
  font-weight: 800; letter-spacing: .02em;
}
.brand small { display:block; font-size:.62rem; font-weight:600; color:var(--text-muted); letter-spacing:.08em; text-transform:uppercase; }

.nav-links { display: flex; align-items: center; gap: 18px; list-style: none; margin-left: 24px; }
.nav-links a { color: var(--blau-900); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.nav-links a:hover { color: var(--blau-500); text-decoration: none; }
.nav-cta {
  background: var(--blau-700); color: #fff !important;
  padding: 10px 18px; border-radius: 8px; font-weight: 700;
  transition: background .2s;
}
.nav-cta:hover { background: var(--blau-900); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blau-900); margin: 5px 0; transition: .3s; }

/* ========================= HERO ========================= */
.hero {
  position: relative;
  background:
    linear-gradient(160deg, var(--blau-900) 0%, var(--blau-700) 55%, var(--blau-500) 120%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content:""; position:absolute; inset:0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(201,138,43,.18), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(74,134,189,.28), transparent 45%);
  pointer-events:none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px;
  align-items: center;
  padding: 84px 0 92px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead { font-size: 1.18rem; color: #d6e3f0; margin-bottom: 30px; max-width: 40ch; }
.hero .eyebrow { color: #7fb0d9; }
.hero .eyebrow::before { background: var(--akzent); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 8px 14px; border-radius: 100px; font-size: .82rem; color: #e4eefa; font-weight: 600;
}
.hero-badge::before { content:"✓"; color: var(--akzent); font-weight: 800; }

/* Hero-Visual: geschichtete Karte statt Stockfoto */
.hero-visual {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-visual h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.hero-visual .hv-sub { color: #a9c4dc; font-size: .82rem; margin-bottom: 20px; }
.hv-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid rgba(255,255,255,.10);
}
.hv-row:first-of-type { border-top: 0; }
.hv-ico {
  flex: 0 0 38px; height: 38px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.28); background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: .95rem; color: var(--akzent); font-weight: 700;
  letter-spacing: .04em;
}
.hv-txt strong { color: #fff; display: block; font-size: .95rem; }
.hv-txt span { color: #a9c4dc; font-size: .8rem; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 9px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: 0; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--akzent); color: #fff; }
.btn-primary:hover { background: #b3781f; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.btn-blue { background: var(--blau-700); color:#fff; }
.btn-blue:hover { background: var(--blau-900); text-decoration:none; transform: translateY(-1px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ========================= SECTIONS ========================= */
.section { padding: 84px 0; }
.section-alt { background: var(--grund-alt); }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--text-muted); }

/* Leistungs-Karten */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--grund); border: 1px solid var(--linie);
  border-top: 3px solid var(--blau-700);
  border-radius: var(--radius); padding: 30px 30px 28px;
  box-shadow: var(--schatten); transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--schatten-hover); border-top-color: var(--blau-500); }
.card-ico {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--blau-050); color: var(--blau-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.card p { color: var(--text-muted); font-size: .97rem; flex-grow: 1; }
.card-link { margin-top: 16px; font-weight: 700; color: var(--blau-500); font-size: .93rem; }
.card-link::after { content: " →"; }
.card-tag {
  align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--akzent); background: var(--akzent-050);
  padding: 4px 10px; border-radius: 6px; margin-bottom: 16px;
}

/* Zahlen / Trust – ruhig, mit Trennlinien */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie);
  padding: 34px 0;
}
.stat { text-align: center; padding: 6px 24px; }
.stat + .stat { border-left: 1px solid var(--linie); }
.stat .num {
  font-size: 2.1rem; font-weight: 800; color: var(--blau-900);
  line-height: 1.1; letter-spacing: -.02em;
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
}
.stat .num .unit { font-size: .95rem; font-weight: 600; color: var(--akzent); letter-spacing: .02em; }
.stat .lbl { color: var(--text-muted); font-size: .9rem; margin-top: 10px; line-height: 1.5; }

/* Ablauf / Prozess */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; background: var(--grund); border: 1px solid var(--linie); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--akzent);
  display: block; margin-bottom: 10px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* Split (Text + Panel) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.panel {
  background: var(--blau-050); border: 1px solid var(--linie);
  border-radius: var(--radius-lg); padding: 34px;
}
.panel h3 { margin-bottom: 16px; }
.checklist { list-style: none; }
.checklist li { position: relative; padding: 8px 0 8px 32px; color: var(--text); border-bottom: 1px solid var(--linie); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 20px; height: 20px; background: var(--blau-700); color: #fff;
  border-radius: 50%; font-size: .72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* CTA-Band */
.cta-band {
  background: linear-gradient(135deg, var(--blau-900), var(--blau-700));
  color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 85% 20%, rgba(201,138,43,.22), transparent 45%);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #d6e3f0; max-width: 52ch; margin: 0 auto 28px; }

/* ========================= LEISTUNGS-SEITEN ========================= */
.page-hero {
  background: linear-gradient(160deg, var(--blau-900), var(--blau-700));
  color: #fff; padding: 68px 0 60px; position: relative; overflow: hidden;
}
.page-hero::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 88% 30%, rgba(201,138,43,.16), transparent 42%);
}
.page-hero > .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: #d6e3f0; font-size: 1.15rem; max-width: 56ch; margin-top: 16px; }
.breadcrumb { font-size: .85rem; color: #9dbdd8; margin-bottom: 18px; }
.breadcrumb a { color: #9dbdd8; }
.breadcrumb a:hover { color: #fff; }

/* Modul-Liste */
.module { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.module-item {
  border: 1px solid var(--linie); border-radius: var(--radius-lg);
  padding: 30px; background: var(--grund); box-shadow: var(--schatten);
}
.module-num {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; color: var(--blau-700); margin-bottom: 12px; font-size: .85rem;
  letter-spacing: .05em; text-transform: uppercase;
}
.module-num b {
  background: var(--blau-700); color: #fff; width: 30px; height: 30px;
  border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif);
}
.module-item h3 { margin-bottom: 10px; }
.module-item p { color: var(--text-muted); font-size: .96rem; }

/* Glossar-Kasten inline */
.glossar-box {
  background: var(--akzent-050); border: 1px solid #ecdcc0;
  border-left: 4px solid var(--akzent); border-radius: var(--radius);
  padding: 26px 28px;
}
.glossar-box h3 { color: var(--blau-900); font-size: 1.05rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.glossar-box h3::before { content: "📖"; }
.glossar-box dl dt { font-weight: 700; color: var(--blau-900); margin-top: 14px; }
.glossar-box dl dt:first-child { margin-top: 0; }
.glossar-box dl dd { color: var(--text-muted); font-size: .92rem; margin-bottom: 4px; }

/* ========================= GLOSSAR-SEITE (Accordion) ========================= */
.glossar-list { max-width: 820px; margin: 0 auto; }
.gl-item { border-bottom: 1px solid var(--linie); }
.gl-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 22px 44px 22px 0; font-size: 1.12rem; font-weight: 700; color: var(--blau-900);
  position: relative; font-family: var(--sans);
}
.gl-q::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blau-500); transition: transform .25s;
}
.gl-item.open .gl-q::after { content: "–"; }
.gl-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.gl-a-inner { padding: 0 0 24px; color: var(--text-muted); }
.gl-a-inner .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; background: var(--blau-050); color: var(--blau-700);
  padding: 3px 10px; border-radius: 6px; margin-bottom: 12px;
}
.gl-filter { display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:40px; }
.gl-filter button {
  border:1px solid var(--linie); background:#fff; color:var(--blau-900);
  padding:8px 18px; border-radius:100px; font-weight:600; font-size:.9rem; cursor:pointer;
  transition: all .2s; font-family: var(--sans);
}
.gl-filter button:hover, .gl-filter button.active { background:var(--blau-700); color:#fff; border-color:var(--blau-700); }

/* ========================= KONTAKT ========================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-card {
  background: var(--grund); border: 1px solid var(--linie);
  border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--schatten);
}
.contact-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linie); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ci-ico {
  flex: 0 0 44px; height: 44px; border-radius: 8px;
  border: 1px solid var(--linie); background: var(--grund);
  color: var(--blau-900); display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.contact-item strong { display: block; color: var(--blau-900); }
.contact-item a { color: var(--blau-500); }

.form label { display: block; font-weight: 600; color: var(--blau-900); margin: 16px 0 6px; font-size: .92rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--linie); border-radius: 9px;
  font-family: inherit; font-size: 1rem; color: var(--text); background: var(--grund);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--blau-300); border-color: var(--blau-300); }
.form .form-note { font-size: .82rem; color: var(--text-muted); margin-top: 14px; }

/* ========================= FOOTER ========================= */
.site-footer { background: var(--blau-900); color: #c3d4e5; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid a { color: #c3d4e5; display: block; padding: 5px 0; font-size: .93rem; }
.footer-grid a:hover { color: #fff; text-decoration: none; }
.footer-brand p { color: #9fb6cc; font-size: .92rem; max-width: 32ch; }
.footer-brand .brand-fallback { background: #fff; color: var(--blau-900); margin-bottom: 16px; }
.footer-brand img { height: 44px; width: auto; margin-bottom: 16px; }
/* Footer ist dunkelblau: Logo-Text ist dunkelgrau und würde verschwinden.
   brightness+invert macht das Logo hell, ohne die Datei zu ändern. */
.footer-brand img { filter: brightness(0) invert(1); opacity: .92; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: #8ba5be;
}
.footer-bottom a { color: #8ba5be; }

/* ========================= UTIL / RESPONSIVE ========================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 64px; }
  .hero-visual { order: 2; }
  .cards, .module, .contact-grid, .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--linie); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { gap: 32px; }
  .cta-band { padding: 40px 28px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--linie);
    padding: 12px 24px 20px; box-shadow: var(--schatten);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--linie); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 12px; }
  .nav-links a { padding: 14px 0; display: block; }
  .nav-cta { text-align: center; }
}

@media (max-width: 560px) {
  .stats, .steps, .footer-grid { grid-template-columns: 1fr; }
  .stat:nth-child(even) { border-left: 0; }
  .section { padding: 60px 0; }
  .cta-band { padding: 36px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
