/* JFR Finanz – styles.css (FINAL POLISH) */

:root {
  --brand-dark: #0f172a;
  --brand-primary: #0066cc;
  --brand-accent: #38bdf8;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --surface-glass: rgba(255, 255, 255, 0.9);
  --border: #e2e8f0;
  
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  
  --max-width: 1200px;
}

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #f8fafc;
  color: var(--text-main);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }

/* --- 1. NAVIGATION (Glass) --- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  height: 80px; display: flex; align-items: center;
}
.navbar {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.4rem; color: var(--brand-dark); }
.brand-tagline { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }

.nav-center { display: flex; gap: 8px; align-items: center; margin-left: 40px; }
.nav-link { padding: 10px 18px; font-weight: 600; color: var(--text-main); font-size: 0.95rem; border-radius: 12px; }
.nav-link:hover { background: rgba(0, 102, 204, 0.08); color: var(--brand-primary); }
.nav-link.active { background: var(--brand-primary); color: white; }

/* Mega Menu */
.mega-wrapper { position: relative; }
.mega-btn { background: none; border: none; font: inherit; font-weight: 600; cursor: pointer; padding: 10px 18px; border-radius: 12px; display: flex; align-items: center; gap: 6px; color: var(--text-main); }
.mega-btn:hover { background: rgba(0,0,0,0.04); }
.mega-dropdown { position: absolute; top: 140%; left: -100px; width: 650px; background: white; border-radius: 20px; padding: 30px; box-shadow: var(--shadow-hover); border: 1px solid rgba(0,0,0,0.06); opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.25s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.mega-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-col h4 { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); margin: 0 0 16px 0; font-weight: 700; }
.mega-link { display: block; padding: 8px 12px; margin: 0 -12px; border-radius: 8px; color: var(--brand-dark); font-weight: 500; }
.mega-link:hover { background: #f1f5f9; color: var(--brand-primary); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header-cta { background: var(--brand-dark); color: white; padding: 12px 24px; border-radius: 99px; font-weight: 600; transition: transform 0.2s; }
.header-cta:hover { transform: translateY(-2px); background: black; }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; font-size: 1.5rem; cursor: pointer; border: 1px solid #ddd; border-radius: 8px; }

/* Mobile Drawer */
.mobile-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s; }
.mobile-backdrop.open { opacity: 1; visibility: visible; }
.mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 85%; max-width: 320px; background: white; z-index: 2001; padding: 24px; transform: translateX(100%); transition: 0.35s; display: flex; flex-direction: column; }
.mobile-drawer.open { transform: translateX(0); }
.mobile-link { font-size: 1.1rem; font-weight: 600; color: var(--brand-dark); padding: 16px 0; border-bottom: 1px solid #eee; }

/* --- 2. BUTTONS & HERO FIXES (Wichtig!) --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 99px; font-weight: 600; cursor: pointer; border: none; transition: 0.2s; font-size: 1rem;
}

/* Standard Buttons (Weißer Hintergrund) */
.btn.primary { background: var(--brand-primary); color: white; box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3); }
.btn.primary:hover { background: #0050e0; transform: translateY(-2px); }

.btn.secondary { background: white; color: var(--brand-primary) !important; border: 2px solid var(--brand-primary); }
.btn.secondary:hover { background: var(--brand-primary); color: white !important; }

/* SPEZIAL: Hero Buttons (Dunkler Hintergrund) */
.hero .btn.primary {
  background: white; 
  color: var(--brand-primary); /* Blau auf Weiß */
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hero .btn.primary:hover { background: #f0f9ff; transform: translateY(-2px); }

.hero .btn.secondary {
  background: transparent; 
  color: white !important; 
  border: 1px solid rgba(255,255,255,0.6);
}
.hero .btn.secondary:hover { 
  background: rgba(255,255,255,0.1); 
  border-color: white; 
}

/* --- 3. SECTIONS & CONTENT --- */
.section { padding: 80px 0; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.card { background: white; border-radius: 16px; padding: 32px; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.card ul { padding-left: 20px; margin-bottom: 24px; }
.card li { margin-bottom: 8px; }

/* Hero Section */
.hero {
  background: radial-gradient(circle at 10% 20%, #0066cc 0%, #0f172a 90%);
  color: white; padding: 100px 0 120px;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 800; line-height: 1.1; margin-bottom: 24px; color: white; }
.hero-check { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-check-item { background: rgba(255,255,255,0.1); backdrop-filter: blur(4px); padding: 8px 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,0.2); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; color: white; }

/* Wizard */
.wizard-container { background: white; max-width: 700px; margin: -60px auto 50px; padding: 40px; border-radius: 24px; box-shadow: var(--shadow-hover); position: relative; z-index: 10; border: 1px solid var(--border); }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0; }
.option-card { border: 2px solid #e2e8f0; border-radius: 16px; padding: 24px; text-align: center; cursor: pointer; transition: 0.2s; }
.option-card:hover { border-color: var(--brand-primary); background: #f0f9ff; }
.option-card.selected { border-color: var(--brand-primary); background: #eff6ff; color: var(--brand-primary); }
.option-icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.option-label { font-weight: 700; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 30px; }
.btn-next { background: var(--brand-dark); color: white; padding: 14px 32px; border-radius: 12px; font-weight: 600; cursor: pointer; border: none; }

/* Utilities */
.grid { display: grid; gap: 32px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.usp-card { background: white; padding: 32px; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: var(--shadow-card); }
.usp-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.field { margin-bottom: 20px; }
label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }
input, select, textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid #cbd5e1; font-size: 1rem; background: white; font-family: inherit; }
input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1); }
.checkbox-wrapper { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; font-size: 0.9rem; cursor: pointer; }
.checkbox-wrapper input { width: 20px; height: 20px; margin-top: 3px; }
.skip-link { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer (WICHTIG!) */
.site-footer {
  background: var(--brand-dark); 
  color: #94a3b8; 
  padding: 60px 0 40px; 
  margin-top: auto;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.site-footer a { color: #cbd5e1; margin: 0 12px; text-decoration: none; transition: 0.2s; }
.site-footer a:hover { color: white; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }

@media (max-width: 1024px) {
  .nav-center, .nav-right .header-cta { display: none; }
  .burger { display: flex; margin-left: auto; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}