/* ========================================================================
   LUMIS ENERGIE — main.css  (Design-Update FINAL_3)
   Navy + Orange · Inter · Mobile-First · Nav (Navy) · Footer · Buttons
   ======================================================================== */

/* ── Design-Tokens ───────────────────────────────────────────────────── */
:root {
  /* Neue Kern-Palette (Navy exakt = Logo-Hintergrund #121F3B) */
  --navy:          #121F3B;
  --navy-mid:      #1A2A4A;
  --navy-light:    #24365C;
  --orange:        #E8500A;
  --orange-hover:  #CC4508;
  --orange-tint:   rgba(232,80,10,0.10);
  --white:         #FFFFFF;
  --off-white:     #F8F7F5;
  --border:        #E5E3DE;
  --text:          #111827;
  --muted:         #6B7280;
  --green:         #22C55E;

  /* Alias-Tokens (bestehende Regeln nutzen diese weiter) */
  --lumis-orange:        var(--orange);
  --lumis-orange-dark:   var(--orange-hover);
  --lumis-orange-light:  var(--orange-tint);
  --lumis-cream:         var(--off-white);
  --lumis-white:         var(--white);
  --lumis-text:          var(--text);
  --lumis-text-muted:    var(--muted);
  --lumis-green:         var(--green);
  --lumis-green-bg:      #F0FDF4;
  --lumis-border:        var(--border);
  --lumis-accent-bg:     #F1F1EF;
  --lumis-newsletter-bg: #F1F1EF;
  --lumis-slot-free:     var(--orange);
  --lumis-slot-free-bg:  var(--orange-tint);
  --lumis-day-dot:       var(--orange);
  --lumis-day-disabled:  #C7CBD1;

  --lumis-radius-sm: 8px;
  --lumis-radius-md: 12px;
  --lumis-radius-lg: 20px;

  --lumis-shadow:    0 2px 14px rgba(15,23,41,0.07);
  --lumis-shadow-lg: 0 14px 40px rgba(15,23,41,0.14);

  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;

  --container: 1160px;
}

/* ── Reset ───────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem; line-height: 1.7; color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

/* ── Typografie (Inter, kraeftige Headlines) ─────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
.text-hero  { font-family: var(--font-display); font-size: clamp(26px, 7vw, 54px); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; }
.text-h1    { font-family: var(--font-display); font-size: clamp(26px, 5vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.text-h2    { font-family: var(--font-display); font-size: clamp(22px, 4vw, 32px); font-weight: 800; line-height: 1.18; letter-spacing: -0.02em; }
.text-h3    { font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; line-height: 1.25; }
.text-body  { font-size: 1rem; font-weight: 400; line-height: 1.7; }
.text-large { font-size: 1.125rem; font-weight: 400; line-height: 1.65; }
.text-small { font-size: 0.875rem; font-weight: 400; line-height: 1.6; }
.text-label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.text-button{ font-size: 1rem; font-weight: 600; }
h1 { font-size: clamp(26px, 7vw, 40px); }
h2 { font-size: clamp(22px, 4vw, 32px); }
h3 { font-size: clamp(18px, 2.4vw, 24px); }
h4 { font-size: 1.05rem; font-weight: 700; }
p { color: var(--text); }
.muted { color: var(--muted); }
.accent { color: var(--orange); }

/* ── Layout-Helfer ───────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.text-center { text-align: center; }
.grid { display: grid; gap: 20px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  border: none; border-radius: var(--lumis-radius-md); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 16px rgba(232,80,10,0.28); }
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(232,80,10,0.34); }
.btn-secondary { background: var(--white); color: var(--orange); border: 1.5px solid var(--orange); }
.btn-secondary:hover { background: var(--orange-tint); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { color: var(--orange); }
.btn-block { width: 100%; }

.btn-pulse { position: relative; }
.btn-pulse::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--lumis-radius-md);
  box-shadow: 0 0 0 0 rgba(232,80,10,0.5); animation: lumis-pulse 2.2s infinite;
}
@keyframes lumis-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,80,10,0.5); }
  70%  { box-shadow: 0 0 0 16px rgba(232,80,10,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,80,10,0); }
}

/* ── Header / Nav (Navy) ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.2rem; }
.logo-img { height: 56px; width: auto; display: block; }
@media (max-width: 639px) { .logo-img { height: 46px; } }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: var(--lumis-radius-sm); font-weight: 500; color: rgba(255,255,255,0.82); transition: background .15s, color .15s; }
.nav-links a:not(.btn):hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-cta { margin-left: 6px; }

.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Mobile Fullscreen-Overlay */
.nav-overlay { position: fixed; inset: 0; background: rgba(15,23,41,0.6); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 199; }
.nav-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; right: 0; height: 100%; width: 86%; max-width: 360px;
  background: var(--navy); z-index: 200; padding: 22px 24px;
  transform: translateX(100%); transition: transform .28s ease; box-shadow: -8px 0 40px rgba(0,0,0,0.4);
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mobile-menu-head .nav-logo { color: #fff; }
.mobile-menu a { padding: 14px 12px; border-radius: var(--lumis-radius-sm); font-weight: 600; font-size: 1.15rem; color: rgba(255,255,255,0.9); }
.mobile-menu a:not(.btn):hover { background: rgba(255,255,255,0.08); color: #fff; }
.mobile-menu .btn { margin-top: 12px; }
.menu-close { width: 42px; height: 42px; border: none; background: rgba(255,255,255,0.1); border-radius: var(--lumis-radius-sm); font-size: 22px; color: #fff; }

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ── Footer (Navy) ───────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: #c3c9d4; padding: 48px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-col h4 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; color: #aab2c0; padding: 4px 0; font-size: 0.95rem; }
.footer-col a:hover { color: var(--orange); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 12px; }
.footer-brand .logo-img { height: 38px; }
.footer-col address { font-style: normal; color: #aab2c0; font-size: 0.95rem; line-height: 1.7; }
.footer-mini-form { display: flex; gap: 8px; margin-top: 12px; }
.footer-mini-form input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--navy-light); background: var(--navy-mid); color: #fff; border-radius: var(--lumis-radius-sm); font-family: var(--font-body); }
.footer-mini-form input::placeholder { color: #7f889a; }
.footer-mini-form button { padding: 11px 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #8892a3; }
.footer-bottom a { color: #8892a3; }
.footer-bottom a:hover { color: var(--orange); }

@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { display: flex; flex-direction: column; gap: 24px; } }

/* ── Cards & Utilities ───────────────────────────────────────────────── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--lumis-radius-md); padding: 24px; box-shadow: var(--lumis-shadow); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--lumis-green-bg); color: #15803d; }
.eyebrow { color: var(--orange); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Scroll-Animationen (.fade-in + .animate-in) ─────────────────────── */
.fade-in, .animate-in { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible, .animate-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in, .animate-in { opacity: 1; transform: none; transition: none; }
  .btn-pulse::after { animation: none; }
  html { scroll-behavior: auto; }
  .e-line, .orb, [id="hero-particles"] * { animation: none !important; }
}

/* ── Cookie-Banner ───────────────────────────────────────────────────── */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 150; background: var(--white); border-top: 1px solid var(--border); box-shadow: 0 -4px 24px rgba(0,0,0,0.1); padding: 18px 20px; transform: translateY(120%); transition: transform .35s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.cookie-inner p { font-size: 0.9rem; flex: 1; min-width: 240px; }
.cookie-inner p a { color: var(--orange); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { min-height: 44px; padding: 10px 20px; }
@media (max-width: 640px) { .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1; } }

/* ══ MOBILE-FIRST GLOBALS ════════════════════════════════════════════ */

/* Touch-Targets min. 44x44 auf Mobile */
@media (max-width: 639px) {
  .btn, .nav-toggle, .menu-close, .tr-tab, .tr-type label,
  .slot-chip, .cal-day.available, .cal-nav-btn, .faq-q { min-height: 44px; }
}

/* iOS-Zoom verhindern: Inputs auf Mobile 16px, Desktop 14–16px */
input, select, textarea { font-size: 16px; }
@media (min-width: 640px) { input, select, textarea { font-size: 15px; } }

/* ══ CLEAN CALC-WIDGET (Lumis-Eingabefeld, ersetzt CommunikAds-Formular) ══ */
.calc-hero { background: var(--navy); padding: 30px 0 76px; }
.calc-widget {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--lumis-shadow-lg); padding: 24px 26px;
}
.calc-hero .calc-widget { margin-bottom: -60px; }  /* Karte ragt in den hellen Bereich */
.cw-pills { display: inline-flex; gap: 4px; background: var(--off-white); padding: 5px; border-radius: 999px; margin-bottom: 20px; }
.cw-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border: none; background: transparent; border-radius: 999px; font-weight: 700; color: var(--muted); font-size: 0.98rem; transition: background .15s, color .15s; }
.cw-pill.active { background: var(--navy); color: #fff; }
.cw-fields { display: grid; grid-template-columns: 1.2fr 1.2fr auto auto; gap: 16px; align-items: end; }
.cw-field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.cw-field > input { width: 100%; min-height: 56px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 14px; font-size: 1.05rem; font-weight: 600; color: var(--text); background: #fff; }
.cw-field > input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); }
.cw-input-suffix { position: relative; }
.cw-input-suffix input { width: 100%; min-height: 56px; padding: 14px 52px 14px 16px; border: 1.5px solid var(--border); border-radius: 14px; font-size: 1.05rem; font-weight: 600; color: var(--text); }
.cw-input-suffix input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); }
.cw-input-suffix span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.cw-stepper { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 56px; border: 1.5px solid var(--border); border-radius: 14px; padding: 0 8px; }
.cw-stepper button { width: 40px; height: 40px; border: none; background: var(--off-white); border-radius: 10px; font-size: 20px; font-weight: 700; color: var(--navy); display: flex; align-items: center; justify-content: center; }
.cw-stepper button:hover { background: var(--orange-tint); color: var(--orange); }
.cw-persons-val { min-width: 30px; text-align: center; font-weight: 700; font-size: 1.1rem; }
.cw-submit { min-height: 56px; white-space: nowrap; padding: 14px 28px; font-size: 1.02rem; }
.cw-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.cw-trust span { display: inline-flex; align-items: center; gap: 7px; }
.cw-trust span::before { content: '✓'; color: var(--orange); font-weight: 800; }
.cw-error { color: #dc2626; font-size: 0.85rem; margin-top: 10px; display: none; font-weight: 500; }
.cw-error.show { display: block; }

/* Ergebnis-Kopf */
.results-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.results-head .cw-summary { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.results-head .cw-summary strong { color: var(--text); }

@media (max-width: 720px) {
  .cw-fields { grid-template-columns: 1fr 1fr; }
  .cw-submit-field { grid-column: 1 / -1; }
  .cw-submit { width: 100%; }
  .calc-hero { padding: 22px 0 64px; }
}
@media (max-width: 420px) {
  .cw-trust { gap: 8px 16px; font-size: 0.8rem; }
}
