/* ==========================================================================
   ГЛОБАЛЬНЫЙ БАЗОВЫЙ РАЗМЕР ШРИФТА
   ========================================================================== */
html {
    font-size: 118.75%; /* было 100% (=16px), теперь 18px — все rem-значения масштабируются */
}

/* ==========================================================================
   ПОДКЛЮЧЕНИЕ ЛОКАЛЬНЫХ ШРИФТОВ
   ========================================================================== */
@font-face {
    font-family: 'Libre Caslon Text';
    src: url('fonts/libre-caslon-text-v1-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Libre Caslon Text';
    src: url('fonts/libre-caslon-text-v1-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Libre Caslon Text';
    src: url('fonts/libre-caslon-text-v1-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* ==========================================================================
   ВАШ ИСХОДНЫЙ CSS КОД (БЕЗ ИЗМЕНЕНИЙ)
   ========================================================================== */

/* Hintergrund der gesamten Webseite */
body {
    background-color: #292C2F; 
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container für das Logo-Element */
.logo-box {
    width: 100%;
    max-width: 600px;
    height: 250px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
/* ФИКС для Firefox: создаёт стэкинг-контекст заранее */
    will-change: filter;
    transform: translateZ(0);
}

/* Der Filter wird nur WÄHREND des Schmelzens aktiv */
.logo-box.is-melting {
    filter: url('#gooey-melt');
}

/* Gemeinsamer Stil für die Schriften */
.logo-text {
    position: absolute;
    font-family: 'Libre Caslon Text', 'Big Caslon', serif;
    color: #D9D9D9;
    text-align: center;
    user-select: none;
    transition: all 2.2s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

/* Die großen AW Buchstaben — теперь стартует СКРЫТЫМ, как и text-reveal */
.aw-letters {
    font-size: 6rem;
    letter-spacing: 4px;
    opacity: 0;
    transform: scale(0.8);
    filter: blur(10px);
    visibility: hidden;
}

/* Появляется после загрузки страницы */
.aw-letters.visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
    visibility: visible;

}

/* Der neue Text: Startet absolut unsichtbar im Zentrum */
.text-reveal {
    font-size: 1.2rem; 
    line-height: 1.7; 
    opacity: 0;
    transform: scale(0.8); 
    filter: blur(10px);
    visibility: hidden; 
}

/* BEIM KLICK: Der Text fließt zusammen und bleibt dauerhaft scharf */
.text-reveal.visible {
    visibility: visible; 
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
    transition-delay: 0.5s; 
}

/* Erzwingt das exakt gleiche Schmelzen für Buchstaben UND Text */
.aw-letters.melted,
.text-reveal.melted {
    opacity: 0 !important;
    transform: scale(1.3) !important; 
    filter: blur(12px) !important; 
    transition-delay: 0s !important;
}

@media (max-width: 600px) {
    /* Контейнер остается строго с абсолютным позиционированием внутри */
    .logo-box {
        max-width: 100%;
        height: 350px; /* Немного увеличиваем высоту, чтобы 4 строчки текста гарантированно поместились */
        padding: 0 15px;
    }

    /* Уменьшаем буквы AW для маленьких экранов */
    .aw-letters {
        font-size: 4rem; 
        letter-spacing: 2px;
    }

    /* Уменьшаем текст, чтобы он аккуратно ложился по центру без переносов слов */
    .text-reveal {
        font-size: 0.95rem; 
        line-height: 1.5;
        width: 100%;
    }
}

/* ==========================================================================
   НИЖНИЕ ССЫЛКИ (IMPRESSUM / DATENSCHUTZ)
   ========================================================================== */
.footer-links {
    position: fixed;
    bottom: 28px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: 'Libre Caslon Text', 'Big Caslon', serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    z-index: 10;
}

.footer-links a {
    color: #8A8D90;
    text-decoration: none;
    transition: color 0.4s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #D9D9D9;
}

.footer-links .divider {
    color: #55585B;
    user-select: none;
}

@media (max-width: 600px) {
    .footer-links {
        bottom: 18px;
        font-size: 0.75rem;
        gap: 10px;
    }
}
/* ==========================================================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ (IMPRESSUM / DATENSCHUTZERKLÄRUNG)
   ========================================================================== */
.legal-body {
    background-color: #292C2F;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-page {
    width: 100%;
    max-width: 620px;
    padding: 60px 24px 80px;
}

/* Тот же принцип появления, что и у .text-reveal на главной странице */
.legal-content {
    font-family: 'Libre Caslon Text', 'Big Caslon', serif;
    color: #D9D9D9;
    line-height: 1.4; /* можно уменьшить, например до 1.4 */
    opacity: 0;
    transform: scale(0.8);
    filter: blur(10px);
    transition: all 2.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.legal-content.visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
    transition-delay: 0.3s;
}

.legal-title {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 32px;
    text-align: center;
}

.legal-content p {
    font-size: 1rem;
    margin-bottom: 10px; /* можно варьировать, например до 22*/
    color: #D9D9D9;
}

.legal-content strong {
    font-weight: 700;
    color: #FFFFFF;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    font-size: 0.9rem;
    color: #8A8D90;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.4s ease;
}

.back-link:hover,
.back-link:focus {
    color: #D9D9D9;
}

@media (max-width: 600px) {
    .legal-page {
        padding: 40px 18px 60px;
    }

    .legal-title {
        font-size: 1.5rem;
    }

    .legal-content p {
        font-size: 0.92rem;
    }
}