/* CSS VARIABLE DEFINITIONS USING YOUR COLORS */
:root {
    --cyan: #0dc0de;
    --peach: #FF9E78;
    --grey: #5e6d7c;      /* Grey Dark */
    --greyblue: #7AA9AB;
    --blue: #0d728c;
    --darkblue: #0e243b;
    --white: #ffffff;
    --light-bg: #f4f8f9;   /* Grey Light */
    --medium-bg: #e2ebed;  /* Grey Medium */
}

/* GLOBAL STYLES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.page-wrapper {
    max-width: 1024px;       /* Hier stellst du die maximale Wunschbreite ein */
    margin: 0 auto;          /* Zentriert die gesamte Box auf dem Monitor */
    background-color: var(--light-bg); /* Sorgt dafür, dass der Hintergrund mitwandert */
    box-shadow: 0 0 20px rgba(0,0,0,0.05); /* Optional: Ein feiner Schatten links/rechts */
}

body {
    background-color: var(--light-bg);
    color: #333;
    line-height: 1.5;
    /* NEU: Begrenzt die Breite auf großen Bildschirmen */
    max-width: 800x; 
    /* NEU: Zentriert die gesamte Webseite auf dem Monitor */
    margin: 0 auto;  
}

/* NAVIGATION BAR */
header {
    background-color: var(--grey);
    padding: 0.1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: bold;
    text-decoration: none;
}

.logo span {
    color: var(--peach);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--peach);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--darkblue) 0%, #064d60 100%);
    color: var(--white);
    width: 98%;
    padding: 4rem 5%; /* Vertikalen Innenabstand gekürzt für weniger Höhe */
    margin-top: 10px; /* Abstand zur oberen Menüleiste hinzugefügt */
    border-radius: 15px; /* Hier werden die Ecken abgerundet */
    box-shadow: 0 10px 30px rgba(14, 36, 59, 0.15); 
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero h1 span {
    color: var(--cyan);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    color: #e2f1f4;
}

/* HERO IMAGE STYLE (UM 50% VERKLEINERT) */
.hero-img-container {
    margin: 2rem auto;
    max-width: 225px; /* Von 450px auf 225px halbiert, damit das Bild kompakt bleibt */
    width: 100%;
}

.hero-img-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* BUTTONS */
.btn {
    display: inline-block;
    background-color: var(--peach);
    color: var(--white);
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.2s, background-color 0.3s;
    box-shadow: 0 4px 15px rgba(255, 158, 120, 0.4);
}

.btn:hover {
    background-color: #ff8b5c;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--cyan);
    color: var(--cyan);
    box-shadow: none;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--cyan);
    color: var(--darkblue);
    transform: translateY(-2px);
}

/* MAIN CONTENT CONTAINERS */
section {
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;   
    color: var(--darkblue);
    margin-bottom: 2.0rem;  /* Abstand Peach-Linie zu Cyan-Linie */
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 8px;
    background-color: var(--peach);
    margin: 0.5rem auto 0 auto;
    border-radius: 2px;
}

/* CONTENT OF CARDS (DEFAULT) */
.default-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.default-card {
    background: var(--white);
    padding: 2rem 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--cyan);
}

.default-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.default-card h3 {
    color: var(--darkblue);
    margin-bottom: 1rem;
}

/* HERO IMAGE STYLE (UM 50% VERKLEINERT) */
.default-img-container {
    margin: 2rem auto;
    max-width: 800px; 
    width: 100%;
}

.default-img-container-small {
    margin: 2rem auto;
    max-width: 250px;
    width: 100%;
}

.default-img-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.default-img-container-small img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* FOOTER */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0; /* Minimale Höhe durch geringen Abstand */
    width: 100%;
    color: var(--grey); /* Farbe Text im Footer */
    background-color: var(--medium-bg); /* var(--grey); */
    border-top: 1px solid #ffffff; /* Der weiße Trennstrich vor dem Footer */
}

footer nav a {
    text-decoration: none;
    color: var(--grey); /* Farbe Links im Footer */
    margin: 0 10px; /* Abstand zwischen den Links */
}

footer p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--grey);
}

footer a {
    color: var(--cyan);
    text-decoration: none;
}

/* MOBILE MENU RESPONSIVENESS */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: inline-block;
    }
}
