html[lang="ru"] h1 {
    font-size: clamp(20px, 4vw, 42px) !important;
}

/* Deutschland-Karte (Pre-CTA Hintergrund) */
#de-map {
    position: absolute;
    top: 50%;
    left: 22%;
    transform: translate(-50%, -50%);
    height: 460px;
    width: auto;
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
}
/* Mobile: zentriert + kleiner */
@media (max-width: 767px) {
    #de-map {
        left: 50%;
        height: 460px;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #1a2535 inset;
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
}

.ops-img {
    filter: grayscale(90%) brightness(0.35);
    transition: filter 0.7s ease, transform 0.6s ease;
}
.ops-card:hover .ops-img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

#legal-modal-body strong { color: #fff; }
#legal-modal-body a { color: #E62E2D; }
#legal-modal-body p { margin-bottom: 12px; }
#legal-modal-body h3 { color: #fff; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

body {
    background-color: #060C15;
    color: #ffffff;
    scroll-behavior: smooth;
}

.text-balance {
    text-wrap: balance;
}

::selection {
    background: #E62E2D;
    color: white;
}

.hero-gradient {
    background: linear-gradient(0deg, rgba(6,12,21,0.85) 0%, rgba(6,12,21,0.35) 50%, rgba(6,12,21,0.05) 100%);
}

html[lang="ru"] h1 {
    font-size: 42px;
}

.tactix-line2 { padding-left: 0; }
.tactix-line3 { padding-left: 0; }

@media (min-width: 1216.98px) {
    .tactix-line2 { padding-left: clamp(6rem, 20vw, 18rem); }
    .tactix-line3 { padding-left: clamp(12rem, 40vw, 36rem); }
    html[lang="ru"] .tactix-line2 { padding-left: clamp(4rem, 14vw, 12rem); }
    html[lang="ru"] .tactix-line3 { padding-left: clamp(8rem, 28vw, 24rem); }
}

@media (min-width: 640px) {
    html[lang="ru"] h1 {
        font-size: 50px;
    }
}

@media (min-width: 768px) {
    html[lang="ru"] h1 {
        font-size: 58px;
    }
}

#stars, #stars2, #stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    background: transparent;
    opacity: 0.6;
}

#stars2 { width: 2px; height: 2px; }
#stars3 { width: 3px; height: 3px; }

#stars  { animation: animStar 50s  linear infinite; }
#stars2 { animation: animStar 100s linear infinite; }
#stars3 { animation: animStar 150s linear infinite; }

@keyframes animStar {
    from { transform: translateY(0px); }
    to   { transform: translateY(-2000px); }
}

.card-cut {
    clip-path: polygon(0 0, calc(100% - 52px) 0, 100% 52px, 100% 100%, 0 100%);
}
.card-cut-alt {
    clip-path: polygon(52px 0, 100% 0, 100% calc(100% - 52px), calc(100% - 52px) 100%, 0 100%, 0 52px);
}
.card-round-alt {
    border-radius: 14px 0 14px 0;
    overflow: hidden;
}
.card-cut-alt-r {
    clip-path: polygon(52px 0, 100% 0, 100% calc(100% - 52px), calc(100% - 52px) 100%, 0 100%, 0 52px);
    border-top-right-radius: 14px;
    border-bottom-left-radius: 14px;
}
.card-cut-r {
    clip-path: polygon(52px 0, 100% 0, 100% 100%, 0 100%, 0 52px);
}
.card-cut-tr-bl {
    clip-path: polygon(0 0, calc(100% - 52px) 0, 100% 52px, 100% 100%, 52px 100%, 0 calc(100% - 52px));
}
.card-cut-tr-bl-r {
    clip-path: polygon(0 0, calc(100% - 52px) 0, 100% 52px, 100% 100%, 52px 100%, 0 calc(100% - 52px));
    border-top-left-radius: 14px;
    border-bottom-right-radius: 14px;
}


.btn-slide {
    background-image: linear-gradient(to right, #AF2020, #E62E2D, #FF4545, #CC2A2A);
    background-size: 300% 100%;
    box-shadow: 0 4px 15px 0 rgba(230, 46, 45, 0.35);
    transition: background-position 0.4s ease-in-out, box-shadow 0.4s ease-in-out, transform 0.1s ease;
}
#cookie-btn:hover #cookie-btn-img {
    filter: drop-shadow(0 0 8px rgba(230,46,45,0.8)) brightness(1.2) !important;
}

#cookie-btn {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    transform-origin: bottom left;
}
#cookie-btn.collapsed {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
#contact-modal-panel.modal-anim {
    animation: modalIn 0.38s cubic-bezier(0.34, 1.15, 0.64, 1) forwards;
}

@keyframes cookieShake {
    0%,100% { transform: translate(0, 0) rotate(0deg); }
    10%      { transform: translate(-4px, -2px) rotate(-3deg); }
    20%      { transform: translate(4px, 2px) rotate(3deg); }
    30%      { transform: translate(-5px, 1px) rotate(-4deg); }
    40%      { transform: translate(5px, -2px) rotate(4deg); }
    50%      { transform: translate(-4px, 2px) rotate(-3deg); }
    60%      { transform: translate(4px, -1px) rotate(3deg); }
    70%      { transform: translate(-3px, 2px) rotate(-2deg); }
    80%      { transform: translate(3px, -2px) rotate(2deg); }
    90%      { transform: translate(-2px, 1px) rotate(-1deg); }
}
@keyframes cookieFadeOut {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.4); }
}
#cookie-btn.shaking {
    animation: cookieShake 0.5s ease forwards;
    pointer-events: none;
}
#cookie-btn.fading-out {
    animation: cookieFadeOut 0.25s ease forwards;
    pointer-events: none;
}

@keyframes cookiePanelSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.cookie-panel-anim {
    animation: cookiePanelSlideIn 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) 0.05s both;
}
@keyframes cookieOverlayFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
#cookie-overlay.anim-in {
    animation: cookieOverlayFadeIn 0.25s ease forwards;
}

.btn-slide:hover {
    background-position: 100% 0;
    box-shadow: 0 4px 22px 0 rgba(230, 46, 45, 0.6);
}
