/* ===========================
   NARvergleich - Global Styles
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=Nunito:wght@400;500;600;700&family=Cairo:wght@400;600;700;800&display=swap');
@import 'variables.css';

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

body[dir="rtl"] {
  font-family: var(--font-ar);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Utilities ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide { max-width: 1400px; }
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }

.text-blue { color: var(--blue); }
.text-orange { color: var(--orange); }
.text-white { color: var(--white); }

.bg-blue { background: var(--blue); }
.bg-orange { background: var(--orange); }
.bg-gray { background: var(--gray-50); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,126,0,0.4);
}
.btn--secondary {
  background: var(--white);
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn--secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}
.btn--lg { padding: 18px 36px; font-size: 17px; }
.btn--sm { padding: 10px 20px; font-size: 14px; }

/* ---- Card ---- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ---- Section Titles ---- */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,126,0,0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.section-title span { color: var(--blue); }
.section-desc {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 580px;
  line-height: 1.7;
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.badge--blue { background: rgba(0,87,182,0.1); color: var(--blue); }
.badge--orange { background: rgba(255,126,0,0.1); color: var(--orange); }

/* ---- Cookie Banner ---- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--gray-900);
  color: var(--white);
  padding: 20px 0;
  transform: translateY(0);
  transition: transform 0.4s ease;
  border-top: 3px solid var(--orange);
}
#cookie-banner.hidden { transform: translateY(100%); }
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 220px; font-size: 14px; line-height: 1.6; }
.cookie-text a { color: var(--orange); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-btn {
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}
.cookie-btn--accept {
  background: var(--orange);
  color: var(--white);
}
.cookie-btn--accept:hover { background: var(--orange-dark); }
.cookie-btn--decline {
  background: transparent;
  color: var(--gray-300);
  border: 1px solid var(--gray-600);
}
.cookie-btn--decline:hover { border-color: var(--white); color: var(--white); }

/* ---- Blog Cards ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-card { display: flex; flex-direction: column; }
.blog-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
}
.blog-card__img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.blog-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.blog-card__cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
}
.blog-card__date { font-size: 13px; color: var(--gray-400); }
.blog-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
  color: var(--gray-900);
  margin-bottom: 10px;
  transition: var(--transition);
}
.blog-card:hover .blog-card__title { color: var(--blue); }
.blog-card__excerpt { font-size: 14px; color: var(--gray-600); line-height: 1.6; flex: 1; margin-bottom: 20px; }
.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}
.blog-card:hover .blog-card__link { color: var(--orange); gap: 10px; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,87,182,0.1);
}
.header-top { background: var(--blue); padding: 6px 0; }
.header-top__inner { display: flex; justify-content: space-between; align-items: center; }
.header-top__contact { display: flex; gap: 20px; font-size: 13px; color: rgba(255,255,255,0.85); }
.header-main { padding: 12px 0; }
.header-main__inner { display: flex; align-items: center; gap: 32px; }

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-text { font-family: var(--font-heading); font-size: 22px; font-weight: 800; line-height: 1; }
.logo-nar { color: var(--blue); }
.logo-ver { color: var(--gray-800); }
.logo-tld { color: var(--orange); font-size: 14px; font-weight: 600; }

/* Lang Switcher */
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.75); transition: var(--transition);
  background: transparent; border: 1px solid transparent;
}
.lang-btn:hover, .lang-btn.active {
  background: rgba(255,255,255,0.15); color: var(--white); border-color: rgba(255,255,255,0.3);
}

/* Main Nav */
.main-nav { flex: 1; }
.main-nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--gray-700);
  transition: var(--transition); white-space: nowrap;
}
.nav-link:hover, .nav-item:hover > .nav-link { color: var(--blue); background: rgba(0,87,182,0.05); }
.nav-arrow { transition: transform var(--transition); }
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* ---- Dropdown — hidden by default, shown on hover ---- */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  border: 1px solid var(--gray-100);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
  pointer-events: none;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius-sm); transition: var(--transition);
  text-decoration: none;
}
.dropdown-item:hover { background: var(--gray-50); }
.dropdown-icon { font-size: 22px; flex-shrink: 0; }
.dropdown-item strong { display: block; font-size: 14px; color: var(--gray-800); }
.dropdown-item span { font-size: 12px; color: var(--gray-400); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Burger */
.burger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 40px; height: 40px; padding: 8px;
}
.burger span { display: block; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed; top: 0; right: 0;
  width: 320px; height: 100vh;
  background: var(--white); z-index: 2000;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
  box-shadow: -4px 0 40px rgba(0,0,0,0.15);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--gray-100);
  background: var(--blue);
}
.mobile-nav__header .logo-nar,
.mobile-nav__header .logo-ver,
.mobile-nav__header .logo-tld { color: var(--white) !important; }
.mobile-close { color: rgba(255,255,255,0.8); font-size: 20px; padding: 4px 8px; }
.mobile-nav__links { flex: 1; padding: 16px; }
.mobile-section { margin-bottom: 20px; }
.mobile-section__label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-400); padding: 0 8px; margin-bottom: 8px;
}
.mobile-section a, .mobile-blog {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; color: var(--gray-700);
  transition: var(--transition); margin-bottom: 4px;
}
.mobile-section a:hover, .mobile-blog:hover { background: rgba(0,87,182,0.06); color: var(--blue); }
.mobile-blog { margin-top: 8px; }
.mobile-nav__footer { padding: 16px 20px; border-top: 1px solid var(--gray-100); }
.mobile-nav__footer .lang-switcher .lang-btn { color: var(--gray-600); border-color: var(--gray-200); }
.mobile-nav__footer .lang-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1999;
  opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.mobile-overlay.visible { opacity: 1; visibility: visible; }
[dir="rtl"] .mobile-nav { right: auto; left: 0; transform: translateX(-100%); }
[dir="rtl"] .mobile-nav.open { transform: translateX(0); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .burger { display: flex; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .btn--lg { padding: 15px 28px; font-size: 15px; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .header-top__contact { display: none; }
  .header-actions .btn { display: none; }
}

/* ---- Footer ---- */
.site-footer { background: var(--gray-900); color: var(--gray-300); margin-top: auto; }
.footer-main { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.4fr; gap: 48px; }
.footer-logo .logo-nar { color: var(--white); }
.footer-tagline { font-size: 14px; line-height: 1.7; color: var(--gray-400); margin-top: 16px; max-width: 280px; }
.footer-trust { display: flex; gap: 16px; margin-top: 24px; }
.trust-badge { text-align: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm); padding: 10px 14px; }
.trust-num { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 18px; color: var(--orange); }
.trust-label { font-size: 11px; color: var(--gray-400); }
.footer-col__title { font-family: var(--font-heading); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--gray-400); transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--orange); transform: translateX(4px); }
[dir="rtl"] .footer-links a:hover { transform: translateX(-4px); }
.footer-newsletter { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-newsletter h4 { font-family: var(--font-heading); font-size: 14px; color: var(--white); margin-bottom: 6px; }
.footer-newsletter p { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input { flex: 1; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.07); color: var(--white); font-size: 14px; font-family: var(--font-body); outline: none; transition: var(--transition); }
.newsletter-form input::placeholder { color: var(--gray-500); }
.newsletter-form input:focus { border-color: var(--orange); background: rgba(255,126,0,0.06); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 0; }
.footer-bottom__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-copy { font-size: 13px; color: var(--gray-500); }
.footer-legal { display: flex; gap: 20px; list-style: none; }
.footer-legal a { font-size: 13px; color: var(--gray-400); transition: var(--transition); }
.footer-legal a:hover { color: var(--orange); }
.footer-langs { display: flex; gap: 10px; font-size: 20px; }
.footer-langs a { transition: transform var(--transition); }
.footer-langs a:hover { transform: scale(1.2); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom__inner { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
}
