/* ========================================
   MINERVA — Corporate Website Styles
   ======================================== */

/* ===== LOCAL FONTS ===== */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Brand Colors */
    --color-navy:       #153a59;
    --color-navy-deep:  #0e2a42;
    --color-navy-light: #1d4d72;

    /* Accent Palette (from PDF) */
    --color-sage:       #6e8063;
    --color-copper:     #C8A888;
    --color-sand:       #c8a888;
    --color-grey-warm:  #b3a9a8;
    --color-teal:       #adc2c5;
    --color-gold:       #c8aa58;
    --color-beige:      #dfc198;
    --color-terracotta: #995c3e;

    /* Neutrals */
    --color-white:      #ffffff;
    --color-off-white:  #f8f6f3;
    --color-light-grey: #eae7e3;
    --color-text:       #2a2a2a;
    --color-text-muted: #6b6b6b;

    /* Typography */
    --font-display: 'Montserrat', -apple-system, sans-serif;
    --font-body:    'Montserrat', -apple-system, sans-serif;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Transitions */
    --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
    --duration:  0.5s;
}


/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.65;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--ease-out);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.15;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
}


/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.35s var(--ease-out);
}

.btn--primary {
    background: var(--color-navy-deep);
    color: var(--color-white);
}

.btn--primary:hover {
    background: #C8A888;
}

.btn--outline {
    background: transparent;
    color: var(--color-navy);
    border: 1px solid var(--color-navy);
}

.btn--outline:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.btn--ghost {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.35);
}

.btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
}

.btn--full {
    width: 100%;
}


/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease-out);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.nav--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav--scrolled {
    background: rgba(21, 58, 89, 0.97);
    backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo-svg {
    height: 20px;
    width: auto;
}

.nav__links {
    display: flex;
    gap: 2.25rem;
}

.nav__links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s var(--ease-out);
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-sand);
    transition: width 0.35s var(--ease-out);
}

.nav__links a:hover,
.nav__links a.is-active {
    color: var(--color-white);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.lang-toggle {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    padding: 0;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s var(--ease-out);
    position: relative;
}

.lang-toggle::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-sand);
    transition: width 0.35s var(--ease-out);
}

.lang-toggle:hover {
    color: var(--color-white);
}

.lang-toggle:hover::after {
    width: 100%;
}

.nav__actions .btn--outline {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
}

.nav__actions .btn--outline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-sand);
    transition: width 0.35s var(--ease-out);
}

.nav__actions .btn--outline:hover {
    background: transparent;
    color: var(--color-white);
    border: none;
}

.nav__actions .btn--outline:hover::after {
    width: 100%;
}

/* Burger */
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-white);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav__burger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav__burger.active span:nth-child(2) {
    opacity: 0;
}

.nav__burger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 960px) {
    .nav__links,
    .nav__actions .btn--outline {
        display: none;
    }
    .nav__burger {
        display: flex;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--color-navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu__inner a {
    font-family: var(--font-display);
    font-size: 2rem;
    color: rgba(255,255,255,0.85);
    transition: color 0.3s;
}

.mobile-menu__inner a:hover {
    color: var(--color-sand);
}

.mobile-menu__divider {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 0.5rem auto;
}


/* ===== HERO ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    overflow: hidden;
}

/* ---- Left panel ---- */
.hero__left {
    background: linear-gradient(100deg, #182E45 15.24%, #2C4B6A 87.52%);
    display: flex;
    flex-direction: column;
    padding: 5rem 3rem 2.5rem 6rem;
    position: relative;
    z-index: 2;
}

.hero__logo-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) 0.1s forwards;
}

.hero__logo-wrap svg {
    width: 298px;
    height: 40px;
}

.hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-lg) 0 var(--space-md);
}

.hero__tag {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.25s forwards;
}

.hero__tag-line {
    width: 40px;
    height: 1px;
    background: var(--color-sand);
    flex-shrink: 0;
}

.hero__tag span:last-child {
    font-size: 1.0625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-sand);
    font-weight: 400;
}

.hero__title {
    font-family: 'Proxima Nova', 'Montserrat', -apple-system, sans-serif;
    font-weight: 400;
    font-size: clamp(1.875rem, 3.2vw, 4rem);
    line-height: 1.08;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero__sub {
    font-family: 'Proxima Nova', 'Montserrat', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.60);
    max-width: 66%;
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero__links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero__link {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    font-family: 'Proxima Nova', 'Montserrat', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 1.0625rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #C8A888;
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
    line-height: 1.4;
    white-space: nowrap;
}

.hero__link:hover {
    color: var(--color-white);
}

.hero__link svg path {
    transition: fill 0.3s var(--ease-out);
}

.hero__link:hover svg path {
    fill: var(--color-white);
}

/* ---- Scroll indicator (bottom-right of left panel) ---- */
.hero__scroll {
    position: absolute;
    right: 2rem;
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero__scroll span {
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.40);
    writing-mode: vertical-rl;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ---- Right panel: video ---- */
.hero__right {
    position: relative;
    overflow: hidden;
    background: var(--color-navy-deep);
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    .hero__right {
        height: 45vw;
        min-height: 260px;
        order: -1;
    }
    .hero__left {
        padding: 2rem 1.5rem;
    }
    .hero__title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .hero__sub {
        max-width: 100%;
    }
    .hero__links {
        flex-wrap: wrap;
        gap: 1.25rem;
    }
    .hero__scroll {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero__left {
        padding: 1.75rem 1.25rem;
    }
}


/* ===== SECTIONS ===== */
.section {
    padding: var(--space-2xl) 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-xl) 0;
    }
}

.section__header {
    margin-bottom: var(--space-xl);
}

.section__title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: #C8A888;
    line-height: 1.1;
    text-transform: uppercase;
}

.section__header--light .section__title {
    color: #C8A888;
}


/* ===== APPROACH ===== */
.approach {
    background: var(--color-off-white);
}

.approach__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--color-light-grey);
    border: 1px solid var(--color-light-grey);
}

.approach__card {
    background: var(--color-off-white);
    padding: var(--space-lg);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out);
}

.approach__card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.approach__icon {
    width: 48px;
    height: 48px;
    color: var(--color-navy);
    margin-bottom: var(--space-md);
}

.approach__card h3 {
    font-family: 'Proxima Nova', 'Montserrat', -apple-system, sans-serif;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: var(--space-sm);
    line-height: 1.35;
}

.approach__card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

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

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


/* ===== TEAM ===== */
.team__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.3rem;
    align-items: stretch; /* alle Karten gleich hoch – unten auf einer Linie */
}

.team__card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    position: relative;
    z-index: 1;
    transform-origin: top center;
    padding: var(--space-sm);
    border-radius: 5px;
    background-color: var(--color-off-white);
}

.team__card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.team__photo {
    aspect-ratio: 3/4;
    margin-bottom: var(--space-md);
    overflow: hidden;
    background: var(--color-light-grey);
    border: 1px solid transparent;
}

.team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.team__info {
    position: relative;
}

.team__info h3 {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 0.25rem;
}

.team__role {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-copper);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
}

.team__info p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--color-text-muted);
}

/* Pointierte Schlusszeile je Vita – fett in Braun/Gold, dauerhaft sichtbar */
.team__info p.team__punchline {
    margin-top: var(--space-sm);
    font-weight: 700;
    color: var(--color-text-muted);
}

/* Alle Karten teilen sich dieselben Zeilen des Rasters (Subgrid): Foto, Name,
   Rolle, Vita und Schlusszeile beginnen dadurch in jeder Karte auf gleicher
   Höhe – unabhängig davon, wie lang der Vita-Text ist. Die Vita-Zeile (1fr)
   nimmt die Höhe des längsten Textes an, kürzere Vitae lassen darunter Luft. */
@supports (grid-template-rows: subgrid) {
    @media (min-width: 961px) {
        .team__grid {
            grid-template-rows: auto auto auto 1fr auto;
            row-gap: 0;
        }

        .team__card {
            display: grid;
            grid-row: span 5;
            grid-template-rows: subgrid;
        }

        .team__info {
            display: grid;
            grid-row: span 4;
            grid-template-rows: subgrid;
        }
    }
}


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

@media (max-width: 500px) {
    .team__grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
}


/* ===== SERVICES ===== */
.services {
    position: relative;
    overflow: hidden;
}

.services__video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.services__overlay {
    position: absolute;
    inset: 0;
    background: rgba(21, 58, 89, 0.80);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3.5rem 4rem;
    position: relative;
    z-index: 1;
}

/* Hauptthema oben, Unterthemen darunter – Zeilen beider Spalten fluchten */
.services__grid > .services__card--main:nth-child(1) { grid-column: 1; grid-row: 1; }
.services__grid > .services__subs:nth-child(2)      { grid-column: 1; grid-row: 2; }
.services__grid > .services__card--main:nth-child(3) { grid-column: 2; grid-row: 1; }
.services__grid > .services__subs:nth-child(4)      { grid-column: 2; grid-row: 2; }

.services__subs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Ohne die Nummern rückt der Block enger an die Überschrift */
.services .section__header {
    margin-bottom: var(--space-lg);
}

.services .container {
    position: relative;
    z-index: 1;
}

.services__card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out);
}

.services__card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.services__card h3 {
    font-family: 'Proxima Nova', 'Montserrat', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 1.75rem;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.services__card--main h3 {
    font-size: 2rem;
}

.services__card--sub h3 {
    font-size: 1.125rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
}

.services__card--sub .services__line {
    width: 24px;
    height: 1px;
    margin-bottom: var(--space-sm);
}

.services__card--sub p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.60);
}

.services__line {
    width: 40px;
    height: 2px;
    background: #C8A888;
    margin-bottom: var(--space-md);
}

.services__card p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.70);
}

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

@media (max-width: 768px) {
    .services__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .services__grid > .services__card--main,
    .services__grid > .services__subs {
        grid-column: 1;
        grid-row: auto;
    }

    .services__card--main h3 {
        font-size: 1.75rem;
    }
}


/* ===== TRACK RECORD / TICKER ===== */
.track-record {
    padding-bottom: var(--space-xl);
}

.ticker {
    overflow: hidden;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-light-grey);
    border-bottom: 1px solid var(--color-light-grey);
}

.ticker__track {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: tickerScroll 30s linear infinite;
    width: max-content;
}

.ticker__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0 1rem;
}

.ticker__value {
    font-family: 'Proxima Nova', 'Montserrat', -apple-system, sans-serif;
    font-weight: 300;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: #153A59;
    white-space: nowrap;
}

.ticker__label {
    font-family: 'Proxima Nova', 'Montserrat', -apple-system, sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #C8A888;
    white-space: nowrap;
}

.ticker__divider {
    width: 1px;
    height: 40px;
    background: var(--color-light-grey);
    flex-shrink: 0;
}


/* ===== SKILLS ===== */
.skills {
    background: linear-gradient(100deg, #182E45 15.24%, #2C4B6A 87.52%);
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skills__card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: var(--space-lg);
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
}

.skills__card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.skills__card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
}

.skills__icon-wrap {
    width: 40px;
    height: 40px;
    color: var(--color-sand);
    margin-bottom: var(--space-md);
}

.skills__card h3 {
    font-family: 'Proxima Nova', 'Montserrat', -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    line-height: 1.35;
}

.skills__examples {
    list-style: disc;
    padding-left: 1.1rem;
    font-size: 0.8125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}

.skills__examples li {
    color: rgba(255, 255, 255, 0.78);
}

/* Aufzählungspunkte bleiben dezent, damit der Text führt */
.skills__examples li::marker {
    color: rgba(255, 255, 255, 0.45);
}

/* Projektbild sitzt bündig am unteren Kartenrand – über alle Karten auf einer
   Linie, weil der Textblock unterschiedlich hoch ist (margin-top: auto). */
.skills__media {
    position: relative;
    overflow: hidden;
    margin: var(--space-lg) calc(var(--space-lg) * -1) calc(var(--space-lg) * -1);
    margin-top: auto;
    padding-top: var(--space-lg);
    line-height: 0;
    isolation: isolate;
}

.skills__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    /* Schwarzweiß und kontrastreich als Basis für den Duplex-Look */
    filter: grayscale(1) contrast(1.3) brightness(0.95);
    transition: filter 0.6s var(--ease-out);
}

/* Blaue Volltonfläche im Blendmodus „color" färbt das Graustufenbild ein –
   die Helligkeitswerte des Fotos bleiben erhalten, daher bleibt es kontrastreich. */
.skills__media::after {
    content: '';
    position: absolute;
    inset: var(--space-lg) 0 0;
    background: #153A59;
    mix-blend-mode: color;
    opacity: 0.9;
    pointer-events: none;
    transition: opacity 0.6s var(--ease-out);
}

.skills__card:hover .skills__media img {
    filter: none;
}

.skills__card:hover .skills__media::after {
    opacity: 0;
}

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

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


/* ===== ZWISCHENVIDEO ===== */
.zwischenvideo {
    width: 100%;
    line-height: 0;
}

.zwischenvideo video {
    width: 100%;
    display: block;
}

/* ===== HIGHLIGHTS ===== */
.highlights {
    background: var(--color-off-white);
}

.highlights__header {
    padding: var(--space-2xl) 0 var(--space-lg);
}

.highlights__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-bottom: var(--space-2xl);
}

.highlights__card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.highlights__card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.highlights__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.highlights__card:hover .highlights__img,
.highlights__card.active .highlights__img {
    transform: scale(1.04);
}

/* Jahr und Titel sind immer sichtbar, der Fließtext klappt beim Hover auf */
.highlights__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    background: linear-gradient(to top, rgba(21, 58, 89, 0.92) 0%, rgba(21, 58, 89, 0.78) 22%, rgba(21, 58, 89, 0) 62%);
    color: var(--color-white);
    transition: background 0.5s var(--ease-out);
}

.highlights__card:hover .highlights__overlay,
.highlights__card.active .highlights__overlay {
    background: rgba(21, 58, 89, 0.90);
}

.highlights__year {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-sand);
    margin-bottom: 0.35rem;
}

.highlights__overlay h3 {
    font-family: 'Proxima Nova', 'Montserrat', -apple-system, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.35;
    color: var(--color-white);
}

.highlights__body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s var(--ease-out), opacity 0.4s var(--ease-out);
}

.highlights__card:hover .highlights__body,
.highlights__card.active .highlights__body {
    max-height: 20rem;
    opacity: 1;
}

.highlights__line {
    width: 40px;
    height: 2px;
    background: var(--color-copper);
    margin: 0.9rem 0 var(--space-sm);
}

.highlights__overlay p {
    font-size: 0.8125rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
}

.highlights__link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-sand);
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 168, 136, 0.4);
}

.highlights__link:hover {
    border-bottom-color: var(--color-sand);
}

/* Ab hier werden die Karten zu flach für den längsten Hover-Text */
@media (max-width: 1200px) {
    .highlights__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Zweispaltig wären die Karten hier zu flach – eine Spalte gibt dem Text Raum */
@media (max-width: 768px) {
    .highlights__header {
        padding-top: var(--space-lg);
    }
    .highlights__grid {
        grid-template-columns: 1fr;
        padding-bottom: var(--space-xl);
    }
}


/* ===== LOGIN ===== */
.login {
    background: var(--color-white);
    border-top: 1px solid var(--color-light-grey);
}

.login__wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.login__info h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: #C8A888;
    margin-bottom: var(--space-sm);
}

.login__info p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.login__form-wrap {
    max-width: 420px;
    margin-left: auto;
}

.login__form {
    background: var(--color-off-white);
    padding: var(--space-lg);
    border: 1px solid var(--color-light-grey);
}

.login__field {
    margin-bottom: var(--space-md);
}

.login__field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.login__field input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    border: 1px solid var(--color-light-grey);
    background: var(--color-white);
    color: var(--color-text);
    transition: border-color 0.3s;
    outline: none;
}

.login__field input:focus {
    border-color: var(--color-navy);
}

.login__field input::placeholder {
    color: var(--color-grey-warm);
}

.login__form .btn {
    margin-top: var(--space-xs);
}

.login__forgot {
    display: block;
    text-align: center;
    margin-top: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.login__forgot:hover {
    color: var(--color-copper);
}

@media (max-width: 768px) {
    .login__wrap {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .login__form-wrap {
        margin-left: 0;
        max-width: 100%;
    }
}


/* ===== FOOTER ===== */
.footer {
    background: var(--color-navy-deep);
    color: rgba(255,255,255,0.5);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    align-items: start;
}

.footer__logo {
    display: block;
    margin-bottom: var(--space-sm);
}

.footer__brand p {
    font-size: 0.875rem;
    line-height: 1.65;
}

.footer__col h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.footer__col a,
.footer__col span {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer__col .footer__contact-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer__col span.footer__contact-label {
    display: inline;
    margin-bottom: 0;
    flex-shrink: 0;
}

.footer__col a.footer__contact-num,
.footer__col span.footer__contact-num {
    display: inline;
    white-space: nowrap;
    margin-bottom: 0;
}

.footer__col a:hover {
    color: var(--color-sand);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    font-size: 0.8125rem;
}

.footer__legal {
    display: flex;
    gap: 1.5rem;
}

.footer__legal a:hover {
    color: var(--color-sand);
}

@media (max-width: 768px) {
    .footer__top {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}


/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* ===== SCROLL REVEAL DELAYS ===== */
.approach__card:nth-child(1) { transition-delay: 0s; }
.approach__card:nth-child(2) { transition-delay: 0.08s; }
.approach__card:nth-child(3) { transition-delay: 0.16s; }
.approach__card:nth-child(4) { transition-delay: 0.24s; }
.approach__card:nth-child(5) { transition-delay: 0.32s; }
.approach__card:nth-child(6) { transition-delay: 0.4s; }

.team__card:nth-child(1) { transition-delay: 0s; }
.team__card:nth-child(2) { transition-delay: 0.1s; }
.team__card:nth-child(3) { transition-delay: 0.2s; }
.team__card:nth-child(4) { transition-delay: 0.3s; }

.services__grid > .services__card:nth-child(1) { transition-delay: 0s; }
.services__grid > .services__card:nth-child(3) { transition-delay: 0.08s; }
.services__subs .services__card:nth-child(1) { transition-delay: 0.16s; }
.services__subs .services__card:nth-child(2) { transition-delay: 0.24s; }

.skills__card:nth-child(1) { transition-delay: 0s; }
.skills__card:nth-child(2) { transition-delay: 0.06s; }
.skills__card:nth-child(3) { transition-delay: 0.12s; }
.skills__card:nth-child(4) { transition-delay: 0.18s; }
.skills__card:nth-child(5) { transition-delay: 0.24s; }
.skills__card:nth-child(6) { transition-delay: 0.3s; }

.highlights__card:nth-child(3n+1) { transition-delay: 0s; }
.highlights__card:nth-child(3n+2) { transition-delay: 0.08s; }
.highlights__card:nth-child(3n+3) { transition-delay: 0.16s; }

/* ===== FOOTER ACCORDION (IMPRINT / PRIVACY) ===== */
.footer__accordion {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s var(--ease-out);
}

.footer__accordion--open {
    max-height: 4000px;
}

.footer__accordion-inner {
    padding: var(--space-lg) 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
}

.footer__accordion-inner p {
    margin-bottom: 0.75rem;
}

.footer__accordion-inner a {
    color: var(--color-sand);
}

.legal-section__title {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-sand);
    margin-top: var(--space-md);
    margin-bottom: 0.25rem;
}
