/* =========================================================================
   Apple-Design-Schicht (AD-1, 25.09.2026)
   Wird NACH styles.css und site.css geladen und überschreibt deren Schichten.
   Grundsätze: ruhige Typografie, viel Weißraum, klare Hierarchie, weiche Radien,
   Neutralflächen; das Markenblau erscheint nur als Akzent (Links, Knöpfe, Fokus).
   Hell und dunkel; Kontrast >= 4,5:1; Ziele >= 44 px; reduzierte Bewegung respektiert.
   ========================================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --primary: #1e5bd6;
  --primary-strong: #174bb0;
  --primary-ink: #ffffff;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px -18px rgba(0, 0, 0, 0.16);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.04), 0 24px 60px -30px rgba(0, 0, 0, 0.22);
  --maxw: 1080px;
  --sec-pad: clamp(72px, 9vw, 128px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-soft: #1c1c1e;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --ink: #f5f5f7;
    --ink-soft: #d2d2d7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.16);
    --primary: #4d8ef5;
    --primary-strong: #7aabf8;
    --primary-ink: #04122b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px -18px rgba(0, 0, 0, 0.8);
    --shadow-lg: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  }
}

html { scroll-padding-top: 76px; }
:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font-ui);
  -webkit-tap-highlight-color: transparent;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.011em;
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4, h5, h6, dt, th,
.hero h1, .subhero h1 {
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: var(--ink);
}
h3, h4 { font-weight: 600 !important; letter-spacing: -0.02em !important; }

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.5rem) !important;
  line-height: 1.04 !important;
  margin: 0 0 22px !important;
}
.hero h1 .accent { color: var(--primary) !important; }
.hero__lead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem) !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  max-width: 32em;
}
.subhero {
  background: var(--bg) !important;
  color: var(--ink) !important;
  padding: clamp(36px, 6vw, 80px) 0 clamp(20px, 3vw, 40px) !important;
}
.subhero .politik-eyebrow { color: var(--muted) !important; }
.subhero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem) !important; line-height: 1.06 !important; }
.subhero p { color: var(--muted) !important; font-size: 1.2rem; max-width: 36em; }
.subhero__crumb, .subhero__crumb a { color: var(--muted) !important; }

.section__head h2, .split__body h2, .cta h2 {
  font-size: clamp(2rem, 4.4vw, 3rem) !important;
  line-height: 1.08 !important;
  margin: 8px 0 16px !important;
}
.section__head p, .split__body p, .card p, .company__body p, .offer__body p,
.about p, .timeline__text, .faq p { color: var(--ink-soft); }
.section__head p { color: var(--muted); font-size: 1.2rem; max-width: 40em; }
p { max-width: 68ch; }

.section__eyebrow, .politik-eyebrow, .steckbrief__eyebrow, .company__kicker, .timeline__year, .steckbrief__list dt {
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.hero__eyebrow {
  background: var(--bg-soft) !important;
  color: var(--ink-soft) !important;
  border: 0 !important;
  font-weight: 500 !important;
}

/* ---------- Abschnitte / Weißraum ---------- */
section { padding: var(--sec-pad) 0 !important; }
.section--soft { background: var(--bg-soft) !important; }
.container { max-width: var(--maxw); }
.section__head { margin-bottom: clamp(36px, 5vw, 64px); }

/* ---------- Navigation ---------- */
.nav {
  background: color-mix(in srgb, var(--bg) 72%, transparent) !important;
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
}
.nav__links a { color: var(--ink-soft) !important; font-size: 0.95rem; font-weight: 500; }
.nav__links a:hover { color: var(--ink) !important; background: transparent !important; }
.nav__links a.nav__cta, .nav__cta {
  background: var(--primary) !important;
  color: var(--primary-ink) !important;
  border-radius: 999px !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
}
.brand__name { color: var(--ink) !important; }
.brand__name small { color: var(--muted) !important; }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg) !important;
  color: var(--ink) !important;
  padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px) !important;
}
.hero::after { display: none !important; }
.hero__role, .trust__item {
  background: var(--bg-soft) !important;
  border: 0 !important;
  color: var(--ink-soft) !important;
  box-shadow: none !important;
  border-radius: 999px !important;
}
.hero__card {
  background: var(--bg-soft) !important;
  border: 0 !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
  padding: 14px !important;
}
.hero__card p { color: var(--muted) !important; }
.hero__portrait, .hero__portrait--photo, .hero__portrait--photo img, .hero__portrait img {
  border-radius: 22px !important;
}
.hero__card:hover { transform: none !important; box-shadow: none !important; }
.trust { background: var(--bg) !important; }

/* ---------- Knöpfe ---------- */
.btn {
  border-radius: 999px !important;
  padding: 12px 26px !important;
  min-height: 44px;
  font-weight: 600 !important;
  font-size: 1rem;
  letter-spacing: -0.01em;
  box-shadow: none !important;
}
.btn--primary, .hero__actions .btn--primary {
  background: var(--primary) !important;
  color: var(--primary-ink) !important;
  border-color: transparent !important;
}
.btn--primary:hover, .hero__actions .btn--primary:hover { background: var(--primary-strong) !important; transform: none; }
.btn--ghost {
  background: transparent !important;
  color: var(--primary) !important;
  border-color: transparent !important;
}
.btn--ghost:hover { background: var(--bg-soft) !important; }
.cta h2 { color: var(--ink) !important; }
.cta .btn--light {
  background: var(--bg) !important;
  color: var(--primary) !important;
}
.cta .btn--light:hover { background: var(--surface-2) !important; }
.cta__actions .btn:first-child { background: var(--primary) !important; color: var(--primary-ink) !important; }
.cta__actions .btn:first-child:hover { background: var(--primary-strong) !important; }
.hero__textlink, .more, a.more { color: var(--primary) !important; font-weight: 600; }
a { color: var(--primary); }
.nav__links a, .footer a, .btn { text-decoration: none; }

/* ---------- Karten und Bild-Panels ---------- */
.card, .company, .offer, .steckbrief, .note {
  background: var(--bg-soft) !important;
  border: 0 !important;
  border-radius: var(--radius) !important;
  box-shadow: none !important;
}
.section--soft .card, .section--soft .company, .section--soft .offer { background: var(--surface) !important; }
.card, .company { padding: clamp(24px, 3vw, 36px) !important; }
.card:hover, .company:hover { transform: translateY(-2px); box-shadow: var(--shadow) !important; }
.card__icon { background: var(--bg) !important; color: var(--primary) !important; border-radius: 14px !important; }
.card__tag { background: var(--bg) !important; color: var(--muted) !important; border: 0 !important; }
.split__media img, .offer__media img, .about__photo, .company__img, .company__img img {
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
}
.clogo { background: transparent !important; border: 0 !important; border-radius: 0 !important; }
@media (prefers-color-scheme: dark) {
  .clogo { background: #ffffff !important; padding: 6px 10px; border-radius: 10px !important; height: 46px; }
}

/* ---------- Kennzahlen ---------- */
.stats { background: var(--bg-soft) !important; padding: clamp(48px, 6vw, 80px) 0 !important; }
.stat__num { color: var(--ink) !important; font-weight: 700; letter-spacing: -0.04em; }
.stat__label { color: var(--muted) !important; }

/* ---------- Zeitleiste ---------- */
.timeline::before { background: var(--line) !important; }
.timeline__dot { background: var(--bg) !important; border-color: var(--primary) !important; }
.timeline__year { color: var(--muted) !important; }
.timeline__title { color: var(--ink) !important; }

/* ---------- Kontaktaufruf ---------- */
.cta {
  background: var(--bg-soft) !important;
  color: var(--ink) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
  padding: clamp(40px, 7vw, 88px) clamp(24px, 5vw, 64px) !important;
}
.cta-bar {
  background: rgba(255, 255, 255, .96) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
}
.cta p { color: var(--muted) !important; margin-inline: auto; }

/* ---------- Formulare ---------- */
.form input, .form textarea {
  background: var(--bg-soft) !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  color: var(--ink) !important;
  font-size: 1rem;
  min-height: 48px;
}
.form input:focus, .form textarea:focus { background: var(--bg) !important; border-color: var(--primary) !important; }
.contact__method { background: var(--bg-soft) !important; border: 0 !important; border-radius: var(--radius) !important; box-shadow: none !important; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-soft) !important;
  color: var(--muted) !important;
  border-top: 0 !important;
  padding: 56px 0 32px !important;
  font-size: 0.9rem;
}
.footer a { color: var(--ink-soft) !important; }
.footer a:hover { color: var(--ink) !important; }
.footer h3, .footer h4 { color: var(--ink) !important; font-size: 0.85rem; }
.footer__brand .brand__name { color: var(--ink) !important; }
.footer__bottom { border-top: 1px solid var(--line) !important; color: var(--muted) !important; }

/* ---------- Rechtstexte ---------- */
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--ink-soft); }

@media (prefers-color-scheme: dark) {
  .brand__logo, .footer__brand .brand__logo { background: #ffffff; border-radius: 10px; padding: 2px; }
}

/* ---------- Bedienbarkeit (Ziele, Fokus, Rückfälle) ---------- */
.nav__links a { min-height: 44px; display: inline-flex; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; }
.btn:active { transform: scale(0.98); }
.hero__textlink { min-height: 44px; display: inline-flex; align-items: center; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { font-size: 1rem; font-family: var(--font-ui); }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select { min-height: 44px; }
strong > a[href^="mailto:"], strong > a[href^="tel:"], strong > a[href^="http"] { display: inline-flex; align-items: center; min-height: 44px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 8px;
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(0, 0, 0, 0.55); --muted: #4a4a4f; }
  .card, .company, .offer, .contact__method { outline: 1px solid var(--ink-soft); }
}


/* ---------- Kontrast-Korrekturen (Lighthouse, Dunkelmodus) ---------- */
.cta-bar__btn, .skip-link { color: var(--primary-ink) !important; }
.cta-bar__btn { background: var(--primary) !important; box-shadow: none !important; min-height: 44px; display: inline-flex; align-items: center; }
.cta-bar__btn:hover { background: var(--primary-strong) !important; }
/* Links im Fließtext unterstreichen (WCAG 1.4.1: nicht nur über die Farbe erkennbar) */
section p a:not(.btn):not(.more), section li a:not(.btn):not(.more), .legal a, .faq a, .note a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3rem) !important; }
  .cta { padding: 40px 22px !important; border-radius: 24px !important; }
  .card, .company { padding: 24px !important; }
}


/* =========================================================================
   Stufe 2 (RW-2, 25.09.2026): Bewegung, Foto-Hero, asymmetrische Abschnitte
   Akzentmotiv: dünne Blaulinie + große Ziffern. Keine Verläufe, keine externen Dateien.
   ========================================================================= */

/* ---------- Hero mit Foto/Videoloop ---------- */
.hero--media {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 0 !important;
  overflow: hidden;
  background: #0b0b0d !important;
  color: #fff !important;
}
.hero__media { position: absolute; inset: 0; }
.hero__poster, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
  border-radius: 0 !important;
}
.hero__video { opacity: 0; transition: opacity 400ms ease; }
.hero__video.is-playing { opacity: 1; }
.hero--media::before {            /* ruhige, flächige Abdunklung für Lesbarkeit (kein Verlaufs-Blob) */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(0, 0, 0, 0.5);
}
.hero__content {
  position: relative; z-index: 2; width: 100%;
  padding-top: 120px !important; padding-bottom: clamp(40px, 6vw, 84px) !important;
}
.hero--media h1 { color: #fff !important; font-size: clamp(3rem, 9vw, 6.5rem) !important; line-height: 1 !important; margin: 0 0 18px !important; }
.hero--media .hero__lead { color: rgba(255, 255, 255, 0.92) !important; max-width: 30em; margin: 0 0 30px; }
.hero--media .hero__eyebrow {
  background: rgba(255, 255, 255, 0.16) !important; color: #fff !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: 6px 14px; border-radius: 999px; display: inline-block; margin-bottom: 18px;
}
.hero__cta, .hero--media .btn--primary { background: #fff !important; color: #0b1a3a !important; padding: 14px 34px !important; font-size: 1.05rem; }
.hero__cta:hover, .hero--media .btn--primary:hover { background: #e8eefc !important; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
@media (max-width: 640px) {
  .hero--media { min-height: 560px; }
  .hero__poster, .hero__video { object-position: 62% 30%; }
  .hero--media h1 { font-size: clamp(2rem, 10vw, 3rem) !important; overflow-wrap: normal; }
}

/* ---------- Aussagezitat ---------- */
.pullquote { margin: 0 0 28px; padding: 0 0 0 20px; border-left: 3px solid var(--primary); }
.pullquote p { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); max-width: 22em; }

/* ---------- Asymmetrische Unternehmensfläche ---------- */
.company-grid { grid-template-columns: 1.35fr 1fr !important; grid-auto-flow: dense; gap: 20px !important; }
.company--lead { grid-row: span 3; display: flex; align-items: center; padding: clamp(32px, 4.5vw, 64px) !important; }
.company--lead h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
@media (max-width: 800px) {
  .company-grid { grid-template-columns: 1fr !important; }
  .company--lead { grid-row: auto; }
}

/* ---------- Angebote: eine große, zwei kleine Flächen mit Ziffern ---------- */
.offers { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.offer-card--lead { grid-row: span 2; padding: clamp(32px, 4.5vw, 64px) !important; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; }
.offer-card--lead h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.offer-card__no { font-size: 0.95rem; font-weight: 600; color: var(--primary); letter-spacing: 0.04em; margin-bottom: auto; padding-bottom: 20px; display: block; }
.offer-card .more { margin-top: 12px; display: inline-block; }
@media (max-width: 800px) { .offers { grid-template-columns: 1fr; } .offer-card--lead { grid-row: auto; min-height: 0; } }

/* ---------- Kennzahlen: große Typo-Skala ---------- */
.stat__num { font-size: clamp(1.9rem, 3.6vw, 3rem) !important; line-height: 1.05; white-space: nowrap; }

/* ---------- Zeitleiste ---------- */
.timeline__dot { transition: transform 300ms ease, background-color 300ms ease; }
.timeline__item.is-in .timeline__dot { transform: scale(1.25); background: var(--primary) !important; }

/* ---------- Karten mit Bedeutung: Hover-Lift ---------- */
.card, .company { transition: transform 250ms ease, box-shadow 250ms ease; }
@media (hover: hover) {
  .card:hover, .company:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg) !important; }
}

/* ---------- Einblenden beim Scrollen (nur mit JS und ohne reduzierte Bewegung) ---------- */
.has-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 280ms ease, transform 280ms ease; transition-delay: var(--reveal-delay, 0ms); }
.has-reveal .reveal.is-in { opacity: 1; transform: none; }
.has-reveal .card.reveal.is-in, .has-reveal .company.reveal.is-in { transition-delay: 0ms; }

/* ---------- Kontaktaufruf: große Typo ---------- */
.cta h2 { font-size: clamp(2.2rem, 5.5vw, 4rem) !important; }

/* Vertrauensleiste kompakt, Foto im Über-mich-Abschnitt im Hochformat */
.trust { padding: 28px 0 !important; }
.split__media { aspect-ratio: 3 / 4; }
.split__media img { width: 100%; height: auto; max-height: 640px; object-fit: cover; object-position: 50% 10%; }

/* ---------- Unterseiten: Fundstellen aus Lighthouse (25.09.) ---------- */
/* Datenschutz-Link in der Einwilligungszeile: nicht nur über Farbe erkennbar (WCAG 1.4.1) */
.form__consent a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Shop-Einbau (Skript vom Shop-Worker): Platz vorhalten gegen Layoutsprung, Auswahlfelder lesbar in hell und dunkel */
#pepa-shop { min-height: 720px; }
#pepa-shop select.pepa-auswahl, #pepa-shop input { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; border-radius: 12px !important; min-height: 44px; }
