@font-face {
    font-family: "GT Pressura";
    src: url("/assets/fonts/GTPressura-Medium.woff2") format("woff2"),
         url("/assets/fonts/GTPressura-Medium.woff") format("woff"),
         url("/assets/fonts/GTPressura-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "GT Pressura Text";
    src: url("/assets/fonts/GT-Pressura-Standard-Text.woff2") format("woff2"),
         url("/assets/fonts/GT-Pressura-Standard-Text.woff") format("woff"),
         url("/assets/fonts/GT-Pressura-Standard-Text.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand: #0071f2;
    --brand-dark: #0056b3;
    --ink: #0b1b3a;
    --ink-soft: #2b3b59;
    --panel: rgba(255, 255, 255, 0.94);
    --panel-border: rgba(0, 113, 242, 0.3);
    --shadow: 0 24px 60px rgba(10, 25, 50, 0.35);
    --card-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
    --radius: 20px;
    --gap: clamp(1rem, 2vw, 2.5rem);
    --content-width: 1080px;
    --page-padding: clamp(1.5rem, 3vw, 3rem);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "GT Pressura Text", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(165deg, rgba(7, 18, 40, 0.72), rgba(7, 18, 40, 0.45)),
        url("/assets/img/bg.jpg") center / cover no-repeat fixed;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 3rem);
}

img {
    display: block;
    max-width: 100%;
}

.page {
    width: min(var(--content-width), 100%);
    background: var(--panel);
    border: 2px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--page-padding);
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.brand__logo {
    width: clamp(170px, 30vw, 320px);
    height: auto;
}

.intro {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-heading {
    margin: 0;
    font-family: "GT Pressura", "GT Pressura Text", Arial, sans-serif;
    font-weight: 500;
    font-size: clamp(1.7rem, 2.8vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.hero-heading em {
    font-style: italic;
    color: var(--brand);
}

.hero-text {
    margin: 0;
    font-size: clamp(1rem, 0.9rem + 0.7vw, 1.2rem);
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 70ch;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
}

.card {
    flex: 1 1 280px;
    min-width: 240px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    border-radius: 18px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
}

.card:focus-visible {
    outline: 3px solid rgba(0, 113, 242, 0.4);
    outline-offset: 4px;
}

.card__flag {
    width: 52px;
    height: auto;
}

.card__title {
    margin: 0;
    font-size: 1.1rem;
    font-family: "GT Pressura", "GT Pressura Text", Arial, sans-serif;
    font-weight: normal;
}

.card__text {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.4;
}

.card__link {
    margin-top: 0.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: normal;
    font-size: 0.95rem;
}

.footer-links {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
}

.impressum-link,
.back-link {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 113, 242, 0.35);
    border-radius: 999px;
    background: #fff;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.impressum-link:hover,
.back-link:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.impressum-link:focus-visible,
.back-link:focus-visible {
    outline: 3px solid rgba(0, 113, 242, 0.4);
    outline-offset: 3px;
}

.impressum {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.impressum__text p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.6;
}

.impressum__text p + p {
    margin-top: 0.65rem;
}

.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

.order-3 {
    order: 3;
}

@media (max-width: 820px) {
    body {
        align-items: flex-start;
        background-attachment: scroll;
    }

    .page {
        width: 100%;
    }

    .brand {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .page {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .cards {
        flex-direction: column;
    }

    .card {
        min-width: 0;
    }

    .hero-heading {
        font-size: 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
