/* CRITICAL CSS - Inlined in <head> for instant first paint */

/* === Design Tokens – AIBA Brand (Heller, dezent-moderner Look) === */
:root {
  /* Primärfarben (dezent eingesetzt) */
  --color-primary: #d53436;        /* AIBA Rot */
  --color-primary-hover: #c22b2d;
  --color-primary-light: rgba(213, 52, 54, 0.08);

  /* Blautöne */
  --color-blue: #1a4260;           /* AIBA Blau (dunkel) */
  --color-blue-light: #008de4;     /* AIBA Blau (sekundär) */
  --color-blue-hover: #0077c2;

  /* Hintergründe (Helles, sauberes Design) */
  --bg-primary: #ffffff;           /* Haupt-Hintergrund weiß */
  --bg-secondary: #f8fafc;         /* Helles Schiefergrau für Wechsel-Abschnitte */
  --bg-cards: #ffffff;             /* Saubere weiße Kacheln */
  --bg-dark-accent: #0f172a;       /* Dunkles Slate für Akzent-Abschnitte */

  /* Text & Kontrast */
  --text-main: #1e293b;            /* Dunkelgrau für beste Lesbarkeit */
  --text-muted: #64748b;           /* Dezentes Medium-Grau */
  --heading-color: #0f172a;        /* Sehr dunkles Blau/Schwarz für Überschriften */

  /* Rahmen & Schatten */
  --border: #e2e8f0;               /* Dezent helle Ränder */
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.08);
  --gradient-red: linear-gradient(135deg, #0f172a, #1e293b);
  --gradient-blue: linear-gradient(135deg, #0f172a, #1e293b);
  --glow-red: 0 4px 20px rgba(213, 52, 54, 0.15);
  --glow-blue: 0 4px 20px rgba(0, 141, 228, 0.15);
}

/* === Fonts (lokal, kein CDN) === */
@font-face {
  font-family: 'Lilita One';
  src: url('/static/fonts/lilita-one-latin.woff2') format('woff2');
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url('/static/fonts/roboto-latin-400.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 900;
  font-style: normal;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lilita One', 'Impact', sans-serif;
  color: var(--heading-color);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 400;
}

h1 { font-size: clamp(1.75rem, 3.5vw, 2.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

a { color: var(--text-main); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-primary); }

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

/* === Section Spacing === */
section, .section, section.container {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

section.hero {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

/* === Header & Navigation === */
header:not(.blog-header) {
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Ensure .blog-header is NEVER sticky */
.blog-header {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.6rem;
  color: var(--heading-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img { height: 48px; width: auto; }
.logo span { color: var(--color-primary); }

nav ul {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--color-primary); }

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-chevron {
  width: 11px;
  height: 11px;
  stroke-width: 2.5;
  opacity: 0.65;
  transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}

.dropdown:hover .nav-chevron {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--color-primary);
}

.dropdown {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: -0.5rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -1rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 220px;
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 100;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}
.dropdown-menu li a { display: block; padding: 0.75rem 1.5rem; font-size: 0.9rem; color: var(--text-main); }
.dropdown-menu li a:hover { background: var(--bg-secondary); color: var(--color-primary); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* === Buttons === */
.btn {
  background: var(--color-primary);
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-red);
  color: #ffffff;
}

.btn-blue {
  background: var(--color-blue-light);
  border-color: var(--color-blue-light);

}

.btn-blue:hover {
  background: var(--color-blue-hover);
  border-color: var(--color-blue-hover);
  box-shadow: var(--glow-blue);
  color: #ffffff;
}

.btn-dark {
  background: var(--color-blue);
  border-color: var(--color-blue);
}

.btn-dark:hover {
  background: #15334c;
  border-color: #15334c;
  box-shadow: var(--glow-blue);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--text-main);
  color: var(--text-main);
}

.btn-large { padding: 1.1rem 2.25rem; font-size: 1.1rem; }

/* === Hero Section === */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.03) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero h1 { margin-bottom: 1.5rem; max-width: 950px; margin-left: auto; margin-right: auto; }

.hero-gradient-text {
  color: var(--color-primary);
}

.hero-blue-text {
  color: var(--color-blue-light);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-kicker .kicker-sparkle {
  color: var(--color-primary);
  font-size: 0.9rem;
}

.hero-title {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  color: var(--heading-color);
  margin-bottom: 1.25rem;
}

.hero-title-accent {
  display: block;
  color: var(--color-primary);
  margin-top: 0.35rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #334155;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.7;
}

.hero-split .hero-content p {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.hero-split .hero-cta-note {
  text-align: left !important;
}

.hero-cta-note {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
}

.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Hero mit Bild (Split-Layout) */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
  position: relative;
  z-index: 1;
}

.hero-split .hero-content { max-width: 600px; }

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.hero-image-png {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.hero-image-png img {
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.1));
  transform: scale(1.08);
  transform-origin: center center;
  margin-bottom: 0;
}

.hero-image-png::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 141, 228, 0.12) 0%, rgba(213, 52, 54, 0.08) 55%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
}

/* === Accent Bar (dekoratives Element) === */
.accent-bar {
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.accent-bar-blue {
  background: var(--color-blue-light);
  width: 50px;
  height: 3px;
  border-radius: 2px;
}

/* === Card Icon Box === */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
}

/* === Mobile === */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    padding: 2rem;
    gap: 1rem;
    overflow-y: auto;
    z-index: 999;
  }
  nav ul.show { display: flex; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 3.5rem 0 2.5rem; }
  .hero-ctas { flex-direction: column; align-items: center; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-split { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-split .hero-content { max-width: 100%; }
  .hero-split .hero-content p { text-align: center; }
  .hero-split .hero-cta-note { text-align: center !important; }
  .hero-image-png img {
    width: 100%;
    max-width: 100%;
    transform: none;
    margin-bottom: 0;
  }
  .hero-image-png::before {
    width: 280px;
    height: 280px;
  }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: transparent; display: none; padding-left: 1rem; }
  .dropdown.open .dropdown-menu { display: block; }
}
