/* Brightup — Stylesheet. Design-System siehe CLAUDE.md. */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #0A1325;
  --ink-muted: #3D4A5C;
  --paper: #FAFAFA;
  --white: #FFFFFF;
  --line: #D5DBE3;
  --line-soft: #E3E7EC;
  --accent: #2C6998;
  --accent-bright: #2C8ECF;
  --cyan: #70D0E7;
  --dark: #282E39;
  --navy: #061424;
  --grad: linear-gradient(90deg, #3BE9F1, #4AC6F9);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 96px);
  --section: clamp(56px, 8vw, 100px);
  --radius: 4px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
button { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; margin: 0; text-wrap: pretty; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); border-bottom: 1px solid var(--line-soft); }
.section--paper { background: var(--paper); }
.gradbar { width: 40px; height: 3px; background: var(--grad); }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.eyebrow--accent { color: var(--accent); }
.h2 { font-size: clamp(26px, 3vw, 34px); }
.lead { font-size: clamp(16px, 1.3vw, 17px); color: var(--ink-muted); max-width: 760px; }
.muted { color: var(--ink-muted); }
.small { font-size: 13px; line-height: 1.6; color: var(--ink-muted); }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* Schaltflächen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 3px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.btn--primary { background: var(--accent-bright); color: var(--white); }
.btn--primary:hover { background: var(--accent); color: var(--white); }
.btn--outline { background: var(--white); color: var(--accent); border-color: var(--line); font-weight: 500; font-size: 15px; min-height: 44px; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--cyan); font-weight: 500; font-size: 15px; min-height: 44px; padding: 0 18px; }
.btn--ghost:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.link { font-size: 16px; text-decoration: none; }
.link--light { color: var(--white); }
.link--light:hover { color: var(--cyan); }

/* Kopf */
.header { position: absolute; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 20; }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.header__logo img { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; text-decoration: none; color: #C5D0DC; }
.nav a:hover { color: var(--white); }
.nav .btn { margin-left: 4px; }
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,0.35); color: var(--white); border-radius: 3px; width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.header--solid { position: sticky; top: env(safe-area-inset-top, 0px); background: var(--dark); }
.header--solid .nav a { color: #C5D0DC; }

/* Hero */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; min-height: 640px; display: flex; align-items: center; }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,20,36,0.78) 0%, rgba(6,20,36,0.5) 55%, rgba(6,20,36,0.2) 100%); }
.hero__inner { position: relative; padding-top: calc(96px + 56px); padding-bottom: 88px; }
.hero__copy { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.hero__eyebrow { color: var(--cyan); }
.hero h1 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; color: var(--white); }
.hero__second { font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; line-height: 1.4; }
.hero__sub { font-size: clamp(15px, 1.3vw, 17px); color: #C5D0DC; max-width: 620px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 24px; padding-top: 6px; }

/* Logos */
.logos { padding-top: 40px; padding-bottom: 40px; }
.logos__row { margin-top: 24px; }
.logos__set { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px 48px; }
.logos__set--copy { display: none; }
.logos__set img { height: 34px; width: auto; }
@keyframes logos-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Zwei Spalten */
.two-col { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 56px 72px; align-items: start; }
.two-col--narrow { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }

/* Karte mit Balken */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.erw { padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.erw__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.erw__title { font-family: var(--serif); font-size: 19px; }
.erw__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 24px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.erw__bar { height: 6px; background: #EEF1F4; border-radius: 3px; overflow: hidden; }
.erw__fill { height: 6px; width: 0; background: linear-gradient(90deg, #2C8ECF, #70D0E7); border-radius: 3px; transition: width .8s ease-out; transition-delay: calc(var(--i, 0) * .35s); }
.erw__check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--accent-bright); background: var(--white); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.5); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .9, .3, 1.4); transition-delay: calc(var(--i, 0) * .35s + .7s); }
.erw__check svg { width: 14px; height: 14px; }
.erw__foot { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 10px; }
.erw.is-visible .erw__fill { width: 100%; }
.erw.is-visible .erw__check { opacity: 1; transform: scale(1); }

/* Angebot */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile { display: flex; flex-direction: column; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tile__title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.tile__text { font-size: 15px; color: var(--ink-muted); flex-grow: 1; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 40px; }

/* Vorgehen */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.tab { flex-shrink: 0; background: transparent; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 14px 24px; font-size: 16px; font-weight: 500; color: var(--ink-muted); cursor: pointer; }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.panel[hidden] { display: none; }
.steps { position: relative; margin-top: 28px; }
.steps::before { content: ""; position: absolute; top: 16px; left: 16px; right: 16px; height: 1px; background: var(--line); }
.steps__grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 40px; }
.step { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 28px; }
.step__num { position: absolute; top: 0; left: 0; width: 32px; height: 32px; border: 1px solid var(--accent); border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 15px; color: var(--accent); }
.step__title { padding-top: 20px; font-size: 18px; font-weight: 600; }
.step__dur { font-size: 13px; color: var(--accent); font-weight: 500; }
.step__text { font-size: 15px; color: var(--ink-muted); }

/* Zertifizierungen */
.cert-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cert-group { display: flex; flex-direction: column; gap: 10px; }
.cert-group + .cert-group { margin-top: 6px; }
.cert-tile { display: flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 8px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); font-family: var(--serif); font-size: 18px; letter-spacing: 0.02em; color: var(--ink); cursor: pointer; }
.cert-tile[aria-selected="true"] { background: var(--white); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cert-tile img { height: 36px; width: auto; }
.cert-panel { padding: 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.cert-panel__title { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.cert-panel__text { font-size: 15px; color: var(--ink-muted); }

/* Über */
.prose { display: flex; flex-direction: column; gap: 20px; max-width: 700px; }
.prose p { font-size: 17px; color: var(--ink-muted); }

/* Erstgespräch */
.cta { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.cta__bar { height: 6px; background: var(--grad); }
.cta__mark { position: absolute; right: -40px; top: 30px; width: 340px; opacity: 0.14; pointer-events: none; }
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 80px; padding: 56px 64px; }
.cta__copy { display: flex; flex-direction: column; gap: 18px; max-width: 680px; }
.cta h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -0.015em; line-height: 1.15; }
.cta__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; padding-top: 6px; }

/* Fusszeile */
.footer { background: var(--dark); color: #C5D0DC; padding-top: 32px; padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.footer__brand { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.footer__brand img { height: 20px; width: auto; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 14px; color: #C5D0DC; text-decoration: none; }
.footer__links a:hover { color: var(--white); }

/* Cases: Karussell */
.peek { background: var(--navy); color: var(--white); border-bottom: none; }
.peek .eyebrow { color: var(--cyan); }
.peek .h2 { color: var(--white); }
.peek .lead { color: #C5D0DC; }
.peek__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.peek__nav { display: flex; gap: 10px; }
.peek__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); background: transparent; color: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.peek__btn:hover { border-color: var(--cyan); color: var(--cyan); }
.peek__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.peek__track::-webkit-scrollbar { display: none; }
.case { flex: 0 0 340px; scroll-snap-align: start; display: flex; flex-direction: column; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; overflow: hidden; }
.case__media { position: relative; aspect-ratio: 853 / 480; background: #FFFFFF; }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.case__body .eyebrow { color: var(--cyan); font-size: 11px; }
.case__title { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--white); }
.case__text { font-size: 13.5px; color: #C5D0DC; }
.case--cta { justify-content: center; align-items: flex-start; gap: 14px; padding: 28px 24px; background: rgba(112,208,231,0.06); border-color: rgba(112,208,231,0.35); }
.case--cta .case__title { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.25; }
.peek__foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.peek__foot .link { color: #C5D0DC; }
.peek__foot .link:hover { color: var(--white); }

/* Rechtliches */
.legal { padding-top: 56px; padding-bottom: 88px; }
.legal__body { max-width: 780px; }
.legal h1 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 12px; }
.legal h2 { font-size: 24px; margin-top: 44px; margin-bottom: 12px; }
.legal h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin-top: 24px; margin-bottom: 6px; }
.legal p, .legal li { color: var(--ink-muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 8px 0 0; }
.legal .meta { font-size: 14px; color: var(--ink-muted); }
.legal address { font-style: normal; }
.legal--solid-header .hero { display: none; }

/* Tablet */
@media (max-width: 1024px) {
  .two-col, .two-col--narrow { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .steps::before { display: none; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta__inner { flex-direction: column; align-items: flex-start; gap: 28px; padding: 40px 32px; }
  .cta__mark { right: -60px; top: auto; bottom: -40px; width: 260px; }
}

/* Mobil */
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.is-open { display: flex; position: absolute; top: calc(100% + 8px); right: var(--gutter); left: var(--gutter); flex-direction: column; align-items: stretch; gap: 4px; background: var(--dark); border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 12px; }
  .nav.is-open a { padding: 12px 10px; font-size: 16px; }
  .nav.is-open .btn { margin: 6px 0 0; }
  .nav-toggle { display: inline-flex; }
  .hero { min-height: 0; }
  .hero__shade { background: linear-gradient(180deg, rgba(6,20,36,0.6) 0%, rgba(6,20,36,0.72) 60%, rgba(6,20,36,0.4) 100%); }
  .hero__inner { padding-top: calc(72px + 40px); padding-bottom: 48px; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .link { width: 100%; text-align: center; }
  .logos__row { display: flex; overflow: hidden; margin-top: 20px; }
  .logos__set { flex: 0 0 auto; flex-wrap: nowrap; justify-content: flex-start; gap: 44px; padding-right: 44px; animation: logos-marquee 22s linear infinite; }
  .logos__set--copy { display: flex; }
  .logos__set img { height: 26px; }
  .logos__row:hover .logos__set, .logos__row:active .logos__set { animation-play-state: paused; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .case { flex: 0 0 min(78vw, 320px); }
  .peek__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .tile { padding: 22px; }
  .tab { padding: 12px 14px; font-size: 14px; }
  .steps__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding: 16px 0 16px 46px; border-top: 1px solid var(--line); }
  .step:last-child { border-bottom: 1px solid var(--line); }
  .step__num { top: 16px; }
  .step__title { padding-top: 0; }
  .erw { padding: 18px 16px; }
  .erw__row { grid-template-columns: minmax(0, 1fr) 24px; }
  .erw__bar { display: none; }
  .cert-panel { padding: 20px; }
  .cta__inner { padding: 28px 22px; }
  .cta__actions .btn { width: 100%; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}

/* Grosse Bildschirme */
@media (min-width: 1600px) {
  :root { --container: 1320px; }
  .hero { min-height: min(46vw, 900px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .erw__fill, .erw__check { transition: none; }
  .logos__set { animation: none; }
  .logos__set--copy { display: none; }
  .logos__row { overflow-x: auto; }
}
