/* -------------------------------------------------
   0. Reset / Grundlegende Typografie
   ------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html { font-size: 100%; }               /* 1 rem = 16 px */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #fafafa;
}

/* -------------------------------------------------
   1. Container (zentrierter Inhalt)
   ------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* -------------------------------------------------
   2. Header + Navigation
   ------------------------------------------------- */
.site-header {
    background: #003366;
    color: #fff;
    padding: 1rem 0;
}
.site-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
}
.site-tagline {
    margin: 0.2rem 0 0.8rem;
    font-size: 1rem;
    opacity: 0.9;
}
.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.main-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: background .2s;
}
.main-nav a:hover,
.main-nav a.active {
    background: #ff6600;
}

/* -------------------------------------------------
   3. Page‑Title
   ------------------------------------------------- */
.page-title {
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
    text-align: center;
}

/* -------------------------------------------------
   4. Carousel
   ------------------------------------------------- */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 70vh;               /* verhindert zu hohe Bilder auf sehr großen Bildschirmen */
}
.carousel {
    display: flex;
    transition: transform .4s ease-in-out;
}
.carousel img {
    min-width: 100%;
    object-fit: cover;
    display: none;                 /* nur das aktive Bild wird angezeigt */
}
.carousel img.active {
    display: block;
}

/* Pfeile */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}
.carousel-btn.prev { left: 0.8rem; }
.carousel-btn.next { right: 0.8rem; }
.carousel-btn:hover { background: rgba(0,0,0,0.7); }

/* -------------------------------------------------
   5. Page‑Content
   ------------------------------------------------- */
.page-content {
    margin: 2rem 0;
    font-size: 1.1rem;
}

/* -------------------------------------------------
   6. Footer
   ------------------------------------------------- */
.site-footer {
    background: #003366;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: .9rem;
}

/* -------------------------------------------------
   7. Responsive Breakpoints
   ------------------------------------------------- */
@media (max-width: 768px) {
    .site-title { font-size: 1.6rem; }
    .site-tagline { font-size: .9rem; }
    .main-nav ul { justify-content: center; }
    .carousel-wrapper { max-height: 50vh; }
    .page-title { font-size: 1.5rem; }
    .page-content { font-size: 1rem; }
}
@media (max-width: 480px) {
    .carousel-btn { font-size: 1.5rem; width: 2rem; height: 2rem; }
}
