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

/* Verhindert Scrollen auf Standard-Bildschirmen */
html, body {
    height: 100%;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    color: #1d2d44;
    background: #f4f7f6;
}

:root {
    --dark-blue: #0b2545;
    --mid-blue: #134074;
    --light-blue: #00b4d8;
    --grey: #6c757d;
    --white: #ffffff;
}

/* Weißer Header */
header {
    background: var(--white);
    color: var(--dark-blue);
    padding: 1rem 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    vertical-align: middle;
    margin-right: 12px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--dark-blue);
}

.logo-text span {
    color: var(--light-blue);
}

/* Navigation-Menü mit festem, gleichmäßigem Abstand */
nav {
    display: flex;
    gap: 12px; /* Identischer Zwischenraum zwischen allen Buttons */
    align-items: center; 
}

/* Haupt-Button-Styling: Zwingt den Browser auf ALLEN Seiten zur gleichen Größe */
.btn {
    display: inline-block !important; /* Wichtig für Links (<a>), damit sie die Breite annehmen */
    background: var(--light-blue);
    color: var(--white);
    padding: 10px 0;
    width: 130px !important; /* Jeder Button ist exakt gleich breit */
    text-align: center; /* Zentriert den Text im Button */
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.95rem;
    border: none;
    transition: background 0.3s;
    flex-shrink: 0; /* Verhindert Stauchung auf kleineren Schirmen */
}

.btn:hover {
    background: #0096b1;
}

/* Zentraler Inhaltsbereich */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #f4f7f6;
}

/* Hero-Bereich */
.hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--mid-blue) 100%);
    color: var(--white);
    padding: 25px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Der große Button auf der Startseite darf breiter sein für längeren Text */
.hero .btn {
    width: auto !important;
    padding: 10px 25px;
}

.hero-logo {
    max-width: 110px;
    height: auto;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.hero p {
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 15px auto;
    color: #e0e0e0;
}

/* Service-Bereich */
.services {
    padding: 25px 20px;
    max-width: 1200px;
    margin: auto;
    width: 100%;
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: var(--dark-blue);
}

.grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.card {
    background: var(--white);
    padding: 20px 15px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid var(--light-blue);
    flex: 1;
}

.card h3 {
    color: var(--dark-blue);
    margin-bottom: 8px;
    font-size: 1.15rem;
    text-align: center;
}

.card p, .card ul {
    color: var(--grey);
    font-size: 0.85rem;
    text-align: left;
}

.card ul {
    padding-left: 15px;
    margin-top: 5px;
}

/* Kontaktbereich unten */
.contact {
    background: var(--dark-blue);
    color: var(--white);
    padding: 25px 20px;
    text-align: center;
    flex: 0.8;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* MODAL FORMULAR STYLING */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 37, 69, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

/* Der Absende-Button im Popup bricht flexibel auf die volle Breite aus */
.modal-content .btn {
    width: 100% !important;
}

@keyframes fadeIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--grey);
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover { color: var(--dark-blue); }

.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: var(--dark-blue); font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; color: #333; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--light-blue); box-shadow: 0 0 5px rgba(0, 180, 216, 0.3); }

/* Styling für den Cookie-Consent-Banner */
.cookie-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--white);
    box-shadow: 0 5px 25px rgba(11, 37, 69, 0.25);
    border-radius: 8px;
    border-top: 4px solid var(--light-blue);
    z-index: 9999;
}

.cookie-box {
    padding: 20px;
    text-align: left;
}

.cookie-box h3 {
    color: var(--dark-blue);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.cookie-box p {
    color: var(--grey);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.cookie-box a {
    color: var(--light-blue);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
}

.btn-cookie {
    font-size: 0.85rem;
    padding: 8px 20px;
    cursor: pointer;
}

/* Footer */
footer {
    background: #061324;
    color: #888;
    text-align: center;
    padding: 15px;
    font-size: 0.85rem;
    border-top: 1px solid #134074;
    flex-shrink: 0;
}

footer a { color: #888; text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--light-blue); }

/* Mobile Ansicht */
@media (max-width: 768px) {
    html, body { overflow: auto; height: auto; }
    .nav-container { flex-direction: column; text-align: center; }
    header { padding: 1rem 0.5rem; }
    nav { flex-wrap: wrap; justify-content: center; gap: 5px; }
    .btn { width: 110px !important; padding: 8px 0; font-size: 0.85rem; }
    .hero .btn { width: auto !important; padding: 10px 25px; }
    .hero h1 { font-size: 1.8rem; }
    .contact-info { flex-direction: column; gap: 10px; }
    .grid { flex-direction: column; }
    .modal-content { width: 90%; padding: 20px; }
}
