/* ============================================
   ORBITON HOLDING GmbH — Corporate Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #0a0f1a;
  --primary-light: #111827;
  --accent: #c9a84c;
  --accent-hover: #dbbf6a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dark: #1e293b;
  --surface: #1e293b;
  --surface-light: #273548;
  --border: rgba(201,168,76,0.15);
  --gradient-hero: linear-gradient(135deg, #0a0f1a 0%, #131c2e 50%, #0d1525 100%);
  --gradient-accent: linear-gradient(135deg, #c9a84c, #e8c96a);
  --shadow: 0 4px 30px rgba(0,0,0,0.3);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; color: #fff; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
.accent-text { color: var(--accent); }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
section { padding: 6rem 0; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,15,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.nav-cta {
  background: var(--gradient-accent) !important;
  color: var(--primary) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
}
.nav-cta:hover { opacity: 0.9; color: var(--primary) !important; }

/* Mobile Nav */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: var(--transition); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform var(--transition);
  }
  .nav-links.open { transform: translateY(0); }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 1.5rem 0 2.5rem;
  max-width: 560px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Orbiton particle canvas */
#particle-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.35;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--gradient-accent);
  color: var(--primary);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); color: var(--primary); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(201,168,76,0.05);
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,168,76,0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.card-icon {
  width: 56px; height: 56px;
  background: rgba(201,168,76,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}
.card h3 { margin-bottom: 0.75rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

/* --- Orbiton Story Section --- */
.story-section { background: var(--primary-light); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}
.story-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.orbit-ring {
  position: absolute;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}
.orbit-ring:nth-child(1) { width: 300px; height: 300px; }
.orbit-ring:nth-child(2) { width: 220px; height: 220px; animation-duration: 15s; animation-direction: reverse; }
.orbit-ring:nth-child(3) { width: 140px; height: 140px; animation-duration: 10s; }
.orbit-core {
  width: 60px; height: 60px;
  background: var(--gradient-accent);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(201,168,76,0.4);
  z-index: 2;
}
.orbit-particle {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(201,168,76,0.6);
}
@keyframes spin { to { transform: rotate(360deg); } }

.story-text p { color: var(--text-muted); margin-bottom: 1.25rem; font-size: 0.95rem; line-height: 1.8; }
.story-text .highlight {
  color: var(--accent);
  font-weight: 600;
  font-style: italic;
}

@media (max-width: 768px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-visual { min-height: 280px; }
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.team-photo {
  height: 280px;
  background: var(--surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--accent);
  position: relative;
  overflow: hidden;
}
.team-photo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, var(--surface), transparent);
}
.team-info {
  padding: 1.75rem;
  position: relative;
  z-index: 1;
  margin-top: -2rem;
}
.team-info h3 { margin-bottom: 0.25rem; }
.team-role {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.team-contact { margin-top: 1rem; }
.team-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.team-contact a:hover { color: var(--accent); }

/* --- News --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.news-card-img {
  height: 180px;
  background: var(--surface-light);
  position: relative;
}
.news-card-body { padding: 1.75rem; }
.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.news-card-body h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.news-card-body p { color: var(--text-muted); font-size: 0.9rem; }
.news-tag {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
.news-filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.news-filter {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition);
}
.news-filter:hover, .news-filter.active {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

/* Ticker bar */
.news-ticker {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: ticker 60s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.ticker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* --- Leistungen Detail --- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.service-block:last-child { border-bottom: none; }
.service-block.reverse { direction: rtl; }
.service-block.reverse > * { direction: ltr; }
.service-number {
  font-size: 5rem;
  font-weight: 800;
  color: rgba(201,168,76,0.1);
  line-height: 1;
  margin-bottom: 1rem;
}
.service-block h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.service-block p { color: var(--text-muted); line-height: 1.8; }
.service-block ul { margin-top: 1.25rem; }
.service-block li {
  color: var(--text-muted);
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}
.service-block li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.85rem;
  width: 8px; height: 8px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.service-visual {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-size: 5rem;
}
@media (max-width: 768px) {
  .service-block, .service-block.reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}
.contact-info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.contact-info-block h3 { margin-bottom: 1.5rem; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  width: 40px; height: 40px;
  background: rgba(201,168,76,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-row p { color: var(--text-muted); font-size: 0.95rem; }
.contact-row strong { color: #fff; display: block; margin-bottom: 0.2rem; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.footer {
  background: var(--primary-light);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 1rem; max-width: 300px; }
.footer h4 { font-size: 0.9rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a { color: var(--text-muted); font-size: 0.9rem; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Impressum & Datenschutz --- */
.legal-page { padding-top: 120px; min-height: 100vh; }
.legal-page h1 { margin-bottom: 2rem; font-size: 2rem; }
.legal-page h2 { font-size: 1.3rem; margin: 2rem 0 1rem; color: var(--accent); }
.legal-page p, .legal-page li { color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.8; }

/* --- Page Header --- */
.page-header {
  padding: 10rem 0 4rem;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.page-header p { color: var(--text-muted); margin-top: 1rem; max-width: 600px; margin-inline: auto; }

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.scroll-top:hover { transform: translateY(-2px); }
.scroll-top.visible { display: flex; }

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  z-index: 9999;
  display: none;
}
.cookie-banner.show { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.cookie-banner p { color: var(--text-muted); font-size: 0.9rem; max-width: 700px; }
.cookie-buttons { display: flex; gap: 0.75rem; }
