/* ===================================================================
   CostBridge — Website
   Reines CSS, keine Fremdbibliothek, keine externen Anfragen.
   Farben zentral als Variablen: hier ändern, wirkt überall.
   =================================================================== */

:root {
  /* Flächen */
  --bg:        #080d16;
  --bg-2:      #0b1220;
  --flaeche:   #111a2b;
  --flaeche-2: #162034;
  --linie:     rgba(255, 255, 255, .085);
  --linie-2:   rgba(255, 255, 255, .16);

  /* Schrift */
  --text:      #e9eef6;
  --text-2:    #b7c3d4;
  --muted:     #8493a8;

  /* Akzent — das Messing aus dem Logo */
  --gold:      #c9a96b;
  --gold-hell: #e6cf9e;
  --gold-tief: #9c7f47;
  --gold-weich: rgba(201, 169, 107, .12);

  --breite:    1140px;
  --radius:    14px;
  --serif:     ui-serif, "New York", Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { color: var(--text); margin: 0 0 .55em; line-height: 1.2; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; }
h1 { font-size: clamp(2.15rem, 5.2vw, 3.55rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; letter-spacing: -.005em; }
p  { margin: 0 0 1.15em; }
a  { color: var(--gold-hell); text-decoration-color: rgba(230, 207, 158, .35); text-underline-offset: 3px; }
strong { color: var(--text); font-weight: 600; }

.lead { font-size: clamp(1.06rem, 1.7vw, 1.22rem); color: var(--muted); max-width: 60ch; }
.klein { font-size: .92rem; color: var(--muted); }

.auge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.auge::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: .6; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 13, 22, .72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.kopf.gescrollt { border-bottom-color: var(--linie); background: rgba(8, 13, 22, .92); }
.kopf .wrap { display: flex; align-items: center; gap: 22px; height: 76px; }

.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marke svg { display: block; flex: none; }
.marke-text { display: block; line-height: 1; }
.marke-name { display: block; font-size: 1.17rem; letter-spacing: .05em; color: var(--text); white-space: nowrap; }
.marke-name b { font-weight: 800; }
.marke-name span { font-weight: 300; letter-spacing: .07em; }
.marke-claim { display: block; font-size: .56rem; font-weight: 600; letter-spacing: .38em; color: var(--gold); margin-top: 6px; white-space: nowrap; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--text-2); text-decoration: none; font-size: .94rem; font-weight: 500; position: relative; }
.nav a.knopf-gold { color: #1a1206; }
.nav a.knopf-leer { color: var(--text); }
.nav a:not(.knopf)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px;
  height: 1px; background: var(--gold); transition: right .25s ease;
}
.nav a:not(.knopf):hover { color: var(--text); }
.nav a:not(.knopf):hover::after { right: 0; }

.nav-knopf { display: none; margin-left: auto; background: none; border: 1px solid var(--linie-2); border-radius: 9px; padding: 9px 11px; cursor: pointer; }
.nav-knopf span { display: block; width: 19px; height: 1.6px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: .97rem;
  padding: 14px 26px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.knopf:active { transform: translateY(1px); }
.knopf svg { transition: transform .2s ease; }
.knopf:hover svg { transform: translateX(3px); }

.knopf-gold {
  background: linear-gradient(135deg, var(--gold-hell), var(--gold));
  color: #1a1206; border-color: rgba(255,255,255,.14);
  box-shadow: 0 10px 30px -14px rgba(201,169,107,.75);
}
.knopf-gold:hover { box-shadow: 0 14px 38px -12px rgba(201,169,107,.9); }
.knopf-leer { color: var(--text); border-color: var(--linie-2); }
.knopf-leer:hover { border-color: var(--gold); color: var(--gold-hell); }

/* ---------- Abschnitte ---------- */
section { padding: 96px 0; position: relative; }
.abschnitt-linie { border-top: 1px solid var(--linie); }
.getoent { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.kopfzeile { max-width: 60ch; margin-bottom: 52px; }

/* ---------- Bühne ---------- */
.buehne { padding: 104px 0 88px; position: relative; overflow: hidden; }
.buehne::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 90%;
  background: radial-gradient(ellipse 60% 55% at 30% 40%, rgba(201,169,107,.16), transparent 70%),
              radial-gradient(ellipse 50% 50% at 78% 20%, rgba(88,124,180,.13), transparent 70%);
  pointer-events: none;
}
.buehne::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000, transparent 75%);
}
.buehne .wrap { position: relative; z-index: 1; }
.buehne-raster { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: 60px; align-items: center; }
.buehne h1 { max-width: 17ch; }
.buehne h1 em { font-style: normal; color: var(--gold-hell); }
.buehne .lead { margin-bottom: 34px; }
.buehne-knoepfe { display: flex; flex-wrap: wrap; gap: 13px; }

.marken-band {
  margin-top: 62px; padding-top: 26px; border-top: 1px solid var(--linie);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 34px;
  font-size: .92rem; color: var(--muted);
}
.marken-band span { display: flex; align-items: flex-start; gap: 11px; }
.haken { flex: none; margin-top: .42em; color: var(--gold); }

/* Einstiegskarte */
.einstieg {
  background: linear-gradient(160deg, var(--flaeche-2), var(--flaeche));
  border: 1px solid var(--linie); border-radius: 18px; padding: 30px 30px 26px;
  box-shadow: 0 34px 70px -40px rgba(0,0,0,.9);
  position: relative;
}
.einstieg::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1px;
  background: linear-gradient(160deg, rgba(201,169,107,.5), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.einstieg-kopf { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.mini-ablauf { list-style: none; margin: 0 0 22px; padding: 0; counter-reset: mini; }
.mini-ablauf li { position: relative; counter-increment: mini; padding: 0 0 22px 44px; }
.mini-ablauf li::before {
  content: counter(mini); position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold-weich); border: 1px solid rgba(201,169,107,.35); color: var(--gold-hell);
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700;
}
.mini-ablauf li::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 1px; background: var(--linie); }
.mini-ablauf li:last-child { padding-bottom: 0; }
.mini-ablauf li:last-child::after { display: none; }
.mini-ablauf strong { display: block; font-size: .98rem; color: var(--text); }
.mini-ablauf span { display: block; font-size: .89rem; color: var(--muted); line-height: 1.55; }
.einstieg-fuss { margin: 0; padding-top: 20px; border-top: 1px solid var(--linie); font-size: .87rem; color: var(--muted); }

/* ---------- Raster und Karten ---------- */
.raster { display: grid; gap: 22px; }
.raster-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.raster-3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }

.karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}
.karte::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.karte:hover { transform: translateY(-4px); border-color: var(--linie-2); background: var(--flaeche-2); }
.karte:hover::after { opacity: .8; }
.karte h3 { margin-bottom: .5em; }
.karte p:last-child { margin-bottom: 0; }
.karte-zeichen { color: var(--gold); margin-bottom: 18px; display: block; }

/* Problem-Abschnitt */
.problem-zahl { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); line-height: 1; margin-bottom: 16px; display: block; }

/* ---------- Kategorien ---------- */
.kat { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.kat li {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px;
  padding: 15px 18px; font-size: .96rem; color: var(--text-2);
  display: flex; align-items: center; gap: 11px;
  transition: border-color .24s ease, color .24s ease, transform .24s ease;
}
.kat li:hover { border-color: rgba(201,169,107,.45); color: var(--text); transform: translateY(-2px); }
.punkt { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- Ablauf ---------- */
.ablauf { list-style: none; margin: 0; padding: 0; counter-reset: schritt; }
.ablauf li { position: relative; padding: 0 0 38px 74px; counter-increment: schritt; }
.ablauf li::before {
  content: "0" counter(schritt); position: absolute; left: 0; top: -4px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--flaeche); border: 1px solid rgba(201,169,107,.3); color: var(--gold-hell);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: .96rem;
}
.ablauf li::after { content: ""; position: absolute; left: 23px; top: 48px; bottom: 2px; width: 1px; background: linear-gradient(180deg, var(--linie-2), var(--linie)); }
.ablauf li:last-child { padding-bottom: 0; }
.ablauf li:last-child::after { display: none; }
.ablauf h3 { margin-bottom: .35em; }
.ablauf p { margin-bottom: 0; color: var(--muted); max-width: 62ch; }
.ablauf .marke-hinweis { display: inline-block; margin-top: 10px; font-size: .82rem; color: var(--gold); border: 1px solid rgba(201,169,107,.3); border-radius: 100px; padding: 3px 13px; }

/* ---------- Vergleich ---------- */
.vergleich { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.vergleich .karte.hervor { border-color: rgba(201,169,107,.45); background: linear-gradient(160deg, rgba(201,169,107,.07), var(--flaeche)); }
.vergleich ul { list-style: none; margin: 0; padding: 0; }
.vergleich li { padding: 9px 0 9px 26px; position: relative; font-size: .95rem; border-bottom: 1px solid var(--linie); }
.vergleich li:last-child { border-bottom: 0; }
.vergleich li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.vergleich .hervor li::before { content: "✓"; color: var(--gold); font-size: .85rem; }
.vergleich .karte-titel { font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.vergleich .hervor .karte-titel { color: var(--gold); }

/* ---------- FAQ ---------- */
details {
  border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px 24px;
  margin-bottom: 13px; background: var(--flaeche); transition: border-color .24s ease;
}
details:hover { border-color: var(--linie-2); }
details[open] { border-color: rgba(201,169,107,.35); background: var(--flaeche-2); }
summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 1.6px solid var(--gold); border-bottom: 1.6px solid var(--gold); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s ease; }
details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
details p { margin: 16px 0 0; color: var(--muted); }

/* ---------- Aufruf ---------- */
.aufruf { position: relative; overflow: hidden; }
.aufruf::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 55% 75% at 50% 50%, rgba(201,169,107,.15), transparent 70%);
  pointer-events: none;
}
.aufruf .wrap { position: relative; z-index: 1; text-align: center; }
.aufruf h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.aufruf p { max-width: 54ch; margin-left: auto; margin-right: auto; color: var(--muted); }
.aufruf-knoepfe { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; margin-top: 32px; }

/* ---------- Fuss ---------- */
.fuss { background: #060a11; border-top: 1px solid var(--linie); padding: 62px 0 32px; font-size: .93rem; color: var(--muted); }
.fuss a { color: var(--text-2); text-decoration: none; }
.fuss a:hover { color: var(--gold-hell); }
.fuss-raster { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--linie); }
.fuss-titel { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.fuss-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fuss-unten { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .87rem; }

/* ---------- Rechtsseiten ---------- */
.doku { padding: 66px 0 90px; }
.doku .wrap { max-width: 780px; }
.doku h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .5em; }
.doku h2 { font-size: 1.32rem; margin-top: 2em; }
.doku h2:first-of-type { margin-top: 1.2em; }
.platzhalter { background: rgba(201,169,107,.09); border: 1px solid rgba(201,169,107,.3); border-left: 3px solid var(--gold); border-radius: 10px; padding: 17px 20px; margin: 0 0 28px; color: var(--gold-hell); font-size: .93rem; }
.platzhalter strong { color: var(--gold-hell); }
mark { background: rgba(201,169,107,.22); color: var(--gold-hell); padding: 1px 7px; border-radius: 5px; }

/* ---------- Einblenden beim Scrollen ---------- */
.auf { opacity: 0; transform: translateY(16px); transition: opacity .45s cubic-bezier(.2,.7,.3,1), transform .45s cubic-bezier(.2,.7,.3,1); }
.auf.da { opacity: 1; transform: none; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 980px) {
  .buehne-raster { grid-template-columns: 1fr; gap: 44px; }
  .buehne h1 { max-width: 18ch; }
  section { padding: 76px 0; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  section { padding: 62px 0; }
  .buehne { padding: 62px 0 56px; }
  .kopf .wrap { height: 68px; }
  .kopfzeile { margin-bottom: 38px; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,13,22,.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--linie); padding: 10px 22px 20px;
  }
  .nav.offen { display: flex; }
  .nav a:not(.knopf) { padding: 14px 0; border-bottom: 1px solid var(--linie); }
  .nav .knopf { margin-top: 16px; }
  .nav-knopf { display: block; }
  .buehne-knoepfe .knopf { width: 100%; }
  .einstieg { padding: 26px 22px 22px; }
  .ablauf li { padding-left: 62px; padding-bottom: 32px; }
  .ablauf li::before { width: 40px; height: 40px; }
  .ablauf li::after { left: 20px; top: 42px; }
  .aufruf-knoepfe .knopf { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .auf { opacity: 1; transform: none; }
}
