/* ===========================
   Brush Background Canvas
   =========================== */
#brush-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

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

:root {
    --cobalt:      #1248C8;
    --white:       #ffffff;
    --font:        'Manrope', sans-serif;
    --nav-size:    0.85rem;
    --nav-spacing: 0.18em;
    --content-block-width: 600px;
}

html, body {
    height: 100vh;
    overflow: hidden;
}

body {
    font-family: var(--font);
    background-color: var(--cobalt);
    color: var(--white);
    display: flex;
    flex-direction: column;
}

a {
    color: var(--white);
    text-decoration: none;
}

/* ===========================
   Fade-In Entry Animation
   =========================== */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    40% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    animation: fadeUp 2.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: var(--delay, 0s);
}

.brand-static .site-brand.animate {
    opacity: 1;
    animation: none;
    transform: none;
}

.brand-static .site-logo.animate {
    opacity: 1;
    animation: none;
}

/* ===========================
   Top Navigation
   =========================== */
.top-nav {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    padding: 2rem 3rem 0;
}

.top-nav-home {
    font-size: var(--nav-size);
    font-weight: 300;
    letter-spacing: var(--nav-spacing);
    opacity: 0.9;
    transition: opacity 0.2s;
}

.top-nav-home:hover {
    opacity: 1;
}

/* ===========================
   Bottom Navigation (alle Seiten)
   =========================== */
.bottom-nav {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    flex-shrink: 0;
}


.bottom-nav a {
    font-size: var(--nav-size);
    font-variation-settings: 'wght' 300;
    letter-spacing: var(--nav-spacing);
    opacity: 0.9;
    transition: opacity 0.2s;
}

.bottom-nav a:hover {
    opacity: 1;
}

/* Aktive Seite – Gewicht faded organisch hoch */
@keyframes weightIn {
    from { font-variation-settings: 'wght' 300; }
    to   { font-variation-settings: 'wght' 700; }
}

.bottom-nav a.active,
.top-nav-home.active {
    animation: weightIn 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 1;
}

/* ===========================
   HOME – Layout
   =========================== */
.page--home {
    flex: 1;
    position: relative;
    padding: 0 3rem 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.text-block.home-description {
    font-size: clamp(1.5rem, 2.25vw, 1.8rem);
    font-weight: 300;
    line-height: 1.6;
    text-align: justify;
}

/* ===========================
   UNTERSEITEN – gemeinsames Layout
   =========================== */
.page--sub {
    flex: 1;
    position: relative;
    padding: 0 3rem 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.site-brand {
    position: absolute;
    top: clamp(4.5rem, 10vh, 7rem);
    left: 0;
    right: 0;
    padding: 0 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 3;
}

.site-brand-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.site-brand-link:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 0.35rem;
}

.site-logo {
    position: absolute;
    top: var(--logo-top, clamp(4.25rem, 9vh, 6.75rem));
    left: var(--logo-center-x, 6rem);
    transform: translateX(-50%);
    width: clamp(4rem, 7vw, 7rem);
    aspect-ratio: 1;
    z-index: 3;
    pointer-events: none;
}

.site-logo.animate {
    animation-name: logoFadeUp;
}

.site-logo svg {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes logoFadeUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
    40% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
        transform: translateX(-50%);
    }
}

.site-brand-title {
    font-size: clamp(1.8rem, 4.8vw, 3.2rem);
    font-weight: 200;
    font-variation-settings: 'wght' 200;
    letter-spacing: 0.04em;
    line-height: 1.1;
    white-space: nowrap;
    text-transform: uppercase;
    max-width: 100%;
    opacity: 0.9;
    transition:
        font-variation-settings 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.25s ease;
}

.site-brand-link:hover .site-brand-title,
.site-brand-link:focus-visible .site-brand-title {
    font-variation-settings: 'wght' 320;
    opacity: 1;
}

.site-brand-tags {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.2rem, 2.4vw, 2.8rem);
    font-size: clamp(0.62rem, 0.95vw, 0.82rem);
    font-weight: 300;
    letter-spacing: 0.14em;
    line-height: 1;
    opacity: 0.9;
    text-transform: uppercase;
}

.site-brand-tags span {
    white-space: nowrap;
}

.content-column--home-intro {
    grid-column: 3;
}

/* Scrollbarer Inhaltsbereich – nur wenn nötig */
.page-content {
    flex: 1;
    min-height: 0;
    margin-top: 33vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 4rem), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - 4rem), transparent 100%);
    padding-bottom: 2rem;
}

.page--home .page-content {
    margin-top: 50vh;
}

.page-content::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    align-items: start;
    width: 100%;
}

.content-column {
    width: min(100%, var(--content-block-width));
    min-width: 0;
}

.content-column--left {
    justify-self: start;
}

.content-column--center {
    justify-self: center;
}

.content-column--right {
    justify-self: end;
}

.page-content--split {
    overflow: hidden;
    min-height: 0;
}

.page-content--split .content-grid {
    height: 100%;
    min-height: 0;
    align-items: stretch;
}

.page-content--split .content-column {
    display: flex;
    align-self: stretch;
    height: 100%;
    min-height: 0;
}

.scroll-panel {
    width: 100%;
    flex: 1;
    min-height: 0;
    -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 4rem), transparent 100%);
    mask-image: linear-gradient(to bottom, black calc(100% - 4rem), transparent 100%);
    overflow-y: auto;
    padding-right: 0.4rem;
    padding-bottom: 2rem;
    scrollbar-width: none;
    overscroll-behavior: contain;
}

.scroll-panel::-webkit-scrollbar {
    display: none;
}

/* ===========================
   TEAM – Mitgliederliste
   =========================== */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.team-member {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.team-member img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.team-member-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 0.5rem;
}

.team-member-info .name {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.team-member-info .role {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.85;
}

.team-member-info .email {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.85;
}

/* ===========================
   IMPRINT / Datenschutz – Textblöcke
   =========================== */
.text-block {
    width: 100%;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    text-align: justify;
}

.text-block strong {
    font-weight: 400;
    display: block;
    margin-bottom: 0.4rem;
}

.text-block-title {
    font-size: clamp(1.5rem, 2.25vw, 1.8rem);
    line-height: 1.6;
}

/* ===========================
   CONTACT – E-Mail
   =========================== */
.contact-email {
    font-size: clamp(1.5rem, 2.25vw, 1.8rem);
    font-variation-settings: 'wght' 300;
    line-height: 1.6;
    transition: font-variation-settings 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-email:hover,
.contact-email:active {
    font-variation-settings: 'wght' 900;
}
