@font-face {
    font-family: 'ElmsSans';
    src: url('fonts/ElmsSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a, button, [role="button"], label, select, summary {
    cursor: pointer;
}

:root {
    --color-main: #111827;
    --color-accent: #3178bb;
    --color-background: #f5f5f5;
    --color-light: #f9fafb;
    --font-main: 'ElmsSans', sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--color-main);
    background-color: var(--color-background);
    line-height: 1.6;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}
html {
    scroll-behavior: smooth;
}

/* ── Navigation ── */
.nav-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-background);
    border-bottom: 1px solid #ebebeb;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav-header.scrolled {
    background-color: #ffffff;
}

.nav-header:has(.nav-logo:hover) {
    background-color: var(--color-main);
    border-bottom-color: var(--color-main);
}

.nav-header:has(.nav-logo:hover) .nav-links a {
    color: var(--color-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: block;
    position: relative;
    height: 36px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    display: block;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.nav-logo-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.nav-logo:hover .nav-logo-default {
    opacity: 0;
    transform: scale(1.06);
}

.nav-logo:hover .nav-logo-hover {
    opacity: 1;
    transform: scale(1.06);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.2px;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-accent);
    transition: width 0.25s ease;
}

.nav-links a:hover {
    color: var(--color-main);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ── Hero ── */
@keyframes heroZoom {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

@keyframes heroBgFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes heroTextUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes letterUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fontWeightPulse {
    0%   { font-variation-settings: 'wght' 200; letter-spacing: 4px; }
    50%  { font-variation-settings: 'wght' 400; letter-spacing: 3px; }
    100% { font-variation-settings: 'wght' 200; letter-spacing: 4px; }
}

.hero {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    background-color: var(--color-background);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-bg-inner {
    position: absolute;
    inset: -15%;
    background-image: url('images/study-of-patterns_16-9.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroBgFade 3s ease forwards, heroZoom 30s 3s ease-in-out infinite;
    animation-play-state: paused;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, rgba(17,24,39,0.8) 100%);
    z-index: 1;
}

.hero-scroll-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--color-main);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

#hero-globe {
    position: absolute;
    right: 0;
    left: auto;
    top: 0;
    width: 55%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 200;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #F2F2F2;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: heroTextUp 0.8s ease forwards;
    animation-delay: 1.2s;
    animation-play-state: paused;
}

.hero-headline {
    font-size: clamp(3.5rem, 9vw, 7.5rem);
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: 4px;
    color: #F2F2F2;
    margin-bottom: 1.75rem;
    opacity: 1;
    animation: fontWeightPulse 16s ease-in-out 2.5s infinite;
    animation-play-state: paused;
}

.hero-headline .hero-accent {
    color: #83CAFF;
}

.hero-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: letterUp 0.8s ease forwards;
    animation-delay: calc(1.7s + var(--i) * 50ms);
    animation-play-state: paused;
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 200;
    color: #F2F2F2;
    max-width: 480px;
    line-height: 1.75;
    margin-bottom: 2.75rem;
    opacity: 0;
    animation: heroTextUp 0.8s ease forwards;
    animation-delay: 4.2s;
    animation-play-state: paused;
}

.hero-cta {
    display: inline-block;
    text-decoration: none;
    background-color: #83CAFF;
    color: var(--color-main);
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    animation-delay: 5.0s;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.15s ease;
    animation-play-state: paused;
}

.hero-cta:hover {
    background-color: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
}

.animations-running .hero-bg-inner,
.animations-running .hero-eyebrow,
.animations-running .hero-headline,
.animations-running .hero-letter,
.animations-running .hero-sub,
.animations-running .hero-cta {
    animation-play-state: running;
}

/* ── Section shared ── */
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.section-headline {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 300;
    letter-spacing: -1px;
    color: var(--color-main);
    margin-bottom: 3.5rem;
}

/* ── Portfolio ── */
.portfolio {
    background-color: #111827;
    padding: 7rem 2rem;
}

.portfolio .section-eyebrow {
    color: #e5f2ff;
}

.portfolio .section-headline {
    color: #e5f2ff  ;
}

.portfolio-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

/* ── Browser Cards ── */
.browser-card {
    background-color: #041E38;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease;
    cursor: pointer;
    opacity: 0.6;
}

.browser-card:hover {
    transform: none;
    opacity: 1;
}

.browser-bar {
    background: #a8a8a8;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #0a1f33;
}

.browser-dots {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.browser-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: block;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.browser-url {
    flex: 1;
    background: #e8e8e8;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 0.7rem;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser-screen-link {
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.browser-screen {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: object-position 3s ease;
}

.browser-card:hover .browser-screen {
    object-position: bottom;
}

.browser-screen-wrapper {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.browser-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1920px;
    height: 10170px;
    border: none;
    pointer-events: none;
    transform-origin: top left;
    transition: transform 20s ease;
}

.browser-screen-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #d8d8d8;
}

.browser-card-footer {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background-color: rgba(49, 120, 187, 0.1);
    transition: background-color 0.3s ease;
}

.browser-card:hover .browser-card-footer {
    background-color: rgba(49, 120, 187, 1);
}

.browser-card:hover .browser-card-title {
    font-weight: 500;
    letter-spacing: 0.04em;
}

.browser-card-title {
    font-size: 0.85rem;
    font-weight: 300;
    color: #E5F2FF;
    margin: 0;
    letter-spacing: -0.1px;
    transition: letter-spacing 0.4s ease, font-weight 0.4s ease;
}

.browser-card-link {
    color: #83CAFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.browser-card-link:hover {
    color: #fff;
}

/* ── Über mich ── */
.about {
    background-color: var(--color-background);
    padding: 7rem 2rem;
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 5rem;
    align-items: center;
}

.about-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-image: linear-gradient(160deg, #dde3ec 0%, #c8d2e0 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-avatar-icon {
    width: 40%;
    opacity: 0.5;
}

.about-headline {
    margin-bottom: 1.75rem;
}

.about-para {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.about-skills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.about-skills li {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    background-color: rgba(49, 120, 187, 0.08);
    padding: 0.35rem 0.85rem;
    border-radius: 3px;
}

/* ── Burger Button ── */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 200;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-main);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.burger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Menu Overlay ── */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 150;
    background-color: var(--color-background);
    pointer-events: none;
}

.mobile-menu.is-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    animation: menuBgIn 0.35s ease both;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

@keyframes menuBgIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes menuBgOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.mobile-menu.is-closing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: menuBgOut 0.3s ease forwards;
}

@keyframes menuLinkIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu__link {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-menu__link:hover {
    color: var(--color-accent);
}

.mobile-menu.is-open .mobile-menu__link {
    animation: menuLinkIn 0.4s ease both;
}

.mobile-menu.is-open .mobile-menu__link:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { animation-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { animation-delay: 0.35s; }

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero-content {
        margin-bottom: 20vh;
    }

    .hero-headline {
        font-size: clamp(4rem, 10vw, 8rem);
    }

    #hero-globe {
    width: 100%;
    left: 0;
    right: 0;
    top: 0;        /* sicherstellen */
    height: 100%;  /* sicherstellen */
}

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-inner {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .portfolio {
        padding: 5rem 2rem;
    }

    .about {
        padding: 5rem 2rem;
    }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero {
        padding: 3.5rem 1.25rem;
        min-height: 100vh;
    }

    #hero-globe {
      width: 100%;
      left: 0;
      right: 0; 
    }

    .hero-headline {
        font-size: clamp(1.5rem, 9vw, 3.5rem);
    }

    .hero-letter {
        transform: translateY(20px);
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .portfolio {
        padding: 4rem 1.25rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .section-headline {
        margin-bottom: 2rem;
    }

    .about {
        padding: 4rem 1.25rem;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        max-width: 320px;
        margin: 0 auto;
    }

    .about-photo,
    .about-image-placeholder {
        aspect-ratio: 1 / 1;
    }

}

/* ── Portfolio Scroll Animation ── */
.section-headline.anim-ready {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.section-headline.anim-in {
    opacity: 1;
    transform: translateY(0);
}

.browser-card.anim-ready {
    opacity: 0;
    transition: opacity 1.4s ease, transform 1.2s ease;
}
.browser-card.anim-in {
    opacity: 0.6;
    transform: translate(0, 0) !important;
}

.browser-card.anim-in:hover {
    opacity: 1;
}

.browser-card:nth-child(1).anim-ready { transform: translate(-20px, -16px) scale(0.96); }
.browser-card:nth-child(2).anim-ready { transform: translate(20px, -16px) scale(0.96); }
.browser-card:nth-child(3).anim-ready { transform: translate(-24px, 0px) scale(0.96); }
.browser-card:nth-child(4).anim-ready { transform: translate(24px, 0px) scale(0.96); }
.browser-card:nth-child(5).anim-ready { transform: translate(-20px, 16px) scale(0.96); }

/* ── Page Loader ── */
@keyframes loaderZoom {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease;
}

#loader-logo {
    width: 220px;
    animation: loaderZoom 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

/* ── Contact ── */
.contact {
    background-color: #111827;
    padding: 7rem 2rem;
    color: #e5f2ff;
}

.contact .section-eyebrow {
    color: #e5f2ff;
}

.contact .section-headline {
    color: #e5f2ff;
}

.contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-para {
    font-size: 1rem;
    color: #a0b4c8;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: #83CAFF;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #fff;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #a0b4c8;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #1e3a55;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: #e5f2ff;
    background-color: #0d1f33;
    transition: border-color 0.2s ease;
    resize: vertical;
}

.form-group textarea {
    min-height: 160px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #83CAFF;
}

.contact-submit {
    align-self: flex-start;
    display: inline-block;
    background-color: #83CAFF;
    color: var(--color-main);
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.contact-submit:hover {
    background-color: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 640px) {
    .contact {
        padding: 4rem 1.25rem;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ── About Scroll Animation ── */
.about-image.anim-ready {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.about-text.anim-ready {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.about-image.anim-in,
.about-text.anim-in {
    opacity: 1;
    transform: translateX(0);
}

/* ── Contact Scroll Animation ── */
.contact-anim.anim-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact-anim.anim-in {
    opacity: 1;
    transform: translateY(0);
}

/* ── Legal Pages (Impressum / Datenschutz) ── */
.legal-page {
    background-color: var(--color-background);
}

.legal-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 2rem;
}

.legal-inner h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.legal-inner h2 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.legal-inner p,
.legal-inner address {
    font-style: normal;
    line-height: 1.75;
    color: var(--color-text);
    opacity: 0.8;
}

.legal-inner a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-inner a:hover {
    opacity: 0.6;
}

/* ── Footer ── */
.site-footer {
    background-color: var(--color-background);
    border-top: 1px solid #ebebeb;
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-logo-img-link {
    display: block;
    margin-bottom: 0.75rem;
    margin-left: -2px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-logo {
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-main);
    letter-spacing: -0.3px;
}

.footer-logo span {
    color: var(--color-accent);
}

.footer-brand address {
    font-style: normal;
    font-size: 0.85rem;
    color: #000000;
    line-height: 1.8;
    margin-top: 1.5rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.footer-nav a {
    font-size: 0.85rem;
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    display: inline-block;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.25s ease;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.footer-nav a:hover::after {
    width: 100%;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    font-size: 0.85rem;
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.footer-contact a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.25s ease;
}

.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-contact a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid #ebebeb;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: #999;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ── Cookie Banner ── */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #111827;
    color: #e5f2ff;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.6;
    border-top: 1px solid #1e3a55;
    transition: opacity 0.4s ease;
}

#cookie-banner a {
    color: #83CAFF;
    text-decoration: underline;
}

#cookie-accept {
    background: #83CAFF;
    color: #111827;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

#cookie-accept:hover {
    background: #3178bb;
    color: #fff;
}

@media (max-width: 640px) {
    #cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}