/* === GRUNDEINSTELLUNGEN & VARIABLEN === */
:root {
    --bg-color: #000000;
    --surface-color: #121212;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #1DB954;
    --accent-hover: #25d366;
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* === CURSOR-FOLLOWER === */
.cursor-dot {
    width: 30px;
    height: 30px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s ease-out;
}
.cursor-dot.hover {
    transform: translate(-50%, -50%) scale(1.5);
}

/* === MAIN NAVIGATION (SMART HEADER) === */
.main-nav {
    position: sticky;
    top: 0;
    padding: 15px 0;
    background-color: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.4s ease-out;
    border-bottom: 1px solid transparent;
}
.main-nav.scrolled {
    border-bottom-color: var(--border-color);
}
.main-nav.hidden {
    transform: translateY(-100%);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === HERO-BEREICH === */
.hero {
    padding: 80px 0 120px 0;
    text-align: center;
}

/* HIER IST DIE ÄNDERUNG: Styling für den Logo-Link */
.logo-link {
    text-decoration: none;
    transition: transform 0.2s ease;
}
.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-title {
    font-size: 4.5em;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--accent-color), var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-shine 5s linear infinite;
}

@keyframes gradient-shine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.2em;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px auto;
    min-height: 58px;
}

/* === TYPEWRITER-EFFEKT === */
#typewriter-subtitle, .typewriter-answer {
    position: relative; 
}

#typewriter-subtitle.typing::after,
.typewriter-answer.typing::after {
    content: '|';
    position: absolute;
    bottom: 0;
    margin-left: 5px;
    font-weight: 200;
    color: var(--accent-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* === FINALER MORPHING BUTTON === */
.morph-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Startzustand: Kreis */
.nav-button {
    height: 40px;
    width: 40px;
    font-size: 0.9em;
}
.cta-button {
    height: 54px;
    width: 54px;
    font-size: 1.1em;
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.4);
}

/* Startzustand: Text unsichtbar, Icon sichtbar */
.button-text {
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.button-icon {
    position: absolute;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.button-icon svg {
    stroke: #000;
}

/* Hover-Zustand: Rechteck */
.morph-button:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.7);
}
.nav-button:hover {
    width: 120px;
}
.cta-button:hover {
    width: 250px;
}

/* Hover-Zustand: Text sichtbar, Icon unsichtbar */
.morph-button:hover .button-text {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.1s;
}
.morph-button:hover .button-icon {
    opacity: 0;
    transform: scale(0.8);
}

.version-info {
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
}

/* === FEATURES-BEREICH === */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 100px 0;
    perspective: 1000px;
}
.feature-item {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}
.feature-item:hover {
    transform: rotateX(10deg) rotateY(-5deg) scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.feature-item h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-item p {
    color: var(--text-secondary);
}

/* === GALERIE === */
.gallery {
    padding: 50px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.gallery-item img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* === FAQ-SEKTION === */
.faq {
    padding: 50px 0 100px 0;
    max-width: 760px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 50px;
    color: var(--text-primary);
}

/* === TEXT-ANIMATION === */
.animate-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) scale(0.5);
    will-change: opacity, transform;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 0;
    text-align: left;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: none;
}
.faq-icon {
    font-size: 1.5em;
    font-weight: 400;
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    color: var(--text-secondary);
    font-size: 1.1em;
}
.faq-answer p {
    margin: 0;
    padding: 0 0 25px 0;
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}
footer p {
    margin: 0 0 10px 0;
}
.footer-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* === SCROLL-REVEAL-ANIMATIONEN === */
.hero-title, .cta-button, .feature-item, .gallery-item, .faq-item {
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
}
.hero-subtitle {
    opacity: 1;
}
.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* === RESPONSIVE DESIGN / MOBILE OPTIMIERUNG === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3em;
    }
    .section-title {
        font-size: 2em;
    }
    .features, .gallery {
        padding: 50px 0;
    }
    .nav-button {
        display: none;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5em;
    }
    .hero-subtitle {
        font-size: 1em;
        min-height: 80px;
    }
    .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
}

/* HIER IST DIE ÄNDERUNG: Optimierung für Touch-Geräte */
@media (hover: none) {
    .cursor-dot {
        display: none;
    }
    body {
        cursor: auto;
    }
    /* Zeigt den Button immer in voller Breite an, wenn kein Hover möglich ist */
    .nav-button {
        width: 120px;
    }
    .cta-button {
        width: 250px;
    }
    .button-text {
        opacity: 1;
        transform: scale(1);
    }
    .button-icon {
        display: none; /* Icon komplett ausblenden */
    }
}
