/* ═══════════════════════════════════════════════════════════
   StageMate GmbH – Global Stylesheet v2.1
   CI: Orange #F47F47, Dunkelgrau #2D3640, Anthrazit #1E2A35,
       Off-White #F7F5F2, Grau-Abstufungen
   Fonts: Montserrat (headings) + Inter (body)
   ═══════════════════════════════════════════════════════════ */

:root {
  --orange: #F47F47;
  --orange-hover: #e06a32;
  --orange-glow: rgba(244,127,71,0.25);
  --dark: #2D3640;
  --dark-deep: #232b33;
  --anthrazit: #1E2A35;
  --offwhite: #F7F5F2;
  --white: #FFFFFF;
  --grey-50: #fafaf9;
  --grey-100: #f0efec;
  --grey-200: #e2e0dc;
  --grey-300: #ccc;
  --grey-400: #aaa;
  --grey-500: #767676; /* WCAG AA (4.5:1) auf Weiß */
  --grey-600: #666;
  --grey-700: #4a4a4a;
  --accent-light: #EDECEA;
  --shadow-xs: 0 1px 3px rgba(30,42,53,0.05);
  --shadow-sm: 0 2px 10px rgba(30,42,53,0.06);
  --shadow-md: 0 8px 32px rgba(30,42,53,0.09);
  --shadow-lg: 0 20px 60px rgba(30,42,53,0.12);
  --shadow-orange: 0 8px 32px rgba(244,127,71,0.28);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --nav-height: 76px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 16px); }
body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--anthrazit);
  background: var(--offwhite);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Montserrat', sans-serif; line-height: 1.15; font-weight: 800; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: 'Inter', sans-serif; outline: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 64px 0; }
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.bg-white { background: var(--white); }
.bg-offwhite { background: var(--offwhite); }
.bg-dark { background: var(--dark); color: var(--white); }

.badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 40px;
  background: rgba(244,127,71,0.10);
  color: var(--orange);
}
.badge-white { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); }
.badge-grey { background: var(--accent-light); color: var(--grey-600); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.92rem;
  padding: 16px 36px; border-radius: 60px; border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition); letter-spacing: 0.01em; white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--white); border-color: var(--orange); box-shadow: var(--shadow-orange); }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(244,127,71,0.40); }
.btn-dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-dark:hover { background: var(--anthrazit); border-color: var(--anthrazit); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--anthrazit); border-color: var(--anthrazit); }
.btn-outline:hover { background: var(--anthrazit); color: var(--white); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.30); }
.btn-outline-white:hover { border-color: var(--orange); color: var(--orange); background: rgba(244,127,71,0.06); }
.btn-sm { padding: 11px 24px; font-size: 0.82rem; }
.btn-lg { padding: 18px 44px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.section-header { margin-bottom: 56px; }
.section-header .badge { margin-bottom: 16px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--anthrazit); margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; color: var(--grey-600); max-width: 600px; line-height: 1.8; }
.section-header.text-center .section-subtitle { margin: 0 auto; }

.page-hero {
  padding: calc(var(--nav-height) + 64px) 0 64px;
  background: linear-gradient(160deg, var(--dark-deep), var(--dark), #3a4550);
  position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: var(--orange); opacity: 0.04; top: -200px; right: -150px; }
.page-hero .badge { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--white); margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.6); max-width: 620px; line-height: 1.8; }

/* NAVBAR */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-height); display: flex; align-items: center; transition: all 0.4s ease; background: transparent; }
.navbar.scrolled { background: rgba(45,54,64,0.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-md); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { display: flex; align-items: center; height: 40px; }
.nav-logo .logo-svg { height: 100%; width: auto; display: block; }
.nav-logo .stage { color: var(--orange); }
.nav-logo .mate { color: var(--white); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.84rem; color: rgba(255,255,255,0.8); letter-spacing: 0.02em; position: relative; padding: 4px 0; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--orange); transition: width 0.3s ease; }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--orange); }
.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 10px 26px; font-size: 0.82rem; }
.nav-cta a::after { display: none !important; }
.nav-cta a.active { color: var(--white) !important; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1002; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s ease; }
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--dark-deep); z-index: 1001; flex-direction: column; justify-content: center; align-items: center; gap: 24px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.3rem; color: rgba(255,255,255,0.85); padding: 8px 0; }
.mobile-menu a:hover { color: var(--orange); }

/* FLOATING PORTAL */
/* Floating-Portal-Button: kompakt rund, klappt bei Hover/Tap zur vollen Beschriftung auf */
.floating-portal {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  display: flex; align-items: center; justify-content: flex-start;
  height: 56px; width: 56px; max-width: 56px;
  background: var(--dark-deep); color: var(--orange);
  border: 2px solid var(--orange); border-radius: 60px;
  box-shadow: 0 8px 32px rgba(30,42,53,0.25);
  text-decoration: none; overflow: hidden;
  padding: 0 14px;
  transition: max-width 0.4s cubic-bezier(0.25,0.8,0.3,1), width 0.4s cubic-bezier(0.25,0.8,0.3,1), background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.floating-portal .fp-icon {
  flex: 0 0 auto; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
}
.floating-portal .fp-icon svg { width: 24px; height: 24px; display: block; }
.floating-portal .fp-text {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.82rem;
  white-space: nowrap; margin-left: 12px;
  opacity: 0; transition: opacity 0.25s ease 0.1s;
}
/* Aufgeklappter Zustand (Hover auf Desktop, .is-open per Tap auf Touch) */
.floating-portal:hover,
.floating-portal.is-open {
  width: auto; max-width: 360px;
  background: var(--orange); color: var(--white); border-color: var(--orange);
  transform: translateY(-3px); box-shadow: var(--shadow-orange);
}
.floating-portal:hover .fp-text,
.floating-portal.is-open .fp-text { opacity: 1; }



/* CARDS */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(0,0,0,0.04); overflow: hidden; transition: all var(--transition); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-body { padding: 32px; }

/* FOOTER */
.footer { background: var(--dark-deep); color: rgba(255,255,255,0.50); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 320px; margin-top: 16px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: rgba(255,255,255,0.6); transition: all 0.3s; font-family: 'Montserrat', sans-serif; font-weight: 700; letter-spacing: 0.02em; }
.footer-social a:hover { background: var(--orange); color: var(--white); }
.footer-col h5 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.45); padding: 5px 0; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.35); }
.footer-legal a:hover { color: var(--orange); }

/* FORMS */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.8rem; color: var(--anthrazit); margin-bottom: 7px; }
.form-control { width: 100%; padding: 14px 18px; border: 2px solid var(--grey-200); border-radius: var(--radius); font-size: 0.92rem; color: var(--anthrazit); background: var(--grey-50); transition: all 0.3s; }
.form-control:focus { border-color: var(--orange); background: var(--white); box-shadow: 0 0 0 4px rgba(244,127,71,0.08); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; color: var(--grey-600); }
.form-check input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex-shrink: 0; }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--dark), var(--dark-deep)); border-radius: var(--radius-xl); padding: 64px; text-align: center; color: var(--white); position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: var(--orange); opacity: 0.05; bottom: -150px; right: -100px; }
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.60); font-size: 1.05rem; max-width: 500px; margin: 0 auto 32px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ANIMATIONS */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* MODERN: Scroll-Driven Reveals (läuft ohne JS im Compositor -> flüssiger).
   In unterstützenden Browsern (Chrome 115+, Safari 18+) übernimmt CSS;
   main.js überspringt dort den IntersectionObserver. Ältere Browser
   nutzen weiterhin den JS-Fallback (.reveal.visible). */
@keyframes revealIn { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
@supports (animation-timeline: view()) {
  .reveal { animation: revealIn both linear; animation-timeline: view(); animation-range: entry 5% cover 25%; }
  .reveal-d1 { animation-range: entry 12% cover 30%; }
  .reveal-d2 { animation-range: entry 18% cover 34%; }
  .reveal-d3 { animation-range: entry 24% cover 38%; }
  .reveal-d4 { animation-range: entry 30% cover 42%; }
}

/* FAQ */
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; border: 1px solid rgba(0,0,0,0.04); overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--anthrazit); text-align: left; cursor: pointer; transition: background 0.3s; }
.faq-question:hover { background: var(--grey-50); }
.faq-icon { width: 28px; height: 28px; border-radius: 50%; background: rgba(244,127,71,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--orange); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.9rem; color: var(--grey-600); line-height: 1.7; }

/* SKIP-LINK (Barrierefreiheit) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--orange); color: var(--white);
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.85rem;
  padding: 12px 22px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* SICHTBARE FOCUS-STATES für Tastatur-Navigation (CI-Orange).
   Nur bei Tastatur-Fokus sichtbar (:focus-visible) – Maus-Optik bleibt unverändert. */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* HONEYPOT (Spam-Schutz, für Menschen unsichtbar) */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* ICON-GRÖSSEN (Inline-SVGs) */
.card-icon svg { width: 26px; height: 26px; }
.ci-icon svg, .cic-icon svg { width: 20px; height: 20px; }
.footer-social a svg { width: 18px; height: 18px; }

/* TEAM-MONOGRAMM (temporärer Foto-Platzhalter mit Initialen, on-brand) */
.team-monogram {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--orange), #f6a070);
  color: var(--white);
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: clamp(2.8rem, 7vw, 4.2rem); letter-spacing: 0.04em;
  user-select: none;
}

/* REDUCED MOTION: Animationen für empfindliche Nutzer deaktivieren */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation-timeline: auto !important;
  }
  /* Scroll-Driven-Animationen ganz abschalten (Timeline ignoriert duration) */
  .reveal, .hero-parallax, .ablauf-progress-fill { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* RESPONSIVE */
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .section-pad { padding: 64px 0; }
  .page-hero { padding: calc(var(--nav-height) + 40px) 0 48px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-section { padding: 40px 24px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .floating-portal { bottom: 20px; right: 20px; height: 52px; width: 52px; max-width: 52px; }
  .floating-portal:hover, .floating-portal.is-open { max-width: 320px; }
  .floating-portal .fp-text { font-size: 0.78rem; }
}
