/* extra.css – Additional visual polish & micro-animations */

/* ---------- Scroll reveal animations ---------- */
.card,
.feature-card {
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 0.6s ease forwards;
}

.card:nth-child(1) {
    animation-delay: 0.05s;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.15s;
}

.card:nth-child(4) {
    animation-delay: 0.2s;
}

.card:nth-child(5) {
    animation-delay: 0.25s;
}

.card:nth-child(6) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Smooth gradient border on card hover ---------- */
.card.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card.glass {
    position: relative;
    overflow: hidden;
}

.card.glass:hover::before {
    opacity: 1;
}

/* ---------- Nav active link indicator ---------- */
.nav-links a.active {
    color: var(--accent);
    background: var(--accent-dim);
}

/* ---------- Focus states for accessibility ---------- */
.btn:focus-visible,
.dns-tab:focus-visible,
.nav-links a:focus-visible,
.code:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- Scrollbar styling ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--grey);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ---------- Selection color ---------- */
::selection {
    background: rgba(230, 126, 34, 0.3);
    color: #fff;
}

/* ---------- Subtle glow behind section titles ---------- */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 3px;
    margin-top: 0.5rem;
}

/* ---------- Mobile nav toggle animation ---------- */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hover underline effect on footer links ---------- */
.footer-col a {
    position: relative;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-col a:hover::after {
    width: 100%;
}

/* ---------- Back to top indicator on scroll ---------- */
.nav-brand img {
    transition: transform 0.3s ease;
}

.nav.scrolled .nav-brand img {
    transform: rotate(-5deg) scale(0.95);
}


/* ---------- DNS tab active transition ---------- */
.dns-tab {
    position: relative;
}

.dns-tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.35rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
}

/* ---------- Animated gradient separator ---------- */
.section+.section-alt::before,
.section-alt+.section::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), rgba(230, 126, 34, 0.15), var(--border), transparent);
}

/* ---------- Code hover glow ---------- */
.code:hover {
    box-shadow: 0 0 0 1px rgba(230, 126, 34, 0.1);
}

/* ---------- Status item animation ---------- */
.status-count {
    transition: transform 0.3s ease;
}

.status-item:hover .status-count {
    transform: scale(1.05);
}

/* ---------- Feature card icon bounce on hover ---------- */
.feature-card:hover .feature-icon {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* ---------- Print styles ---------- */
@media print {

    .nav,
    .hero-bg,
    .nav-toggle {
        display: none;
    }

    .hero {
        padding-top: 2rem;
        min-height: auto;
    }

    body {
        background: #fff;
        color: #333;
    }

    .card.glass {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* ========== FAQ / Häufige Fragen ========== */
.faq-list {
    max-width: 820px;
    margin: 2.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--tint-5);
}

.faq-item[open] {
    border-color: rgba(230, 126, 34, 0.45);
    box-shadow: var(--shadow-glow);
}

.faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--text-primary);
    list-style: none;
    transition: color var(--transition);
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item > summary:hover {
    color: var(--accent);
}

.faq-item > summary::after {
    content: "+";
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card-inner);
    color: var(--accent);
    font-size: 1.35rem;
    line-height: 1;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.faq-item > summary:hover::after {
    border-color: var(--accent);
}

.faq-item[open] > summary::after {
    transform: rotate(45deg);
    background: var(--accent);
    color: var(--bg-body);
    border-color: var(--accent);
}

.faq-answer {
    padding: 1.15rem 1.5rem 1.4rem;
    border-top: 1px solid var(--border);
    color: var(--text-desc);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-item[open] .faq-answer {
    animation: faqReveal 0.28s ease;
}

@keyframes faqReveal {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-item[open] .faq-answer {
        transition: none;
        animation: none;
    }
}

/* ========== Einstellungen-Widget (Design / Sprache) ==========
   1:1 nach dem Vorbild von adminforge.de: die Pille selbst bleibt IMMER
   dunkel (unabhängig vom Seiten-Theme), nur das Dropdown passt sich an. */
.pref-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: rgb(35, 40, 40);
    border: 1px solid rgb(46, 54, 54);
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.pref-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 100px;
    background: transparent;
    color: rgb(140, 155, 157);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.pref-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgb(255, 255, 255);
}

.pref-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Das hidden-Attribut wirkt nicht auf SVG-Elemente – explizit ausblenden,
   sonst rendern alle drei Theme-Icons gleichzeitig nebeneinander. */
.pref-icon[hidden] {
    display: none;
}

.pref-divider {
    width: 1px;
    height: 20px;
    background: rgb(46, 54, 54);
    flex-shrink: 0;
}

.pref-lang {
    position: relative;
}

.pref-lang-btn {
    font-size: 17px;
}

.pref-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 90px;
    padding: 4px;
    background: rgb(35, 40, 40);
    border: 1px solid rgb(46, 54, 54);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(6px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
}

.pref-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

:root[data-theme="light"] .pref-dropdown {
    background: rgb(245, 247, 245);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.pref-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgb(140, 155, 157);
    font-family: var(--font-sans);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.pref-opt:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgb(255, 255, 255);
}

.pref-opt.active {
    color: rgb(255, 255, 255);
    font-weight: 600;
}

:root[data-theme="light"] .pref-opt {
    color: rgb(85, 85, 85);
}

:root[data-theme="light"] .pref-opt:hover {
    background: rgba(0, 0, 0, 0.06);
    color: rgb(34, 34, 34);
}

:root[data-theme="light"] .pref-opt.active {
    color: rgb(34, 34, 34);
    font-weight: 600;
}

@media (max-width: 480px) {
    .pref-widget {
        bottom: 1rem;
        right: 1rem;
    }
}

/* ========== Sponsor Banner (giebelWORKSPACE) ========== */
.sponsor-banner-wrap {
    padding: 2rem 0 1rem;
}

.sponsor-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(230, 126, 34, 0.3);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1) 0%, rgba(230, 126, 34, 0.02) 100%);
}

.sponsor-banner-text {
    flex: 1;
    min-width: 240px;
}

.sponsor-banner-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.sponsor-banner-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin: 0 0 0.3rem;
}

.sponsor-banner-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.sponsor-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    transition: all var(--transition);
}

.sponsor-banner-cta:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230, 126, 34, 0.4);
}

@media (max-width: 640px) {
    .sponsor-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.25rem;
    }

    .sponsor-banner-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}