/* ===== BASIS-STYLES ===== */
body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    background: #eafbe6;
    color: #222;
    line-height: 1.6;
}

/* ===== LAYOUT-KOMPONENTEN ===== */
.content-box {
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 2rem;
}

header, footer {
    background-color: #2c3e50;
    color: #BB9871;
    text-align: center;
    padding: 20px;
    position: relative;
}

header h1 {
    color: #BB9871;
    margin: 0 0 18px 0;
}

/* Header-Padding für mobile Ansicht */
@media (max-width: 600px) {
  header {
    padding-top: 24px;
    padding-bottom: 40px;
    min-height: 60px;
  }
}

/* ===== BILDBEREICH ===== */
.image-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto;
}

.image-container {
    aspect-ratio: 4 / 3;
    max-width: 340px;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #f7f7f7;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== TYPOGRAPHIE & LINKS ===== */
h2 {
    color: #2c3e50;
    margin-top: 0;
}

a {
    color: #3b5998;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

a:hover {
    color: #BB9871;
    text-decoration: underline;
}

/* ===== KOMPONENTEN ===== */
.cta-button {
    display: inline-block;
    background-color: #3b5998;
    color: white;
    padding: 0.8em 1.5em;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: #2d4373;
    transform: translateY(-2px);
}

.cta-hint-inline {
  display: block;
  font-size: 0.75em;
  font-weight: normal;
  margin-top: 0.3em;
  opacity: 0.85;
}

.up-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    background: #3b5998;
    color: #fff;
    border-radius: 50%;
    border: 2px solid #BB9871;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.2s;
    padding-top: 3px;
}

.up-fab:hover {
    background: #29487d;
}

.cta-fab {
    position: fixed;
    right: 16px;
    bottom: 80px; /* über dem up-fab */
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.1rem;
    z-index: 1001;
    background: #3b5998;
    color: #fff;
    border: none;
    transition: background 0.2s, transform 0.2s;
}

.cta-fab:hover {
    background: #29487d;
    transform: translateY(-2px) scale(1.05);
}

hr {
    border: none;
    height: 1px;
    background: #ddd;
    margin: 2rem auto;
    max-width: 80%;
}

/* ===== NAVIGATION ===== */
.main-nav {
    display: flex;
    justify-content: center;
    background: #f5f7fa;
    padding: 12px 0;
    border-radius: 12px;
    margin: 0 auto 24px auto;
    max-width: 70vw;
}

.main-nav ul {
    display: flex;
    gap: 1.5em;
    list-style: none;
    padding: 0;
    margin: 1em 0;
    justify-content: center;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #3b5998;
    font-weight: 600;
    padding: 0.5em 1em;
    border-radius: 6px;
    transition: background 0.2s;
}

.main-nav a:hover {
    background: #f0f4fa;
}

/* === NAV-TOGGLE (Runder Button für Hamburger-Menü) === */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 34px;
    right: 16px; /* Abstand auf 16px geändert */
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border: 2px solid #BB9871;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1101;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background-color 0.3s, transform 0.2s;
}

.nav-toggle:hover {
    background-color: #f0f4fa;
    transform: scale(1.05);
}

/* === Hamburger-Linien im Zentrum === */
.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    background-color: #3b5998;
    height: 3px;
    width: 20px;
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.hamburger {
    position: relative;
}

/* Obere Linie */
.hamburger::before {
    transform: translateY(-8px);
}

/* Untere Linie */
.hamburger::after {
    transform: translateY(8px);
}

/* === Animation für aktiven Zustand (X-Icon) === */
.nav-toggle.active .hamburger {
    background-color: transparent;
}
.nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
}
.nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
}

/* Responsive Anpassungen für Hamburger */
@media (max-width: 700px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100vw;
        z-index: 1100;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    }
    .nav-toggle {
        display: flex;
        position: fixed;
        top: 12px;
        right: 16px;
        z-index: 1200;
    }
    .main-nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 62px; /* Höhe der fixierten .main-nav + Abstand */
        right: 8px;
        background: #fff;
        box-shadow: 0 2px 12px rgba(0,0,0,0.07);
        border-radius: 12px;
        width: 200px;
        z-index: 1101;
        padding: 1em 0.5em;
        margin: 0;
    }
    .main-nav ul.open {
        display: flex;
    }
    .main-nav ul li {
        margin: 0.5em 0;
        text-align: right;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .content-box {
        padding: 1rem;
        margin: 1rem 0.5rem;
        border-radius: 10px;
    }
    
    .image-section {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .up-fab {
        display: flex;
    }

    .cta-fab {
        right: 8px;
        left: auto;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

  .nav-toggle {
    position: fixed;
    top: 34px;
    right: 16px;
    z-index: 1200;
  }
}

@media (max-width: 600px) {
    body {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .content-box {
        padding: 0.7rem;
        margin: 0.5rem 0.2rem;
    }
    
    header h1 {
        font-size: 1.3rem;
        margin-bottom: 0.5em;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5em;
        margin: 0.5em 0;
    }
    
    .main-nav a {
        display: block;
        text-align: center;
        padding: 1em;
        font-size: 1.1em;
    }
}

/* Globales Box-Sizing */
html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}