/* ==========================================================================
   AUTOREISE AT — Premium Alpine Infrastructure & Road Portal Style System
   Color Palette: Deep Slate, Alpine Navy, Emerald & Gold Accents, Glassmorphism
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg-main: #0a0f1d;
  --bg-card: rgba(18, 26, 47, 0.75);
  --bg-card-hover: rgba(28, 40, 70, 0.85);
  --bg-nav: rgba(10, 15, 29, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.18);
  
  --primary-blue: #1e40af;
  --primary-accent: #3b82f6;
  --emerald-accent: #10b981;
  --gold-accent: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

.wrap-full {
  width: 100%;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.brand__mark svg {
  width: 24px;
  height: 24px;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand__sub {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav__links a:hover, .nav__links a.active {
  color: var(--text-main);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-accent);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav__links a:hover::after, .nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: 50px;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.nav__cta::after {
  display: none !important;
}

.nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
  left: 0;
}

.nav__burger span { top: 11px; }
.nav__burger span::before { top: -8px; }
.nav__burger span::after { top: 8px; }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(30, 64, 175, 0.25) 0%, rgba(10, 15, 29, 0.95) 70%);
}

.hero__bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  z-index: 1;
  filter: saturate(1.2) contrast(1.1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 15, 29, 0.4) 0%, rgba(10, 15, 29, 0.9) 80%, #0a0f1d 100%);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 860px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #60a5fa, #3b82f6, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 760px;
  font-weight: 400;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-accent), var(--primary-blue));
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.6);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-highlight);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-color);
  padding-top: 28px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-badge svg {
  color: var(--emerald-accent);
}

/* Hero Stats Counter Bar */
.hero__stats {
  position: relative;
  z-index: 3;
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  box-shadow: var(--shadow-card);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item .n {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.stat-item .n span {
  font-size: 1.2rem;
  color: var(--primary-accent);
}

.stat-item .l {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ==========================================================================
   SECTIONS & GENERAL LAYOUT
   ========================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section--darker {
  background-color: #070b14;
}

.section__head {
  max-width: 760px;
  margin-bottom: 56px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-accent);
  margin-bottom: 12px;
}

.section__head h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section__head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ==========================================================================
   STRECKENÜBERBLICK (AUTOBAHN GRID)
   ========================================================================== */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-accent);
}

.net-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.route-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 20px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.route-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.shield {
  min-width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shield.s-route {
  background: linear-gradient(135deg, #065f46, #059669);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.route__body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.route__path {
  font-size: 0.88rem;
  color: var(--primary-accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.route__note {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   TEMPO & VERKEHRSFLUSS (SPEED LIMITS & RULES)
   ========================================================================== */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: var(--transition-smooth);
}

.rule-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
}

.rule-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-accent);
}

.rule-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.rule-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.badge-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-accent);
}

/* ==========================================================================
   TUNNEL & BRÜCKEN SHOWCASE
   ========================================================================== */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-split.reverse {
  direction: rtl;
}

.feature-split.reverse > * {
  direction: ltr;
}

.feature-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.feature-img-wrapper img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.feature-split:hover .feature-img-wrapper img {
  transform: scale(1.04);
}

.feature-text h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
  line-height: 1.7;
}

.spec-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.spec-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.spec-item strong {
  display: block;
  font-size: 1.1rem;
  color: #ffffff;
}

.spec-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MAGAZIN SECTION
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-card);
}

.article-thumb {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.article-card:hover .article-thumb img {
  transform: scale(1.06);
}

.article-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}

.article-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

/* ==========================================================================
   FOOTER & LEGAL
   ========================================================================== */
.footer {
  background: #050811;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 360px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--primary-accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border-highlight);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 24px;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.cookie-banner p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.btn-cookie {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-cookie-accept {
  background: var(--primary-accent);
  color: #ffffff;
}

.btn-cookie-deny {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .feature-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature-split.reverse {
    direction: ltr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #0a0f1d;
    flex-direction: column;
    padding: 30px 0;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    display: none;
  }
  .nav__links.show {
    display: flex;
  }
  .nav__burger {
    display: block;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
