/* ============================================================
   MUN.Plattform – Designsystem
   Setzt auf Bootstrap 5 auf. Nur projektspezifische Komponenten
   und Bootstrap-Overrides sind hier definiert.
   Bootstrap-Standards (Grid, Buttons-Basis, Forms, Reset)
   werden NICHT dupliziert.
   ============================================================ */


/* ============================================================
   1. DESIGN-TOKENS & BOOTSTRAP-OVERRIDES
   ============================================================ */
:root {
    /* Projekteigene Tokens */
    --primary:        #6366f1;
    --primary-light:  #818cf8;
    --primary-dark:   #4f46e5;
    --accent:         #f472b6;
    --accent-light:   #f9a8d4;
    --teal:           #2dd4bf;
    --orange:         #fb923c;
    --text:           #1f2937;
    --text-light:     #6b7280;
    --bg:             #ffffff;
    --bg-soft:        #f9fafb;
    --border:         #e5e7eb;
    --radius:         16px;
    --radius-lg:      24px;
    --shadow:         0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg:      0 10px 40px rgba(99,102,241,0.15);
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);

    /* Bootstrap-Farben überschreiben */
    --bs-primary:     #6366f1;
    --bs-primary-rgb: 99, 102, 241;
    --bs-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Container: max-width einheitlich auf 1200px (überschreibt Bootstrap-Responsive-Breakpoints) */
.container {
    max-width: 1200px;
    padding-left: 24px;
    padding-right: 24px;
}


/* ============================================================
   2. BASIS
   ============================================================ */
html { scroll-behavior: smooth; }

body {
    font-family: var(--bs-font-sans-serif);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul  { list-style: none; padding: 0; margin: 0; }
a   { color: var(--primary); text-decoration: none; }


/* ============================================================
   3. BUTTONS
   Bootstrap übernimmt Flex, Cursor, Disabled-State.
   .btn-primary → weiß (auf Farbhintergründen: Hero, CTA)
   .btn-outline → Ghost-Button (auf Farbhintergründen)
   ============================================================ */
.btn {
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    transition: transform 0.25s, box-shadow 0.25s;
}

/* Weißer Button auf dunklem/Farbhintergrund */
.btn-primary {
    --bs-btn-color:               var(--primary);
    --bs-btn-bg:                  white;
    --bs-btn-border-color:        white;
    --bs-btn-hover-color:         var(--primary-dark);
    --bs-btn-hover-bg:            white;
    --bs-btn-hover-border-color:  white;
    --bs-btn-active-color:        var(--primary-dark);
    --bs-btn-active-bg:           #f0f0f0;
    --bs-btn-active-border-color: white;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Transparenter Ghost-Button (auf Farbhintergrund) */
.btn-outline {
    background:   transparent;
    color:        white;
    border:       2px solid rgba(255,255,255,0.5);
    border-radius: 999px;
    font-weight:  600;
    padding:      14px 28px;
    font-size:    1rem;
    display:      inline-flex;
    align-items:  center;
    gap:          8px;
    cursor:       pointer;
    transition:   background 0.2s, border-color 0.2s;
}
.btn-outline:hover {
    background:    rgba(255,255,255,0.15);
    border-color:  white;
    color:         white;
}


/* ============================================================
   4. NAVBAR
   ============================================================ */
.navbar {
    position:        sticky;
    top:             0;
    z-index:         1000;
    background:      rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom:   1px solid var(--border);
    padding:         16px 0;
}

.navbar .container {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
}

.logo {
    font-size:   1.5rem;
    font-weight: 800;
    display:     flex;
    align-items: center;
    gap:         8px;
}

.logo-icon {
    width:           40px;
    height:          40px;
    background:      linear-gradient(135deg, var(--primary), var(--accent));
    border-radius:   12px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    color:           white;
    font-size:       1.2rem;
}

.logo span { color: var(--primary); }

.nav-links {
    display:     flex;
    gap:         32px;
    align-items: center;
}

.nav-links a {
    color:      var(--text);
    font-weight: 500;
    transition:  color 0.2s;
    position:    relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary); }

.nav-links a.active::after {
    content:      '';
    position:     absolute;
    bottom:       -6px;
    left:         0;
    right:        0;
    height:       3px;
    background:   var(--primary);
    border-radius: 2px;
}

.nav-cta {
    background:  var(--primary);
    color:       white !important;
    padding:     10px 20px;
    border-radius: 999px;
    font-weight: 600;
    transition:  transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform:  translateY(-2px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

/* Sprachwechsler */
.nav-lang {
    display:     flex;
    align-items: center;
    gap:         4px;
}

.nav-lang__btn {
    background:    transparent;
    border:        none;
    cursor:        pointer;
    color:         var(--text-light);
    font-size:     0.85rem;
    font-weight:   600;
    padding:       4px 6px;
    border-radius: 6px;
    transition:    color 0.2s, background 0.2s;
    line-height:   1;
}

.nav-lang__btn:hover,
.nav-lang__btn--active {
    color:      var(--primary);
    background: rgba(99,102,241,0.08);
}

.nav-lang__sep {
    color:     var(--text-light);
    font-size: 0.8rem;
    opacity:   0.6;
}

/* Hamburger-Button */
.nav-toggle {
    display:         none;
    flex-direction:  column;
    justify-content: center;
    gap:             5px;
    width:           44px;
    height:          44px;
    padding:         0;
    background:      transparent;
    border:          none;
    cursor:          pointer;
}

.nav-toggle__bar {
    display:       block;
    width:         26px;
    height:        3px;
    margin:        0 auto;
    background:    var(--text);
    border-radius: 2px;
    transition:    transform 0.3s, opacity 0.3s;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ============================================================
   5. HERO
   ============================================================ */
.hero {
    position:   relative;
    min-height: 90vh;
    display:    flex;
    align-items: center;
    overflow:   hidden;
}

.hero-bg {
    position: absolute;
    inset:    0;
    z-index:  -1;
}

.hero-bg img {
    width:       100%;
    height:      100%;
    object-fit:  cover;
}

.hero-bg::after {
    content:  '';
    position: absolute;
    inset:    0;
    background: linear-gradient(
        135deg,
        rgba(99,102,241,0.85) 0%,
        rgba(244,114,182,0.7) 50%,
        rgba(251,146,60,0.6) 100%
    );
}

.hero-content {
    position:   relative;
    color:      white;
    max-width:  700px;
    padding:    80px 0;
}

.hero-badge {
    display:         inline-flex;
    align-items:     center;
    gap:             8px;
    background:      rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    padding:         8px 16px;
    border-radius:   999px;
    font-size:       0.9rem;
    font-weight:     600;
    margin-bottom:   24px;
    border:          1px solid rgba(255,255,255,0.3);
}

.hero h1 {
    font-size:     clamp(2.5rem, 6vw, 4rem);
    font-weight:   800;
    line-height:   1.1;
    margin-bottom: 24px;
}

.hero h1 .highlight {
    background:              linear-gradient(90deg, #fef08a, #fde047);
    -webkit-background-clip: text;
    background-clip:         text;
    color:                   transparent;
}

.hero p {
    font-size:     1.25rem;
    opacity:       0.95;
    margin-bottom: 32px;
    line-height:   1.7;
}

.hero-actions {
    display:   flex;
    gap:       16px;
    flex-wrap: wrap;
}

/* Floating shapes */
.hero-shapes {
    position:       absolute;
    inset:          0;
    pointer-events: none;
    overflow:       hidden;
}

.shape {
    position:      absolute;
    border-radius: 50%;
    opacity:       0.15;
    animation:     float 6s ease-in-out infinite;
}

.shape-1 { width: 300px; height: 300px; background: white;           top: 10%;  right: 10%; animation-delay: 0s; }
.shape-2 { width: 200px; height: 200px; background: var(--teal);    bottom: 20%; right: 25%; animation-delay: 2s; }
.shape-3 { width: 150px; height: 150px; background: var(--orange);  top: 60%;  right: 5%;  animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-20px) rotate(5deg); }
}


/* ============================================================
   6. SEKTIONEN (gemeinsame Strukturklassen)
   ============================================================ */
.section { padding: 100px 0; }

.section-header {
    text-align:    center;
    max-width:     700px;
    margin:        0 auto 60px;
}

.section-label {
    display:        inline-block;
    background:     linear-gradient(135deg, var(--primary-light), var(--accent));
    color:          white;
    padding:        6px 16px;
    border-radius:  999px;
    font-size:      0.85rem;
    font-weight:    700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom:  16px;
}

.section-title {
    font-size:   clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color:       var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.15rem;
    color:     var(--text-light);
}


/* ============================================================
   7. INTRO-CARDS (Was ist MUN?)
   Bootstrap-Grid übernimmt das Layout (row/col in Template).
   ============================================================ */
.intro-card {
    background:    white;
    border-radius: var(--radius-lg);
    padding:       32px;
    border:        1px solid var(--border);
    transition:    all 0.3s;
    position:      relative;
    overflow:      hidden;
    height:        100%;
}

.intro-card::before {
    content:    '';
    position:   absolute;
    top:        0;
    left:       0;
    right:      0;
    height:     4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity:    0;
    transition: opacity 0.3s;
}

.intro-card:hover {
    transform:    translateY(-8px);
    box-shadow:   var(--shadow-lg);
    border-color: transparent;
}

.intro-card:hover::before { opacity: 1; }

.intro-card-icon {
    width:         60px;
    height:        60px;
    border-radius: 16px;
    display:       flex;
    align-items:   center;
    justify-content: center;
    font-size:     1.5rem;
    margin-bottom: 20px;
}

/* Farbvarianten per Modifier-Klasse */
.intro-card-icon--purple { background: #ede9fe; color: #7c3aed; }
.intro-card-icon--pink   { background: #fce7f3; color: #db2777; }
.intro-card-icon--teal   { background: #ccfbf1; color: #0d9488; }
.intro-card-icon--orange { background: #ffedd5; color: #ea580c; }

.intro-card h3 {
    font-size:     1.25rem;
    font-weight:   700;
    margin-bottom: 12px;
}

.intro-card p {
    color:       var(--text-light);
    line-height: 1.7;
    margin:      0;
}


/* ============================================================
   8. FOTO-SEKTION
   ============================================================ */
.photo-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.photo-grid {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   24px;
}

.photo-item {
    border-radius: var(--radius-lg);
    overflow:      hidden;
    position:      relative;
    aspect-ratio:  4/3;
}

.photo-item img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.photo-item:hover img { transform: scale(1.05); }

.photo-item.large {
    grid-column: span 2;
    grid-row:    span 2;
    aspect-ratio: auto;
}


/* ============================================================
   9. PROZESS / ABLAUF
   Bootstrap-Grid übernimmt den 2-Spalter (row/col in Template).
   ============================================================ */
.process-section { background: var(--bg-soft); }

.process-image {
    border-radius: var(--radius-lg);
    overflow:      hidden;
    box-shadow:    var(--shadow-lg);
}

.process-image img {
    width:      100%;
    height:     100%;
    object-fit: cover;
}

.process-steps {
    display:        flex;
    flex-direction: column;
    gap:            24px;
    margin-top:     32px;
}

.process-step {
    display:    flex;
    gap:        20px;
    padding:    24px;
    background: white;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.process-step:hover {
    box-shadow: var(--shadow);
    transform:  translateX(8px);
}

.step-number {
    width:           48px;
    height:          48px;
    border-radius:   50%;
    background:      linear-gradient(135deg, var(--primary), var(--accent));
    color:           white;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-weight:     800;
    font-size:       1.25rem;
    flex-shrink:     0;
}

.step-content h4 {
    font-size:     1.1rem;
    font-weight:   700;
    margin-bottom: 6px;
}

.step-content p {
    color:     var(--text-light);
    font-size: 0.95rem;
    margin:    0;
}


/* ============================================================
   10. ZIELGRUPPEN-CARDS
   Bootstrap-Grid übernimmt das Layout (row/col in Template).
   ============================================================ */
.audience-card {
    text-align:    center;
    padding:       40px 24px;
    background:    white;
    border-radius: var(--radius-lg);
    border:        2px solid transparent;
    transition:    all 0.3s;
    height:        100%;
}

.audience-card:hover {
    border-color: var(--primary);
    transform:    translateY(-8px);
    box-shadow:   var(--shadow-lg);
}

.audience-card-icon {
    width:           80px;
    height:          80px;
    margin:          0 auto 20px;
    border-radius:   50%;
    display:         flex;
    align-items:     center;
    justify-content: center;
    font-size:       2rem;
    background:      linear-gradient(135deg, var(--bg-soft), var(--bg));
}

/* Farbvarianten per Modifier-Klasse */
.audience-card-icon--primary { color: var(--primary); }
.audience-card-icon--accent  { color: var(--accent); }
.audience-card-icon--teal    { color: var(--teal); }
.audience-card-icon--orange  { color: var(--orange); }

.audience-card h4 {
    font-size:     1.15rem;
    font-weight:   700;
    margin-bottom: 8px;
}

.audience-card p {
    color:     var(--text-light);
    font-size: 0.95rem;
    margin:    0;
}


/* ============================================================
   11. CTA
   ============================================================ */
.cta-section { padding: 100px 0; }

.cta-box {
    background:    linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: var(--radius-lg);
    padding:       80px 60px;
    text-align:    center;
    position:      relative;
    overflow:      hidden;
}

.cta-box::before {
    content:       '';
    position:      absolute;
    top:           -50%;
    right:         -10%;
    width:         400px;
    height:        400px;
    background:    rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-box::after {
    content:       '';
    position:      absolute;
    bottom:        -30%;
    left:          -5%;
    width:         300px;
    height:        300px;
    background:    rgba(255,255,255,0.08);
    border-radius: 50%;
}

.cta-box > * { position: relative; z-index: 1; }

.cta-box h2 {
    font-size:     clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight:   800;
    color:         white;
    margin-bottom: 16px;
}

.cta-box p {
    color:         rgba(255,255,255,0.9);
    font-size:     1.15rem;
    margin-bottom: 32px;
}

.cta-box .btn-primary {
    padding:   16px 32px;
    font-size: 1.1rem;
}


/* ============================================================
   12. FOOTER
   Bootstrap-Grid übernimmt das Spalten-Layout (row/col in Template).
   ============================================================ */
.footer {
    background: var(--text);
    color:      white;
    padding:    60px 0 30px;
}

.footer-brand h3 {
    font-size:     1.5rem;
    font-weight:   800;
    margin-bottom: 16px;
}

.footer-brand p {
    color:       rgba(255,255,255,0.7);
    line-height: 1.7;
}

.footer h4 {
    font-size:     1rem;
    font-weight:   700;
    margin-bottom: 16px;
}

.footer ul li { margin-bottom: 10px; }

.footer a {
    color:      rgba(255,255,255,0.7);
    transition: color 0.2s;
}

.footer a:hover { color: white; }

.footer-bottom {
    border-top:  1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align:  center;
    color:       rgba(255,255,255,0.5);
    font-size:   0.9rem;
}


/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-item.large { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }

    /* Hamburger einblenden */
    .nav-toggle { display: flex; }

    /* Mobile-Navigation ausklappbar */
    .nav-links {
        position:        absolute;
        top:             100%;
        left:            0;
        right:           0;
        flex-direction:  column;
        align-items:     stretch;
        gap:             0;
        background:      rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        border-bottom:   1px solid var(--border);
        box-shadow:      var(--shadow);
        padding:         8px 0;
        max-height:      0;
        overflow:        hidden;
        opacity:         0;
        visibility:      hidden;
        transition:      max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.is-open {
        max-height: 400px;
        opacity:    1;
        visibility: visible;
    }

    .nav-links a { padding: 14px 24px; }
    .nav-links a.active::after { display: none; }
    .nav-cta { margin: 8px 24px; text-align: center; }

    .hero         { min-height: 80vh; }
    .hero-content { padding: 40px 0; }
    .cta-box      { padding: 40px 24px; }

    .photo-grid { grid-template-columns: 1fr; }
    .photo-item.large { grid-column: span 1; }
}
