/* ===== VARIABLEN ===== */
:root {
  --primary: #1a56db;
  --primary-dark: #1240a8;
  --primary-light: #eff6ff;
  --accent: #f59e0b;
  --text-dark: #111827;
  --text-mid: #374151;
  --text-light: #6b7280;
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-section: #f3f4f6;
  --border: #e5e7eb;
  --success: #059669;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --transition: all 0.2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1f2937;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}
#cookie-banner p { font-size: 0.875rem; flex: 1; }
#cookie-banner a { color: #93c5fd; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-cookie-accept:hover { background: var(--primary-dark); }
.btn-cookie-decline {
  background: transparent;
  color: #d1d5db;
  border: 1px solid #4b5563;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: var(--transition);
}
.btn-cookie-decline:hover { border-color: #9ca3af; color: #fff; }

/* ===== NAVIGATION ===== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
header.scrolled { box-shadow: var(--shadow); }
nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo span { color: var(--text-dark); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { transform: scaleX(1); }
.btn-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}
.btn-nav:hover { background: var(--primary-dark) !important; }
.btn-nav::after { display: none !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== HERO ===== */
#hero {
  background: linear-gradient(135deg, #eff6ff 0%, #fff 50%, #f0fdf4 100%);
  padding: 96px 24px 80px;
  text-align: center;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
#hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}
#hero h1 span { color: var(--primary); }
#hero p {
  font-size: 1.125rem;
  color: var(--text-mid);
  margin-bottom: 40px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(26,86,219,0.35);
  display: inline-block;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,86,219,0.45); }
.btn-secondary {
  background: #fff;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--primary);
  transition: var(--transition);
  display: inline-block;
}
.btn-secondary:hover { background: var(--primary-light); transform: translateY(-1px); }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.875rem; color: var(--text-light); }

/* ===== SECTIONS ALLGEMEIN ===== */
section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.section-sub {
  color: var(--text-light);
  font-size: 1.0625rem;
  max-width: 520px;
  margin-bottom: 56px;
}
.section-header { text-align: center; }
.section-header .section-sub { margin-left: auto; margin-right: auto; }

/* ===== VORTEILE ===== */
#vorteile { background: var(--bg-white); }
.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.vorteil-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.vorteil-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #bfdbfe; }
.vorteil-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.vorteil-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 8px; }
.vorteil-card p { font-size: 0.9375rem; color: var(--text-light); line-height: 1.5; }

/* ===== PAKETE ===== */
#pakete { background: var(--bg-section); }
.pakete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: start;
}
.paket-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  transition: var(--transition);
}
.paket-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.paket-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,86,219,0.1);
}
.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.paket-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.paket-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.paket-price span { font-size: 1.25rem; font-weight: 600; color: var(--text-light); vertical-align: super; }
.paket-vat { font-size: 0.8125rem; color: var(--text-light); margin-bottom: 24px; }
.paket-divider { height: 1px; background: var(--border); margin-bottom: 24px; }
.paket-features { margin-bottom: 32px; }
.paket-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-mid);
  padding: 6px 0;
}
.paket-features li .check {
  color: var(--success);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.btn-paket {
  display: block;
  text-align: center;
  padding: 13px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: var(--transition);
  border: 2px solid var(--primary);
}
.paket-card:not(.popular) .btn-paket { color: var(--primary); }
.paket-card:not(.popular) .btn-paket:hover { background: var(--primary-light); }
.paket-card.popular .btn-paket { background: var(--primary); color: #fff; }
.paket-card.popular .btn-paket:hover { background: var(--primary-dark); }
.paket-hinweis {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ===== KONTAKT ===== */
#kontakt { background: var(--bg-white); }
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.kontakt-info h2 { font-size: 1.625rem; font-weight: 800; margin-bottom: 14px; }
.kontakt-info p { color: var(--text-mid); margin-bottom: 32px; line-height: 1.6; }
.kontakt-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
}
.kontakt-detail .icon {
  width: 40px; height: 40px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.kontakt-detail a { color: var(--primary); }
.kontakt-detail a:hover { text-decoration: underline; }
.map-container {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 200px;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ===== FORMULAR ===== */
.kontakt-form-wrapper {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9375rem;
  background: #fff;
  color: var(--text-dark);
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-dsgvo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.form-dsgvo input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--primary); }
.form-dsgvo label { font-size: 0.8125rem; color: var(--text-light); }
.form-dsgvo a { color: var(--primary); text-decoration: underline; }
.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  color: var(--success);
}
.form-success .success-icon { font-size: 3rem; margin-bottom: 12px; }
.form-success h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.form-success p { color: var(--text-mid); font-size: 0.9375rem; }

/* ===== FOOTER ===== */
footer {
  background: #1f2937;
  color: #d1d5db;
  padding: 56px 24px 32px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #374151;
  margin-bottom: 32px;
}
.footer-brand .logo { font-size: 1.375rem; margin-bottom: 12px; display: block; }
.footer-brand .logo span { color: #fff; }
.footer-brand p { font-size: 0.875rem; color: #9ca3af; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 0.875rem; font-weight: 700; color: #f9fafb; margin-bottom: 16px; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: #9ca3af; transition: color 0.2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: #6b7280;
}
.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: #fff; }

/* ===== IMPRESSUM MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--bg-section);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  transition: var(--transition);
}
.modal-close:hover { background: var(--border); }
.modal h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; }
.modal h3 { font-size: 1rem; font-weight: 700; margin: 20px 0 8px; }
.modal p, .modal address { font-size: 0.9375rem; color: var(--text-mid); line-height: 1.7; font-style: normal; }
.modal a { color: var(--primary); }

/* ===== LOGIN SEITE ===== */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
}
.login-logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); text-align: center; margin-bottom: 8px; }
.login-logo span { color: var(--text-dark); }
.login-subtitle { text-align: center; font-size: 0.9rem; color: var(--text-light); margin-bottom: 36px; }
.login-card .form-group { margin-bottom: 18px; }
.btn-login {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}
.btn-login:hover { background: var(--primary-dark); }
.login-back {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-light);
}
.login-back a { color: var(--primary); font-weight: 600; }
.login-back a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 16px 24px 24px; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--bg-section); }
  .nav-links a:last-child { border-bottom: none; }
  .btn-nav { padding: 12px 0; text-align: center; border-bottom: none !important; }
  header { position: relative; }
  .hamburger { display: flex; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1; }
  .login-card { padding: 36px 24px; }
}
@media (max-width: 480px) {
  section { padding: 60px 16px; }
  .pakete-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
}
