/* ===== BASE ===== */
:root {
  --primary: #1a6fb5;
  --primary-dark: #0f4d85;
  --primary-light: #e8f2fc;
  --accent: #f0a500;
  --accent-dark: #c8880a;
  --text: #1e2635;
  --text-light: #5a6580;
  --bg: #f6f8fc;
  --white: #ffffff;
  --border: #dde3ef;
  --shadow: 0 4px 24px rgba(26,111,181,0.10);
  --radius: 14px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

/* ===== HEADER / NAV ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.logo svg { flex-shrink: 0; margin-right: 10px; }

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 50px;
  border-bottom: none !important;
  transition: background .2s, transform .1s !important;
}

.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0f4d85 0%, #1a6fb5 55%, #2a90d0 100%);
  color: var(--white);
  padding: 70px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 740px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 18px;
}

.hero h1 { margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.2); }

.hero p {
  font-size: 1.15rem;
  opacity: .9;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== SEARCH BOX ===== */
.search-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  max-width: 680px;
  margin: 0 auto;
}

.search-box h2 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-row select,
.search-row input {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .2s;
  appearance: none;
}

.search-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6580' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.search-row select:focus,
.search-row input:focus { border-color: var(--primary); }

.btn-search {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-search:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ===== MAIN LAYOUT ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 10px auto 0;
}

/* ===== STATS ===== */
.stats-bar {
  background: var(--primary-light);
  border-top: 1px solid rgba(26,111,181,.12);
  border-bottom: 1px solid rgba(26,111,181,.12);
}

.stats-bar .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 22px 40px;
  border-right: 1px solid rgba(26,111,181,.15);
}

.stat-item:last-child { border-right: none; }

.stat-item .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-item .label { font-size: .82rem; color: var(--text-light); font-weight: 600; margin-top: 4px; }

/* ===== AIRLINE GRID ===== */
.airlines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.airline-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.airline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.airline-card-header {
  padding: 22px 22px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.airline-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.airline-card-header h3 { font-size: 1rem; color: var(--text); }
.airline-card-header .airline-region { font-size: .8rem; color: var(--text-light); }

.airline-card-body {
  padding: 16px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
}

.spec-row .spec-label { color: var(--text-light); }
.spec-row .spec-val { font-weight: 700; color: var(--text); }
.spec-row .spec-val.ok { color: #16a34a; }
.spec-row .spec-val.warn { color: #d97706; }
.spec-row .spec-val.bad { color: #dc2626; }

.airline-card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
}

.btn-detail {
  display: block;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s;
}

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

/* ===== TIPS SECTION ===== */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.tip-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tip-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-card h3 { font-size: 1.05rem; }
.tip-card p { font-size: .9rem; color: var(--text-light); }

/* ===== PRODUCT CARDS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.product-img {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img svg,
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 170px;
  padding: 8px;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.product-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-brand { font-size: .75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.product-name { font-size: .95rem; font-weight: 700; color: var(--text); }
.product-meta { font-size: .8rem; color: var(--text-light); }

.product-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.product-price-old { font-size: .82rem; color: var(--text-light); text-decoration: line-through; }

.btn-buy {
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 700;
  font-size: .82rem;
  transition: background .2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.btn-buy:hover { background: var(--accent-dark); color: var(--white); }

/* ===== DETAIL PAGE ===== */
.detail-hero {
  background: linear-gradient(135deg, #0f4d85 0%, #1a6fb5 100%);
  color: var(--white);
  padding: 50px 20px;
}

.detail-hero .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.detail-airline-logo {
  width: 90px;
  height: 90px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}

.detail-hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 6px; }
.detail-hero p { opacity: .85; font-size: .95rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  margin-bottom: 16px;
  transition: color .2s;
}

.back-link:hover { color: var(--white); }

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.specs-table th,
.specs-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}

.specs-table th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  width: 40%;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td { border-bottom: none; }

.info-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  font-size: .92rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.info-box .icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

.warn-box {
  background: #fef9ec;
  border-left: 4px solid var(--accent);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 12px 0;
  font-size: .83rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { opacity: .5; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.75);
  padding: 56px 20px 32px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { color: var(--white); margin-bottom: 12px; font-size: 1.1rem; }
.footer-brand p { font-size: .88rem; max-width: 280px; }

.footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: color .2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
}

.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom .legal a { color: rgba(255,255,255,.5); }
.footer-bottom .legal a:hover { color: var(--white); }

/* ===== AIRLINE FILTER ===== */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 7px 18px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-light);
  transition: .2s;
}

.filter-btn.active, .filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ===== SEARCH RESULTS ===== */
#search-results {
  margin-top: 20px;
  display: none;
}

#search-results.visible { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 20px 20px; gap: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .stats-bar .container { flex-direction: column; gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(26,111,181,.15); padding: 16px 24px; }
  .stat-item:last-child { border-bottom: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .search-row { flex-direction: column; }
  .search-row select, .search-row input, .btn-search { width: 100%; justify-content: center; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.bg-white { background: var(--white); }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }
.p-24 { padding: 24px; }
.gap-16 { gap: 16px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: .78rem;
  font-weight: 700;
}

.tag.green { background: #dcfce7; color: #16a34a; }
.tag.orange { background: #fef3c7; color: #d97706; }
.tag.red { background: #fee2e2; color: #dc2626; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

/* ===== DSGVO / AFFILIATE NOTICE BANNER ===== */
#affiliate-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e2635;
  color: #e8edf5;
  padding: 14px 20px;
  font-size: .85rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -2px 12px rgba(0,0,0,.25);
}
#affiliate-notice p { flex: 1; min-width: 200px; margin: 0; }
#affiliate-notice a { color: #7ab8f0; text-decoration: underline; }
#affiliate-notice a:hover { color: #a8cffc; }
.affiliate-notice-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
}
.affiliate-notice-btn:hover { background: var(--primary-dark); }
@media (max-width: 500px) {
  #affiliate-notice { padding: 12px 14px; }
  .affiliate-notice-btn { width: 100%; text-align: center; }
}

/* ===== AIRPLANE SVG ILLUSTRATIONS ===== */
.illustration-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
