/*
 * Batix CD-Basis, v1 (inhalte/gemeinsam/cd/basis-v1.css)
 *
 * Was alle Seiten von connect.batix.de teilen: lokale Schriften, Reset, Typografie, Buttons,
 * Navigation (Partials nav-v1, nav-uebersicht-v1), Countdown-Chip und Fakten-Beschriftung,
 * Blob-Hintergrund, Footer (Partial footer-v1). Selektoren und Werte 1:1 aus dem Prototyp
 * (/Users/elias/IdeaProjects/Landingpages, Vorlage werkbank-zukunft-2026), damit Seiten aus dem
 * Prototyp ohne Umbau passen. Seitenspezifisches (Hero, Agenda, Anmeldeband, Rechtsseiten,
 * Kacheln) steht im eigenen CSS der Seite (assets/seite.css).
 *
 * Voraussetzung: tokens-v1.css davor. Reihenfolge im Kopf einer Seite:
 *   tokens-v1.css, basis-v1.css, icons-v1.css, [formular-v1.css], assets/seite.css
 * Nur anhängen: Diese Datei wird nie geändert, eine Änderung ergibt basis-v2.css (KONZEPT 9.6).
 */

/* ============================================================
   SCHRIFTEN  –  selbst gehostet (keine Google Fonts, kein CDN; KONZEPT 5.10)
   Montserrat 700, Open Sans 400/600, je latin und latin-ext, aus @fontsource 5.3.0
   (SIL OFL 1.1, Lizenz in ../fonts/LIZENZ-*.txt). unicode-range wie im @fontsource-Paket.
   ============================================================ */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/_connect/a/a59fcc944a71/montserrat-latin-ext-700-normal.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/_connect/a/f9d9e65b1537/montserrat-latin-700-normal.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/_connect/a/c260ffc9d1ac/open-sans-latin-ext-400-normal.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/_connect/a/0e44026ad313/open-sans-latin-400-normal.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/_connect/a/6dbc7eadcc20/open-sans-latin-ext-600-normal.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/_connect/a/a97a6ed7ef9f/open-sans-latin-600-normal.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--anthrazit);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.2;
  color: var(--marine);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { font-size: 1rem; line-height: 1.75; color: var(--anthrazit-70); }
a { color: var(--marine); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--marine); color: var(--white);
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ============================================================
   BUTTONS  –  Pill, einheitliche Höhe (Batix CD)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  height: 52px; padding: 0 28px;
  border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn .bxfr { font-size: 1.1em; }
.btn-sm { height: 40px; padding: 0 20px; font-size: 0.85rem; }

.btn-primary { background: var(--marine); color: var(--white); border-color: var(--marine); }
.btn-primary:hover { background: var(--marine-dark); border-color: var(--marine-dark); }

.btn-primary-outline { background: transparent; color: var(--marine); border-color: var(--marine); }
.btn-primary-outline:hover { background: var(--marine); color: var(--white); }

.btn-white { background: var(--white); color: var(--marine); border-color: var(--white); }
.btn-white:hover { background: var(--marine-10); border-color: var(--marine-10); }

.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* ============================================================
   NAVIGATION  –  transparent, beim Scrollen milchglas-weiß
   (Klasse .scrolled setzt basis-v1.js)
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--marine-20);
  box-shadow: var(--shadow-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav__brand {
  font-family: var(--font-h); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.06em; color: var(--marine); text-decoration: none;
}
/* Anmelde-Button im Partial nav-v1: nur sichtbar, wenn die Seite das Anmeldeformular enthält
   (Event-Seite im Zustand offen). Auf Rechtsseiten und in allen anderen Zuständen bleibt er
   verborgen. Rückfall ohne :has(): Klasse cx-mit-formular am <html>, gesetzt von basis-v1.js. */
.nav__anmelden { display: none; }
body:has(.reg-form) .nav__anmelden,
.cx-mit-formular .nav__anmelden { display: inline-flex; }

/* ============================================================
   HINTERGRUND  –  weich geblurrte Blobs, fest hinter der ganzen Seite
   (Vorschaltseite, 404, Systemseiten; Animation in basis-v1.js)
   ============================================================ */
.bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; filter: blur(55px); pointer-events: none;
}
.page { position: relative; z-index: 1; }

/* ============================================================
   COUNTDOWN-CHIP und FAKTEN  (Hero-Karte der Event-Seiten, Kacheln)
   ============================================================ */
.countdown {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 14px; border-radius: 999px;
  background: var(--apple-20); color: var(--marine);
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.countdown::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--apple);
}
.countdown[hidden],
.countdown:empty { display: none; }   /* leerer Slot data-cx="countdown": kein leerer Chip */
.countdown--abgesagt { background: var(--danger-bg); color: var(--danger); }
.countdown--abgesagt::before { background: var(--danger); }
.countdown--vergangen { background: var(--anthrazit-10); color: var(--anthrazit-70); }
.countdown--vergangen::before { background: var(--anthrazit-40); }

.facts__label {
  display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--anthrazit-70); line-height: 1.5;
}
.facts__value { display: block; font-weight: 600; color: var(--marine); line-height: 1.45; }

/* ============================================================
   FOOTER  (Partial footer-v1; Hintergrund Anthrazit-10 wie auf Event- und Rechtsseiten,
   Vorschaltseite und 404 setzen in ihrem CSS Weiß)
   ============================================================ */
.footer { background: var(--anthrazit-10); padding-top: 72px; }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px; border-bottom: 1px solid var(--marine-20);
}
.footer__logo { width: 110px; height: auto; margin-bottom: 22px; }
.footer address { font-style: normal; font-size: 0.9rem; line-height: 1.7; color: var(--anthrazit-70); }
.footer-col-h {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--marine); margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.9rem; color: var(--anthrazit-70); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--marine); text-decoration: underline; text-underline-offset: 3px; }
.footer-links .bxfr { color: var(--marine); font-size: 1rem; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 22px 0 26px;
  font-size: 0.78rem; color: var(--anthrazit-70);
}
.powered { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.powered span {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--marine);
}
.powered img { width: 64px; height: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}
