@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope/Manrope-VariableFont_wght.ttf") format("truetype");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-bg: #06151e;
    --color-bg-soft: #091c27;
    --color-surface: #0c232e;
    --color-surface-hover: #102c39;
    --color-text: #f5fbfe;
    --color-muted: #aec0c9;
    --color-blue: #00a3e0;
    --color-blue-light: #43c6f5;
    --color-orange: #f2b211;
    --color-ink: #17140c;
    --color-border: rgba(181, 218, 233, 0.11);
    --container: 1180px;
    --header-height: 80px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --shadow: 0 24px 70px rgba(0, 8, 14, 0.32);
    --shadow-card: 0 18px 48px rgba(0, 8, 14, 0.18);
    --transition: 180ms ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--color-text);
    line-height: 1.08;
    text-wrap: balance;
}

p {
    color: var(--color-muted);
}

:focus-visible {
    outline: 3px solid rgba(247, 181, 18, 0.65);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--color-orange);
    color: var(--color-ink);
    font-weight: 700;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Header and navigation */
.site-header {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    height: var(--header-height);
    background: rgba(6, 20, 29, 0.58);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
    background: rgba(6, 20, 29, 0.95);
    border-color: var(--color-border);
    box-shadow: 0 14px 45px rgba(0, 8, 14, 0.32);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__brand {
    flex: 0 0 auto;
}

.nav__brand img {
    width: 142px;
    max-height: 54px;
    object-fit: contain;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__links a {
    position: relative;
    display: block;
    padding: 10px 12px;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    font-weight: 650;
    letter-spacing: 0.015em;
    text-decoration: none;
    transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links a[aria-current="true"] {
    color: #fff;
}

.nav__links a::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 3px;
    left: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-blue);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity var(--transition), transform var(--transition);
}

.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav__toggle {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    min-height: 92svh;
    overflow: hidden;
    background-image: url("../imgs/x2_v1.png");
    background-image: image-set(
        url("../imgs/x2_v1-1448.webp") type("image/webp"),
        url("../imgs/x2_v1.png") type("image/png")
    );
    background-position: 58% center;
    background-size: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 19, 28, 0.92), rgba(4, 26, 38, 0.54) 48%, rgba(4, 26, 38, 0.14)),
        linear-gradient(180deg, rgba(4, 19, 28, 0.08) 46%, var(--color-bg));
}

.hero__content {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 18%;
    left: 0;
}

.hero h1 {
    max-width: 850px;
    margin-bottom: 20px;
    font-size: clamp(3.8rem, 7vw, 6.5rem);
    font-weight: 650;
    letter-spacing: -0.055em;
    line-height: 0.94;
    text-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.hero p {
    max-width: 600px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero__actions .button {
    min-width: 205px;
}

/* Shared sections */
.section {
    position: relative;
    padding-block: clamp(100px, 10vw, 140px);
    overflow: hidden;
}

.home-page #ueberuns,
.home-page #erstehilfe,
.home-page #anfahrt {
    background: var(--color-bg);
}

.home-page #leistungen,
.home-page #kontakt {
    background: var(--color-bg-soft);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 68px;
    text-align: left;
}

.section-heading--compact {
    margin-bottom: 44px;
}

.section-heading h2,
.first-aid__content h2 {
    margin-bottom: 28px;
    font-size: clamp(2.45rem, 4.2vw, 3.85rem);
    font-weight: 650;
    letter-spacing: -0.045em;
}

.section-heading h3 {
    margin: 52px 0 0;
    color: var(--color-orange);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading p {
    margin-bottom: 0;
    font-size: clamp(1.03rem, 1.4vw, 1.16rem);
    line-height: 1.78;
}

.section-heading p + p {
    margin-top: 18px;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.team-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
}

.team-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.92) contrast(1.03);
    transition: filter 500ms ease, transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.team-card:hover img {
    filter: saturate(1) contrast(1.03);
    transform: scale(1.025);
}

.team-card__content {
    padding: 26px 28px 30px;
    border-top: 1px solid var(--color-border);
    text-align: left;
}

.team-card__content h3 {
    margin-bottom: 12px;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    letter-spacing: -0.025em;
}

.team-card__content p {
    max-width: 52ch;
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

/* Licence classes */
.license-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.license-card,
.info-card,
.location-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.license-card {
    min-height: 250px;
    padding: 26px 0 28px;
    border-width: 1px 0 0;
    border-radius: 0;
    background: transparent;
    transition: border-color var(--transition), transform var(--transition);
}

.license-card summary {
    list-style: none;
}

.license-card summary::-webkit-details-marker {
    display: none;
}

.license-card__age {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    padding: 5px 9px;
    border: 1px solid rgba(0, 163, 224, 0.2);
    border-radius: 999px;
    background: rgba(0, 163, 224, 0.08);
    color: var(--color-blue-light);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

.license-card:hover {
    border-color: var(--color-blue);
    transform: translateY(-2px);
}

.license-card h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.license-card h3::after {
    content: none;
}

.license-card p {
    margin-bottom: 0;
    font-size: 0.94rem;
    line-height: 1.68;
}

.license-card__facts {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.license-card__facts li {
    padding-block: 7px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.45;
}

.section-action {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.section-action .button {
    max-width: 430px;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 58px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 8, 14, 0.24);
    transition: box-shadow var(--transition), transform var(--transition), background-color var(--transition);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 8, 14, 0.3);
}

.button--primary {
    background: #d18a00;
    color: #fff;
}

.button--primary:hover {
    background: #db9508;
}

.button--secondary {
    background: var(--color-blue);
    color: #fff;
}

.button--secondary:hover {
    background: #008fc5;
}

.button__icon {
    display: inline-grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
}

.button__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* First aid */
.first-aid {
    display: grid;
    grid-template-columns: minmax(240px, 0.75fr) minmax(320px, 1.25fr);
    align-items: center;
    gap: 72px;
    max-width: 960px;
}

.first-aid__visual {
    display: block;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    width: 100%;
    max-width: 330px;
    line-height: 0;
}

.first-aid__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.first-aid__content {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    text-align: left;
}

.first-aid__action {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
}

/* Contact */
.schedule-grid,
.location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-width: 1px 0 0;
    border-radius: 0;
    background: transparent;
}

.info-card__icon,
.contact-links__icon {
    display: grid;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 10px;
    background: rgba(0, 163, 224, 0.12);
    color: var(--color-blue-light);
}

.info-card__icon svg,
.contact-links__icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-card h4 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.info-card p {
    margin-bottom: 0;
}

.contact-copy {
    max-width: 780px;
    margin-top: 72px;
}

.contact-copy p {
    margin-bottom: 0;
    color: var(--color-text);
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.025em;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 34px;
    border-block: 1px solid var(--color-border);
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 22px 20px;
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.contact-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.035);
}

.contact-links a + a {
    border-left: 1px solid var(--color-border);
}

.contact-links a > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-links small {
    display: block;
    margin-bottom: 3px;
    color: var(--color-muted);
    font-size: 0.73rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin-top: 52px;
    scroll-margin-top: calc(var(--header-height) + 28px);
}

.contact-actions > a,
.contact-actions > form,
.contact-actions form .button {
    width: 100%;
    height: 100%;
}

.contact-actions .button {
    min-height: 64px;
}

/* Locations */
.location-card {
    display: flex;
    align-items: center;
    min-height: 110px;
    padding: 24px;
    gap: 16px;
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.location-card:hover {
    background: var(--color-surface-hover);
    border-color: rgba(0, 163, 224, 0.24);
    box-shadow: 0 22px 52px rgba(0, 8, 14, 0.26);
    transform: translateY(-3px);
}

.location-card__icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-blue);
    color: #fff;
    transition: transform var(--transition);
}

.location-card__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.location-card:hover .location-card__icon {
    transform: translate(2px, -2px);
}

/* Footer */
.site-footer {
    margin-top: 0;
    padding-block: 34px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-soft);
}

.site-footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.92rem;
}

.site-footer nav {
    display: flex;
    gap: 18px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

/* Subtle reveal motion */
.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity var(--motion-medium) var(--motion-ease-out), transform var(--motion-medium) var(--motion-ease-out);
}

.reveal-ready .reveal.reveal-from-left {
    transform: translateX(-22px);
}

.reveal-ready .reveal.reveal-from-right {
    transform: translateX(22px);
}

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

.reveal-ready .reveal.reveal-from-left.is-visible,
.reveal-ready .reveal.reveal-from-right.is-visible {
    transform: translateX(0);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.footer-social .footer-social__dot {
    fill: currentColor;
    stroke: none;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    z-index: 800;
    right: 24px;
    bottom: 24px;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(242, 178, 17, 0.65);
    border-radius: 50%;
    background: rgba(6, 21, 30, 0.9);
    color: var(--color-orange);
    box-shadow: 0 12px 34px rgba(0, 7, 12, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background var(--transition), border-color var(--transition), opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-open .scroll-top,
.modal-open .scroll-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.scroll-top:hover {
    border-color: var(--color-orange);
    background: var(--color-surface-hover);
    transform: translateY(-2px);
}

.scroll-top svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Notice dialog */
.notice-modal {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 15, 23, 0.92);
    backdrop-filter: blur(10px);
}

.notice-modal__panel {
    width: min(100%, 540px);
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.notice-modal__panel p {
    line-height: 1.6;
}

.notice-modal__panel .button {
    margin-top: 8px;
}

@media (max-width: 960px) {
    .license-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-links {
        grid-template-columns: 1fr;
    }

    .contact-links a + a {
        border-top: 1px solid var(--color-border);
        border-left: 0;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 72px;
    }

    .container {
        width: min(100% - 32px, var(--container));
    }

    .nav__brand img {
        width: 128px;
        max-height: 44px;
    }

    .nav__toggle {
        position: relative;
        z-index: 2;
        display: grid;
        place-content: center;
        gap: 5px;
        width: 46px;
        height: 46px;
        padding: 0;
        border: 0;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.08);
    }

    .nav__toggle span {
        display: block;
        width: 19px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        transition: transform var(--transition), opacity var(--transition);
    }

    .nav__toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav__toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav__links {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        align-content: start;
        gap: 0;
        height: 0;
        padding: 0 24px;
        overflow: hidden;
        border-top: 1px solid var(--color-border);
        border-radius: 0;
        background: rgba(6, 21, 30, 0.99);
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: none;
        transition: height 260ms ease, padding 260ms ease, opacity var(--transition), visibility var(--transition);
    }

    .nav__links.is-open {
        height: calc(100dvh - var(--header-height));
        padding-block: 22px;
        opacity: 1;
        visibility: visible;
    }

    .nav__links a {
        padding: 17px 4px;
        border-bottom: 1px solid var(--color-border);
        font-size: 1.08rem;
    }

    .nav__links a::after {
        right: auto;
        bottom: -1px;
        left: 4px;
        width: 36px;
    }

    .hero {
        min-height: 760px;
        background-image: url("../imgs/x2_v1.png");
        background-image: image-set(
            url("../imgs/x2_v1-768.webp") type("image/webp"),
            url("../imgs/x2_v1.png") type("image/png")
        );
        background-position: 64% center;
    }

    .hero__content {
        bottom: 16%;
    }

    .hero h1 {
        max-width: 320px;
        font-size: clamp(3.1rem, 15vw, 4.5rem);
        line-height: 0.95;
    }

    .hero p {
        max-width: 310px;
        font-size: 1.05rem;
    }

    .hero__actions {
        display: none;
    }

    .section {
        padding-block: 88px;
    }

    .section-heading {
        margin-bottom: 50px;
    }

    .section-heading h2,
    .first-aid__content h2 {
        margin-bottom: 24px;
        font-size: clamp(2.2rem, 9.5vw, 3rem);
    }

    .section-heading p {
        font-size: 1rem;
    }

    .team-grid,
    .license-grid,
    .schedule-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        gap: 16px;
    }

    .team-card {
        border-radius: var(--radius-md);
    }

    .team-card__content {
        padding: 22px 22px 25px;
    }

    .license-grid,
    .schedule-grid,
    .location-grid {
        gap: 12px;
    }

    .license-card {
        min-height: 0;
        padding: 0;
        transform: none;
    }

    .license-card:hover {
        transform: none;
    }

    .license-card summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 5px 18px;
        min-height: 68px;
        padding-block: 16px;
        cursor: pointer;
    }

    .license-card summary h3 {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        font-size: 1.12rem;
        line-height: 1.3;
    }

    .license-card__age {
        grid-column: 1;
        grid-row: 2;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        font-size: 0.76rem;
    }

    .license-card p {
        max-width: 64ch;
        padding: 0 48px 24px 0;
        font-size: 0.94rem;
        line-height: 1.72;
    }

    .license-card__facts {
        margin: 2px 48px 16px 0;
    }

    .license-card__facts li {
        padding-block: 8px;
        font-size: 0.8rem;
    }

    .section-action {
        justify-content: stretch;
    }

    .section-action .button {
        max-width: none;
        width: 100%;
    }

    .first-aid {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
        text-align: center;
    }

    .first-aid__visual {
        grid-column: 1;
        grid-row: auto;
        width: min(100%, 310px);
        order: 2;
    }

    .first-aid__content {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        order: 1;
        text-align: center;
    }

    .first-aid__action {
        grid-column: 1;
        grid-row: auto;
        width: max-content;
        max-width: 100%;
        order: 3;
    }

    .contact-copy {
        margin-top: 48px;
    }

    .contact-links a {
        padding-inline: 0;
    }

    .contact-actions {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 38px;
    }

    .location-card {
        min-height: 88px;
    }

    .site-footer__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .scroll-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal-ready .reveal {
        opacity: 1;
        transform: none;
    }

    .hero__parallax {
        animation: none !important;
        transform: scale(var(--hero-parallax-scale)) !important;
    }
}

/* Legal pages */
.legal-page {
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
}

.legal-page a {
    color: var(--color-orange);
    text-underline-offset: 4px;
}

.legal-page .site-header {
    background: rgba(6, 20, 29, 0.96);
    border-color: var(--color-border);
    box-shadow: 0 14px 45px rgba(0, 8, 14, 0.22);
}

.legal-page .nav__links a {
    color: rgba(255, 255, 255, 0.8);
}

.legal-page .nav__links a:hover,
.legal-page .nav__links a:focus-visible,
.legal-page .nav__links a[aria-current="true"] {
    color: #fff;
}

.legal-page .wrap {
    width: min(100% - 48px, 920px);
    margin-inline: auto;
    padding: calc(var(--header-height) + 76px) 0 110px;
}

.legal-page .page-hero {
    max-width: 760px;
    margin-bottom: 54px;
}

.legal-page h1 {
    margin: 0 0 16px;
    font-size: clamp(2.45rem, 4.2vw, 3.85rem);
    font-weight: 650;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.legal-page .page-intro {
    max-width: 68ch;
    margin: 0;
    color: var(--color-muted);
}

.legal-page .legal-updated {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.88rem;
}

.legal-page .legal-content {
    max-width: 820px;
}

.legal-page .legal-section {
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
}

.legal-page .legal-section:last-child {
    padding-bottom: 0;
}

.legal-page .legal-section h2 {
    margin: 0 0 16px;
    font-size: clamp(1.2rem, 2vw, 1.48rem);
    font-weight: 650;
    letter-spacing: -0.02em;
}

.legal-page .legal-section p,
.legal-page .legal-section address,
.legal-page .legal-section li {
    color: var(--color-muted);
}

.legal-page .legal-section p {
    margin-bottom: 16px;
    line-height: 1.75;
}

.legal-page .legal-section p:last-child,
.legal-page .legal-section address:last-child {
    margin-bottom: 0;
}

.legal-page code {
    color: var(--color-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
}

.legal-page .address {
    font-style: normal;
    line-height: 1.75;
}

.legal-page .site-footer a {
    color: rgba(255, 255, 255, 0.65);
}

.legal-page .site-footer a:hover {
    color: #fff;
}

/* Error page */
.error-page {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
}

.error-page__main {
    display: grid;
    flex: 1;
    min-height: 680px;
    padding-block: calc(var(--header-height) + 72px) 90px;
    place-items: center start;
}

.error-page__content {
    width: 100%;
}

.error-page__copy {
    max-width: 720px;
}

.error-page__code {
    margin-bottom: 18px;
    color: var(--color-blue-light);
    font-size: 0.88rem;
    font-weight: 750;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.error-page h1 {
    margin-bottom: 24px;
}

.error-page__copy > p:not(.error-page__code) {
    max-width: 60ch;
    margin-bottom: 32px;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.75;
}

.error-page__content .button {
    width: fit-content;
}

.error-page__scene {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 48px;
    overflow: hidden;
}

.error-page__car {
    position: absolute;
    z-index: 2;
    bottom: 29px;
    left: -270px;
    width: 260px;
    will-change: transform;
    animation: error-car-travel 11s linear infinite;
}

.error-page__car svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 13px 10px rgba(0, 5, 9, 0.34));
    transform-origin: 50% 82%;
    animation: error-car-suspension 1.15s ease-in-out infinite;
}

.error-page__car-body {
    fill: #f8fbfc;
    stroke: var(--color-blue);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.error-page__car-window {
    fill: #102a37;
    stroke: var(--color-blue-light);
    stroke-width: 2.5;
    stroke-linejoin: round;
}

.error-page__car-detail,
.error-page__car-bumper {
    fill: none;
    stroke: #9eb4bf;
    stroke-width: 2.3;
    stroke-linecap: round;
}

.error-page__car-light {
    fill: none;
    stroke: var(--color-orange);
    stroke-width: 5;
    stroke-linecap: round;
}

.error-page__car-sign {
    fill: var(--color-orange);
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linejoin: round;
}

.error-page__car-shadow {
    fill: none;
    stroke: rgba(0, 4, 7, 0.32);
    stroke-width: 13;
    stroke-linecap: round;
}

.error-page__wheel {
    transform-box: fill-box;
    transform-origin: center;
    animation: error-wheel-spin 0.72s linear infinite;
}

.error-page__wheel circle:first-child {
    fill: #07141c;
    stroke: #dce8ed;
    stroke-width: 3;
}

.error-page__wheel-rim {
    fill: var(--color-blue);
    stroke: #fff;
    stroke-width: 2;
}

.error-page__wheel path {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
}

.error-page__car text {
    fill: var(--color-blue);
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.error-page__sign {
    position: absolute;
    z-index: 1;
    right: 8%;
    bottom: 34px;
    width: 72px;
    height: 72px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: var(--color-orange);
    color: var(--color-ink);
    font-size: 1.25rem;
    font-weight: 800;
    text-align: center;
    transform: rotate(4deg);
    transform-origin: 50% 115%;
    animation: error-sign-sway 4.8s ease-in-out infinite;
}

.error-page__sign::after {
    content: "";
    position: absolute;
    top: 66px;
    left: 50%;
    width: 5px;
    height: 76px;
    border-radius: 3px;
    background: #fff;
    transform: translateX(-50%);
}

.error-page__sign span {
    display: grid;
    height: 100%;
    place-items: center;
}

.error-page__road {
    position: absolute;
    right: 0;
    bottom: 12px;
    left: 0;
    height: 42px;
    overflow: hidden;
    border-radius: 9px;
    background-color: #102d3a;
    background-image: repeating-linear-gradient(90deg, transparent 0 78px, rgba(255, 255, 255, 0.6) 78px 148px, transparent 148px 226px);
    background-position: 0 19px;
    background-repeat: repeat-x;
    background-size: auto 4px;
    animation: error-road-move 2.8s linear infinite;
}

.error-page__road::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 45%, rgba(0, 0, 0, 0.16));
}

@keyframes error-car-travel {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(min(100vw - 48px, var(--container)) + 540px), 0, 0); }
}

@keyframes error-car-suspension {
    0%, 100% { transform: translateY(0) rotate(-0.15deg); }
    50% { transform: translateY(-2px) rotate(0.1deg); }
}

@keyframes error-wheel-spin {
    to { transform: rotate(360deg); }
}

@keyframes error-road-move {
    from { background-position: 0 19px; }
    to { background-position: -226px 19px; }
}

@keyframes error-sign-sway {
    0%, 38%, 100% { transform: rotate(4deg); }
    48% { transform: rotate(2.5deg); }
    58% { transform: rotate(4.8deg); }
    68% { transform: rotate(3.6deg); }
}

@media (max-width: 760px) {
    .legal-page .wrap {
        width: min(100% - 32px, 920px);
        padding: calc(var(--header-height) + 48px) 0 80px;
    }

    .legal-page .page-hero {
        margin-bottom: 38px;
    }

    .legal-page .legal-section {
        padding-block: 26px;
    }

    .error-page__main {
        min-height: 620px;
        padding-block: calc(var(--header-height) + 46px) 72px;
    }

    .error-page__scene {
        height: 180px;
        margin-bottom: 32px;
    }

    .error-page__car {
        bottom: 24px;
        width: 220px;
    }

    .error-page__sign {
        right: 5%;
        width: 62px;
        height: 62px;
        border-width: 4px;
        font-size: 1.05rem;
    }

    .error-page__sign::after {
        top: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .error-page__car,
    .error-page__car svg,
    .error-page__wheel,
    .error-page__road,
    .error-page__sign {
        animation: none;
    }

    .error-page__car {
        left: 6%;
    }
}

/* Liquid glass polish */
:root {
    --glass-surface: rgba(15, 39, 53, 0.62);
    --glass-surface-soft: rgba(16, 43, 58, 0.48);
    --glass-edge: rgba(220, 243, 252, 0.17);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 24px 64px rgba(0, 7, 13, 0.28);
    --neo-raised-shadow: 9px 10px 24px rgba(0, 7, 13, 0.25), -5px -5px 18px rgba(134, 207, 230, 0.055);
    --neo-inset-shadow: inset 3px 3px 8px rgba(0, 7, 13, 0.28), inset -2px -2px 7px rgba(173, 224, 239, 0.1);
    --motion-fast: 160ms;
    --motion-medium: 420ms;
    --motion-slow: 680ms;
    --motion-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --motion-ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.home-page,
body.legal-page {
    background-color: var(--color-bg);
    background-image:
        radial-gradient(ellipse at 8% 16%, rgba(0, 163, 224, 0.1), transparent 34rem),
        radial-gradient(ellipse at 92% 47%, rgba(242, 178, 17, 0.055), transparent 32rem);
    background-attachment: fixed;
}

.site-header {
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    border: 0;
    border-bottom: 1px solid rgba(228, 246, 253, 0.17);
    border-radius: 0;
    background: rgba(7, 25, 36, 0.62);
    box-shadow: 0 12px 36px rgba(0, 8, 14, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
    backdrop-filter: blur(24px) saturate(155%);
}

.site-header.is-scrolled {
    border-color: rgba(228, 246, 253, 0.2);
    background: rgba(6, 22, 32, 0.82);
    box-shadow: 0 16px 42px rgba(0, 8, 14, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-header .nav {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
}

.nav__links a {
    padding: 10px 13px;
    border-radius: 999px;
    transition: color var(--transition), background-color var(--transition);
}

.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links a[aria-current="true"] {
    background: rgba(255, 255, 255, 0.075);
}

.nav__links a::after {
    right: 22px;
    bottom: 4px;
    left: 22px;
    background: linear-gradient(90deg, var(--color-blue-light), var(--color-orange));
    transform-origin: center;
}

.hero {
    isolation: isolate;
    background-image: none;
    background-color: var(--color-bg);
    --hero-parallax-start: -150px;
    --hero-parallax-end: 150px;
    --hero-parallax-scale: 1.16;
}

.hero__parallax {
    position: absolute;
    z-index: 0;
    inset: -10% 0;
    pointer-events: none;
    background-image: url("../imgs/x2_v1.png");
    background-image: image-set(
        url("../imgs/x2_v1-1448.webp") type("image/webp"),
        url("../imgs/x2_v1.png") type("image/png")
    );
    background-position: 58% 52%;
    background-size: cover;
    transform: translate3d(0, var(--hero-parallax-offset, 0px), 0) scale(var(--hero-parallax-scale));
    will-change: transform;
}

@keyframes hero-image-parallax {
    from { transform: translate3d(0, var(--hero-parallax-start), 0) scale(var(--hero-parallax-scale)); }
    to { transform: translate3d(0, var(--hero-parallax-end), 0) scale(var(--hero-parallax-scale)); }
}

@supports ((animation-timeline: view()) and (animation-range: entry)) {
    .hero {
        view-timeline-name: --hero-scroll;
        view-timeline-axis: block;
    }

    .hero__parallax {
        animation: hero-image-parallax linear both;
        animation-timeline: --hero-scroll;
        animation-range: entry 0% exit 100%;
    }
}

.hero::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 79% 17%, rgba(112, 210, 239, 0.16), transparent 28%),
        radial-gradient(ellipse at 80% 88%, rgba(242, 178, 17, 0.11), transparent 24%);
}

.hero__overlay {
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(4, 19, 28, 0.88), rgba(4, 26, 38, 0.43) 56%, rgba(4, 26, 38, 0.1)),
        linear-gradient(180deg, rgba(4, 19, 28, 0.02) 36%, rgba(4, 19, 28, 0.36) 72%, var(--color-bg));
}

.hero__content {
    z-index: 3;
    right: auto;
    bottom: clamp(86px, 12%, 148px);
    left: max(24px, calc((100vw - var(--container)) / 2));
    width: min(790px, calc(100% - 48px));
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.hero__content::before {
    content: none;
}

.hero h1,
.hero p,
.hero__actions {
    animation: hero-content-in var(--motion-slow) var(--motion-ease-out) both;
}

.hero p {
    animation-delay: 140ms;
}

.hero__actions {
    animation-delay: 280ms;
}

@keyframes hero-content-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    max-width: 790px;
    text-shadow: 0 8px 34px rgba(0, 0, 0, 0.24);
}

.hero p {
    color: rgba(245, 251, 254, 0.88);
}

.section {
    border-top: 1px solid rgba(220, 243, 252, 0.035);
}

.home-page #ueberuns,
.home-page #erstehilfe,
.home-page #anfahrt {
    background:
        radial-gradient(ellipse at 3% 42%, rgba(0, 163, 224, 0.065), transparent 32rem),
        linear-gradient(180deg, #06151e, #081923 55%, #071720);
}

.home-page #leistungen,
.home-page #kontakt {
    background:
        radial-gradient(ellipse at 92% 16%, rgba(242, 178, 17, 0.06), transparent 30rem),
        linear-gradient(145deg, #091c27, #0a202c 54%, #081a25);
}

.section-heading h2,
.first-aid__content h2 {
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.team-card {
    border-color: var(--glass-edge);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(21, 49, 64, 0.72), rgba(8, 28, 40, 0.82));
    box-shadow: var(--glass-shadow), var(--neo-raised-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.team-card:hover {
    border-color: rgba(142, 217, 240, 0.35);
    box-shadow: 0 30px 76px rgba(0, 7, 13, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transform: translateY(-4px);
}

.team-card img {
    aspect-ratio: 16 / 10;
    max-height: 340px;
    object-position: center 25%;
}

.team-card__content {
    position: relative;
    padding: 22px 24px 25px;
    border-top-color: rgba(225, 245, 252, 0.12);
    background: linear-gradient(180deg, rgba(18, 44, 58, 0.78), rgba(10, 29, 41, 0.92));
}

.license-card {
    min-height: 300px;
    padding: 22px 22px 24px;
    border: 1px solid var(--glass-edge);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(24, 54, 70, 0.72), rgba(9, 29, 41, 0.76));
    box-shadow: 0 16px 42px rgba(0, 7, 13, 0.19), var(--neo-raised-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease, background 200ms ease;
}

.license-card:hover,
.license-card:focus-within {
    border-color: rgba(104, 205, 239, 0.38);
    background: linear-gradient(145deg, rgba(29, 65, 82, 0.82), rgba(10, 33, 47, 0.86));
    box-shadow: 0 24px 54px rgba(0, 7, 13, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}

.license-card summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 18px;
}

.license-card h3 {
    margin-bottom: 0;
}

.license-card__age {
    padding: 6px 10px;
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #d99508, #c17b00);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.license-card__facts li {
    border-color: rgba(220, 243, 252, 0.11);
    color: rgba(245, 251, 254, 0.9);
}

.license-card p {
    color: rgba(210, 226, 233, 0.82);
}

.button {
    min-height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 8, 14, 0.24), -4px -4px 12px rgba(148, 213, 234, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.23);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
    transition: box-shadow 200ms ease, transform 200ms ease, filter 200ms ease;
}

.button:hover {
    filter: brightness(1.06) saturate(1.08);
    box-shadow: 0 18px 36px rgba(0, 8, 14, 0.3), -5px -5px 14px rgba(148, 213, 234, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button:active {
    transform: translateY(1px);
    filter: brightness(0.96);
    box-shadow: var(--neo-inset-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.button--primary {
    background: linear-gradient(135deg, #d99508, #c17b00);
    color: #fff;
}

.button--primary:hover {
    background: linear-gradient(135deg, #e0a21a, #cb8500);
}

.button--secondary {
    background: linear-gradient(135deg, #08a9e6, #007eaf);
    color: #fff;
}

.button--secondary:hover {
    background: linear-gradient(135deg, #18b6ee, #078bbd);
}

.button__icon {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.17);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.first-aid__image {
    border: 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.info-card {
    min-height: 92px;
    padding: 18px;
    border: 1px solid var(--glass-edge);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(24, 54, 70, 0.63), rgba(9, 29, 41, 0.7));
    box-shadow: 0 14px 36px rgba(0, 7, 13, 0.16), var(--neo-raised-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.09);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
}

.info-card__icon,
.contact-links__icon {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(121, 211, 239, 0.2);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(0, 163, 224, 0.24), rgba(0, 116, 165, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.info-card__icon svg,
.contact-links__icon svg,
.location-card__icon svg {
    transition: transform var(--motion-fast) var(--motion-ease-spring);
}

.info-card:hover .info-card__icon svg,
.contact-links a:hover .contact-links__icon svg,
.location-card:hover .location-card__icon svg {
    transform: scale(1.12) rotate(-4deg);
}

.contact-links {
    gap: 12px;
    border: 0;
}

.contact-links a,
.contact-links a + a {
    border: 1px solid var(--glass-edge);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(24, 54, 70, 0.66), rgba(9, 29, 41, 0.74));
    box-shadow: 0 14px 36px rgba(0, 7, 13, 0.18), var(--neo-raised-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    backdrop-filter: blur(16px) saturate(130%);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.contact-links a:hover {
    border-color: rgba(129, 211, 238, 0.35);
    background: linear-gradient(145deg, rgba(34, 72, 91, 0.76), rgba(11, 37, 52, 0.82));
    box-shadow: 0 18px 42px rgba(0, 7, 13, 0.25), -5px -5px 16px rgba(134, 207, 230, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.contact-links a:active {
    box-shadow: var(--neo-inset-shadow);
}

.location-card {
    border-color: var(--glass-edge);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(24, 54, 70, 0.66), rgba(9, 29, 41, 0.76));
    box-shadow: 0 16px 40px rgba(0, 7, 13, 0.18), var(--neo-raised-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    backdrop-filter: blur(18px) saturate(130%);
}

.location-card:hover {
    border-color: rgba(129, 211, 238, 0.36);
    background: linear-gradient(145deg, rgba(34, 72, 91, 0.8), rgba(11, 37, 52, 0.84));
}

.location-card__icon {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 15px;
    background: linear-gradient(145deg, #14afe8, #007ba9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.site-footer {
    border-top-color: rgba(224, 243, 250, 0.12);
    background: linear-gradient(180deg, rgba(9, 29, 41, 0.8), rgba(5, 19, 27, 0.96));
}

.scroll-top {
    border-color: rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(18, 46, 61, 0.84), rgba(7, 25, 36, 0.88));
    box-shadow: 0 16px 38px rgba(0, 7, 13, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.notice-modal {
    background: rgba(2, 12, 19, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
}

.notice-modal__panel {
    border: 1px solid var(--glass-edge);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(27, 60, 77, 0.92), rgba(8, 27, 39, 0.96));
    box-shadow: 0 32px 90px rgba(0, 5, 10, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(26px) saturate(140%);
    backdrop-filter: blur(26px) saturate(140%);
}

.legal-page .legal-section {
    margin-bottom: 14px;
    padding: 25px 28px;
    border: 1px solid rgba(220, 243, 252, 0.12);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(20, 47, 62, 0.58), rgba(8, 27, 39, 0.68));
    box-shadow: 0 14px 34px rgba(0, 7, 13, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
    backdrop-filter: blur(14px) saturate(125%);
}

.legal-page .legal-section:last-child {
    padding-bottom: 25px;
}

.legal-page .site-footer {
    background: rgba(6, 20, 29, 0.72);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.error-page__content {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--glass-edge);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(20, 49, 65, 0.62), rgba(8, 27, 39, 0.72));
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    backdrop-filter: blur(20px) saturate(130%);
}

@media (max-width: 960px) {
    .license-card {
        min-height: 280px;
    }
}

@media (max-width: 760px) {
    .site-header {
        --header-height: 62px;
        top: 0;
        right: 0;
        left: 0;
        height: 62px;
        border-radius: 0;
    }

    .site-header .nav {
        width: calc(100% - 32px);
    }

    .nav__toggle {
        width: 42px;
        height: 42px;
        border: 1px solid rgba(228, 246, 253, 0.18);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .nav__links {
        top: calc(var(--header-height) + 2px);
        right: 12px;
        left: 12px;
        border: 1px solid rgba(228, 246, 253, 0.17);
        border-radius: 0 0 20px 20px;
        background: rgba(7, 25, 36, 0.92);
        box-shadow: 0 28px 64px rgba(0, 7, 13, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        -webkit-backdrop-filter: blur(24px) saturate(145%);
        backdrop-filter: blur(24px) saturate(145%);
    }

    .nav__links.is-open {
        height: calc(100dvh - var(--header-height) - 24px);
        padding: 16px 20px 24px;
    }

    .nav__links a {
        padding: 17px 8px;
    }

    .hero {
        min-height: max(740px, 94svh);
        --hero-parallax-start: -70px;
        --hero-parallax-end: 70px;
        --hero-parallax-scale: 1.04;
    }

    .hero__parallax {
        background-position: 64% center;
    }

    .hero__overlay {
        background:
            linear-gradient(90deg, rgba(4, 19, 28, 0.64), rgba(4, 26, 38, 0.24) 72%),
            linear-gradient(180deg, rgba(4, 19, 28, 0.12) 22%, rgba(4, 19, 28, 0.42) 55%, rgba(4, 19, 28, 0.84) 100%);
    }

    .hero__content {
        right: 16px;
        bottom: 8%;
        left: 16px;
        width: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .hero h1 {
        max-width: 100%;
        margin-bottom: 14px;
        font-size: clamp(2.75rem, 12vw, 4.25rem);
    }

    .hero p {
        max-width: 100%;
        font-size: 1rem;
    }

    .hero__actions {
        display: grid;
        gap: 10px;
        margin-top: 20px;
    }

    .hero__actions .button {
        width: 100%;
        min-width: 0;
        min-height: 54px;
    }

    .section {
        padding-block: 76px;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .team-card {
        border-radius: 20px;
    }

    .license-card,
    .license-card:hover,
    .license-card:focus-within {
        min-height: 0;
        padding: 0 16px;
        border: 1px solid var(--glass-edge);
        border-radius: 18px;
        background: linear-gradient(145deg, rgba(24, 54, 70, 0.72), rgba(9, 29, 41, 0.8));
        box-shadow: 0 12px 30px rgba(0, 7, 13, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transform: none;
    }

    .license-card summary {
        margin-bottom: 0;
    }

    .license-card p {
        padding-bottom: 20px;
    }

    .info-card {
        min-height: 82px;
        padding: 16px;
        border-radius: 17px;
    }

    .contact-links {
        gap: 10px;
    }

    .contact-links a,
    .contact-links a + a {
        padding: 17px 14px;
        border: 1px solid var(--glass-edge);
        border-radius: 17px;
    }

    .location-card {
        min-height: 88px;
        padding: 18px;
        border-radius: 18px;
    }

    .site-footer {
        padding-block: 28px;
    }

    .legal-page .legal-section {
        margin-bottom: 10px;
        padding: 21px 18px;
        border-radius: 16px;
    }

    .legal-page .legal-section:last-child {
        padding-bottom: 21px;
    }

    .error-page__content {
        padding: 22px 18px;
        border-radius: 20px;
    }
}

@media (prefers-reduced-transparency: reduce) {
    .site-header,
    .hero__content,
    .team-card,
    .license-card,
    .info-card,
    .contact-links a,
    .location-card,
    .notice-modal__panel,
    .legal-page .legal-section,
    .error-page__content {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}
