/* ═══════════════════════════════════════════════════════
   BASE STYLESHEET – RA Dr. Franz Essl
   Shared across all pages
═══════════════════════════════════════════════════════ */
:root {
  --navy:       #070d1f;
  --navy-mid:   #0f1e3d;
  --navy-light: #1a2f5e;
  --orange:     #e87722;
  --orange-dark:#c4621a;
  --white:      #ffffff;
  --off-white:  #f4f2ee;
  --grey-light: #e8e6e1;
  --grey:       #9a9690;
  --text-dark:  #0f1e3d;
  --text-body:  #2e3a50;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 24px rgba(15,30,61,0.10);
  --shadow-card-hover: 0 12px 40px rgba(15,30,61,0.18);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-body); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Typography */
.section-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 0.75rem; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.18; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 2rem; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.03em; cursor: pointer; transition: var(--transition); border: 2px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,119,34,0.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }

/* Layout */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--off-white); }

/* Section header */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { color: var(--navy); }
.section-header .lead { max-width: 560px; margin: 1rem auto 0; color: var(--grey); font-size: 1.05rem; }
.orange-divider { width: 60px; height: 4px; background: var(--orange); border-radius: 2px; margin: 1rem auto 0; }

/* Header */
#header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--navy); transition: box-shadow var(--transition); }
#header.scrolled { box-shadow: 0 2px 24px rgba(15,30,61,0.3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; flex-direction: row; align-items: center; gap: 0.75rem; }
.nav-logo .logo-icon { width: 36px; height: 36px; flex-shrink: 0; display: block; }
.nav-logo .logo-text { display: flex; flex-direction: column; }
.nav-logo .logo-main { font-family: var(--font-display); font-size: 1.15rem; font-weight: 900; color: var(--white); }
.nav-logo .logo-sub { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a { font-size: 0.88rem; font-weight: 500; letter-spacing: 0.04em; color: rgba(255,255,255,0.8); padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-cta { background: var(--orange) !important; color: var(--white) !important; font-weight: 600 !important; padding: 0.5rem 1.1rem !important; }
.nav-cta:hover { background: var(--orange-dark) !important; }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--navy); padding: 1.5rem; z-index: 999; border-top: 1px solid rgba(255,255,255,0.08); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; font-size: 1.05rem; font-weight: 500; color: rgba(255,255,255,0.85); padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--orange); }

/* Subpage Hero */
.subhero { background: var(--navy); padding: 8rem 0 4.5rem; position: relative; overflow: hidden; }
.subhero::before { content: ''; position: absolute; top: -60px; right: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(36,53,112,0.8) 0%, transparent 70%); pointer-events: none; }
.subhero-accent { position: absolute; top: 0; right: 0; width: 5px; height: 100%; background: linear-gradient(to bottom, transparent, var(--orange), transparent); opacity: 0.5; }
.subhero-breadcrumb { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.subhero-breadcrumb a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.subhero-breadcrumb a:hover { color: var(--orange); }
.subhero-breadcrumb span { color: var(--orange); }
.subhero h1 { color: var(--white); margin-bottom: 1.25rem; }
.subhero h1 em { font-style: normal; color: var(--orange); }
.subhero .hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 640px; margin-bottom: 2rem; }
.subhero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Scenarios (Anwenderbeispiele) */
.scenarios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.scenario-card { background: var(--white); border-radius: var(--radius-md); padding: 2rem; box-shadow: var(--shadow-card); border-top: 4px solid var(--navy); transition: var(--transition); cursor: pointer; }
.scenario-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); border-top-color: var(--orange); }
.scenario-icon { font-size: 2rem; margin-bottom: 1rem; }
.scenario-card h3 { color: var(--navy); margin-bottom: 0.75rem; font-size: 1.05rem; }
.scenario-card p { font-size: 0.9rem; color: var(--text-body); line-height: 1.65; }
.scenario-tag { display: inline-block; background: var(--off-white); color: var(--grey); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 100px; margin-bottom: 0.75rem; }

/* Rechtslage */
.rechtslage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.rechtslage-content h2 { margin-bottom: 1rem; }
.rechtslage-content p { color: var(--text-body); }
.rechtslage-facts { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.fact-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; background: var(--off-white); border-radius: var(--radius-sm); border-left: 3px solid var(--orange); }
.fact-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.fact-text { font-size: 0.9rem; color: var(--text-body); line-height: 1.55; }
.fact-text strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: 0.15rem; }
.rechtslage-highlight { background: var(--navy); color: var(--white); border-radius: var(--radius-md); padding: 2rem; }
.rechtslage-highlight h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.1rem; }
.rechtslage-highlight ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.rechtslage-highlight li { display: flex; gap: 0.75rem; font-size: 0.9rem; color: rgba(255,255,255,0.8); line-height: 1.55; }
.rechtslage-highlight li::before { content: '→'; color: var(--orange); flex-shrink: 0; font-weight: 700; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--grey-light); border-radius: var(--radius-md); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--grey-light); }
.faq-item:last-child { border-bottom: none; }
.faq-question { width: 100%; text-align: left; padding: 1.25rem 1.5rem; background: var(--white); border: none; cursor: pointer; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: var(--transition); }
.faq-question:hover { background: var(--off-white); }
.faq-question.open { background: var(--navy); color: var(--white); }
.faq-chevron { font-size: 1.1rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 1.25rem 1.5rem; background: var(--off-white); font-size: 0.92rem; color: var(--text-body); line-height: 1.7; border-top: 1px solid var(--grey-light); }
.faq-answer.open { display: block; }

/* CTA Section */
.cta-section { background: var(--navy); padding: 5rem 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(232,119,34,0.1) 0%, transparent 70%); }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.cta-text .section-label { color: var(--orange); }
.cta-text h2 { color: var(--white); margin-bottom: 1rem; }
.cta-text p { color: rgba(255,255,255,0.7); font-size: 1rem; max-width: 520px; }
.cta-actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; flex-shrink: 0; }
.cta-contact-item { display: flex; align-items: center; gap: 0.75rem; }
.cta-contact-item a { color: rgba(255,255,255,0.9); font-size: 1.05rem; font-weight: 500; transition: var(--transition); }
.cta-contact-item a:hover { color: var(--orange); }
.cta-contact-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); display: block; }

/* Footer */
#footer { background: var(--navy); padding: 3rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand .logo-main { font-family: var(--font-display); font-size: 1.2rem; font-weight: 900; color: var(--white); }
.footer-brand .logo-sub { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.65; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); margin: 0; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,0.4); transition: var(--transition); }
.footer-legal a:hover { color: var(--white); }
.footer-powered { width: 100%; margin-top: 1.25rem; text-align: center; }
.footer-powered a { font-size: 0.72rem; color: rgba(255,255,255,0.2); letter-spacing: 0.04em; transition: var(--transition); }
.footer-powered a:hover { color: rgba(255,255,255,0.45); }

/* Sticky bar */
.sticky-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 998; background: var(--navy); border-top: 1px solid rgba(255,255,255,0.1); padding: 0.75rem 1rem; gap: 0.75rem; }
.sticky-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.85rem; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600; font-family: var(--font-body); transition: var(--transition); }
.sticky-call { background: var(--white); color: var(--navy) !important; }
.sticky-anfrage { background: var(--orange); color: var(--white) !important; }
.sticky-anfrage:hover { background: var(--orange-dark); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
  .rechtslage-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .sticky-bar { display: flex; }
  body { padding-bottom: 70px; }
  .subhero-btns { flex-direction: column; }
  .subhero-btns .btn { justify-content: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
}
