/* ====== SHARED WEBSITE STYLES ====== */

/* ====== ROOT VARIABLES ====== */
:root {
    --color-primary: #3D7A9E;
    --color-primary-dark: #2C5F7E;
    --color-primary-light: #5A9BBD;
    --color-secondary: #5B9E8F;
    --color-secondary-dark: #4A8577;
    --color-secondary-light: #7BB8AA;
    --color-accent: #D4914E;
    --color-accent-hover: #C07D3A;
    --color-research: #7B6BA5;
    --color-research-dark: #635590;
    --color-research-light: #9889BA;
    --color-bg: #FAF8F5;
    --color-bg-alt: #F0EEEB;
    --color-bg-white: #FFFFFF;
    --color-text: #2D3436;
    --color-text-light: #5A6368;
    --color-text-lighter: #6B7378;
    --color-border: #E0DBD5;
    --font-heading: 'DM Sans', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --max-width: 1140px;
    --radius: 10px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--color-primary-dark);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-text);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1rem;
    color: white;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center {
    text-align: center;
}

/* ====== ACCESSIBILITY ====== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    z-index: 1000;
}

.skip-link:focus {
    top: 1rem;
    color: white;
}

/* ====== SCROLL ANIMATION ====== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ====== NAVIGATION ====== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.7rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.navbar-logo img {
    height: 42px;
    width: auto;
}

.logo-divider {
    width: 1px;
    height: 32px;
    background: var(--color-border);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 0.15rem;
}

.navbar-menu a {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-light);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 60%;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--color-primary);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-text);
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--transition);
}

/* ====== PAGE HERO ====== */
.page-hero {
    position: relative;
    padding: 5rem 1.5rem 4rem;
    background: linear-gradient(155deg, #1a2a3a 0%, #2a5a7a 40%, var(--color-primary) 100%);
    color: white;
    overflow: hidden;
}

.page-hero--secondary {
    background: linear-gradient(155deg, #1a2e2a 0%, #3a7568 40%, var(--color-secondary) 100%);
}

.page-hero--research {
    background: linear-gradient(155deg, #1e1a2e 0%, #4a3d6e 40%, var(--color-research) 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 145, 78, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero--secondary::before {
    background: radial-gradient(circle, rgba(91, 158, 143, 0.15) 0%, transparent 70%);
}

.page-hero--research::before {
    background: radial-gradient(circle, rgba(123, 107, 165, 0.15) 0%, transparent 70%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.page-hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: pulse 2s ease-in-out infinite;
}

.page-hero h1 {
    color: white;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out 0.25s both;
}

.page-hero-subtitle {
    font-size: 1.12rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ====== KEYFRAMES ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-accent {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(212, 145, 78, 0.3);
}

.btn-accent:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 145, 78, 0.4);
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(61, 122, 158, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

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

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-3px);
}

/* ====== CONTACT BAR ====== */
.contact-bar {
    background: var(--color-text);
    color: white;
    padding: 0.75rem 0;
}

.contact-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.contact-bar-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
}

.contact-bar-item svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-bar a {
    color: white;
    font-weight: 600;
}

.contact-bar a:hover {
    color: var(--color-accent);
}

.contact-bar-booking {
    background: rgba(212, 145, 78, 0.2);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(212, 145, 78, 0.4);
    transition: all 0.3s ease;
}

.contact-bar-booking:hover {
    background: rgba(212, 145, 78, 0.35);
}

.contact-bar-booking svg {
    stroke: var(--color-accent) !important;
}

.contact-bar-booking a {
    color: var(--color-accent) !important;
}

.contact-bar-booking a:hover {
    color: white !important;
}

/* ====== SECTION INTRO ====== */
.section-intro {
    font-size: 1.08rem;
    color: var(--color-text-light);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

/* ====== CTA SECTION ====== */
.cta {
    padding: 6rem 1.5rem;
    text-align: center;
    background: linear-gradient(155deg, #1a2a3a 0%, var(--color-primary-dark) 40%, var(--color-primary) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 145, 78, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta h2 {
    color: white;
    margin-bottom: 0.8rem;
    position: relative;
}

.cta p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    font-size: 1.08rem;
    line-height: 1.8;
    position: relative;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.cta .btn-white {
    color: var(--color-primary);
}

.cta .btn-white:hover {
    color: var(--color-primary-dark);
}

/* ====== FOOTER ====== */
.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.6);
    padding: 3.5rem 1.5rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.footer p {
    font-size: 0.88rem;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 2.5rem auto 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
    text-align: center;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 960px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 17px;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 0.8rem;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-menu.open {
        display: flex;
    }

    .navbar-menu a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .navbar-menu a::after {
        display: none;
    }

    .navbar-toggle {
        display: block;
    }

    .contact-bar .container {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ====== REDUCED MOTION ====== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

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

    .page-hero h1,
    .page-hero-subtitle,
    .page-hero-badge {
        animation: none;
    }
}

/* ====== SHARED PAGE COMPONENTS ====== */

/* Intro Section */
.intro {
    padding: 6rem 1.5rem;
    background: var(--color-bg-white);
}

.intro-inner {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-light);
}

.intro-text p {
    margin-bottom: 1.2rem;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* Image Accent (dekorative Bildtrenner) */
.image-accent {
    padding: 0;
    overflow: hidden;
    max-height: 300px;
    position: relative;
}

.image-accent img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.image-accent-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(250,248,245,0.3) 0%, rgba(250,248,245,0) 30%, rgba(250,248,245,0) 70%, rgba(240,238,235,0.3) 100%);
}

/* Topics/Cards Grid */
.topics {
    padding: 6rem 1.5rem;
    background: var(--color-bg-alt);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.topic-card {
    padding: 2rem 1.8rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg-white);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--color-primary);
    transition: height 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.topic-card:hover::before {
    height: 5px;
}

.topic-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(61,122,158,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.topic-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topic-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    color: var(--color-primary);
}

.topic-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin: 0;
}

/* Institution Role Label */
.institution-role {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-lighter);
    margin-bottom: 0.8rem;
    display: block;
}

/* Info Box */
.info-box {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: rgba(61,122,158,0.06);
    border: 1px solid rgba(61,122,158,0.15);
}

.info-box h3 {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
}

.info-box p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Shared Responsive */
@media (max-width: 960px) {
    .topics-grid {
        grid-template-columns: 1fr;
    }
}

/* ====== WCAG AA FOCUS STATES ====== */
a:focus-visible {
    outline: 2.5px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 3px;
}

.navbar-menu a:focus-visible {
    outline: 2.5px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: var(--radius);
    color: var(--color-primary);
}

.navbar-menu a:focus-visible::after {
    width: 60%;
}

button:focus-visible,
.btn:focus-visible,
.form-submit-btn:focus-visible {
    outline: 2.5px solid var(--color-primary);
    outline-offset: 3px;
}

.btn-accent:focus-visible,
.booking-btn:focus-visible {
    outline-color: var(--color-accent);
}
