/**
 * JP Webstudio — Global Stylesheet
 * Design System: Forest/Gold/Cream
 * Version: 2.0 · April 2026
 * ─────────────────────────────────
 * Contains: Design Tokens, Typography, Navigation,
 * Mobile Menu, Buttons, Section System, Footer,
 * Modals, FAQ, Cookie Banner, Mobile CTA, Responsive
 */

/* ═══════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════ */
:root {
  --forest-deep: #1a3a2e;
  --forest-mid: #2d5442;
  --forest-light: #3d6b55;
  --gold: #c8a84b;
  --gold-light: #e8c870;
  --cream: #fafaf8;
  --cream-dark: #f4f3ef;
  --ink: #1a1a18;
  --ink-muted: #5a5a52;
  --rust: #b84c2a;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  --radius: 4px;
  --radius-lg: 12px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 4px 24px rgba(26,58,46,0.12);
  --shadow-lg: 0 20px 60px rgba(26,58,46,0.18);

  --section-pad: 96px 8%;
  --section-pad-mobile: 64px 5%;
}

/* ═══════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; overflow-x: hidden; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ═══════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 70px; padding: 0 6%;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.3s ease;
}
nav.scrolled {
  height: 62px;
  background: rgba(26,58,46,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--cream); letter-spacing: -0.02em;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  list-style: none; display: flex;
  align-items: center; gap: 28px;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: rgba(250,250,248,0.82);
  transition: color 0.2s; letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-links a.is-current { color: var(--gold); }
.nav-price, .nav-score {
  color: var(--gold) !important; font-weight: 600 !important;
}
.nav-phone {
  font-family: var(--font-mono) !important;
  font-size: 13px !important;
  color: rgba(250,250,248,0.6) !important;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px;
  background: var(--gold); color: var(--forest-deep);
  font-weight: 700; font-size: 14px;
  border-radius: 2px; transition: all var(--transition);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(200,168,75,0.35);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: all 0.3s;
}

/* ── Nav Dropdowns ── */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; user-select: none; }
.nav-dropdown-menu {
  display: none; position: absolute;
  top: calc(100% + 12px); left: 0;
  min-width: 220px; padding: 8px 0;
  background: rgba(26,58,46,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(200,168,75,0.15);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  z-index: 1001;
}
.nav-dropdown-menu-wide { min-width: 260px; }
.nav-dropdown-menu.is-open { display: block; }
.nav-dropdown-menu li { list-style: none; }
.nav-dropdown-menu li a {
  display: block; padding: 9px 20px;
  font-size: 13px; color: rgba(250,250,248,0.8);
  transition: all 0.2s;
}
.nav-dropdown-menu li a:hover {
  background: rgba(200,168,75,0.12);
  color: var(--gold); padding-left: 26px;
}

/* ── Leistungen Mega-Dropdown ── */
.nav-dropdown-leistungen {
  display: none; position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 520px; padding: 20px 8px;
  background: rgba(26,58,46,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(200,168,75,0.15);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  z-index: 1001;
}
.nav-dropdown-leistungen.is-open {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.nav-dropdown-category {
  display: flex; flex-direction: column; padding: 12px 16px;
}
.nav-cat-label {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(200,168,75,0.15);
}
.nav-dropdown-category a {
  display: block; padding: 7px 12px;
  font-size: 13px; color: rgba(250,250,248,0.8);
  border-radius: 4px; transition: all 0.2s;
}
.nav-dropdown-category a:hover {
  background: rgba(200,168,75,0.1);
  color: var(--gold); padding-left: 16px;
}

/* ═══════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════ */
.mobile-menu {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--forest-deep); z-index: 999;
  flex-direction: column; justify-content: center;
  align-items: center; gap: 20px; overflow-y: auto;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 18px; color: rgba(250,250,248,0.85);
  font-family: var(--font-body);
  padding: 8px 0; transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu-panel { width: 90%; max-width: 400px; }
.mobile-menu-header {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 32px;
}
.mobile-menu-brand {
  font-family: var(--font-display);
  font-size: 22px; color: var(--cream);
}
.mobile-menu-brand span { color: var(--gold); }
.close-btn {
  font-size: 28px; color: var(--cream);
  cursor: pointer; background: none; border: none;
}
.mobile-menu-section {
  margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(200,168,75,0.15);
}
.mobile-primary {
  display: inline-flex; align-items: center;
  justify-content: center; gap: 8px;
  margin-top: 8px; padding: 14px 24px;
  background: var(--gold);
  color: var(--forest-deep) !important;
  font-weight: 700; border-radius: 2px;
  font-size: 15px !important;
}

/* ═══════════════════════════════════
   BUTTONS
   ═══════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  background: var(--gold); color: var(--forest-deep);
  font-family: var(--font-body);
  font-weight: 700; font-size: 15px;
  border-radius: 2px; border: none;
  cursor: pointer; transition: all var(--transition);
  position: relative; overflow: hidden;
  white-space: nowrap; text-decoration: none;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200,168,75,0.4);
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; background: transparent;
  color: rgba(250,250,248,0.8);
  font-weight: 600; font-size: 15px;
  border: 1px solid rgba(250,250,248,0.25);
  border-radius: 2px; cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--gold); color: var(--gold);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; background: transparent;
  color: var(--forest-deep);
  font-weight: 700; font-size: 15px;
  border-radius: 2px;
  border: 2px solid var(--forest-deep);
  transition: all var(--transition);
  cursor: pointer; text-decoration: none;
}
.btn-outline:hover {
  background: var(--forest-deep); color: var(--cream);
}

/* ═══════════════════════════════════
   SECTION SYSTEM
   ═══════════════════════════════════ */
section { padding: var(--section-pad); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.section-eyebrow::before {
  content: ''; display: inline-block;
  width: 20px; height: 1px; background: var(--gold);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15; color: var(--ink);
  margin-bottom: 20px;
}
.section-title em {
  font-style: italic; color: var(--forest-deep);
}
.section-sub {
  font-size: 16px; color: var(--ink-muted);
  max-width: 620px; line-height: 1.7;
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
footer {
  background: var(--forest-deep);
  color: rgba(250,250,248,0.6);
  padding: 64px 8% 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; max-width: 1200px;
  margin: 0 auto 48px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 22px; color: var(--cream);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--gold); }
.footer-desc {
  font-size: 14px; line-height: 1.65; max-width: 280px;
}
.footer-heading {
  font-size: 12px; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--cream); font-weight: 500;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
  font-size: 14px; color: rgba(250,250,248,0.55);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(250,250,248,0.08);
  display: flex; justify-content: space-between;
  align-items: center; font-size: 13px;
  flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: rgba(250,250,248,0.45); }
.footer-legal a:hover { color: var(--gold); }

/* ═══════════════════════════════════
   MODALS
   ═══════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  z-index: 10000;
  background: rgba(10,20,15,0.75);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--cream);
  border-radius: var(--radius-lg);
  max-width: 600px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  padding: 40px; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 22px; cursor: pointer;
  color: var(--ink-muted);
  background: none; border: none;
  transition: color 0.2s; line-height: 1;
}
.modal-close:hover { color: var(--ink); }
.modal-eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.modal-main-title {
  font-family: var(--font-display);
  font-size: 28px; color: var(--ink);
  margin-bottom: 16px;
}
.modal-box h2 {
  font-family: var(--font-display);
  font-size: 18px; color: var(--forest-deep);
  margin: 24px 0 10px;
}
.modal-box p, .modal-box li {
  font-size: 14px; color: var(--ink-muted);
  line-height: 1.75; margin-bottom: 8px;
}
.modal-box ul { padding-left: 20px; }
.modal-box a { color: var(--forest-deep); text-decoration: underline; }

/* ═══════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════ */
/* FAQ styles handled inline in index.html */

/* ═══════════════════════════════════
   FORMS
   ═══════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px;
  font-weight: 600; color: var(--ink);
  margin-bottom: 6px;
}
.form-input, .form-textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid rgba(26,58,46,0.15);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px; color: var(--ink);
  background: var(--cream);
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px;
  background: var(--gold); color: var(--forest-deep);
  font-weight: 700; font-size: 15px;
  border: none; border-radius: 2px;
  cursor: pointer; font-family: var(--font-body);
  transition: all var(--transition);
}
.form-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.form-hint {
  font-size: 12px; color: var(--ink-muted);
  margin-top: 12px;
}
.form-status {
  margin-top: 12px; font-size: 14px; font-weight: 600;
}
/* Form Success State */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}
.form-success.show {
  display: block;
}

/* Trust Badge — CLS-Reduktion */
.jp-trust-badge--hero {
  min-height: 44px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.jp-trust-badge--hero[href] {
  opacity: 1;
}

/* ═══════════════════════════════════
   MOBILE STICKY CTA
   ═══════════════════════════════════ */
.mobile-cta-bar {
  display: none; position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 997; padding: 10px 12px;
  background: var(--forest-deep);
  border-top: 1px solid rgba(200,168,75,0.2);
  gap: 8px; backdrop-filter: blur(10px);
}

/* ═══════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════ */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--forest-deep);
  border-top: 1px solid rgba(200,168,75,0.2);
  padding: 16px 6%; backdrop-filter: blur(10px);
}

/* ═══════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════ */
.breadcrumb { padding: 0 8%; margin-top: 80px; }
.breadcrumb-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 0;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.05em;
  color: var(--ink-muted);
}
.breadcrumb-inner a {
  color: var(--forest-mid); transition: color 0.2s;
}
.breadcrumb-inner a:hover { color: var(--gold); }
.breadcrumb-sep { color: rgba(26,58,46,0.3); }

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-dropdown-leistungen { min-width: 380px; }
  .nav-dropdown-leistungen.is-open {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  section { padding: var(--section-pad-mobile); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .breadcrumb { padding: 0 5%; margin-top: 70px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .mobile-cta-bar { display: flex; }
}

/* ═══════════════════════════════════
   EXTRA SMALL (≤480px)
   ═══════════════════════════════════ */
@media (max-width: 480px) {
  .section-title {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.2;
  }
  .footer-desc {
    max-width: 100%;
  }
  .form-row {
    grid-template-columns: 1fr !important;
  }
  .mobile-cta-bar {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }
  section {
    padding: 48px 4%;
  }
  .breadcrumb {
    padding: 0 4%;
    margin-top: 68px;
  }
  .breadcrumb-inner {
    font-size: 10px;
    gap: 5px;
  }
}

/* ===== PROOF-BOX (PUNKT 4 — Performance-Claim-Nachweis) ===== */
.proof-box {
  margin-top: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(26,58,46,0.12);
  border-left: 3px solid #c8a84b;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}
.proof-box .proof-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
  color: #5a5a52;
}
.proof-box .proof-tool { font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.proof-box .proof-date { font-size: 11px; color: #8a8a82; }
.proof-box .proof-metrics {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.proof-box .metric { font-size: 13px; color: #1a1a18; }
.proof-box .metric strong { color: #1a3a2e; }
.proof-box img {
  display: block;
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 8px;
  border: 1px solid rgba(26,58,46,0.08);
}
.proof-box a {
  display: inline-block;
  font-size: 12px;
  color: #1a3a2e;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-bottom: 8px;
}
.proof-box .proof-disclaimer {
  font-size: 11px;
  color: #8a8a82;
  font-style: italic;
  margin: 0;
}
