/* ══════════════════════════════════════════════════════════════════════
   stil.css — aviationtools.space design system
   Single source of truth for all pages.

   HINWEIS: Für volle Wirkung die folgenden Inline-Styles aus der HTML entfernen:
   · .pkg-price-big  →  style="font-size:36px; font-weight:bold; color:#3A82B8; ..."
   · .pkg-tokens-line → style="font-size:14px; background-color:#E8F4FD; ..."
   · .button-primaer  → style="... background-color:#002F6C; ..."
   · .pricing-grid    → style="display:flex; gap:20px; ..."
   · Sign-Up Link     → style="background-color:#3A82B8; ..."
   ══════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=Inter:wght@400;500;600;700&display=swap');

/* ── Design Tokens ───────────────────────────────────────────────────── */
:root {
  --bg:          #f5f7fa;
  --surface:     #ffffff;
  --surface-2:   #f0f4ff;
  --border:      #e1e6f0;
  --fg:          #111827;
  --fg-muted:    #6b7280;
  --accent:      #2563eb;
  --accent-dim:  #dbeafe;
  --green:       #16a34a;
  --green-bg:    #dcfce7;
  --orange:      #d97706;
  --orange-bg:   #fef3c7;
  --red:         #dc2626;
  --red-bg:      #fee2e2;
  --mono:        'IBM Plex Mono', monospace;
  --sans:        'Inter', system-ui, sans-serif;
  --r:           10px;
  color-scheme:  light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0d1117;
    --surface:     #161b27;
    --surface-2:   #1a2236;
    --border:      #2a3349;
    --fg:          #e6eaf4;
    --fg-muted:    #8b93a8;
    --accent:      #4f86f7;
    --accent-dim:  #162044;
    --green:       #4ade80;
    --green-bg:    #14532d;
    --orange:      #fbbf24;
    --orange-bg:   #431407;
    --red:         #f87171;
    --red-bg:      #450a0a;
    color-scheme:  dark;
  }
}

:root[data-theme="dark"] {
  --bg:          #0d1117;
  --surface:     #161b27;
  --surface-2:   #1a2236;
  --border:      #2a3349;
  --fg:          #e6eaf4;
  --fg-muted:    #8b93a8;
  --accent:      #4f86f7;
  --accent-dim:  #162044;
  --green:       #4ade80;
  --green-bg:    #14532d;
  --orange:      #fbbf24;
  --orange-bg:   #431407;
  --red:         #f87171;
  --red-bg:      #450a0a;
  color-scheme:  dark;
}

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

html {
  scroll-behavior: smooth;
}

/*
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}
*/
/*
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;        /* ← neu * /
  flex-direction: column; /* ← neu * /
}
*/

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;  /* ← einzige Ergänzung */
}

footer {
  position: absolute;
  bottom: -2rem;
  width: 100%;
  text-align: center;
}

footer a {
  color: #888;
  margin: 0 1rem;
  text-decoration: none;
}
img { max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

/* ── Navigation ──────────────────────────────────────────────────────── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding-left:  max(16px, env(safe-area-inset-left,  0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  gap: 16px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg) !important;
  text-decoration: none !important;
  white-space: nowrap;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--accent) !important;
  text-decoration: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted) !important;
  text-decoration: none !important;
  padding: 5px 10px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  background: transparent !important;
}

.nav-links li a:hover {
  color: var(--fg) !important;
  background: var(--bg) !important;
}

.nav-anmeldung {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}

.nav-anmeldung:hover {
  background: color-mix(in srgb, var(--accent) 82%, #000) !important;
  color: #fff !important;
}

.nav-links li.active a {
  color: var(--fg) !important;
  background: var(--bg) !important;
}

/* Mobil */
@media (max-width: 640px) {

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: calc(52px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    z-index: 99;
  }

  .nav-links.offen {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 10px 8px;
    font-size: 15px;
  }
}


/* ── Page wrapper (.page) ────────────────────────────────────────────── */
/* Seiteninhalt muss über den Rauten liegen */
.page,
.prose-page    { position: relative; z-index: 1; }
.panel-karte   { position: relative; z-index: 1; }

.page {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 52px;
  padding-top: 48px;
  padding-bottom: 64px;
  padding-left:  max(16px, env(safe-area-inset-left,  0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  text-wrap: balance;
}

.hero-sub {
  font-size: 16px;
  color: var(--fg-muted);
  max-width: 800px;
  text-wrap: balance;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ── Section ─────────────────────────────────────────────────────────── */
.section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ── Pricing cards ───────────────────────────────────────────────────── */
.pkg-grid,
.pricing-grid {
  display: grid !important;           /* override inline flex */
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px !important;
  flex-wrap: unset !important;
  justify-content: unset !important;
  margin-top: 0 !important;
}

.pkg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.pkg-card:hover {
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}

.pkg-card.featured {
  border-color: var(--accent);
  background: var(--surface-2);
}

.pkg-tier {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fg-muted);
}

.pkg-card.featured .pkg-tier {
  color: var(--accent);
}

.pkg-price-big {
  font-size: 26px !important;         /* override inline */
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--fg) !important;
  margin-bottom: 0 !important;
}

.pkg-price-big span {
  font-size: 14px !important;
  font-weight: 400;
  color: var(--fg-muted) !important;
}

.pkg-tokens-line {
  font-family: var(--mono);
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
  background: var(--accent-dim) !important;
  padding: 3px 8px !important;
  border-radius: 4px;
  display: inline-block !important;
  width: fit-content;
  margin-bottom: 0 !important;
}

.pkg-divider {
  border: none;
  border-top: 1px solid var(--border) !important;
  margin: 4px 0 !important;
}

.pkg-desc {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
  flex: 1;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.button-primaer,
button.button-primaer,
input[type="submit"].button-primaer {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px !important;
  background: var(--accent) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none !important;
  letter-spacing: 0.01em;
  margin-top: auto;
}
@supports (view-transition-name: none) {
  @view-transition {
    navigation: auto;
  }
}
.button-primaer:hover,
button.button-primaer:hover {
  background: color-mix(in srgb, var(--accent) 82%, #000) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.button-primaer:active,
button.button-primaer:active {
  transform: translateY(0);
}

/* ── Tables ──────────────────────────────────────────────────────────── */
.tbl-wrap {
  /* overflow-x: auto; */
  border-radius: var(--r);
  border: 1px solid var(--border);
    max-width: 100%;
    overflow-x: auto;   /* scrollen auf kleinen Screens statt brechen */
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-variant-numeric: tabular-nums;
}

thead tr {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 3%, var(--surface)); }

td {
  padding: 11px 14px;
  vertical-align: top;
  min-width: 0;
}

.t-name  { font-weight: 600; }
.t-mono  { font-family: var(--mono); font-size: 12px; }
.t-price { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); }
.t-muted { color: var(--fg-muted); font-size: 12px; }
.t-code  { font-family: var(--mono); font-size: 11px; color: var(--accent); white-space: nowrap; }
.t-ex    { font-family: var(--mono); font-size: 11px; color: var(--fg-muted); }

/* ── Badges ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-blue   { background: var(--accent-dim); color: var(--accent); }
.badge-green  { background: var(--green-bg);   color: var(--green); }
.badge-orange { background: var(--orange-bg);  color: var(--orange); }

/* ── Try it demo ─────────────────────────────────────────────────────── */
.demo-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

.demo-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.demo-tab {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--fg-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.15s;
  font-family: var(--sans);
}
.demo-tab:hover  { color: var(--fg); }
.demo-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.demo-pane {
  display: none;
  padding: 20px;
  flex-direction: column;
  gap: 14px;
}
.demo-pane.active { display: flex; }

.demo-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-url {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--fg-muted);
  word-break: break-all;
  line-height: 1.5;
}
.demo-url .hl { color: var(--accent); font-weight: 600; }

.copy-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  font-family: var(--sans);
}
.copy-btn:hover  { background: var(--bg); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }

.demo-desc { font-size: 12px; color: var(--fg-muted); }

.json-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px;
  overflow-x: auto;
}
.json-wrap pre {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
  white-space: pre;
  min-width: 0;
  color: var(--fg);
}
.jk { color: var(--fg-muted); }
.js { color: var(--green); }
.jn { color: var(--orange); }
.ja { color: var(--accent); }

/* ── Advantages grid ─────────────────────────────────────────────────── */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.adv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  display: flex;
  gap: 10px;
}

.adv-icon { font-size: 20px; flex-shrink: 0; line-height: 1; margin-top: 1px; }
.adv-text strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.adv-text span   { font-size: 12px; color: var(--fg-muted); line-height: 1.45; }

/* ── Login / Register / Dashboard panels (.panel-karte) ──────────────── */
/*
   Struktur in login.php / registrierung.html:
     <div class="panel-karte">
       <h2>...</h2>
       <form>
         <div class="eingabe-gruppe">...</div>
         <button class="button-primaer">...</button>
         <div class="weiche-text">...</div>
       </form>
     </div>
*/
.panel-karte {
  width: min(450px, calc(100% - 32px));
  margin: 64px auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow:
    0 1px 3px color-mix(in srgb, var(--fg) 5%, transparent),
    0 8px 32px color-mix(in srgb, var(--accent) 7%, transparent);
}

.panel-karte h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
  text-align: center;
}

/* form inside panel gets its own flex column layout */
.panel-karte form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Form elements ───────────────────────────────────────────────────── */
.eingabe-gruppe {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.eingabe-gruppe label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.eingabe-gruppe input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.eingabe-gruppe input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.eingabe-gruppe input::placeholder {
  color: var(--fg-muted);
  opacity: 0.6;
}

/* ── Soft helper text ────────────────────────────────────────────────── */
.weiche-text {
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.5;
}

.weiche-text a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.weiche-text a:hover { text-decoration: underline; }

/* ── API key display (after successful registration) ─────────────────── */
.api-key-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.api-key-value {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  word-break: break-all;
  flex: 1;
}

/* ── Status / Feedback boxes ─────────────────────────────────────────── */
.fehler-box,
.alert-error {
  background: var(--red-bg);
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--red);
  line-height: 1.4;
}

.erfolg-box,
.alert-success {
  background: var(--green-bg);
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--green);
  line-height: 1.4;
}

/* ── Dashboard usage bar ─────────────────────────────────────────────── */
.usage-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.usage-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-muted);
}

.usage-bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.usage-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.usage-bar-fill.warn  { background: var(--orange); }
.usage-bar-fill.crit  { background: var(--red); }

/* ── Generic prose pages (privacy, imprint) ──────────────────────────── */
.prose-page {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 48px;
  padding-bottom: 64px;
  padding-left:  max(16px, env(safe-area-inset-left,  0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.prose-page h1 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.prose-page h2 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
  margin-bottom: 4px;
}

.prose-page p,
.prose-page li {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

.prose-page ul,
.prose-page ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prose-page a { color: var(--accent); }

/* ── Responsive ──────────────────────────────────────────────────────── */

/* Desktop: Privacy + Imprint im Nav sichtbar */
.nav-links li a[href*="privacy"],
.nav-links li a[href*="imprint"] {
  display: inline-block;
}

/* Mobile: aus dem Nav raus, stattdessen im Footer */
@media (max-width: 680px)
{
	/*
	.nav-links li a[href*="privacy"],
	.nav-links li a[href*="imprint"]
	{
		display: none;
	}
	*/
  .footer-rechtliches {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }
}

@media (min-width: 681px) {
  .footer-rechtliches {
    display: none;
  }
}

.seiten-footer {
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
}
.seiten-footer a {
  color: #888;
  margin: 0 1rem;
  text-decoration: none;
}

.nav-theme-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 14px;
  cursor: pointer;
  color: var(--fg-muted);
  transition: background .15s;
  line-height: 1;
}
.nav-theme-btn:hover { background: var(--bg); }

@media (max-width: 680px) {
  .pkg-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
[hidden] { display: none !important; }
@media (max-width: 440px) {
  .pkg-grid,
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  .panel-karte {
    padding: 24px 20px;
    margin: 40px auto;
  }

  .nav-container {
    height: 48px;
  }
}
/* ══════════════════════════════════════════════════════════════════════
   Schwebende Rauten — seitenübergreifende Hintergrunddekoration
   Inspiriert von DE-CIX: geometrische Shapes, dezent, rein CSS.
   
   HTML (einmalig direkt nach <body> einfügen):
     <div class="diamonds-bg" aria-hidden="true">
       <span></span><span></span><span></span><span></span>
       <span></span><span></span><span></span><span></span>
       <span></span><span></span>
     </div>
   ══════════════════════════════════════════════════════════════════════ */

/* Container: fixed, deckt immer den gesamten Viewport */
.diamonds-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Basis aller Rauten */
.diamonds-bg span {
  position: absolute;
  display: block;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
  animation: diamondDrift1 20s ease-in-out infinite;
}

/* 10 Rauten — individuell in Größe, Position, Deckkraft und Timing */
.diamonds-bg span:nth-child(1)  { width:28px; height:28px; top:10%; left: 7%; opacity:.30; animation-name:diamondDrift2; animation-duration:22s; animation-delay: -4s; }
.diamonds-bg span:nth-child(2)  { width:16px; height:16px; top:28%; left:20%; opacity:.18; border-color:var(--fg-muted); animation-name:diamondDrift3; animation-duration:28s; animation-delay:-10s; }
.diamonds-bg span:nth-child(3)  { width:48px; height:48px; top:58%; left: 4%; opacity:.14; animation-duration:24s; animation-delay: -6s; }
.diamonds-bg span:nth-child(4)  { width:20px; height:20px; top: 6%; left:50%; opacity:.25; border-color:var(--fg-muted); animation-name:diamondDrift2; animation-duration:32s; animation-delay:-14s; }
.diamonds-bg span:nth-child(5)  { width:36px; height:36px; top:75%; left:35%; opacity:.20; animation-name:diamondDrift3; animation-duration:20s; animation-delay: -2s; }
.diamonds-bg span:nth-child(6)  { width:14px; height:14px; top:40%; left:68%; opacity:.22; border-color:var(--fg-muted); animation-duration:35s; animation-delay:-18s; }
.diamonds-bg span:nth-child(7)  { width:56px; height:56px; top:18%; left:84%; opacity:.12; animation-name:diamondDrift2; animation-duration:26s; animation-delay: -8s; }
.diamonds-bg span:nth-child(8)  { width:22px; height:22px; top:88%; left:60%; opacity:.20; animation-name:diamondDrift3; animation-duration:19s; animation-delay: -1s; }
.diamonds-bg span:nth-child(9)  { width:18px; height:18px; top:62%; left:90%; opacity:.16; border-color:var(--fg-muted); animation-duration:29s; animation-delay:-16s; }
.diamonds-bg span:nth-child(10) { width:32px; height:32px; top:45%; left:46%; opacity:.11; animation-name:diamondDrift3; animation-duration:25s; animation-delay: -7s; }

/* Drei Drift-Varianten → natürlich wirkende Ungleichmäßigkeit */
@keyframes diamondDrift1 {
  0%   { transform: rotate(45deg) translate(  0px,   0px); }
  30%  { transform: rotate(45deg) translate(  8px, -16px); }
  60%  { transform: rotate(45deg) translate( -4px,  -8px); }
  100% { transform: rotate(45deg) translate(  0px,   0px); }
}
@keyframes diamondDrift2 {
  0%   { transform: rotate(45deg) translate(  0px,   0px); }
  35%  { transform: rotate(45deg) translate(-10px, -20px); }
  70%  { transform: rotate(45deg) translate(  6px, -10px); }
  100% { transform: rotate(45deg) translate(  0px,   0px); }
}
@keyframes diamondDrift3 {
  0%   { transform: rotate(45deg) translate(  0px,   0px); }
  45%  { transform: rotate(45deg) translate( 12px, -12px); }
  80%  { transform: rotate(45deg) translate(  3px,  -6px); }
  100% { transform: rotate(45deg) translate(  0px,   0px); }
}

/* Barrierefreiheit: Motion-Präferenz des Nutzers respektieren */
@media (prefers-reduced-motion: reduce) {
  .diamonds-bg span { animation: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   DSGVO Cookie-Hinweisbanner
   Stripe.js = technisch notwendig → kein Opt-in erforderlich (Art. 6 I b).
   Nur ein Hinweis + einmalige Bestätigung via localStorage.
   Link /datenschutz.php muss auf deine Datenschutzerklärung zeigen.
   ══════════════════════════════════════════════════════════════════════ */
.cookie-popup {
  position: fixed;
  /* Safe-area-aware: kein Overlap mit iPhone-Notch / Home-Indicator */
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  left:   max(16px, env(safe-area-inset-left,   16px));
  right:  max(16px, env(safe-area-inset-right,  16px));
  z-index: 9999;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow:
    0 4px 24px color-mix(in srgb, var(--accent) 8%, transparent),
    0 1px 6px  color-mix(in srgb, var(--fg) 8%, transparent);

  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;

  max-width: 700px;
  margin-left: auto;
  margin-right: auto;

  opacity: 1;
  transform: translateY(0);
  transition: opacity .3s ease, transform .3s ease;
}

/* Fade-out beim Schließen */
.cookie-popup.cookie-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.cookie-popup__text {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.55;
}
.cookie-popup__text strong { color: var(--fg); font-weight: 600; }
.cookie-popup__text a      { color: var(--accent); font-weight: 500; }
.cookie-popup__text a:hover { text-decoration: underline; }

.cookie-popup__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
  background: var(--accent);
  color: #fff;
  transition: background .15s;
  white-space: nowrap;
}
.cookie-popup__btn:hover {
  background: color-mix(in srgb, var(--accent) 82%, #000);
}

@media (max-width: 500px) {
  .cookie-popup {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }
  .cookie-popup__btn { align-self: flex-end; }
}
.kleingedrucktes{
	
	font-size: 12px; color: var(--fg-muted);
}


/* -------------------------------------------------- */
/* OUTPUT FORMATS section                             */
/* -------------------------------------------------- */
.formats-section {
    max-width: 1100px;
    margin: 0 auto 48px auto;
    padding: 0 16px;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 780px) {
    .formats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .formats-grid {
        grid-template-columns: 1fr;
    }
}

.format-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.format-card--aidx {
    border-color: rgba(37,99,235,0.45);
    background: rgba(37,99,235,0.07);
    border-left: 1px solid #2563eb;
}


.format-name {
    font-size: 0.95em;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.format-badge {
    font-size: 0.7em;
    font-weight: 500;
    background: rgba(37,99,235,0.25);
    color: #93c5fd;
    border: 1px solid rgba(37,99,235,0.4);
    border-radius: 4px;
    padding: 2px 7px;
    letter-spacing: 0.02em;
}

.format-desc {
    font-size: 0.82em;
    color: #94a3b8;
    line-height: 1.55;
}

.format-footnote {
    margin-top: 10px;
    font-size: 0.72em;
    color: #475569;
    letter-spacing: 0.03em;
}

/* Try it live banner */
.formats-trylive
{
    margin-top: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
	/*border: 1px solid rgba(255,255,255,0.07);*/
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.formats-trylive-text {
    font-size: 0.86em;
    color: #94a3b8;
}

.formats-trylive-btn {
    font-size: 0.84em;
    font-weight: 500;
    color: #60a5fa;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.formats-trylive-btn:hover {
    color: #93c5fd;
}
.integrity-policy {
    max-width: 1100px;
    margin: 0 auto 48px auto;
    padding: 0 16px;
}



/* --- Seitenspezifische Stile --- */

/* Suchformular: Felder in einer Zeile, umbrechen auf Mobile */
.search-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.search-row .eingabe-gruppe {
  flex: 1 1 120px;
  min-width: 100px;
}

.search-row .eingabe-gruppe input {
  width: 100%;
  text-transform: uppercase;
}

.search-row .eingabe-gruppe input[type="date"] {
  text-transform: none;
}

.search-row input[name="flugnr"] {
  text-transform: none;
}

.btn-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
}

.btn-wrap button {
  width: auto;
  padding: 10px 24px !important;
  margin-top: 0;
  white-space: nowrap;
}

/* Ergebnis-Zaehler */
.result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--fg-muted);
}

.result-meta strong { color: var(--fg); }

/* Zeitfelder: Monospace, kompakter */
.t-time {
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

/* Gate: kompakter, zentriert */
.t-gate {
  font-family: var(--mono);
  font-size: 12px;
  text-align: center;
  color: var(--fg-muted);
}

/* Leerzustand */
.leer-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 40px 20px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 13px;
}

.leer-box .leer-icon { font-size: 32px; margin-bottom: 12px; }

/* Guest-Limit-Banner */
.limit-banner {
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: var(--r);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

.limit-banner p { flex: 1; color: var(--fg-muted); line-height: 1.5; }
.limit-banner p strong { color: var(--fg); }
.limit-banner a.button-primaer {
  width: auto !important;
  padding: 8px 18px !important;
  margin-top: 0 !important;
  font-size: 13px !important;
  flex-shrink: 0;
}

/* Vollbreite-Variante wenn Limit komplett erreicht */
.limit-banner--block {
  flex-direction: column;
  align-items: flex-start;
  padding: 22px 24px;
  gap: 16px;
}

.limit-banner--block a.button-primaer {
  align-self: flex-start;
}

@media (max-width: 600px) {
  .search-row .eingabe-gruppe { flex: 1 1 calc(50% - 12px); }
  .btn-wrap { width: 100%; }
  .btn-wrap button { width: 100% !important; }
}




/* --- Toolbar Row 2: Connection Times + Export ------------------- */
.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0 4px;
    border-top: 1px solid #2A2A3A;
    margin-top: 14px;
}
.toolbar-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.toolbar-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    margin-right: 2px;
}
.btn-zone {
    background: #1A2333;
    color: #A0AEC0;
    border: 1px solid #2D3748;
    border-radius: 4px;
    padding: 5px 13px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-zone:hover { background: #253347; color: #FFFFFF; }
.btn-zone.active {
    background: #1E4A82;
    color: #FFFFFF;
    border-color: #4A90D9;
}
.btn-export {
    background: #1A2333;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.15s;
}
.btn-export:hover { background: #254F82; }

/* --- Clickable rows for Connection Times ref selection ---------- */
.conn-selectable { cursor: pointer; }
.conn-selectable:hover { background: rgba(74,144,217,0.07) !important; }
.conn-selected   { background: rgba(74,144,217,0.15) !important; outline: 1px solid rgba(74,144,217,0.4); }

/* --- Connection Times results block ---------------------------- */
#conn-block      { margin-top: 20px; display: none; }
#conn-block .conn-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #2A2A3A;
    margin-bottom: 6px;
}
#conn-block .conn-title { font-size: 13px; font-weight: 600; color: var(--fg); }
#conn-block .conn-meta  { font-size: 12px; color: #888; }
#conn-spinner { text-align: center; padding: 18px; color: #888; font-size: 13px; }
	
.at-row2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
    gap: 6px;
}
.at-row2-links,
.at-row2-rechts {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.at-btn-zone {
    background: rgba(255,255,255,0.07);
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.82em;
    transition: background 0.15s;
}
.at-btn-zone:hover,
.at-btn-zone.aktiv {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.at-zone-info {
    font-size: 0.75em;
    opacity: 0.65;
    margin-left: 3px;
}
.at-export-label {
    font-size: 0.8em;
    color: #888;
    margin-right: 2px;
}
.at-btn-export {
    background: rgba(255,255,255,0.07);
    color: #aaa;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 0.82em;
    transition: background 0.15s;
}
.at-btn-export:hover { background: rgba(255,255,255,0.14); color: #fff; }


.blur-text {
    filter: blur(4px);
    user-select: none; /* Verhindert das Kopieren des versteckten Textes */
    opacity: 0.6;
}
/* ══════════════════════════════════════════════════════════════════════
   .merksatz — Hervorgehobener Hinweisblock
   Einzufügen in stil.css, z. B. nach dem Block „Generic prose pages"
   (ca. Zeile 835 nach .prose-page a { ... })
   ══════════════════════════════════════════════════════════════════════ */

.merksatz {
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.65;
}

.merksatz strong {
  color: var(--accent);
}

/* Etwas mehr Luft wenn .merksatz direkt in .prose-page steht */
.prose-page .merksatz {
  margin-top: 4px;
  margin-bottom: 4px;
}