/* ===== FONTS (self-hosted, DSGVO) ===== */
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans-Regular.woff2') format('woff2'), url('/fonts/DMSans-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans-Medium.woff2') format('woff2'), url('/fonts/DMSans-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans-Bold.woff2') format('woff2'), url('/fonts/DMSans-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/Fraunces-SemiBold.woff2') format('woff2'), url('/fonts/Fraunces-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

/* ===== CSS VARIABLES ===== */
:root {
  --frost-50: #eff6ff; --frost-100: #dbeafe; --frost-200: #bfdbfe;
  --frost-300: #93c5fd; --frost-400: #60a5fa; --frost-500: #3b82f6;
  --frost-600: #2563eb; --frost-700: #1d4ed8;
  --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0;
  --slate-300: #cbd5e1; --slate-400: #94a3b8; --slate-500: #64748b;
  --slate-600: #374151; --slate-800: #1e293b; --slate-900: #0f172a;
  --emerald-500: #10b981; --emerald-600: #059669; --emerald-700: #047857;
  --amber-500: #f59e0b;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}
@keyframes waPulse {
  0% { box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 0 rgba(37,211,102,0); }
}
@keyframes slideInBottom {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--slate-900);
  background: var(--slate-50);
  line-height: 1.8;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; line-height: 1.3; }
a { color: var(--frost-600); text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
.nav { background: rgba(255,255,255,0.95); border-bottom: 1px solid var(--slate-200); padding: 12px 0; position: sticky; top: 0; z-index: 100; transition: box-shadow 0.3s; min-height: 56px; will-change: box-shadow; }
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav .container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 600; color: var(--slate-900); }
.nav-logo span { color: var(--frost-600); }
.nav-links { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-links a { color: var(--slate-600); font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--frost-600); text-decoration: none; }
.nav-cta { background: var(--frost-600); color: #fff !important; padding: 7px 16px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; transition: background 0.2s, transform 0.2s; }
.nav-cta:hover { background: var(--frost-700); text-decoration: none !important; transform: translateY(-1px); }

/* Hamburger menu */
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--slate-900); padding: 4px 8px; line-height: 1; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 12px 0; font-size: 0.85rem; color: var(--slate-600); }
.breadcrumb a { color: var(--slate-600); }
.breadcrumb span { margin: 0 6px; }

/* ===== HERO (shared base) ===== */
.hero { background: linear-gradient(135deg, var(--slate-900) 0%, #0B1D3A 50%, #0D2847 100%); color: #fff; padding: 72px 0 88px; min-height: 420px; contain: layout; }
.hero h1 { font-size: 2.8rem; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--frost-300); }
.hero-sub { font-size: 1.15rem; color: var(--slate-400); max-width: 700px; margin-bottom: 40px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 680px; }
.hero-stat { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 20px; text-align: center; transition: background 0.3s, border-color 0.3s; }
.hero-stat:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.hero-stat-value { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 600; color: var(--frost-300); }
.hero-stat-label { font-size: 0.85rem; color: var(--slate-400); margin-top: 4px; }

/* Live indicator */
.live-dot { display: inline-block; width: 8px; height: 8px; background: #10b981; border-radius: 50%; margin-right: 6px; animation: pulse 2s infinite; vertical-align: middle; }

/* Update badge */
.update-badge { display: inline-block; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; color: var(--slate-400); margin-top: 16px; }
.update-badge--light { background: var(--frost-50); border: 1px solid var(--frost-200); color: var(--frost-600); }

/* ===== SECTIONS ===== */
.section { padding: 72px 0; contain: layout; }
.section-alt { background: #fff; }
.section h2 { font-size: 1.8rem; margin-bottom: 16px; }
.section-intro { font-size: 1.05rem; color: var(--slate-600); margin-bottom: 36px; max-width: 720px; }

/* ===== CTA ===== */
.cta-btn { display: inline-block; background: var(--frost-600); color: #fff; padding: 14px 36px; border-radius: 10px; font-weight: 700; font-size: 1.05rem; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; }
.cta-btn:hover { background: var(--frost-700); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(13,95,184,0.25); }
.cta-section { background: linear-gradient(135deg, var(--slate-900), #0D2847); color: #fff; padding: 72px 0; text-align: center; }
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: var(--slate-400); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== WHATSAPP STICKY ===== */
.wa-sticky { position: fixed; bottom: 24px; right: 24px; width: 60px; height: 60px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.2); z-index: 99; transition: transform 0.2s; }
.wa-sticky:hover { transform: scale(1.12); text-decoration: none; }
.wa-sticky svg { width: 30px; height: 30px; fill: #fff; }
/* WhatsApp tooltip */
.wa-tooltip { position: absolute; right: 72px; top: 50%; transform: translateY(-50%); background: #fff; color: var(--slate-800); padding: 8px 14px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; white-space: nowrap; box-shadow: 0 2px 12px rgba(0,0,0,0.12); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.wa-tooltip::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left-color: #fff; }
.wa-sticky:hover .wa-tooltip { opacity: 1; }
.wa-tooltip.show-initial { animation: fadeIn 0.5s ease-out 3s both; }

/* ===== MOBILE CTA BAR ===== */
.mobile-cta-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: #fff; border-top: 1px solid var(--slate-200); padding: 10px 16px; display: none; align-items: center; justify-content: center; gap: 12px; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); transform: translateY(100%); transition: transform 0.3s ease; }
.mobile-cta-bar .cta-btn { padding: 12px 24px; font-size: 0.95rem; flex: 1; text-align: center; }
.mobile-cta-bar .wa-btn-mobile { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: #25D366; border-radius: 10px; flex-shrink: 0; }
.mobile-cta-bar .wa-btn-mobile svg { width: 24px; height: 24px; fill: #fff; }

/* ===== FOOTER (full version) ===== */
.footer { background: var(--slate-900); color: var(--slate-300); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer h4, .footer .footer-title { color: #fff; font-size: 0.95rem; margin-bottom: 12px; font-family: 'DM Sans', sans-serif; display: block; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--slate-300); font-size: 0.9rem; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; }
/* Simple footer variant (legal pages) */
.footer-simple { background: var(--slate-900); color: var(--slate-300); padding: 32px 0; text-align: center; font-size: 0.85rem; }
.footer-simple a { color: var(--slate-300); }

/* ===== INSIDER TIP ===== */
.insider-tip { background: linear-gradient(135deg, var(--frost-50), #f0f0ff); border-left: 4px solid var(--frost-500); border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 32px 0; transition: box-shadow 0.3s; }
.insider-tip:hover { box-shadow: 0 4px 16px rgba(26,124,230,0.1); }
.insider-tip-title { font-weight: 700; color: var(--frost-600); margin-bottom: 6px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ===== TABLES (shared base) ===== */
.table-wrap { overflow-x: auto; margin-bottom: 32px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
thead { background: var(--slate-900); color: #fff; }
th { padding: 14px 16px; text-align: left; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
td { padding: 14px 16px; border-bottom: 1px solid var(--slate-100); font-size: 0.95rem; }
tr:last-child td { border-bottom: none; }
tr:hover { background: #f8fafc; }
.salary-highlight { font-weight: 700; color: var(--frost-600); }

/* ===== LEGAL PAGE CONTENT ===== */
.content { padding: 48px 0 80px; }
.content h1 { font-size: 2rem; margin-bottom: 12px; }
.content h2 { font-size: 1.3rem; margin-top: 32px; margin-bottom: 12px; }
.content h3 { font-size: 1.1rem; margin-top: 20px; margin-bottom: 8px; }
.content p, .content li { color: var(--slate-600); margin-bottom: 12px; }
.content ul { padding-left: 20px; margin-bottom: 12px; }
.update-date { color: var(--slate-600); font-size: 0.9rem; margin-bottom: 32px; }

/* ===== NAV BACK LINK (legal pages) ===== */
.nav-back { color: var(--slate-600); font-size: 0.9rem; }

/* ===== FOOTER CONTAINER MAX-WIDTH (legal pages) ===== */
.footer-container-wide { max-width: 1120px; }

/* ===== FOCUS STYLES ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* ===== LINK DISTINGUISHABILITY ===== */
p a, .section-intro a, .content a, li a:not(.nav-cta):not(.city-link):not(.card):not(.cta-btn),
main a:not(.btn):not(.nav-links a):not(.card):not(.city-link):not(.related-card):not(.job-card):not(.faq-question):not(.cta-btn):not(.calc-cta):not(.nav-cta):not(.job-cta):not(.nav-logo) {
  text-decoration: underline;
  text-decoration-color: var(--frost-200);
  text-underline-offset: 2px;
}
main a:not(.btn):not(.nav-links a):not(.card):not(.city-link):not(.related-card):not(.job-card):not(.faq-question):not(.cta-btn):not(.calc-cta):not(.nav-cta):not(.job-cta):not(.nav-logo):hover {
  text-decoration-color: var(--frost-500);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 56px 0 64px; min-height: 360px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--slate-200); padding: 16px 24px; gap: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; min-height: 44px; min-width: 44px; padding: 8px 12px; }
  .section { padding: 48px 0; }
  .mobile-cta-bar { display: flex; }
  .wa-sticky { bottom: 80px; right: 16px; width: 48px; height: 48px; }
  .wa-sticky svg { width: 24px; height: 24px; }
  .wa-tooltip, .wa-tooltip.show-initial { display: none !important; opacity: 0 !important; animation: none !important; }
  .footer { padding-bottom: 80px; }
}

@media (min-width: 769px) {
  .hero h1 { font-size: 2.8rem; }
}
