/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow on all elements */
*, *::before, *::after {
    max-width: 100%;
}

*::before,
*::after {
    box-sizing: border-box;
}

/* Fix für mögliche Striche/Artefakte */
html, body {
    border: none;
    outline: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color var(--transition-duration, 0.2s) ease, 
                color var(--transition-duration, 0.2s) ease;
    font-weight: 400;
    width: 100%;
    max-width: 100vw;
}

/* CSS Variables for Themes */
:root {
    /* Light Theme Colors - CV Style */
    --primary-bg: #ffffff;
    --secondary-bg: #fafafa;
    --accent-bg: #f5f5f5;
    --primary-text: #000000;
    --secondary-text: #333333;
    --accent-text: #666666;
    --highlight-color: #000000;
    --highlight-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.15);
    --border-color: #e0e0e0;
    --line-color: #000000;
    
    /* Minimalist Colors */
    --poly-primary: #000000;
    --poly-secondary: #333333;
    --poly-accent: #666666;
    --poly-warning: #000000;
}

.dark-theme {
    /* Dark Theme Colors - CV Style */
    --primary-bg: #1a1a1a;
    --secondary-bg: #2a2a2a;
    --accent-bg: #3a3a3a;
    --primary-text: #ffffff;
    --secondary-text: #e0e0e0;
    --accent-text: #cccccc;
    --highlight-color: #ffffff;
    --highlight-gradient: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    --shadow-light: rgba(255, 255, 255, 0.05);
    --shadow-medium: rgba(255, 255, 255, 0.1);
    --shadow-strong: rgba(255, 255, 255, 0.15);
    --border-color: #404040;
    --line-color: #ffffff;
    
    /* Minimalist Colors - Dark */
    --poly-primary: #ffffff;
    --poly-secondary: #e0e0e0;
    --poly-accent: #cccccc;
    --poly-warning: #ffffff;
}

body {
    background: var(--primary-bg);
    color: var(--primary-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: none;
}

.light-theme .header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-color);
}

.dark-theme .header {
    background: rgba(26, 26, 26, 0.98);
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-visible-theme-toggle {
    display: none;
}

.nav-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.logo-3d {
    width: 40px;
    height: 40px;
    perspective: 200px;
    transform-style: preserve-3d;
}

.logo-shape {
    width: 100%;
    height: 100%;
    background: var(--poly-primary);
    border-radius: 6px;
    position: relative;
}

.brand-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-text);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--highlight-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--highlight-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle, .lang-toggle {
    background: var(--primary-bg);
    border: 1px solid var(--accent-text);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-text);
}

.theme-toggle:hover, .lang-toggle:hover {
    background: var(--accent-bg);
    border-color: var(--primary-text);
    transform: translateY(-2px);
}

/* Invertierte Farben für Theme-Toggle */
.light-theme .theme-toggle {
    background: var(--primary-text);
    color: var(--primary-bg);
    border-color: var(--primary-text);
}

.light-theme .theme-toggle:hover {
    background: var(--secondary-text);
    color: var(--primary-bg);
}

.dark-theme .theme-toggle {
    background: var(--primary-bg);
    color: var(--primary-text);
    border-color: var(--accent-text);
}

.dark-theme .theme-toggle:hover {
    background: var(--accent-bg);
    color: var(--primary-text);
}

.theme-icon {
    display: inline-block;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    margin: 0 2px;
}

.light-theme .theme-icon.sun {
    opacity: 1;
}

.light-theme .theme-icon.moon {
    opacity: 0.3;
}

.dark-theme .theme-icon.sun {
    opacity: 0.3;
}

.dark-theme .theme-icon.moon {
    opacity: 1;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-option.active {
    color: var(--highlight-color);
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-text);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  position: fixed;
  top: 70px; /* Höhe deiner Navigationsleiste */
  left: 0;
  width: 100%;
  height: calc(100vh - 70px); /* Füllt den Rest des Bildschirms */
  background: var(--primary-bg);
  z-index: 998; /* Leicht unter dem Header/Button (z-index: 1000/1001) */
  
  /* Animations-Setup */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 3rem;
  padding-top: 1.5rem;
  
  transform: translateY(-110%); /* Startet außerhalb des sichtbaren Bereichs oben */
  transition: transform 0.4s ease-in-out;
}

.mobile-menu.active {
  transform: translateY(0); /* Fährt in den sichtbaren Bereich */
}

.mobile-nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--highlight-color);
}

.mobile-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.mobile-theme-toggle,
.mobile-lang-toggle {
    background: var(--primary-bg);
    border: 1px solid var(--accent-text);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-text);
    font-size: 1rem;
}

.mobile-theme-toggle:hover,
.mobile-lang-toggle:hover {
    background: var(--accent-bg);
    border-color: var(--primary-text);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -3;
    /* iOS Safari video fixes */
    -webkit-playsinline: true;
}

.hero-video::-webkit-media-controls {
    display: none !important;
}

.hero-video::-webkit-media-controls-panel {
    display: none !important;
}

.hero-video::-webkit-media-controls-play-button {
    display: none !important;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-bg);
    z-index: -2;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    opacity: 0.03;
}

.bg-shape-1 {
    width: 2px;
    height: 400px;
    background: var(--line-color);
    top: 10%;
    left: 15%;
    transform: rotate(15deg);
}

.bg-shape-2 {
    width: 2px;
    height: 300px;
    background: var(--line-color);
    top: 20%;
    right: 20%;
    transform: rotate(-10deg);
}

.bg-shape-3 {
    width: 2px;
    height: 350px;
    background: var(--line-color);
    top: 40%;
    left: 80%;
    transform: rotate(25deg);
}

.bg-shape-4 {
    width: 2px;
    height: 200px;
    background: var(--line-color);
    top: 70%;
    left: 30%;
    transform: rotate(-20deg);
}

.bg-shape-5 {
    width: 2px;
    height: 250px;
    background: var(--line-color);
    top: 5%;
    right: 45%;
    transform: rotate(8deg);
}

/* Entferne die Animation für minimalistisches Design */

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: -1;
}

.dark-theme .hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-family: 'Crimson Text', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: white;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.title-line.highlight {
    color: white;
    font-weight: 700;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1s forwards;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    border: 2px solid rgba(255, 255, 255, 0.9);
    text-shadow: none;
}

.cta-primary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.cta-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    transform: translateY(-3px);
    text-shadow: none;
}

.hero-visual {
    position: relative;
    height: 500px;
    animation: slideInRight 1s ease-out;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 12px;
    opacity: 0.8;
}

/* Entfernt die drei Punkte vom Startbildschirm */

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-text);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 16px;
    height: 16px;
    border-right: 2px solid var(--secondary-text);
    border-bottom: 2px solid var(--secondary-text);
    transform: rotate(45deg);
    box-sizing: border-box;
    border-radius: 0;
    background: transparent;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateX(-50%) translateY(0); 
    }
    40% { 
        transform: translateX(-50%) translateY(-10px); 
    }
    60% { 
        transform: translateX(-50%) translateY(-5px); 
    }
}

/* Section Styles */
section {
    padding: 4rem 0;
    position: relative;
}

section:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: var(--line-color);
    opacity: 0.2;
}

.section-title {
    font-family: 'Crimson Text', serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 2.5rem;
    color: var(--primary-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--line-color);
}

/* Journey Section */
.journey {
    background: var(--secondary-bg);
}

.journey-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--highlight-gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.timeline-item::before {
    content: attr(data-year);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: var(--highlight-color);
    border: 3px solid var(--highlight-color);
    z-index: 2;
}

.timeline-content {
    width: 45%;
    background: var(--primary-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    border: 2px solid var(--border-color);
    will-change: transform, opacity;
  /*  transition: all 0.8s ease-out; */
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(odd) .timeline-content:not(.animate-in) {
    opacity: 0;
    transform: translateX(-100px);
}

.timeline-item:nth-child(even) .timeline-content:not(.animate-in) {
    opacity: 0;
    transform: translateX(100px);
}

.timeline-content.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

/* SVG Icon Styling */
.timeline-icon svg {
    width: 60px;
    height: 60px;
    background-color: #4a4a4a;
    border-radius: 12px;
    padding: 18px;
    color: white;
    display: block;
}

.moment-visual svg {
    width: 80px;
    height: 80px;
    background-color: #4a4a4a;
    border-radius: 12px;
    padding: 20px;
    color: white;
    display: block;
}

.card-icon svg {
    width: 80px;
    height: 80px;
    background-color: #4a4a4a;
    border-radius: 12px;
    padding: 20px;
    color: white;
    display: block;
}

.method-icon {
    width: 20px;
    height: 20px;
    background-color: #4a4a4a;
    border-radius: 6px;
    padding: 8px;
    color: white;
    margin-right: 12px;
}

.icon-3d {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-3d.academic {
    background: var(--poly-primary);
}

.icon-3d.experience {
    background: var(--poly-secondary);
}

.icon-3d.growth {
    background: var(--poly-accent);
}

.icon-3d.current {
    background: var(--poly-warning);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.timeline-content p {
    color: var(--secondary-text);
    line-height: 1.6;
}

/* Moments Section */
.moments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.moment-card {
    background: var(--primary-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    /* transition: all 0.6s ease-out; */
    border: 2px solid var(--border-color);
    opacity: 1;
    will-change: transform, opacity;
    transform: scale(1) translateY(0);
}

.moment-card:not(.animate-in) {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
}

.moment-card.animate-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.moment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.moment-visual {
    height: 120px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moment-3d {
    width: 80px;
    height: 80px;
    border-radius: 15px;
}

.moment-3d.achievement {
    background: var(--poly-primary);
}

.moment-3d.leadership {
    background: var(--poly-secondary);
}

.moment-3d.innovation {
    background: var(--poly-accent);
}

.moment-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.moment-card p {
    color: var(--secondary-text);
    line-height: 1.6;
}

/* Drive Section */
.drive {
    background: var(--secondary-bg);
}

.drive-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.drive-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.drive-animation {
    position: relative;
    width: 200px;
    height: 200px;
}

.drive-shape {
    position: absolute;
    border-radius: 50%;
}

.drive-shape.core {
    width: 80px;
    height: 80px;
    background: var(--poly-gradient-1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

.drive-shape.ring {
    border: 3px solid;
    animation: rotate 10s linear infinite;
}

.ring-1 {
    width: 120px;
    height: 120px;
    border-color: var(--poly-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

.ring-2 {
    width: 160px;
    height: 160px;
    border-color: var(--poly-secondary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    animation-direction: reverse;
}

.ring-3 {
    width: 200px;
    height: 200px;
    border-color: var(--poly-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.drive-item {
    margin-bottom: 2.5rem;
}

.drive-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.drive-item p {
    color: var(--secondary-text);
    line-height: 1.6;
}

/* Why Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.why-card {
    background: var(--primary-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    /*transition: all 0.6s ease-out;*/
    border: 2px solid var(--border-color);
    opacity: 1;
    transform: scale(1) translateY(0);
}

.why-card:not(.animate-in) {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
}

.why-card.animate-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.card-icon {
    height: 80px;
    margin-bottom: 1.5rem;
    perspective: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-3d {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 12px;
    animation: cardIconFloat 4s ease-in-out infinite;
}

.analytical-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    animation: iconPulse 2s ease-in-out infinite;
}

.analytical-icon::before {
    content: "📊";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
}

.creative-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
    animation: iconPulse 2s ease-in-out infinite;
    animation-delay: 0.5s;
}

.creative-icon::before {
    content: "💡";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
}

.collaborative-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
    animation: iconPulse 2s ease-in-out infinite;
    animation-delay: 1s;
}

.collaborative-icon::before {
    content: "🤝";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
}

.adaptable-icon {
    position: relative;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border-radius: 50%;
    animation: iconPulse 2s ease-in-out infinite;
    animation-delay: 1.5s;
}

.adaptable-icon::before {
    content: "🎯";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.why-card p {
    color: var(--secondary-text);
    line-height: 1.6;
}

.why-now {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--primary-bg);
    padding: 3rem;
    border-radius: 20px;
    margin-top: 3rem;
}

.now-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.now-animation {
    position: relative;
    width: 100px;
    height: 100px;
}

.pulse-ring {
    position: absolute;
    border: 3px solid var(--highlight-color);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: pulseRing 2s ease-out infinite;
    opacity: 0.6;
}

.pulse-ring.delay-1 {
    animation-delay: 0.5s;
}

.pulse-ring.delay-2 {
    animation-delay: 1s;
}

.pulse-center {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--highlight-gradient);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.now-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.now-content p {
    color: var(--secondary-text);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    background: var(--secondary-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-text);
}

.contact-info p {
    color: var(--secondary-text);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--primary-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
    color: var(--primary-text);
    text-decoration: none;
}

.contact-method:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px var(--shadow-light);
    color: var(--primary-text);
}

.method-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--poly-gradient-1);
}

.contact-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.contact-3d {
    position: relative;
    width: 200px;
    height: 200px;
}

.contact-shape {
    position: absolute;
    border-radius: 15px;
    animation: contactFloat 6s ease-in-out infinite;
}

.contact-shape.primary {
    width: 80px;
    height: 80px;
    background: var(--poly-gradient-1);
    top: 20%;
    left: 30%;
    transform: rotateX(30deg) rotateY(30deg);
}

.contact-shape.secondary {
    width: 60px;
    height: 60px;
    background: var(--poly-gradient-2);
    top: 50%;
    right: 20%;
    transform: rotateX(-20deg) rotateY(40deg);
    animation-delay: 1s;
}

.contact-shape.accent {
    width: 50px;
    height: 50px;
    background: var(--poly-gradient-3);
    bottom: 30%;
    left: 20%;
    transform: rotateX(40deg) rotateY(-30deg);
    animation-delay: 2s;
}

@keyframes contactFloat {
    0%, 100% { transform: rotateX(30deg) rotateY(30deg) translateY(0); }
    50% { transform: rotateX(30deg) rotateY(30deg) translateY(-15px); }
}

/* Legal Pages */
.legal-page {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary-text);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--line-color);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-text);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: var(--primary-text);
}

.legal-section h4 {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--secondary-text);
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--secondary-text);
    text-align: justify;
}

.legal-section ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--secondary-text);
}

.legal-section ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.legal-footer p {
    color: var(--accent-text);
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--primary-bg);
    border-top: 2px solid var(--border-color);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-links a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--highlight-color);
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .nav-controls {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-visible-theme-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem;
        margin: auto 0;
        width: 100%;
        position: relative;
        z-index: 1;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
        margin-top: 0;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        font-size: 1.1rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .drive-content,
    .contact-content,
    .why-now {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact {
        padding: 2rem 0;
    }
    
    .contact-visual {
        height: 200px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .timeline-content {
        width: 100%;
        margin: 2rem 0 !important;
    }
    
    .journey-timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav {
        padding: 1rem;
    }
    
    section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding-top: 80px;
        box-sizing: border-box;
    }
    
    .hero-content {
        padding: 1rem;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
        text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.9);
        margin-top: 0;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .moments-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .contact {
        padding: 1.5rem 0;
    }
    
    .contact-visual {
        height: 150px;
        display: none;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-methods {
        gap: 0.5rem;
    }
    
    .contact-method {
        padding: 0.75rem;
    }
}

.method-icon {
  color: white;
}

.light-theme .method-icon {
  color: black !important;
}

.theme-toggle {
  /* ... andere Stile wie border, width, height etc. ... */
  
  margin-left: 20px; /* Du kannst "20px" durch jeden gewünschten Wert ersetzen */
}

.mobile-menu-toggle {
  /* ... deine bisherigen Stile für den Button ... */
  
  position: relative; /* Wichtig für die z-index-Funktion */
  z-index: 1001;      /* Stellt sicher, dass der Button über dem Menü (z-index: 999) liegt */
}

/* === Scroll-Animationen === */

.timeline-content, .moment-card, .why-card {
    opacity: 0; /* Standardmäßig unsichtbar */
}

/* Regeln, die durch JavaScript hinzugefügt werden, um Animation zu starten */
.timeline-item:nth-child(odd) .timeline-content.animate-in {
    animation: slideInLeft 0.8s ease-out forwards;
}

.timeline-item:nth-child(even) .timeline-content.animate-in {
    animation: slideInRight 0.8s ease-out forwards;
}

.moment-card.animate-in, .why-card.animate-in {
    animation: scaleIn 0.8s ease-out forwards;
}

/* Keyframe-Definitionen */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ======================= Interaktives Bücherregal Styles ======================= */
.bookshelf-section {
    background: var(--secondary-bg);
    padding: 4rem 0;
}

.bookshelf {
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 2rem;
}

.shelf {
    width: 100%;
    max-width: 900px;
    height: 15px;
    background: #6b4f3a;
    border-radius: 5px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}

.dark-theme .shelf {
    background: #4a3728;
}

.shelf-item {
    cursor: pointer;
    transition: transform 0.3s ease-out;
    position: relative; 
    margin-bottom: 5px;
}

.shelf-item:hover {
    transform: translateY(-15px) scale(1.03);
    z-index: 10; 
}

/* Buch-Stil */
.book {
    width: 45px;
    height: 180px;
}
.book.book-thin { width: 30px; }
.book-cover {
    width: 100%;
    height: 100%;
    background-color: var(--accent-bg);
    border: 2px solid var(--border-color);
    border-radius: 2px 4px 4px 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 100%;
    background-color: rgba(0,0,0,0.2);
}
.book-title-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-text);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    opacity: 0.7;
    padding: 5px 0;
}

/* Schallplatten-Stil */
.record {
    width: 160px;
    height: 160px;
}
.record-sleeve {
    width: 100%;
    height: 100%;
    background-color: var(--accent-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.record-label {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 10px solid #333;
    background-color: #eee;
}
.dark-theme .record-label { background-color: #555; border-color: #ccc; }

/* Überlappungs-Stil für Schallplatten */
.record-overlap-left {
    margin-left: -120px;
}

/* KORRIGIERTE Z-INDEX STAPELREIHENFOLGE */
/* Von rechts (niedrig) nach links (hoch), damit Überlappungen korrekt sind */
.shelf-item:nth-child(8) { z-index: 1; } /* Kassette (ganz rechts) */
.shelf-item:nth-child(7) { z-index: 2; } /* Buch */
.shelf-item:nth-child(6) { z-index: 3; } /* Buch */
.shelf-item:nth-child(5) { z-index: 4; } /* Podcast */
.shelf-item:nth-child(4) { z-index: 5; } /* Podcast */
.shelf-item:nth-child(3) { z-index: 6; } /* Schallplatte */
.shelf-item:nth-child(2) { z-index: 7; } /* Schallplatte */
.shelf-item:nth-child(1) { z-index: 8; } /* Schallplatte (ganz links) */


/* Kassetten-Stil */
.cassette {
    width: 100px;
    height: 65px;
}
.cassette-body {
    width: 100%;
    height: 100%;
    background-color: #f0eada;
    border-radius: 5px;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 5px;
}
.cassette-label {
    width: 60%;
    height: 70%;
    background-color: white;
    border: 1px solid #ddd;
}
.cassette-spool {
    width: 18px;
    height: 18px;
    background-color: #333;
    border-radius: 50%;
    border: 3px solid #ddd;
}

/* Podcast-Stil */
.podcast {
    width: 160px;
    height: 160px;
}
.podcast-cover {
    width: 100%;
    height: 100%;
    background: var(--accent-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.podcast-mic-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-text);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3a3 3 0 0 1 6 0v5a3 3 0 0 1-6 0V3z'/%3E%3Cpath d='M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 3a3 3 0 0 1 6 0v5a3 3 0 0 1-6 0V3z'/%3E%3Cpath d='M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z'/%3E%3C/svg%3E") no-repeat center;
}

/* Gruppen-Abstände */
.podcast-group-start { margin-left: 30px; }
.book-group-start { margin-left: 30px; }
.cassette-group-start { margin-left: 30px; }

/* Overlay-Stil */
.bookshelf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.overlay-content {
    background: var(--primary-bg);
    color: var(--primary-text);
    padding: 2rem 3rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.bookshelf-overlay.active .overlay-content {
    transform: scale(1);
}

.overlay-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--accent-text);
    cursor: pointer;
}

.overlay-content h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.overlay-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ======================= Bücherregal Mobile Optimierung ======================= */

@media (max-width: 768px) {
    .shelf {
        gap: 5px; /* Reduziert den Standard-Abstand zwischen allen Elementen */
        justify-content: space-around; /* DIESE ZEILE HINZUFÜGEN */

    }

    /* Reduziert die Gruppen-Abstände auf Mobilgeräten */
    .podcast-group-start,
    .book-group-start,
    .cassette-group-start {
        margin-left: 10px;
    }

    /* Lässt den zweiten Podcast überlappen */
    .podcast-overlap-left {
        margin-left: -80px;
    }
    
    /* Stellt die Stapelreihenfolge der Podcasts sicher */
    .podcast:nth-of-type(4) { z-index: 2; }
    .podcast:nth-of-type(5) { z-index: 1; }
}
