/* ==========================================================================
   1. LOKALE SCHRIFTEN (Inter)
   ========================================================================== */

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v18-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v18-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v18-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   2. GRUNDLAYOUT
   ========================================================================== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background: #fff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.text-block {
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* ==========================================================================
   3. HEADER
   ========================================================================== */

.header-main-row {
    display: flex;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
}

.logo-text {
    margin: 0;
    padding: 0;
}

.name-large {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a2a3a;
    line-height: 1.1;
    display: block;
    letter-spacing: -0.03em;
}

.sub-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
    display: block;
}

.header-visuals-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 30px;
    gap: 30px;
}

.visual-box.box-left {
    flex: 2;
    display: flex;
    justify-content: flex-start;
    height: 350px;
}

.visual-box.box-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    height: 280px;
}

.ego-image {
    width: 100%;
    max-width: 550px;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.header-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==========================================================================
   4. NAVIGATION
   ========================================================================== */

.main-nav {
    border-bottom: 1px solid #eee;
    margin-top: 30px;
    background: white;
}

.nav-links-container {
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-links-container::-webkit-scrollbar {
    display: none;
}

.nav-link {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px;
    color: #777;
    border-bottom: 4px solid transparent;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #7AC943;
}

.nav-link.active {
    color: #1a2a3a;
    border-bottom: 4px solid #7AC943;
}

/* ==========================================================================
   5. CONTENT & THEMEN-GRID
   ========================================================================== */

.tab-content {
    display: none;
    padding: 40px 0;
}

.tab-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: #1a2a3a;
    letter-spacing: -0.02em;
}

.cv-list, .cv-list ul {
    list-style: none; /* Entfernt die Standard-Punkte */
    padding: 0;
    margin: 0;
}

.cv-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 18px;
    list-style-type: none; /* Doppelte Absicherung */
}

.cv-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    top: 0;
    color: #7AC943;
    font-weight: bold;
}

.news-item {
    margin-bottom: 25px;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.program-item {
    background: #f1f8f1;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #d4e8d4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.program-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.program-item h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e3d1a;
}

.program-item p {
    margin: 12px 0 0 0;
    font-size: 1.05rem;
    color: #444;
}

/* ==========================================================================
   6. FOOTER & INSTAGRAM (Abstand OBERHALB der Linie)
   ========================================================================== */

.footer-social-center {
    display: flex;
    justify-content: center;
    margin-top: 80px;
    margin-bottom: 15px;
    position: relative;
    z-index: 10;
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #1a2a3a;
    text-decoration: none;
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1.5px solid #eee;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.instagram-btn svg {
    color: #7AC943;
}

.instagram-btn:hover {
    border-color: #7AC943;
    color: #7AC943;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(122, 201, 67, 0.2);
}

.main-footer {
    padding: 40px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.main-footer p {
    margin: 0;
}

.main-footer a {
    color: #7AC943;
    text-decoration: none;
    font-weight: bold;
}

/* Rechtliches Fenster */
.legal-box {
    margin-top: 20px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 20px;
    position: relative;
    border: 1px solid #eee;
    line-height: 1.1; /* Minimaler Zeilenabstand */
    font-size: 0.9rem;
}

.legal-box h2 {
    margin: 10px 0 4px 0;
    font-size: 1.25rem;
}

.legal-box h3, .legal-box h4 {
    margin: 6px 0 2px 0;
    font-size: 1.1rem;
}

.legal-box p {
    margin: 0 0 5px 0;
}

.legal-box ul {
    margin: 4px 0 8px 20px;
}

.legal-box li {
    margin-bottom: 2px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    border: none;
    background: #7AC943;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
}

/* ==========================================================================
   7. RESPONSIVE ANPASSUNGEN (Kleine Bildschirme)
   ========================================================================== */

@media (max-width: 768px) {
  .header-main-row {
          justify-content: center; /* Zentriert den Flex-Inhalt horizontal */
          text-align: center;      /* Zentriert den Text innerhalb der Zeilen */
      }

      /* ÄNDERUNG: Name und Slogan untereinander erzwingen */
      .logo-text {
          display: flex;
          flex-direction: column;
          align-items: center;
      }

      .name-large {
          font-size: 2.2rem;
          display: block; /* Wichtig für die Zentrierung */
      }

      .sub-text {
          font-size: 0.95rem; /* Etwas kleiner für Mobile */
          letter-spacing: 1px;
          margin-top: 10px;
          display: block;
      }

      /* --- Rest bleibt wie gehabt --- */
      .header-visuals-row {
          flex-direction: column;
          gap: 20px;
      }

    .visual-box.box-left {
        width: 100%;
        height: auto;
        justify-content: center !important;
    }

    /* Logo unter dem Bild zentriert und größer */
    .visual-box.box-right {
        width: 100%;
        height: auto;
        justify-content: center !important;
        padding-top: 10px;
    }

    .ego-image {
        max-width: 100%;
        height: auto;
    }

    .header-logo-img {
        max-width: 240px; /* Vergrößert von 180px auf 240px */
        height: auto;
    }

    .name-large {
        font-size: 2.2rem;
    }

    .nav-links-container {
        justify-content: flex-start;
        gap: 10px;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 12px 10px;
    }
}
