/* Reset und Grundeinstellungen */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #fff;
  overflow-x: hidden;
}

/* Hero Section */
.hero-section {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  overflow: hidden;
}

#network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: crosshair;
}

.hero-content {
  max-width: 1200px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-claim {
  font-size: 4rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
  text-shadow: none;
  position: relative;
  white-space: pre-line;
}

/* Claim Section - überschreibt normale Section-Styles */
.section.claim-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.claim-content {
  max-width: 1200px;
  text-align: center;
  width: 100%;
}

.claim-text {
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Logo Section */
.section.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  min-height: 100vh;
  width: 100%;
}

.logo-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
}

.logo-image-container {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
}

.logo-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.logo-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #03609E;
  line-height: 1.3;
  text-align: center;
  width: 100%;
}

.logo-text {
  font-size: 1.3rem;
  color: #4b5563;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.logo-text p {
  margin-bottom: 1.5rem;
}

.logo-text p:last-child {
  margin-bottom: 0;
}

.logo-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 1rem 2.5rem;
  background-color: #03609E;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.logo-link:hover {
  background-color: #024a7a;
  transform: translateY(-2px);
}

/* Portrait Section */
.section.portrait-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  min-height: 100vh;
}

.portrait-wrapper {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.portrait-image-container {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 5px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
}

.portrait-content-box {
  max-width: 800px;
  text-align: center;
}

.portrait-title {
  font-size: 3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.portrait-subtitle {
  font-size: 1.5rem;
  color: #34495e;
  font-weight: 500;
  margin-bottom: 2.5rem;
  font-style: italic;
}

.portrait-text {
  font-size: 1.2rem;
  color: #2c3e50;
  line-height: 1.9;
  text-align: left;
}

.portrait-text p {
  margin-bottom: 1.5rem;
}

.portrait-text p:last-child {
  margin-bottom: 0;
}

/* Skills Grid - Fünf Kernkompetenzen */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem 0 2.5rem 0;
  padding: 0;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.08) 0%, rgba(44, 62, 80, 0.03) 100%);
  border-radius: 10px;
  border-left: 3px solid #6CA1B0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(108, 161, 176, 0.15);
}

.skill-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6CA1B0 0%, #4a8a9a 100%);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.skill-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: #2c3e50;
  line-height: 1.4;
}

/* Hintergrund-Container für fixierte Hintergrundbilder */
.backgrounds-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.background-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: 20% center;
  background-repeat: no-repeat;
  opacity: 0;
  will-change: transform, opacity;
  pointer-events: none;
}

/* Scroll Container - normales Scrollen ohne Snap */
.scroll-container {
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Jede Section passt sich dem Inhalt an */
.section {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  
  /* Flexbox für Content-Positionierung */
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 8vh 0;
}

/* Wrapper für den Content-Bereich */
.content-wrapper {
  width: 50%;
  min-width: 320px;
  padding: 4rem 4rem 4rem 2rem;
}

/* Content-Box ohne Hintergrund */
.content-box {
  max-width: 650px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Überschrift-Styling */
.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* Content-Text-Styling */
.section-content {
  font-size: 1.3rem;
  color: #e8f4ff;
  line-height: 1.9;
}

.section-content p {
  margin-bottom: 1.5rem;
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* Spezifische Anpassungen für verschiedene Sections */
/* Alle Bilder haben jetzt 2688x625 = einheitliches Verhältnis 4.3:1 */

#zustellgebiet .section-title {
  color: #ffffff;
}

#zustellgebiet .section-content {
  color: #f0f8ff;
}

#mittelgrund .section-content {
  color: #d4e8ff;
}

#tiefsee .section-title,
#tiefsee .section-content {
  color: #c0e0ff;
}

#methodik .section-title {
  color: #ffffff;
}

#methodik .section-content {
  color: #e8f4ff;
}

/* Spezielle Hintergrund-Anpassung für Methodik-Section */
.background-layer[data-section-id="methodik"] {
  width: 50%;
  background-size: cover;
  background-position: center center;
}

/* Slide Section - übereinander schiebend */
.section.slide-section {
  position: relative;
  min-height: auto;
  display: block;
  padding: 6rem 2rem;
  z-index: 10;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

/* Z-Index für Stacking-Effekt: spätere Slides überlagern frühere */
#sollzeiten {
  z-index: 10;
}

#tsp-optimierung {
  z-index: 11;
}

#cvrptw {
  z-index: 12;
}

#abschnittsrotation {
  z-index: 13;
}

#komplexitaet {
  position: sticky;
  top: 0;
  z-index: 5;
}

#experte {
  position: relative;
  z-index: 6;
  background-color: #B8AE94;
}

#operations-research {
  position: sticky;
  top: 0;
  z-index: 9;
  background-color: #6CA1B0;
  overflow: hidden;
}

/* Matrix-Effekt Canvas */
.matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#operations-research .claim-content {
  position: relative;
  z-index: 2;
}

#praxis {
  position: sticky;
  top: 0;
  z-index: 14;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Tiefsee-Lampenfisch-Effekt (Anglerfish Lights)
   ============================================ */

#komplexitaet {
  overflow: hidden;
}

.anglerfish-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#komplexitaet .claim-content {
  position: relative;
  z-index: 2;
}

.anglerfish-light {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    var(--glow-color) 0%,
    transparent 70%
  );
  box-shadow: 
    0 0 var(--glow-size) var(--glow-color),
    0 0 calc(var(--glow-size) * 0.5) var(--glow-color),
    0 0 calc(var(--glow-size) * 0.25) rgba(255, 255, 255, 0.3);
  animation: anglerfish-glow ease-in-out forwards;
  will-change: transform, opacity;
}

@keyframes anglerfish-glow {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.3);
  }
  15% {
    opacity: 1;
    transform: translate(
      calc(var(--move-x) * 0.2), 
      calc(var(--move-y) * 0.2)
    ) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(
      calc(var(--move-x) * 0.6), 
      calc(var(--move-y) * 0.6)
    ) scale(1.1);
  }
  70% {
    opacity: 0.6;
    transform: translate(
      calc(var(--move-x) * 0.8), 
      calc(var(--move-y) * 0.8)
    ) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translate(var(--move-x), var(--move-y)) scale(0.5);
  }
}

/* Silhouette des Fisches hinter dem Licht */
.anglerfish-body {
  position: absolute;
  top: 50%;
  left: 50%;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(10, 15, 25, 0.4) 0%,
    transparent 70%
  );
  border-radius: 50% 40% 40% 50%;
  pointer-events: none;
  opacity: 0.5;
}

/* Pulsierender Kern für größere Lichter */
.anglerfish-light::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  height: 30%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: anglerfish-pulse 1.5s ease-in-out infinite;
}

@keyframes anglerfish-pulse {
  0%, 100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(0.7);
  }
}

/* Hintergrund für #praxis sicherstellen */
#praxis.claim-section {
  background-color: #2c3e50;
}

#leonhard {
  position: relative;
  z-index: 15;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

.slide-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.slide-title {
  font-size: 3rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 3rem;
  text-align: center;
  line-height: 1.3;
}

.slide-content-wrapper {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.slide-image-container {
  flex: 0 0 50%;
  max-width: 50%;
}

.slide-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.slide-image-container.has-two-images {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.slide-image-secondary {
  margin-top: 0;
}

.slide-text-container {
  flex: 1;
  font-size: 1.2rem;
  color: #2c3e50;
  line-height: 1.8;
}

.slide-text-container p {
  margin-bottom: 1.5rem;
}

.slide-text-container p:last-child {
  margin-bottom: 0;
}

/* Responsive Design für Tablets */
@media screen and (max-width: 1024px) {
  .hero-claim,
  .claim-text {
    font-size: 3rem;
  }
  
  .section.claim-section {
    padding: 3rem 2rem;
  }
  
  .content-wrapper {
    width: 60%;
    padding: 3rem 3rem 3rem 2rem;
  }
  
  .section-title {
    font-size: 2.3rem;
  }
  
  .section-content {
    font-size: 1.15rem;
  }
  
  .portrait-image-container {
    width: 240px;
    height: 240px;
  }
  
  .portrait-title {
    font-size: 2.5rem;
  }
  
  .portrait-subtitle {
    font-size: 1.3rem;
  }
  
  .portrait-text {
    font-size: 1.1rem;
  }
  
  .skills-grid {
    gap: 0.85rem;
  }
  
  .skill-item {
    padding: 0.9rem 1.1rem;
  }
  
  .skill-text {
    font-size: 1rem;
  }
  
  .logo-image-container {
    width: 220px;
  }
  
  .logo-title {
    font-size: 2.3rem;
  }
  
  .logo-text {
    font-size: 1.15rem;
  }
  
  .slide-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
  }
  
  .slide-content-wrapper {
    gap: 2rem;
  }
  
  .slide-text-container {
    font-size: 1.1rem;
  }
}

/* Responsive Design für Mobile */
@media screen and (max-width: 768px) {
  .hero-claim,
  .claim-text {
    font-size: 2.2rem;
  }
  
  .section {
    background-size: cover;
    background-position: 20% center;
    background-attachment: scroll;
    padding: 5vh 0;
  }
  
  .section.claim-section {
    padding: 2rem;
  }
  
  .content-wrapper {
    width: 100%;
    padding: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }
  
  .section-content {
    font-size: 1.05rem;
    line-height: 1.8;
  }
  
  .section.portrait-section {
    padding: 4rem 2rem;
  }
  
  .portrait-image-container {
    width: 200px;
    height: 200px;
  }
  
  .portrait-title {
    font-size: 2rem;
  }
  
  .portrait-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .portrait-text {
    font-size: 1.05rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem 0;
  }
  
  .skill-item {
    padding: 0.85rem 1rem;
  }
  
  .skill-number {
    min-width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }
  
  .skill-text {
    font-size: 0.95rem;
  }
  
  .logo-image-container {
    width: 180px;
  }
  
  .logo-title {
    font-size: 1.8rem;
  }
  
  .logo-text {
    font-size: 1.05rem;
  }
  
  .logo-link {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .section.slide-section {
    padding: 3rem 1.5rem;
  }
  
  .slide-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .slide-content-wrapper {
    flex-direction: column;
    gap: 2rem;
  }
  
  .slide-image-container {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .slide-text-container {
    font-size: 1.05rem;
  }
}

/* Sehr kleine Bildschirme */
@media screen and (max-width: 480px) {
  .hero-claim,
  .claim-text {
    font-size: 1.6rem;
  }
  
  .section.claim-section {
    padding: 1.5rem;
  }
  
  .content-wrapper {
    padding: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-content {
    font-size: 1rem;
  }
  
  .section.portrait-section {
    padding: 3rem 1.5rem;
  }
  
  .portrait-wrapper {
    gap: 2rem;
  }
  
  .portrait-image-container {
    width: 160px;
    height: 160px;
  }
  
  .portrait-title {
    font-size: 1.6rem;
  }
  
  .portrait-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .portrait-text {
    font-size: 0.95rem;
  }
  
  .skills-grid {
    margin: 1.25rem 0 1.75rem 0;
    gap: 0.6rem;
  }
  
  .skill-item {
    padding: 0.75rem 0.9rem;
    gap: 0.75rem;
  }
  
  .skill-number {
    min-width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }
  
  .skill-text {
    font-size: 0.9rem;
  }
  
  .logo-image-container {
    width: 150px;
  }
  
  .logo-title {
    font-size: 1.5rem;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  .section.slide-section {
    padding: 2rem 1rem;
  }
  
  .slide-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .slide-text-container {
    font-size: 1rem;
  }
}

/* Optimierung für High-DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .section {
    background-size: cover;
  }
}

