/* ===================================
   CSS Variables & Root Styles
   =================================== */
:root {
    --primary-color: #115740;
    --secondary-color: #c10076;
    --accent-color: #f7941d;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --bg-body: #f3f2f1;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --max-width: 1200px;
}

/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-body);
}

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

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary-color);
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    background-color: var(--primary-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo img {
    height: 60px;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-tagline {
    color: white;
    font-weight: 500;
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    gap: 0.5rem;
    line-height: 2;
}

.main-nav a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Hamburger Menu Button (Hidden on Desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
}

.hamburger-bar {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ===================================
   Hero Section
   =================================== */
.hero {
    background: linear-gradient(to bottom, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 3rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text h1 .accent-green {
    color: var(--primary-color);
}

.hero-text h3 {
    background-color: #d7d7d7;
    padding: 8px 12px;
    display: inline-block;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.hero-intranet-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.hero-qr-link {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.hero-qr-link img {
    width: 80px;
    height: 80px;
    display: block;
    border-radius: 4px;
    transition: var(--transition);
}

.hero-university-link {
    background-color: #c10076;
    padding: 7px 11px;
    display: inline-block;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 0.5rem;
}

/* Synchronized hover effects for both QR code and button */
.hero-intranet-container:hover .hero-qr-link {
    transform: scale(1.05);
}

.hero-intranet-container:hover .hero-university-link {
    background-color: #d0008a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.hero-quote {
    margin: 1rem 0 1rem 0;
    padding: 0.5rem 2rem 0.5rem 3rem;
    border-left: 5px solid;
    color: #115740;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.hero-quote::before {
    content: '“';
    font-size: 8rem;
    color: #d7d7d7;
    position: absolute;
    top: -15px;
    left: 25px;
    line-height: 1;
    font-family: Georgia, serif;
    font-weight: bold;
    opacity: 0.8;
}

.hero-quote p {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0;
    position: relative;
    z-index: 1;
}

.hero-image-cartoon img {
    max-width: 250px;
    margin-left: auto;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.1));
}

.hero-team-image {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ===================================
   Call-to-Action Section
   =================================== */
.cta-section {
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.cta-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cta-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-color);
}

.cta-programm:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #d0008a 100%);
    color: white;
}

.cta-programm img {
    width: 280px;
    height: auto;
    margin: 40px auto 0 auto;
    object-fit: contain;
}

.cta-team img {
    width: 250px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.cta-newsletter img {
    width: 250px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.cta-newsletter:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #d0008a 100%);
    color: white;
}

.cta-team:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #d0008a 100%);
    color: white;
}

.cta-icon {
    font-size: 2rem;
}

.cta-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.about-logo img {
    max-width: 300px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.about-text h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #c10076;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.about-text a:hover {
    color: var(--secondary-color);
}

.about-section-2 {
    padding: 4rem 0;
    background-color: var(--bg-white);
}

.about-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-content ul {
    list-style: disc;
    margin-left: 2rem;
}

.about-content li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

/* ===================================
   Slider Section
   =================================== */
.slider-section {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: white;
}

.slider-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--bg-light);
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slider-wrapper {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    padding: 3rem;
    background-color: var(--bg-light);
}

.slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.slide-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.slide-text {
    color: var(--text-dark);
}

.slide-text h4 {
    color: var(--text-dark);
}

.slide-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.slide-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.mehr-link {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    transition: var(--transition);
}

.mehr-link:hover {
    background-color: var(--secondary-color);
    color: white;
}

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    transition: var(--transition);
}

.slide.active .dot:nth-child(1) {
    background-color: var(--secondary-color);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background-color: var(--primary-color);
    color: white;
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

/* ===================================
   Team Section (Homepage)
   =================================== */
.team-section {
    padding: 4rem 0;
    background-color: var(--bg-light);
}

.team-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.member-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-email {
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 0.95rem;
}

.member-email:hover {
    color: var(--secondary-color);
}

.team-callout {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--bg-body);
    color: var(--text-dark);
    padding: 3rem 0 1rem;
}

.footer-image {
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.footer-image img {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-content a {
    color: #c10076;
    text-decoration: none;
    transition: var(--transition);
}

.footer-content a:hover {
    color: #115740;
}

/* ===================================
   Page Title
   =================================== */
.page-title {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===================================
   Program Section
   =================================== */
.program-intro {
    padding: 3rem 0 0.5rem 0;
    background-color: var(--bg-light);
}

.program-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.program-section {
    padding: 1.5rem 0 4rem 0;
}

.program-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.program-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.program-item-reverse {
    grid-template-columns: 2fr 1fr;
}

.program-item-reverse .program-image {
    order: 2;
}

.program-item-reverse .program-content {
    order: 1;
}

.program-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.program-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.program-content p {
    line-height: 1.8;
    color: var(--text-light);
}

/* ===================================
   Team Detail Section (Wer wir sind)
   =================================== */
.team-intro {
    padding: 3rem 0 0.5rem 0;
    background-color: var(--bg-light);
}

.team-intro p {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.team-intro a {
    color: #c10076;
    text-decoration: none;
    transition: var(--transition);
}

.team-intro a:hover {
    color: #115740;
}

.team-detail-section {
    padding: 1.5rem 0 4rem 0;
}

.team-detail-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-detail-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-detail-item-reverse {
    grid-template-columns: 2fr 1fr;
}

.team-detail-item-reverse .team-detail-image {
    order: 2;
}

.team-detail-item-reverse .team-detail-content {
    order: 1;
}

.team-detail-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
}

.team-detail-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.team-detail-content p {
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.team-detail-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.team-detail-content a:hover {
    color: var(--secondary-color);
}

/* ===================================
   Contact CTA
   =================================== */
.contact-cta {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

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

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Show hamburger button on mobile */
    .hamburger {
        display: flex;
    }

    /* Hide navigation by default on mobile */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        padding-top: 80px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        z-index: 999;
    }

    /* Show navigation when active */
    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        text-align: left;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav a {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 0;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Overlay backdrop when menu is open */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image-cartoon img {
        max-width: 200px;
        margin: 0 auto;
    }

    .cta-buttons {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .slide-content {
        grid-template-columns: 1fr;
    }

    .program-item,
    .program-item-reverse {
        grid-template-columns: 1fr;
    }

    .program-item-reverse .program-image,
    .program-item-reverse .program-content {
        order: unset;
    }

    .team-detail-item,
    .team-detail-item-reverse {
        grid-template-columns: 1fr;
    }

    .team-detail-item-reverse .team-detail-image,
    .team-detail-item-reverse .team-detail-content {
        order: unset;
    }

    .page-title h1 {
        font-size: 2rem;
    }

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

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .page-title h1 {
        font-size: 1.5rem;
    }

    .logo-tagline {
        white-space: nowrap;
    }
}
