/* ===== Logo-Animation: „ardda.de“ schreibt sich beim Laden selbst (04.10.2026) =====
   Ring poppt auf, Buchstaben erscheinen wie getippt, ".de" gleitet herein,
   danach ein Lichtstreifen über den Schriftzug. Läuft einmal je Seitenaufruf. */
.site-header .logo { overflow: visible !important; }
.site-header .logo .logo-txt,
.site-header .logo .logo-tld { display: inline-block; white-space: nowrap; }
.site-header .logo .logo-txt {
    overflow: hidden; vertical-align: bottom; max-width: 0;
    animation: logo-write 1.1s steps(5, end) .35s forwards;
    border-right: 3px solid #ef4444;
    /* „ardda“ bleibt dunkel – nur „.de“ im Verlauf (header-neu.css färbt sonst alle spans) */
    background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important;
    -webkit-text-fill-color: #15121f !important; color: #15121f !important; margin-left: 0 !important;
}
.site-header .logo .logo-tld { margin-left: 2px !important; }
.site-header .logo .logo-tld {
    opacity: 0; transform: translateX(-10px);
    animation: logo-tld .5s cubic-bezier(.2,.8,.2,1) 1.45s forwards;
}
.site-header .logo::before {
    transform: scale(0);
    animation: logo-ring .6s cubic-bezier(.34,1.56,.64,1) .05s forwards !important;
}
/* Lichtstreifen nach dem Schreiben */
.site-header .logo .logo-txt::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
    background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.9) 50%, rgba(255,255,255,0) 100%);
    animation: logo-shine 1s ease 2.1s 1;
    pointer-events: none;
}
.site-header .logo .logo-txt { position: relative; }
@keyframes logo-write { from { max-width: 0; } to { max-width: 4em; border-right-color: transparent; } }
@keyframes logo-tld { to { opacity: 1; transform: none; } }
@keyframes logo-ring { to { transform: scale(1); } }
@keyframes logo-shine { from { left: -40%; } to { left: 110%; } }
/* Nach dem Schreiben: Cursor weg */
.site-header .logo .logo-txt { animation-fill-mode: forwards; }
@media (prefers-reduced-motion: reduce) {
    .site-header .logo .logo-txt { max-width: none; animation: none; border-right: 0; }
    .site-header .logo .logo-tld { opacity: 1; transform: none; animation: none; }
    .site-header .logo::before { transform: none; animation: none !important; }
    .site-header .logo .logo-txt::after { display: none; }
}

/* ===== Neues Logo (05.10.2026): zwei Sprechblasen mit „a“ in der Mitte =====
   Alte Kugel + Signal-Ring aus. Ablauf: linke Blase, rechte Blase, „a“ zeichnet sich,
   dann schreibt sich „ardda“ und „.de“ gleitet herein. */
html body .site-header .logo::before,
html body .site-header .logo::after { display: none !important; content: none !important; animation: none !important; }
html body .site-header .logo .logo-ico { display: inline-flex !important; align-items: center; margin-right: 8px; flex-shrink: 0; filter: drop-shadow(0 6px 10px rgba(239,68,68,.22)); }
.site-header .logo .logo-ico svg { display: block; overflow: visible; }
.site-header .logo .lb1, .site-header .logo .lb2 { transform-box: fill-box; }
.site-header .logo .lb1 { transform-origin: 15% 90%; animation: logo-blase .55s cubic-bezier(.34,1.56,.64,1) .05s both; }
.site-header .logo .lb2 { transform-origin: 85% 90%; animation: logo-blase .55s cubic-bezier(.34,1.56,.64,1) .3s both; }
.site-header .logo .la1, .site-header .logo .la2 { stroke-dasharray: 100; }
.site-header .logo .la1 { animation: logo-strich .45s ease-out .7s both; }
.site-header .logo .la2 { animation: logo-strich .25s ease-out 1.1s both; }
/* Icon-Hülle nicht vom alten Verlaufs-Text-Effekt (.logo span) erfassen lassen – sonst in Safari unsichtbar */
html body .site-header .logo .logo-ico { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; -webkit-text-fill-color: currentColor !important; width: 40px; height: 33px; }
html body .site-header .logo { gap: 0 !important; }
html body .site-header .logo .logo-ico { margin-right: 10px !important; }
html body .site-header .logo .logo-txt { margin-right: -3px !important; }
html body .site-header .logo .logo-tld { margin-left: 0 !important; }
.site-header .logo .logo-txt { animation-delay: 1.2s !important; }
.site-header .logo .logo-tld { animation-delay: 2.3s !important; }
.site-header .logo .logo-txt::after { animation-delay: 2.9s !important; }
.site-header .logo:hover .logo-ico svg { animation: logo-wackeln .6s ease; }
@keyframes logo-blase { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes logo-strich { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes logo-wackeln { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-6deg) scale(1.05); } 60% { transform: rotate(4deg); } }
@media (max-width: 600px) { html body .site-header .logo .logo-ico, .site-header .logo .logo-ico svg { width: 34px; height: 28px; } }
@media (prefers-reduced-motion: reduce) {
    .site-header .logo .lb1, .site-header .logo .lb2, .site-header .logo .la1, .site-header .logo .la2 { animation: none; }
}
/* Platz für den fertigen Schriftzug reservieren, damit das Menü beim Schreiben nicht springt */
html body .site-header .logo { min-width: 205px; }
@media (max-width: 600px) { html body .site-header .logo { min-width: 170px; } }
