/* ============================================
   Alumo Solutions - New Website
   Minimalistisches Scroll-Experience Design
   ============================================ */

:root {
  --bg-dark: #0d0d0f;
  --bg-darker: #08080a;
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.35);
  --accent-orange: #E97132;
  --accent-orange-dim: rgba(233, 113, 50, 0.3);
  --line-color: rgba(255, 255, 255, 0.8);
  --line-dim: rgba(255, 255, 255, 0.15);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Kein snap - flüssiges Scrollen */
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   3D Scene Background
   ============================================ */

#hero-3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

#hero-3d canvas {
  display: block;
}

/* ============================================
   Logo Header
   ============================================ */

.logo-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  z-index: 100;
  background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-dark) 60%, transparent 100%);
  pointer-events: none;
}

.logo-header .logo {
  pointer-events: auto;
}

.logo {
  height: 64px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(52%) sepia(67%) saturate(582%) hue-rotate(342deg) brightness(95%) contrast(91%);
}

/* ============================================
   Chapter Sections
   ============================================ */

.chapter {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 5rem 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 15, 0.85) 0%,
    rgba(13, 13, 15, 0.95) 50%,
    rgba(13, 13, 15, 0.85) 100%
  );
}

.chapter.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero-Kapitel - transparent für 3D-Szene */
#chapter-00 {
  background: transparent;
  min-height: 100vh;
  padding-top: 8rem;
}

#chapter-00 .illustration-side {
  /* SVG ausblenden - 3D übernimmt */
  display: none;
}

#chapter-00 .text-side {
  /* Text auf der linken Seite, 3D rechts im Hintergrund */
  max-width: 500px;
  background: linear-gradient(
    to right,
    rgba(13, 13, 15, 0.95) 0%,
    rgba(13, 13, 15, 0.85) 70%,
    transparent 100%
  );
  padding: 2rem 3rem 2rem 0;
  margin-left: -2rem;
  padding-left: 2rem;
  border-radius: 0 8px 8px 0;
}

#chapter-00 .hero-title,
#chapter-00 .hero-subtitle {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

#chapter-00 .hero-subtitle {
  color: var(--text-secondary);
  font-weight: 400;
}

/* Erstes Kapitel nach Hero mit Gradient-Übergang */
#chapter-01 {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(13, 13, 15, 0.7) 15%,
    rgba(13, 13, 15, 0.9) 100%
  );
  margin-top: -5rem;
  padding-top: 8rem;
}

/* Kontakt Section */
.contact-section {
  padding: 5rem 4rem;
}

.contact-section .chapter-content {
  grid-template-columns: 1fr 1fr;
}

.contact-section .illustration-side {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-section .illustration-side img {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.chapter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  width: 100%;
  align-items: center;
}

/* Wechselndes Layout - Illustration mal links, mal rechts */
.chapter:nth-child(odd) .chapter-content {
  direction: rtl;
}

.chapter:nth-child(odd) .chapter-content > * {
  direction: ltr;
}

.chapter:nth-child(odd) .text-side {
  padding-right: 0;
  padding-left: 2rem;
}

/* Text Side */
.text-side {
  padding-right: 2rem;
}

.chapter-number {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent-orange);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 3rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.benefit {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 420px;
}

.chapter-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
  line-height: 1.7;
}

.capabilities {
  list-style: none;
  padding: 0;
}

.capabilities li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

.capabilities li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent-orange);
  border-radius: 50%;
}

/* Scroll Hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-orange), transparent);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.5; }
}

/* ============================================
   Illustration Side
   ============================================ */

.illustration-side {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.firm-illustration {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.firm-illustration .floor {
  fill: var(--line-dim);
  stroke: var(--line-color);
}

.firm-illustration .highlight-element {
  stroke: var(--accent-orange);
  stroke-width: 2;
}

.firm-illustration .data-flow {
  stroke: var(--accent-orange);
  stroke-width: 1.5;
  opacity: 0.6;
  animation: data-pulse 3s ease-in-out infinite;
}

@keyframes data-pulse {
  0%, 100% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: 30; }
}

.pulse-dot {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { r: 5; opacity: 1; }
  50% { r: 8; opacity: 0.6; }
}

.focus-indicator {
  width: 200px;
  height: 200px;
  border: 1px solid var(--line-dim);
  border-radius: 50%;
  position: relative;
}

.focus-indicator::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid var(--accent-orange-dim);
  border-radius: 50%;
}

.focus-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--accent-orange);
  border-radius: 50%;
}

/* ============================================
   Journey Path - Connecting Ball between Focus-Indicators
   ============================================ */

.journey-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.journey-ball {
  position: fixed;
  width: 18px;
  height: 18px;
  background: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(233, 113, 50, 0.6);
  z-index: 3;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.journey-ball::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid var(--accent-orange-dim);
  border-radius: 50%;
  animation: journey-pulse 2s ease-in-out infinite;
}

.journey-ball.hidden {
  opacity: 0;
}

@keyframes journey-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.4); opacity: 0; }
}

/* Hide on mobile - not enough space */
@media (max-width: 1024px) {
  .journey-canvas,
  .journey-ball {
    display: none;
  }
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
  background: var(--bg-darker);
}

.contact-form-wrapper {
  max-width: 480px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 1px solid var(--line-dim);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.75rem;
  background: var(--bg-darker);
  padding: 0 0.25rem;
  color: var(--accent-orange);
}

.submit-btn {
  padding: 1rem 2rem;
  background: var(--accent-orange);
  color: white;
  border: none;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background: #d4632a;
  transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  position: relative;
  z-index: 10;
  padding: 3rem 4rem;
  background: var(--bg-darker);
  border-top: 1px solid var(--line-dim);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a,
.footer-contact-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  padding: 0;
}

.footer-links a:hover,
.footer-contact-link:hover {
  color: var(--text-primary);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ============================================
   Progress Indicator
   ============================================ */

.progress-indicator {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-dim);
  transition: all 0.3s ease;
  cursor: pointer;
}

.progress-dot.active {
  background: var(--accent-orange);
  transform: scale(1.5);
}

.progress-dot:hover {
  background: var(--accent-orange-dim);
}

/* ============================================
   Kontakt-Wimpel (fixiert links)
   ============================================ */

.contact-wimpel {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;

  display: flex;
  align-items: center;
  gap: 0.5rem;

  background: var(--accent-orange);
  color: white;
  border: none;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;

  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border-radius: 0 8px 8px 0;

  box-shadow: 4px 4px 20px rgba(233, 113, 50, 0.3);

  transition: all 0.3s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.contact-wimpel:hover {
  padding-left: 1rem;
  background: #d4632a;
  box-shadow: 6px 6px 30px rgba(233, 113, 50, 0.5);
}

.wimpel-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.wimpel-icon {
  width: 20px;
  height: 20px;
  transform: rotate(90deg);
}

/* Verstecken wenn im Kontakt-Bereich */
.contact-wimpel.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-100%);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .chapter {
    padding: 3rem 2rem;
  }

  .chapter:first-of-type {
    padding-top: 6rem;
  }

  .chapter-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Reset direction für Mobile */
  .chapter:nth-child(odd) .chapter-content {
    direction: ltr;
  }

  .chapter:nth-child(odd) .text-side {
    padding-left: 0;
  }

  .text-side {
    padding-right: 0;
    order: 1;
  }

  .illustration-side {
    order: 0;
    max-height: 200px;
  }

  .firm-illustration {
    max-width: 350px;
  }

  .focus-indicator {
    width: 150px;
    height: 150px;
  }

  .progress-indicator {
    right: 0.75rem;
  }
}

@media (max-width: 640px) {
  .logo-header {
    padding: 1.5rem;
  }

  .chapter {
    padding: 3rem 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .progress-indicator {
    display: none;
  }
}

/* ============================================
   Contact Overlay
   ============================================ */

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(30, 30, 35, 0.98);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.contact-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-dim);
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-overlay-close:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.contact-overlay-close svg {
  width: 20px;
  height: 20px;
}

.contact-overlay-container {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
}

.contact-overlay-container h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.contact-overlay-container > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-overlay .contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-overlay .form-group {
  position: relative;
}

.contact-overlay .form-group input,
.contact-overlay .form-group textarea {
  width: 100%;
  padding: 1rem;
  background: transparent;
  border: 1px solid var(--line-dim);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-overlay .form-group input:focus,
.contact-overlay .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.contact-overlay .form-group label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s ease;
  background: rgba(30, 30, 35, 0.98);
}

.contact-overlay .form-group input:focus + label,
.contact-overlay .form-group input:not(:placeholder-shown) + label,
.contact-overlay .form-group textarea:focus + label,
.contact-overlay .form-group textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.75rem;
  padding: 0 0.25rem;
  color: var(--accent-orange);
}

@media (max-width: 640px) {
  .contact-overlay-container {
    padding: 1.5rem;
  }

  .contact-overlay-close {
    top: 1rem;
    right: 1rem;
  }
}

/* ============================================
   Language Toggle
   ============================================ */

.lang-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(233, 113, 50, 0.9);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  z-index: 1000;
  transition: background 0.3s;
}

.lang-toggle:hover {
  background: rgba(233, 113, 50, 1);
}

/* ============================================
   Cookie Consent Banner
   ============================================ */

.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 13, 15, 0.95);
  border-top: 1px solid rgba(233, 113, 50, 0.3);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.consent-banner.visible {
  transform: translateY(0);
}

.consent-text {
  color: #a0a0a0;
  font-size: 14px;
  flex: 1;
}

.consent-text a {
  color: #E97132;
}

.consent-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.consent-btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  font-family: var(--font-main);
}

.consent-btn.accept {
  background: #E97132;
  color: #fff;
}

.consent-btn.accept:hover {
  background: #d4632a;
}

.consent-btn.essential {
  background: transparent;
  border: 1px solid #666;
  color: #a0a0a0;
}

.consent-btn.essential:hover {
  border-color: #888;
  color: #ccc;
}

@media (max-width: 768px) {
  .consent-banner {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .consent-buttons {
    width: 100%;
    justify-content: center;
  }
}
