/* ==========================================================================
   layout.css – Grundlegendes Seitenlayout
   ==========================================================================
   INHALTSVERZEICHNIS
   --------------------------------------------------------------------------
   1. Body & Grundaufbau
   2. Container
   3. Navigation (Desktop & Mobile)
   4. Hero-Layout
   5. Abschnitt-Layout (section)
   6. Footer-Layout
   7. Responsive Anpassungen
   ========================================================================== */


/* ==========================================================================
   1. BODY & GRUNDAUFBAU
   ========================================================================== */

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    background: var(--color-bg);
    color: var(--color-text);
}


/* ==========================================================================
   2. CONTAINER
   --------------------------------------------------------------------------
   Einheitliche max-width für alle Seitenbreiten, mit Abstand links/rechts
   ========================================================================== */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--spacing-m);
    padding-right: var(--spacing-m);
}


/* ==========================================================================
   3. NAVIGATION (HEADER)
   --------------------------------------------------------------------------
   Struktur: Logo links, Menü rechts, Mobile Toggle bei kleinen Displays
   ========================================================================== */

/* NAVBAR GRUNDLAYOUT */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--farbe-himmel);
    box-shadow: var(--shadow-soft);
}


.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-link {
    font-family: var(--font-family-base);
    font-size: 0.95rem;
    font-weight: 700;         /* wichtig → Originalwirkung */
    color: var(--color-text);
    text-decoration: none;
}


.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* NAVBAR LINKER BEREICH */
.nav-left {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo {
    height: 28px;
    width: auto;
    display: block;
}

.nav-title {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1;     /* verhindert das Abrutschen nach unten */
    display: flex;
    align-items: center;
}
/* NAVBAR: robust gegen box-sizing Änderungen */
.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* linker Block: Logo + Vereinsname */
.navbar .nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0; /* verhindert Umbrüche/Überläufe */
}

.navbar .logo {
  width: 54px;      /* wie du es gesetzt hattest */
  height: auto;
  display: block;
}

.navbar .nav-title {
  display: inline-block;
  white-space: nowrap;   /* verhindert Umbruch */
  line-height: 1;        /* saubere Höhenberechnung */
}

/* Menü rechts */
.navbar .nav-menu {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
}


/* Desktop Menu */
.nav-menu {
    display: flex;
    gap: var(--spacing-l);
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
}

/* Mobile Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--color-text);
    border-radius: 3px;
}


/* ==========================================================================
   4. HERO-LAYOUT
   ========================================================================== */

.hero {
    background: var(--farbe-gelb);
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    position: relative;
    text-align: center;
}

.hero-inner {
    padding-top: var(--spacing-l);
    padding-bottom: var(--spacing-l);
}

.wave-divider {
    width: 100%;
    display: block;
    margin-top: -4px;
}


/* ==========================================================================
   5. ABSCHNITTS-LAYOUT
   ========================================================================== */

.section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.section-title {
    font-family: var(--font-family-title);
    font-size: var(--font-size-section-title);
    margin-bottom: var(--spacing-l);
    position: relative;
}
.section-title-s1 {
    font-family: var(--font-family-title);
    font-size: var(--font-size-section-title);
    margin-bottom: var(--spacing-l);
    position: relative;
}
.section-title-s2 {
    font-family: var(--font-family-title);
    font-size: var(--font-size-section-title);
    margin-bottom: var(--spacing-l);
    position: relative;
}
.section-title-s5 {
    font-family: var(--font-family-title);
    font-size: var(--font-size-section-title);
    margin-bottom: var(--spacing-l);
    position: relative;
}


/* ==========================================================================
   6. FOOTER
   ========================================================================== */
/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background: var(--farbe-himmel);
    padding: var(--spacing-m) 0;
    margin-top: var(--spacing-xl);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-m);
    font-size: 0.95rem;
}

.footer-brand {
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text);
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-nav a {
    text-decoration: none;
    color: var(--color-text);
}

.footer-nav .sep {
    color: var(--color-text-light);
}

.footer-copy {
    margin: 0;
    color: var(--color-text-light);
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}




/* ==========================================================================
   7. RESPONSIVE ANPASSUNGEN
   ========================================================================== */

@media (max-width: 900px) {

    /* Mobile Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        right: 0;
        background: var(--farbe-himmel);
        padding: var(--spacing-m);
        flex-direction: column;
        width: 180px;
        box-shadow: var(--shadow-medium);
        border-radius: var(--radius-m);
    }

    .nav-menu.nav-open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-container {
        position: relative;
    }

    /* Section titles closer together */
    .section {
        padding-top: var(--spacing-l);
        padding-bottom: var(--spacing-l);
    }

    .footer-inner {
        flex-direction: column;
        gap: var(--spacing-m);
    }
}
