/* Gemeinsame Gestaltung der öffentlichen Webseite airbon.de (Design System 2)
   Genutzt von: landing.html, ueber-uns.html, impressum.html, datenschutz.html, team/*.html
   Werte aus JuluXo672/airbon-corporate-design, brand/tokens.json (Stand 960b1ca, 15.11.2026).
   Farben nur hier ändern, nicht in den einzelnen Seiten. Die App-Seiten nutzen assets/ui.css. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ── Farben (hell) ─────────────────────────────────────────────── */
:root {
  color-scheme: light dark;
  --bg: #F8FAFC;
  --bg-soft: #EEF3F8;
  --surface: #FFFFFF;
  --ink: #0B2540;
  --ink-muted: #5A6878;
  --line: #E2E8F0;
  --brand-sky: #4F98D8;
  --brand-night: #0B2540;
  --brand-text: #245C96;
  --brand-tint: #E6F0FA;
  --on-sky: #0B2540;
  --on-sky-large: #FFFFFF;
  --on-night: #FFFFFF;
  --on-night-muted: rgba(255, 255, 255, 0.72);
  /* Fußzeile schwarz wie auf der alten Webseite (Wunsch Julius, 16.11.2026; Design System: Nachtblau) */
  --fuss-bg: #161618;
  --fuss-text: #C7C7CC;
  --fuss-leise: #8E8E93;
  --fuss-linie: #2A2A2E;
  --button: #0B2540;
  --on-button: #FFFFFF;
  --focus: #245C96;
  --shadow-soft: 0 1px 2px rgba(11, 37, 64, 0.05), 0 8px 24px rgba(11, 37, 64, 0.08);
  --shadow-lift: 0 2px 4px rgba(11, 37, 64, 0.06), 0 12px 32px rgba(11, 37, 64, 0.12);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius: var(--radius-lg);

  --t-fast: 160ms;
  --t: 240ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  --max: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --abstand: clamp(4rem, 9vw, 6rem); /* space-24 auf großen Bildschirmen */
}

/* ── Farben (dunkel, nach Systemeinstellung) ───────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081320;
    --bg-soft: #0D1B2C;
    --surface: #102236;
    --ink: #EEF3F8;
    --ink-muted: #94A3B4;
    --line: #1E3248;
    --brand-text: #8CC0EC;
    --brand-tint: #13324F;
    --button: #4F98D8;
    --on-button: #081320;
    --focus: #8CC0EC;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.30), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.45);
  }
}

/* ── Grundlage ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.shell { width: min(calc(100% - 2 * var(--gutter)), var(--max)); margin-inline: auto; }

.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100;
  padding: 0.7rem 1rem; border-radius: var(--radius-lg);
  background: var(--button); color: var(--on-button);
  transform: translateY(-200%); transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ── Knöpfe: primär, Link ──────────────────────────────────────── */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 2.75rem; padding: 0 1.5rem;
  border: 1px solid transparent; border-radius: var(--radius-lg);
  /* Himmelblau mit nachtblauer Schrift, hell und dunkel (Wunsch Julius, 16.11.2026; Design System: Nachtblau) */
  background: var(--brand-sky); color: var(--on-sky);
  font: inherit; font-size: 0.94rem; font-weight: 550; line-height: 1.25;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.knopf:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.knopf:active { transform: translateY(0); box-shadow: none; }
.knopf-gross { min-height: 3.25rem; padding: 0 1.75rem; font-size: 1rem; }
.knopf svg { width: 1rem; height: 1rem; flex: none; }
.pfeil { display: inline-grid; place-items: center; transition: transform var(--t) var(--ease); }
.knopf:hover .pfeil { transform: translate(2px, -2px); }
/* Zweitaktion als unterstrichener Link */
.knopf-leise {
  background: transparent; color: var(--ink);
  padding-inline: 0.25rem;
  text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px;
}
.knopf-leise:hover { transform: none; box-shadow: none; text-decoration-thickness: 2px; }

/* ── Navigation: himmelblaue Leiste (Wunsch Julius, siehe knowledge/13) ── */
.nav {
  position: fixed; top: 0.75rem; left: 50%; z-index: 50;
  width: min(calc(100% - 1.5rem), var(--max));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 1.5rem;
  height: 3.75rem; padding: 0 0.5rem 0 1.1rem;
  border-radius: var(--radius-lg);
  background: var(--brand-sky); color: var(--on-sky);
}
.nav :focus-visible { outline-color: var(--brand-night); }
.nav .marke { display: flex; align-items: center; }
.nav .marke img { width: auto; height: 2.5rem; }
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav-links a, .nav .login { color: var(--on-sky); font-size: 0.92rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover, .nav .login:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; }
.nav .knopf { background: var(--brand-night); color: var(--on-night); }
.menue { display: none; margin-left: auto; }
.menue summary {
  list-style: none; cursor: pointer;
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: var(--radius-sm);
}
.menue summary::-webkit-details-marker { display: none; }
.striche { position: relative; width: 1.2rem; height: 0.7rem; }
.striche span {
  position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform var(--t) var(--ease), top var(--t) var(--ease);
}
.striche span:first-child { top: 0; }
.striche span:last-child { top: calc(100% - 1.5px); }
.menue[open] .striche span:first-child { top: calc(50% - 0.75px); transform: rotate(45deg); }
.menue[open] .striche span:last-child { top: calc(50% - 0.75px); transform: rotate(-45deg); }
.menue-liste {
  position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
  display: grid; padding: 0.5rem;
  border-radius: var(--radius-lg);
  background: var(--brand-sky);
}
.menue-liste a { padding: 0.9rem 0.8rem; color: var(--on-sky); text-decoration: none; border-radius: var(--radius-md); }
.menue-liste a:hover { background: rgba(11, 37, 64, 0.08); }

/* ── Bausteine der Inhaltsseiten ───────────────────────────────── */
section { scroll-margin-top: 5.5rem; }
.abschnitt { padding-block: var(--abstand); }
.abschnitt + .abschnitt { border-top: 1px solid var(--line); }
.zweispaltig {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem); align-items: start;
}
.eyebrow { margin: 0 0 1rem; color: var(--brand-text); font-size: 0.95rem; font-weight: 550; }
.fliesstext p { margin: 0 0 1.1rem; color: var(--ink-muted); font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.fliesstext p:last-child { margin-bottom: 0; }
.fliesstext strong { color: var(--ink); font-weight: 600; }
.klein { color: var(--ink-muted); font-size: 0.88rem; }
.klein a { color: var(--ink); }

/* Bildrahmen: Foto füllt einen Rahmen mit 24px Radius */
.rahmen { display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-soft); }
.rahmen img { border-radius: 0; }

/* SkyPanel: die eine himmelblaue Fläche der Seite (Abschluss) */
.himmel {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem;
  padding: clamp(3rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--brand-sky); color: var(--on-sky);
}
.himmel img { width: auto; height: 3.5rem; }
.himmel h2 { margin: 0; max-width: 18ch; color: var(--on-sky-large); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; font-weight: 560; letter-spacing: -0.015em; text-wrap: balance; }
.himmel p { margin: 0; max-width: 34rem; color: var(--on-sky); font-size: 1.05rem; }
.himmel a:not(.knopf) { color: var(--on-sky); }
.himmel .knopf { background: var(--brand-night); color: var(--on-night); }
.himmel :focus-visible { outline-color: var(--brand-night); }

/* ── Fußzeile in Schwarz ───────────────────────────────────────── */
.fuss { background: var(--fuss-bg); color: var(--fuss-text); padding-block: 3.5rem 2rem; }
.fuss :focus-visible { outline-color: var(--fuss-text); }
.fuss-oben { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid var(--fuss-linie); }
.fuss-oben img { width: auto; height: 3.5rem; }
.fuss-oben p { margin: 1rem 0 0; max-width: 20rem; color: var(--fuss-leise); font-size: 0.9rem; }
.fuss nav { display: grid; gap: 0.6rem; align-content: start; }
.fuss nav a { color: var(--fuss-text); text-decoration: none; font-size: 0.92rem; }
.fuss nav a:hover { color: #FFFFFF; }
.fuss-unten { margin: 0; padding-top: 1.5rem; color: var(--fuss-leise); font-size: 0.82rem; }
.fuss { overflow: hidden; }
/* Großer, dezenter AirBon-Schriftzug am Seitenende, läuft nach unten aus (wie auf der alten Webseite, Wunsch Julius) */
.fuss-marke {
  margin: 2.5rem 0 -0.12em; text-align: center;
  font-size: clamp(6rem, 24vw, 22rem); font-weight: 600; letter-spacing: -0.065em; line-height: 0.8;
  background: linear-gradient(180deg, #2C2C31 0%, var(--fuss-bg) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}

/* ── Kontakt-Dialog (js/kontakt.js): Adresse erst nach Spam-Prüfung ── */
.kontakt-dialog { width: min(26rem, calc(100vw - 2rem)); padding: 2rem 1.5rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lift); }
.kontakt-dialog::backdrop { background: rgba(8, 19, 32, 0.6); }
.kontakt-dialog h2 { margin: 0 0 0.5rem; font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.25; }
.kontakt-dialog p { margin: 0 0 1rem; color: var(--ink-muted); line-height: 1.5; }
.kontakt-dialog .kontakt-ergebnis { color: var(--ink); }
.kontakt-dialog .kontakt-ergebnis a { color: var(--ink); font-weight: 550; }
.kontakt-feld { min-height: 65px; }
.kontakt-zu { position: absolute; top: 0.75rem; right: 0.75rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }

/* ── Handy ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav .login { display: none; }
  .menue { display: block; margin-left: 0; }
  .nav { gap: 0.4rem; }
  .nav .knopf { margin-left: auto; }
  .zweispaltig { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fuss-oben { flex-direction: column; }
  .himmel .knopf { width: 100%; }
}

/* Bei „Bewegung reduzieren“ steht alles still */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
