/* Allgemeine Styles */
:root {
    --primary-color: #948bcf;
    --primary-color-rgb: 148, 139, 207;
    --secondary-color: #121212;
    --accent-color: #ff8c42;
    --accent-color-rgb: 255, 140, 66;
    --light-color: #f8f9fa;
    --dark-color: #0a0a0a;
    --text-color: #f8f9fa;
    --text-light: #b0b0b0;
    --font-main: 'Inter', sans-serif;
    --gradient-start: #ff8c42;
    --gradient-end: #9054f7;
    --card-hover-gradient-start: #ff8c42;
    --card-hover-gradient-end: #9054f7;
    --service-hover-shadow: rgba(0, 0, 0, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    /* Diese Werte werden jetzt über theme.css gesteuert */
    /* color: var(--text-color);
    background-color: var(--secondary-color); */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

p {
    margin-bottom: 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header und Navigation */
header {
    background-color: rgba(10, 10, 10, 0.8);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    color: var(--light-color);
    text-decoration: none;
    display: block;
}

.logo-svg,
.logo-fallback {
    width: 220px;
    height: 75px;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--light-color);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav ul li a:hover, 
nav ul li a[aria-current="page"] {
    color: var(--primary-color);
}

/* Hero-Bereich */
.hero {
    background-color: var(--secondary-color);
    color: var(--light-color);
    text-align: center;
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 140px);
    height: calc(100dvh - 140px);
    /* Fallback für Browser ohne dvh Support */
    height: calc(var(--vh, 1vh) * 100 - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 140, 66, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(144, 84, 247, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero::after {
    content: none;
}

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

.hero .oval-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    opacity: 0.3;
    filter: blur(30px);
    will-change: transform;
}

.hero .oval-shape:nth-child(1) {
    width: 40vmin;
    height: 25vmin;
    top: 25%;
    left: 60%;
    transform-origin: center;
    animation: 
        moveX1 18s ease-in-out infinite alternate, 
        moveY1 15s ease-in-out infinite alternate-reverse, 
        rotateAndScale 25s linear infinite;
}

.hero .oval-shape:nth-child(2) {
    width: 35vmin;
    height: 20vmin;
    top: 60%;
    left: 30%;
    animation: 
        moveX2 20s ease-in-out infinite alternate-reverse, 
        moveY2 14s cubic-bezier(0.68, -0.6, 0.32, 1.6) infinite alternate, 
        rotateAndScale 18s linear infinite reverse;
}

.hero .oval-shape:nth-child(3) {
    width: 25vmin;
    height: 35vmin;
    top: 40%;
    left: 45%;
    animation: 
        moveX3 16s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate, 
        moveY3 22s ease-in-out infinite alternate-reverse, 
        rotateAndScale 22s linear infinite;
}

/* X-Achsen Bewegungen */
@keyframes moveX1 {
    0% { transform: translateX(-15px); }
    33% { transform: translateX(5px); }
    66% { transform: translateX(-5px); }
    100% { transform: translateX(15px); }
}

@keyframes moveX2 {
    0% { transform: translateX(20px); }
    40% { transform: translateX(-10px); }
    70% { transform: translateX(5px); }
    100% { transform: translateX(-15px); }
}

@keyframes moveX3 {
    0% { transform: translateX(-10px); }
    45% { transform: translateX(15px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(10px); }
}

/* Y-Achsen Bewegungen */
@keyframes moveY1 {
    0% { transform: translateY(10px); }
    35% { transform: translateY(-15px); }
    70% { transform: translateY(5px); }
    100% { transform: translateY(-10px); }
}

@keyframes moveY2 {
    0% { transform: translateY(-15px); }
    42% { transform: translateY(10px); }
    68% { transform: translateY(-7px); }
    100% { transform: translateY(15px); }
}

@keyframes moveY3 {
    0% { transform: translateY(15px); }
    38% { transform: translateY(-8px); }
    65% { transform: translateY(12px); }
    100% { transform: translateY(-15px); }
}

/* Rotation und Skalierung */
@keyframes rotateAndScale {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.hero .container {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-heading {
    font-size: 3.4rem;
    margin-bottom: 20px;
    color: var(--hero-heading-color);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: none;
}

.hero-heading span {
    display: block;
    font-size: 4.2rem;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.hero .tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 40px;
    color: var(--text-light);
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(148, 139, 207, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 139, 207, 0.6);
}

.cta-button:hover::before {
    transform: translateX(100%);
}

/* Kundenlogos-Bereich */
.client-logos {
    background-color: var(--secondary-background);
    padding: 20px 0;
    text-align: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
    border-top: 1px solid rgba(150, 150, 150, 0.1);
    border-bottom: 1px solid rgba(150, 150, 150, 0.1);
}

.client-logos .container {
    position: relative;
    z-index: 1;
}

.client-logos h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0;
}

/* Die Gradienten werden direkt auf den client-logos Abschnitt angewendet */
.client-logos::before,
.client-logos::after {
    content: "";
    position: absolute;
    top: 0;
    width: 30%;
    height: 100%;
    z-index: 20;
    pointer-events: none;
}

.client-logos::before {
    position: absolute;
    left: 0;
    background: linear-gradient(to right, 
                var(--secondary-background) 0%, 
                var(--secondary-background) 60%, 
                transparent 100%);
}

.client-logos::after {
    right: 0;
    background: linear-gradient(to left, 
                var(--secondary-background) 0%, 
                var(--secondary-background) 60%, 
                transparent 100%);
}

.logo-slider {
    display: flex;
    align-items: center;
    animation: logoScroll 80s linear infinite;
    width: max-content;
    gap: 60px;
    padding: 0 40px;
    margin: 5px auto;
    justify-content: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 75px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-container img {
    max-height: 100%;
    max-width: 160px;
    opacity: 0.7;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-container:hover img {
    opacity: 1;
}

.logo-slider:hover {
    animation-play-state: paused;
}

@keyframes logoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .logo-slider {
        gap: 40px;
        animation-duration: 80s;
    }
    
    .logo-container {
        height: 65px;
    }
    
    .logo-container img {
        max-width: 140px;
    }
    
    .client-logos::before,
    .client-logos::after {
        width: 20%;
    }

    .client-logos {
        padding: 15px 0;
    }
}

@media (max-width: 576px) {
    .client-logos {
        padding: 15px 0;
    }
    
    .client-logos h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .logo-slider {
        gap: 30px;
        animation-duration: 60s;
        padding: 0 20px;
    }
    
    .logo-container {
        height: 55px;
    }
    
    .logo-container img {
        max-width: 120px;
    }
    
    .client-logos::before,
    .client-logos::after {
        width: 15%;
    }
}

/* Services-Bereich */
.services {
    background-color: var(--dark-color);
    padding: 100px 0;
}

.services h2 {
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    /* Hintergrundfarbe entfernt, damit Theme-Variablen verwendet werden */
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform-origin: center bottom;
    --visibility: 0;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 139, 207, 0.1);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary-color);
    transition: stroke 0.3s ease, transform 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #ff8c42, #9054f7);
    transition: height 0.3s ease;
}

/* ===== DESKTOP-ANIMATIONS (nur auf Desktop-Geräten) ===== */
@media (min-width: 769px) {
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        border-color: rgba(148, 139, 207, 0.2);
    }
    
    .service-card:hover::before {
        height: 100%;
    }
    
    .service-card:hover .service-icon {
        transform: scale(1.1);
        background: linear-gradient(135deg, var(--card-hover-gradient-start), var(--card-hover-gradient-end));
    }
    
    .service-card:hover .service-icon svg {
        stroke: #ffffff;
        transform: scale(1.1);
        animation: pulse 2s infinite;
    }
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
}

.service-card p {
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

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

/* ===== MOBILE-ANIMATIONS (nur auf mobilen Geräten) ===== */
@media (max-width: 768px) {
    .service-card {
        padding: 30px 20px;
        /* Für Scroll-Animation basierend auf Sichtbarkeit */
        transform: translateY(calc((1 - var(--visibility)) * 20px));
        opacity: calc(0.5 + (var(--visibility) * 0.5));
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    }
    
    .service-card.is-visible {
        box-shadow: 0 calc(var(--visibility) * 10px) calc(var(--visibility) * 25px) rgba(0, 0, 0, 0.2);
        border-color: rgba(148, 139, 207, 0.2);
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        transition: transform 0.5s ease, background 0.5s ease;
    }
    
    .service-card.is-visible .service-icon {
        transform: scale(calc(1 + (var(--visibility) * 0.1)));
        background: linear-gradient(135deg, var(--card-hover-gradient-start), var(--card-hover-gradient-end));
    }
    
    .service-icon svg {
        width: 35px;
        height: 35px;
        transition: stroke 0.5s ease, transform 0.5s ease;
    }
    
    .service-card.is-visible .service-icon svg {
        stroke: #ffffff;
        animation: pulse 2s infinite;
    }
    
    .service-card::before {
        transition: height 0.8s ease;
    }
    
    .service-card.is-visible::before {
        /* Streifen proportional zur Sichtbarkeit wachsen lassen */
        height: calc(var(--visibility) * 100%);
    }
}

@media (max-width: 576px) {
    .services-grid {
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 15px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
}

/* Über uns */
.about {
    background-color: var(--secondary-color);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--gradient-start) 0%, transparent 70%);
    opacity: 0.05;
    border-radius: 50%;
}

.about h2 {
    margin-bottom: 40px;
}

.about p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 25px;
}

/* Statistik-Bereich Styling */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 60px;
    gap: 30px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: none;
}

.stat-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    /* Explizite Farbwerte anstelle von Variablen, um konsistente Darstellung zu gewährleisten */
    background: linear-gradient(90deg, #ff8c42, #9054f7);
    transition: height 0.5s ease;
    /* Garantiert, dass keine Filter angewendet werden, die die Farben verändern könnten */
    filter: none;
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-item:hover::before {
    height: 6px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    display: inline-block;
}

.stat-suffix {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 10px;
}

/* Responsives Design für die Zahlen */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .stat-number {
        font-size: 2.8rem;
    }
    
    .stat-suffix {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

/* Fußnote für Statistiken */
.stats-footnote {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.8;
    font-style: italic;
}

.stats-footnote p {
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .stats-footnote {
        font-size: 0.75rem;
        margin-top: 15px;
    }
}

/* Projekte */
.projects {
    background-color: var(--secondary-color);
    padding: 100px 0;
}

.projects h2 {
    margin-bottom: 60px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    /* Hintergrundfarbe entfernt, damit Theme-Variablen verwendet werden */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(148, 139, 207, 0.2);
}

.project-card h3 {
    padding: 25px 25px 0 25px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.project-card p {
    padding: 0 25px 25px 25px;
    color: var(--text-light);
}



/* Cookie-Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background-color: rgba(10, 10, 10, 0.95);
    color: var(--text-light);
    padding: 20px 30px;
    display: none;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(148, 139, 207, 0.2);
    backdrop-filter: blur(10px);
}

.cookie-banner p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.cookie-banner a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner a:hover {
    color: var(--light-color);
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cookie-buttons button {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

#accept-cookies {
    background-color: var(--primary-color);
    color: var(--light-color);
}

#accept-cookies:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(148, 139, 207, 0.4);
}

#reject-cookies {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#reject-cookies:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light-color);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Rechtliche Seiten (Impressum, Datenschutz) */
.legal {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px;
}

.legal h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.legal h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.legal h3 {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal p,
.legal ul {
    margin-bottom: 15px;
}

.legal ul {
    padding-left: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 12px 0; /* Etwas mehr Padding */
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 10px; /* Etwas mehr Abstand zwischen Logo und Navigation */
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 4px; /* Leichter Abstand zwischen den Menüzeilen */
    }
    
    nav ul li {
        margin: 0 10px;
        line-height: 1.3; /* Etwas mehr Zeilenhöhe */
    }
    
    nav ul li a {
        font-size: 0.85rem;
        padding: 4px 0; /* Etwas mehr vertikales Padding */
        display: inline-block;
    }
    
    .hero-heading {
        font-size: 2.8rem;
    }
    
    .hero-heading span {
        font-size: 3.2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .logo-svg,
    .logo-fallback {
        width: 160px; /* Kleineres Logo */
        height: 50px; /* Reduzierte Höhe */
    }
}

@media (max-width: 576px) {
    header {
        padding: 10px 0; /* Etwas mehr Padding für sehr kleine Geräte */
    }
    
    nav ul {
        justify-content: center;
        margin-top: 8px; /* Etwas mehr Abstand */
        row-gap: 2px; /* Leichter Abstand zwischen den Menüzeilen */
    }
    
    nav ul li {
        margin: 0 6px;
        line-height: 1.2; /* Etwas mehr Zeilenhöhe */
    }
    
    nav ul li a {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        padding: 3px 2px; /* Etwas mehr Padding */
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-heading {
        font-size: 2.2rem;
    }
    
    .hero-heading span {
        font-size: 2.6rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo,
    .footer-links,
    .footer-contact {
        margin-bottom: 20px;
    }
    
    .logo-svg,
    .logo-fallback {
        width: 140px; /* Noch kleineres Logo */
        height: 45px; /* Minimal nötige Höhe */
    }
}

@media (max-width: 400px) {
    nav ul li {
        margin: 0 4px;
    }
    
    nav ul li a {
        font-size: 0.7rem;
        letter-spacing: 0;
    }
}

/* 404 Fehlerseite */
.error-page {
    padding: 100px 0;
    text-align: center;
}

.error-page h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.error-page ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.error-page ul li {
    margin-bottom: 15px;
}

.error-page ul li a {
    font-weight: 600;
}

/* Accessibility & SEO Improvements */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

address {
    font-style: normal;
    line-height: 1.6;
}

/* Print styles für bessere Accessibility */
@media print {
    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }
    
    header, footer, .hero, .cookie-banner {
        display: none;
    }
    
    main {
        width: 100%;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }
}

.stats-footnote p {
    font-size: 0.8rem;
    color: var(--text-light);
}

@media (max-width: 576px) {
    .stats-footnote {
        margin-top: 20px;
        text-align: center;
    }
}

/* Prozess-Sektion mit Timeline */
.process {
    background-color: var(--secondary-background);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.05) 0%, rgba(var(--accent-color-rgb), 0.05) 100%);
    z-index: 1;
}

.process h2 {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.process .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 120px;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

/* Timeline Container */
.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 0 80px; /* Erhöhter Abstand nach unten */
    z-index: 2;
}

/* Vertikale Linie in der Mitte */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: #948bcf;
    top: 20px; /* Begrenzt die Linie nach oben */
    bottom: 20px; /* Begrenzt die Linie nach unten */
    left: 50%;
    margin-left: -1px;
    z-index: 1;
}

/* Animierter Punkt, der entlang der Timeline wandert - deaktiviert */
.timeline-tracker {
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
    display: none; /* Tracker ausblenden */
}

.tracker-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ff8c42, #9054f7);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-shadow: 0 0 15px rgba(255, 140, 66, 0.8), 0 0 25px rgba(144, 84, 247, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease, box-shadow 0.5s ease;
    animation: pulse-glow 2s infinite alternate;
    top: 0;
    display: none; /* Tracker-Punkt ausblenden */
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 140, 66, 0.7), 0 0 15px rgba(144, 84, 247, 0.4);
        transform: translateX(-50%) translateY(-50%) scale(0.9);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 140, 66, 0.9), 0 0 30px rgba(144, 84, 247, 0.6);
        transform: translateX(-50%) translateY(-50%) scale(1.1);
    }
}

.tracker-dot.visible {
    opacity: 0; /* Auch im sichtbaren Zustand ausblenden */
    display: none;
}

/* Einzelne Timeline-Items */
.timeline-item {
    padding: 20px 35px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 30px;
}

/* Wenn das Element sichtbar wird */
.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Linke Seite */
.timeline-item.left {
    left: 0;
}

.timeline-item.left::before {
    content: "";
    position: absolute;
    top: 30px;
    right: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent transparent var(--secondary-background);
    z-index: 3;
}

/* Rechte Seite */
.timeline-item.right {
    left: 50%;
}

.timeline-item.right::before {
    content: "";
    position: absolute;
    top: 30px;
    left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: transparent var(--secondary-background) transparent transparent;
    z-index: 3;
}

/* Inhalt der Timeline */
.timeline-content {
    padding: 20px;
    background: var(--secondary-background);
    position: relative;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
    border: 1px solid rgba(148, 139, 207, 0.1);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: rgba(148, 139, 207, 0.2);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: var(--text-color);
}

.timeline-content p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Step-Titel */
.timeline-step {
    font-weight: bold;
    margin-bottom: 12px;
    color: #948bcf;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

/* Timeline-Icon */
.timeline-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #ff8c42 0%, #9054f7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(148, 139, 207, 0.3);
}

.timeline-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Timeline-Dekorationen (Glühbirne und Rakete) */
.timeline-decoration {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    background-color: var(--secondary-background);
    border-radius: 50%;
    border: 2px solid rgba(148, 139, 207, 0.3);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.timeline-decoration.visible {
    opacity: 1;
}

.timeline-start {
    top: -95px; /* Reduzierter Abstand zum Timeline-Beginn */
    transform: translateX(-50%) translateY(0);
    left: 50%;
    margin-top: 0;
    background-color: var(--secondary-background);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.timeline-start.visible {
    transform: translateX(-50%) translateY(0);
}

.timeline-end {
    bottom: -80px; /* Geringerer Abstand nach unten zum Timeline-Ende */
    transform: translateX(-50%) translateY(0);
    left: 50%;
    margin-bottom: 0;
}

.timeline-end.visible {
    transform: translateX(-50%) translateY(0);
}

/* Glühbirnen-Animation */
.idea-animation {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.idea-bulb {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(var(--primary-color-rgb), 0.6));
    animation: bulbGlow 3s infinite alternate;
}

@keyframes bulbGlow {
    0% {
        color: var(--primary-color);
        filter: drop-shadow(0 0 5px rgba(var(--primary-color-rgb), 0.4));
    }
    100% {
        color: var(--accent-color);
        filter: drop-shadow(0 0 12px rgba(var(--accent-color-rgb), 0.8));
    }
}

.idea-rays {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.ray {
    position: absolute;
    background: linear-gradient(to right, #ff8c42, #9054f7);
    border-radius: 2px;
    opacity: 0;
    transform-origin: center;
    animation: rayFade 3s infinite;
}

.ray1, .ray4 {
    width: 20px;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.ray1 {
    left: -10px;
    animation-delay: 0.2s;
}

.ray4 {
    right: -10px;
    animation-delay: 0.8s;
}

.ray2, .ray5 {
    width: 2px;
    height: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.ray2 {
    top: -10px;
    animation-delay: 0.4s;
}

.ray5 {
    bottom: -10px;
    animation-delay: 1s;
}

.ray3, .ray6 {
    width: 15px;
    height: 2px;
}

.ray3 {
    top: 25%;
    left: -5px;
    transform: rotate(-45deg);
    animation-delay: 0.6s;
}

.ray6 {
    bottom: 25%;
    right: -5px;
    transform: rotate(-45deg);
    animation-delay: 1.2s;
}

@keyframes rayFade {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8) translateY(-50%);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2) translateY(-50%);
    }
}

/* Raketen-Animation */
.rocket-animation {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rocket {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
    transform: rotate(45deg);
    animation: rocketMove 4s infinite ease-in-out;
}

@keyframes rocketMove {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(-10px);
    }
}

.rocket-flames {
    position: absolute;
    bottom: 25px;
    left: 25px;
    transform: rotate(45deg);
    z-index: 1;
}

.flame {
    position: absolute;
    border-radius: 50% 0 50% 50%;
    transform-origin: top right;
    opacity: 0.8;
    filter: blur(2px);
    animation: flameFlicker 0.5s infinite alternate;
}

.flame1 {
    width: 12px;
    height: 12px;
    background: #ff5722;
    bottom: 0;
    right: 0;
    animation-delay: 0.1s;
}

.flame2 {
    width: 8px;
    height: 8px;
    background: #ffeb3b;
    bottom: 2px;
    right: 2px;
    animation-delay: 0.2s;
}

.flame3 {
    width: 5px;
    height: 5px;
    background: #fff;
    bottom: 3px;
    right: 3px;
    animation-delay: 0.3s;
}

@keyframes flameFlicker {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.2);
        opacity: 0.9;
    }
}

/* Responsive Anpassungen für die Timeline */
@media (max-width: 768px) {
    .process {
        padding: 80px 0 150px; /* Mehr Platz nach unten */
    }
    
    .timeline {
        padding: 150px 0 200px; /* Erhöht den Abstand oben und unten */
        margin-bottom: 0; /* Entfernt zusätzlichen Rand unten */
    }
    
    .timeline::after {
        left: 50%;
        transform: translateX(-50%);
        top: 20px; /* Begrenzt die Linie nach oben */
        bottom: 20px; /* Begrenzt die Linie nach unten */
        z-index: 1;
    }
    
    .timeline-tracker {
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        z-index: 2;
        position: relative;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item.left::before,
    .timeline-item.right::before {
        display: none;
    }
    
    .timeline-decoration {
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
    }
    
    .timeline-start {
        top: -95px; /* Reduzierter Abstand zum Timeline-Beginn */
        transform: translateX(-50%) translateY(0);
        margin-top: 0;
        z-index: 5;
        background-color: var(--secondary-background);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }
    
    .timeline-end {
        bottom: -80px; /* Geringerer Abstand nach unten zum Timeline-Ende */
        transform: translateX(-50%) translateY(0);
        z-index: 10; /* Höherer z-index, um sicherzustellen, dass die Rakete über anderen Elementen liegt */
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .process {
        padding: 60px 0 150px; /* Noch mehr Abstand nach unten */
    }
    
    .timeline {
        padding: 150px 0 200px; /* Noch mehr Abstand oben und unten */
        margin-bottom: 0;
    }
    
    .timeline::after {
        left: 50%;
        transform: translateX(-50%);
        top: 20px; /* Begrenzt die Linie nach oben */
        bottom: 20px; /* Begrenzt die Linie nach unten */
        z-index: 1;
    }
    
    .timeline-tracker {
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
    }
    
    .timeline-decoration {
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
        width: 70px;
        height: 70px;
    }
    
    .timeline-item {
        padding-left: 15px;
        padding-right: 15px;
        position: relative;
        z-index: 2;
    }
    
    .timeline-item.left::before,
    .timeline-item.right::before {
        display: none;
    }
    
    .timeline-start {
        left: 50%;
        top: -95px; /* Reduzierter Abstand zum Timeline-Beginn */
        transform: translateX(-50%) translateY(0);
        margin-top: 0;
        z-index: 5;
        background-color: var(--secondary-background);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    }
    
    .timeline-end {
        left: 50%;
        bottom: -80px; /* Geringerer Abstand nach unten zum Timeline-Ende */
        transform: translateX(-50%) translateY(0);
        z-index: 10; /* Höherer z-index, um sicherzustellen, dass die Rakete über anderen Elementen liegt */
        margin-bottom: 0;
    }
    
    .timeline-end.visible {
        opacity: 1; /* Explizit auf 1 setzen, um sicherzustellen, dass die Rakete sichtbar ist */
    }
    
    .idea-bulb, .rocket {
        width: 40px;
        height: 40px;
    }
}

/* Sicherstellen, dass die Farben im Light-Modus korrekt sind */
html[data-theme="light"] .timeline-icon {
    background: linear-gradient(135deg, #ff8c42 0%, #9054f7 100%);
}

html[data-theme="light"] .timeline::after {
    background: #948bcf;
}

html[data-theme="light"] .timeline-endpoint {
    background: linear-gradient(135deg, #ff8c42, #9054f7);
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.6), 0 0 15px rgba(144, 84, 247, 0.3);
}

html[data-theme="light"] .timeline-step {
    color: #948bcf;
}

html[data-theme="light"] .ray {
    background: linear-gradient(to right, #ff8c42, #9054f7);
}

html[data-theme="light"] .tracker-dot {
    background: linear-gradient(135deg, #ff8c42, #9054f7);
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.8), 0 0 20px rgba(144, 84, 247, 0.4);
}

html[data-theme="light"] .idea-bulb {
    color: #948bcf;
}

html[data-theme="light"] .rocket {
    color: #948bcf;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .timeline-icon {
        background: linear-gradient(135deg, #ff8c42 0%, #9054f7 100%);
    }
    
    :root:not([data-theme="dark"]) .timeline::after {
        background: #948bcf;
    }
    
    :root:not([data-theme="dark"]) .timeline-endpoint {
        background: linear-gradient(135deg, #ff8c42, #9054f7);
        box-shadow: 0 0 10px rgba(255, 140, 66, 0.6), 0 0 15px rgba(144, 84, 247, 0.3);
    }
    
    :root:not([data-theme="dark"]) .timeline-step {
        color: #948bcf;
    }
    
    :root:not([data-theme="dark"]) .ray {
        background: linear-gradient(to right, #ff8c42, #9054f7);
    }
    
    :root:not([data-theme="dark"]) .tracker-dot {
        background: linear-gradient(135deg, #ff8c42, #9054f7);
        box-shadow: 0 0 10px rgba(255, 140, 66, 0.8), 0 0 20px rgba(144, 84, 247, 0.4);
    }
    
    :root:not([data-theme="dark"]) .idea-bulb {
        color: #948bcf;
    }
    
    :root:not([data-theme="dark"]) .rocket {
        color: #948bcf;
    }
}

 