html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { font-family: 'Poppins', sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .heading { font-family: 'Playfair Display', serif; }
::selection { background: rgba(212, 175, 55, 0.35); color: #fff; }

.gradient-gold { background: linear-gradient(135deg, #d4af37 0%, #e6c541 100%); }
.text-gradient { background: linear-gradient(135deg, #d4af37 0%, #e6c541 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gold-border { border-color: #d4af37; }
.hover-gold { transition: all 0.3s ease; }
.hover-gold:hover { border-color: #d4af37; box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
.hover-lift { transition: transform 0.3s ease; }
.hover-lift:hover { transform: translateY(-4px); }

:focus-visible { outline: 2px solid #e6c541; outline-offset: 3px; border-radius: 0.5rem; }

/* Checklisten mit goldenen Haken */
.check-list li { position: relative; padding-left: 1.625rem; }
.check-list li::before {
    content: ''; position: absolute; left: 0; top: 0.125rem; width: 1rem; height: 1rem;
    background-color: #d4af37;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Icon-Kacheln: einheitliches Line-Icon-Set in Gold */
.icon-tile {
    width: 3.5rem; height: 3.5rem; border-radius: 0.875rem;
    display: flex; align-items: center; justify-content: center;
    color: #e6c541;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.03) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.icon-tile svg { width: 1.625rem; height: 1.625rem; }
.icon-tile img { width: 1.75rem; height: 1.75rem; object-fit: contain; opacity: 0.85; transition: opacity 0.3s ease; }
.group:hover .icon-tile {
    color: #f3d867; border-color: rgba(230, 197, 65, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 24px rgba(212, 175, 55, 0.18);
}
.group:hover .icon-tile img { opacity: 1; }

/* Kleine Icons in der Portfolio-Vorschau (Farbe = Balkenfarbe) */
.legend-icon {
    width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 14%, transparent);
}
.legend-icon svg { width: 1rem; height: 1rem; }

/* Navigation: aktiver Abschnitt */
.nav-link { position: relative; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: #fbbf24; transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: #fbbf24; }

/* FAQ Accordion mit weicher Höhe */
.faq-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.faq-item.open .faq-content { grid-template-rows: 1fr; }
.faq-content > div { overflow: hidden; }
.faq-item.open .faq-icon { transform: rotate(180deg); }

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Animation Classes */
.scroll-animate, .scroll-animate-left, .scroll-animate-right, .scroll-animate-scale { opacity: 0; }
.scroll-animate.visible { animation: fadeInUp 0.8s ease-out forwards; }
.scroll-animate-left.visible { animation: fadeInLeft 0.8s ease-out forwards; }
.scroll-animate-right.visible { animation: fadeInRight 0.8s ease-out forwards; }
.scroll-animate-scale.visible { animation: scaleIn 0.8s ease-out forwards; }

/* Staggered animations for scroll */
.scroll-stagger > * { opacity: 0; animation: none; }
.scroll-stagger.visible > * { animation: fadeInUp 0.8s ease-out forwards; }
.scroll-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.scroll-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.scroll-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.scroll-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.scroll-stagger > *:nth-child(5) { animation-delay: 0.5s; }
.scroll-stagger > *:nth-child(6) { animation-delay: 0.6s; }
.scroll-stagger > *:nth-child(7) { animation-delay: 0.7s; }
.scroll-stagger > *:nth-child(8) { animation-delay: 0.8s; }

.animate-float { animation: float 3s ease-in-out infinite; }

/* Ohne JavaScript alles sichtbar lassen */
.no-js .scroll-animate, .no-js .scroll-animate-left, .no-js .scroll-animate-right,
.no-js .scroll-animate-scale, .no-js .scroll-stagger > * { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
    .scroll-animate, .scroll-animate-left, .scroll-animate-right,
    .scroll-animate-scale, .scroll-stagger > * { opacity: 1 !important; }
}

/* Video-Modal */
.video-modal {
    width: min(960px, calc(100vw - 32px));
    max-width: none;
    padding: 0;
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 1rem;
    background: #000;
    overflow: visible;
}
.video-modal::backdrop { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(4px); }
.video-modal video { display: block; width: 100%; max-height: 80vh; border-radius: 1rem; }
.video-modal-close {
    position: absolute;
    top: -44px;
    right: 0;
    padding: 6px;
    color: #fbbf24;
    border-radius: 9999px;
    transition: color 0.2s, background-color 0.2s;
}
.video-modal-close:hover { color: #fff; background: rgba(251, 191, 36, 0.15); }
