.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(8, 14, 21, .88); backdrop-filter: blur(18px); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 42px; aspect-ratio: 1; border: 1px solid var(--primary); border-radius: 12px; color: var(--primary-light); font-family: Anton, sans-serif; letter-spacing: .04em; background: #0c1723; }
.brand-word { font-family: Anton, sans-serif; font-size: 1.45rem; letter-spacing: .02em; }
.brand-word strong { color: white; }
.brand-word em { color: var(--primary-light); font-style: normal; }
.header-search { flex: 1; max-width: 470px; margin-inline: auto; position: relative; }
.header-search input { width: 100%; min-height: 44px; padding: 0 46px 0 16px; border-radius: 12px; border: 1px solid var(--border); color: var(--text); background: rgba(255,255,255,.04); outline: none; }
.header-search input:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(46,168,255,.12); }
.header-search button { position: absolute; right: 8px; top: 7px; width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; }
.desktop-nav { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--muted); font-weight: 700; }
.nav-link:hover, .nav-link.is-active { color: white; }
.site-main { min-height: calc(100vh - 160px); padding: 34px 0 90px; }
.site-footer { border-top: 1px solid rgba(255,255,255,.07); background: #081018; }
.footer-inner { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); }
.footer-brand { font-family: Anton, sans-serif; color: white; }
.footer-brand span { color: var(--primary-light); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-inner a:hover { color: white; }
.mobile-menu-button, .mobile-search-button, .mobile-bottom-nav, .mobile-drawer, .drawer-backdrop { display: none; }

.footer-inner-v2 { min-height: 130px; }
.footer-about { display: grid; gap: 5px; }
.footer-socials { display: flex; gap: 8px; }
.footer-copyright { white-space: nowrap; }
.app-version { color: rgba(174, 185, 197, .58); font-size: .72rem; }


/* v1.2.7.5: kompakter Footer */
.footer-about small { max-width: 360px; line-height: 1.45; }
.footer-running-gag { color: rgba(174,185,197,.82); }
@media (max-width: 900px) {
    .footer-inner-v2 { align-items: flex-start; }
    .footer-copyright { white-space: normal; }
}

/* v1.3.2 – Persönlichkeit im Footer */
.footer-personality-line {
    display: block;
    max-width: 390px;
    color: rgba(220, 230, 240, .88);
    font-size: .82rem;
    line-height: 1.45;
    font-style: italic;
}


/* =========================================================
   Saartolisch v1.3.8.1 – Brand Motion
   Dezente Logo-Animation: "Ei-jo-Pulse", Lichtlauf und Hover.
   ========================================================= */

.brand {
    position: relative;
    isolation: isolate;
    text-decoration: none;
}

.brand-mark {
    position: relative;
    overflow: hidden;
    transform-origin: 50% 60%;
    box-shadow:
        0 0 0 rgba(46,168,255,0),
        inset 0 0 18px rgba(46,168,255,.035);
    will-change: transform, box-shadow;
    animation: saartolischMarkIdle 8s cubic-bezier(.2,.8,.2,1) infinite;
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: -35%;
    background: linear-gradient(
        115deg,
        transparent 30%,
        rgba(255,255,255,.06) 43%,
        rgba(46,168,255,.42) 50%,
        rgba(255,255,255,.08) 57%,
        transparent 70%
    );
    transform: translateX(-120%) rotate(8deg);
    animation: saartolischMarkSweep 8s ease-in-out infinite;
    pointer-events: none;
}

.brand-mark::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    right: 6px;
    top: 6px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 10px rgba(46,168,255,.9);
    opacity: 0;
    animation: saartolischSpark 8s ease-in-out infinite;
    pointer-events: none;
}

.brand-word {
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    overflow: visible;
}

.brand-word strong,
.brand-word em {
    display: inline-block;
    will-change: transform, text-shadow, filter;
}

.brand-word strong {
    animation: saartolischSaarIdle 8s cubic-bezier(.2,.8,.2,1) infinite;
}

.brand-word em {
    position: relative;
    animation: saartolischTolischIdle 8s cubic-bezier(.2,.8,.2,1) infinite;
}

.brand-word em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    box-shadow: 0 0 9px rgba(46,168,255,.5);
    animation: saartolischUnderline 8s cubic-bezier(.2,.8,.2,1) infinite;
}

/* Beim bewussten Darüberfahren darf das Logo etwas mehr Charakter zeigen. */
.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
    transform: translateY(-2px) rotate(-4deg) scale(1.045);
    box-shadow:
        0 8px 24px rgba(0,0,0,.28),
        0 0 24px rgba(46,168,255,.22),
        inset 0 0 20px rgba(46,168,255,.07);
}

.brand:hover .brand-word strong,
.brand:focus-visible .brand-word strong {
    transform: translateY(-1px);
    text-shadow: 0 4px 16px rgba(255,255,255,.12);
}

.brand:hover .brand-word em,
.brand:focus-visible .brand-word em {
    transform: translateY(-1px) translateX(1px);
    text-shadow: 0 0 18px rgba(46,168,255,.42);
}

.brand:focus-visible {
    outline: none;
}

.brand:focus-visible::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(46,168,255,.55);
    border-radius: 15px;
    pointer-events: none;
}

@keyframes saartolischMarkIdle {
    0%, 70%, 100% {
        transform: translateY(0) rotate(0) scale(1);
        box-shadow:
            0 0 0 rgba(46,168,255,0),
            inset 0 0 18px rgba(46,168,255,.035);
    }
    74% {
        transform: translateY(-2px) rotate(-4deg) scale(1.035);
    }
    78% {
        transform: translateY(0) rotate(2deg) scale(1.02);
        box-shadow:
            0 0 22px rgba(46,168,255,.18),
            inset 0 0 20px rgba(46,168,255,.065);
    }
    82% {
        transform: translateY(-1px) rotate(-1deg) scale(1.025);
    }
    87% {
        transform: translateY(0) rotate(0) scale(1);
    }
}

@keyframes saartolischMarkSweep {
    0%, 68% {
        transform: translateX(-120%) rotate(8deg);
        opacity: 0;
    }
    72% {
        opacity: 1;
    }
    82% {
        transform: translateX(120%) rotate(8deg);
        opacity: .9;
    }
    84%, 100% {
        transform: translateX(120%) rotate(8deg);
        opacity: 0;
    }
}

@keyframes saartolischSpark {
    0%, 73%, 100% { opacity: 0; transform: scale(.4); }
    78% { opacity: 1; transform: scale(1.25); }
    82% { opacity: .25; transform: scale(.75); }
}

@keyframes saartolischSaarIdle {
    0%, 70%, 100% { transform: translateY(0); }
    76% { transform: translateY(-1px); }
    82% { transform: translateY(0); }
}

@keyframes saartolischTolischIdle {
    0%, 70%, 100% {
        transform: translateY(0) translateX(0);
        text-shadow: 0 0 0 rgba(46,168,255,0);
    }
    76% {
        transform: translateY(-1px) translateX(1px);
        text-shadow: 0 0 17px rgba(46,168,255,.36);
    }
    84% {
        transform: translateY(0) translateX(0);
        text-shadow: 0 0 8px rgba(46,168,255,.12);
    }
}

@keyframes saartolischUnderline {
    0%, 70%, 100% { right: 100%; opacity: 0; }
    75% { right: 40%; opacity: .9; }
    81% { right: 0; opacity: 1; }
    87% { right: 0; opacity: 0; }
}

/* Systemwunsch respektieren: keine wiederkehrende Bewegung. */
@media (prefers-reduced-motion: reduce) {
    .brand-mark,
    .brand-mark::before,
    .brand-mark::after,
    .brand-word strong,
    .brand-word em,
    .brand-word em::after {
        animation: none !important;
        transition: none !important;
    }

    .brand:hover .brand-mark,
    .brand:focus-visible .brand-mark,
    .brand:hover .brand-word strong,
    .brand:focus-visible .brand-word strong,
    .brand:hover .brand-word em,
    .brand:focus-visible .brand-word em {
        transform: none;
    }
}
