@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: block;
}

:root {
    --bg-body: #faf8f5;
    --bg-surface: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.98);
    --bg-footer: #f0f4f8;
    --text-main: #1a202c;
    --text-muted: #4a5568;
    --blue: #0a1f44;
    --blue-mid: #2b4c7e;
    --blue-light: #e2e8f0;
    --red: #cc0000;
    --red-bright: #ff1a1a;
    --card-border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --white: #ffffff;
    --gray: #8899bb;
    --card-bg: #ffffff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* ---------- TOP BAR (banner + nav envueltos juntos: se ocultan como una sola unidad) ---------- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

/* ---------- NAV (fondo blanco sólido por defecto; index.html lo anula para el efecto hero transparente) ---------- */
nav {
    position: relative;
    padding: 0 5%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-nav);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background 0.4s, box-shadow 0.4s;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo img {
    height: 46px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s;
}

.nav-logo:hover img {
    transform: scale(1.08) rotate(-3deg);
}

.nav-logo span {
    font-size: 1.4rem;
    letter-spacing: 2px;
    color: var(--blue);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 4px;
    transition: color 0.25s, background 0.25s;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.25s;
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-links li.has-dropdown {
    position: relative;
}

.nav-links .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-links .dropdown-toggle svg {
    width: 10px;
    height: 10px;
    transition: transform 0.25s;
}

.nav-links li.has-dropdown:hover .dropdown-toggle svg,
.nav-links li.has-dropdown.open .dropdown-toggle svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    min-width: 210px;
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 50;
}

.nav-links li.has-dropdown:hover .dropdown-menu,
.nav-links li.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none;
    color: var(--text-muted);
    border-radius: 6px;
    white-space: nowrap;
}

.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li a:hover {
    background: rgba(204, 0, 0, 0.08);
    color: var(--red);
}

.nav-links li.has-dropdown .dropdown-menu a {
    color: var(--text-muted);
    text-shadow: none;
}

.nav-links li.has-dropdown .dropdown-menu a:hover {
    color: var(--red);
}

.mobile-nav-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.mobile-nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: var(--blue);
}

.mobile-nav-group-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s;
}

.mobile-nav-group.open .mobile-nav-group-toggle svg {
    transform: rotate(180deg);
}

.mobile-nav-submenu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.mobile-nav-group.open .mobile-nav-submenu {
    display: flex;
}

.mobile-nav-submenu a {
    font-size: 1.15rem !important;
    letter-spacing: 1px !important;
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 101;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--blue);
    text-decoration: none;
    transition: color 0.2s;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--red) !important;
}

.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 5%;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--blue);
}

.mobile-nav-close svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}

.nav-cart-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: calc(5% + 8px);
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    color: var(--blue);
}

@media (max-width: 1200px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-logo span {
        display: none;
    }

    .top-bar.nav-hidden {
        transform: translateY(-100%);
    }

    .nav-cart-mobile {
        display: flex;
    }

    nav {
        justify-content: flex-end;
    }

    .nav-logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 1200px) {
    html,
    body {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}

/* ---------- FOOTER ---------- */
footer {
    position: relative;
    z-index: 1;
    background: var(--blue);
    color: white;
    border-top: 4px solid var(--red);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 8% 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 540px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand img {
    height: 52px;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.footer-brand-name {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.footer-brand-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1.05rem;
    letter-spacing: 2px;
    color: var(--red);
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a,
.footer-col p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.6;
}

.footer-col ul a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.footer-social a:hover {
    background: var(--red);
    border-color: var(--red);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: white;
}

/* ---------- REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ---------- CAJA DE PRIVACIDAD (kontakt.html + probetraining.html) ----------
   Nota: aquí ya viene con el bug de contraste corregido (var(--blue) en vez de #dce6f7)
   y esto también resuelve el problema de probetraining.html sin estilos. */
.privacy-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
}

.privacy-box input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: var(--red);
    cursor: pointer;
}

.privacy-box label {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    cursor: pointer;
}

.privacy-box label a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(204, 0, 0, 0.4);
    transition: color 0.2s;
}

.privacy-box label a:hover {
    color: var(--red);
}

.domain-banner {
    background: var(--blue);
    color: #fff;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 10px 16px;
    border-bottom: 2px solid var(--red);
    line-height: 1.4;
}

@media (max-width: 640px) {
    .domain-banner {
        font-size: 0.68rem;
        padding: 8px 12px;
    }
}

.footer-extra-contact {
    margin: 8px 0;
}

.footer-extra-contact:empty {
    display: none;
}

.vorstand-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox-img, .vorstand-photo img, .hero-slide img {
    animation: fadeInImg 0.4s ease-in-out;
}

@keyframes fadeInImg {
    from { opacity: 0; }
    to { opacity: 1; }
}

#domain-banner {
    display: none;
}