/* WSFAVLM - Pixelgenaues Layout: 1200px Rahmen, 1080px Inhalt */
/* KEINE Ausnahmen. KEINE Überschreibungen. ALLES max 1080px. */

:root {
    --primary-color: #1DC1B8;
    --nav-bg: #B03B3B;
    --btn-green: #2F9E44;
    --text-color: #784503;
    --bg-light: #f8f9fa;
}

/* === RESET === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 20pt !important;
}

img {
    border-radius: 25px !important;
    display: block !important;
    margin: 20px auto !important;
}

/* === BODY === */
body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === ANIMIERTER HINTERGRUND === */
.bg-animated {
    background: linear-gradient(45deg, #2F9E44, #B03B3B, #784503, #F4D644, #2F9E44, #1DC1B8);
    background-size: 777% 777%;
    animation: gradientBG 18s ease infinite;
    min-height: 100vh;
    padding: 48px 0;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ============================================================
   LAYOUT-STRUKTUR - EISERN FIXIERT
   Äußerer Rahmen: GENAU 1200px (weißer Rahmen mit Schatten)
   Innerer Inhalt: GENAU 1080px (zentriert im Rahmen)
   NICHTS darf breiter als 1080px sein!
   ============================================================ */

#outer-frame {
    width: 1200px !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background-color: #fff;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden !important;
}

#inhalt {
    width: 1080px !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 48px;
    padding-bottom: 30px;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
}

/* === DER ABSOLUTE SCHUTZ ===
   JEDES Element innerhalb von #inhalt wird begrenzt.
   Navigation, Text, Bilder, Formulare - ALLES. */
#inhalt *,
#inhalt *::before,
#inhalt *::after {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* === BILDER === */
/* Bilder dürfen NIE breiter als ihr Container sein (= 1080px) */
/* Bilder dürfen NIE größer als ihre natürliche Größe werden */
#inhalt img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    margin-bottom: 32px !important;
    /* Ersatz für mb-4 */
}

/* TYPOGRAFIE */
h1,
.display-4 {
    color: var(--primary-color);
    text-align: center;
    font-weight: 800;
    margin-bottom: 40px;
    font-size: 18pt;
}

h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18pt;
}

p {
    text-align: justify;
    line-height: 1.7;
    font-size: 18pt;
    margin-bottom: 24px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

a {
    color: var(--primary-color);
    text-decoration: underline;
}

a:hover {
    color: var(--nav-bg);
}

/* === HILFSKLASSEN === */
.text-center {
    text-align: center;
}

.fw-bold {
    font-weight: bold;
}

.fs-4 {
    font-size: 18pt;
}

.fs-5 {
    font-size: 18pt;
}

/* Abstände */
.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 16px;
}

.mb-4 {
    margin-bottom: 24px;
}

.mb-5 {
    margin-bottom: 48px;
}

.mt-1 {
    margin-top: 4px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-3 {
    margin-top: 16px;
}

.mt-4 {
    margin-top: 33px;
}

.mt-5 {
    margin-top: 48px;
}

.py-3 {
    padding-top: 16px;
    padding-bottom: 16px;
}

.py-5 {
    padding-top: 48px;
    padding-bottom: 48px;
}

.px-4 {
    padding-left: 20px;
    padding-right: 20px;
}

.px-5 {
    padding-left: 48px;
    padding-right: 48px;
}

.p-5 {
    padding: 48px;
}

.w-100 {
    width: 100%;
}

.rounded-4 {
    border-radius: 30px;
}

.rounded-5 {
    border-radius: 40px;
}

.rounded-pill {
    border-radius: 50px;
}

.shadow {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.border-0 {
    border: 0;
}

.overflow-hidden {
    overflow: hidden;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-danger {
    background-color: var(--nav-bg);
    color: #fff;
    width: 100%;
}

.btn-danger:hover {
    background-color: #932f2f;
}

.btn-success {
    background-color: var(--btn-green);
    color: #fff;
    padding: 15px 60px;
    font-weight: bold;
    font-size: 18pt;
}

.btn-success:hover {
    background-color: var(--btn-green);
}

.btn-lg {
    font-size: 18pt;
    padding: 16px 48px;
}

/* === NAVIGATION / DROPDOWN === */
.dropdown {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 48px;
}

.dropdown-toggle {
    appearance: none;
    -webkit-appearance: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 10px 0;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 16px 24px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 18pt;
}

.dropdown-item:hover {
    background-color: #ffffff;
    color: var(--nav-bg);
}

/* === FORMULARE & KARTEN === */
.card {
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    margin-bottom: 32px;
}

.card-body {
    padding: 48px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-control {
    display: block;
    width: 100%;
    padding: 16px 24px;
    font-size: 18pt;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    transition: border-color 0.15s ease-in-out;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    border-radius: 20px;
}

/* === ALERTS === */
.alert {
    padding: 16px 24px;
    margin-bottom: 24px;
    border-radius: 20px;
    text-align: center;
}

.alert-success {
    background-color: var(--btn-green);
    color: #fff;
    font-weight: normal;
}

.alert-danger {
    background-color: #B03B3B;
    color: #fff;
    font-weight: bold;
}

/* ============================================================
   RESPONSIVE / MOBILE
   ============================================================ */
@media (max-width: 1200px) {
    .bg-animated {
        padding: 20px 10px;
    }

    #outer-frame {
        border-radius: 20px;
    }

    #inhalt {
        padding: 24px 16px !important;
    }

    h1,
    .display-4 {
        font-size: 18pt;
    }

    p {
        font-size: 18pt;
    }

    .card-body {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .bg-animated {
        padding: 10px 5px;
    }

    #outer-frame {
        border-radius: 10px;
    }

    #inhalt {
        padding: 16px 12px !important;
    }

    h1,
    .display-4 {
        font-size: 18pt;
    }

    p {
        font-size: 18pt;
    }

    .btn-success {
        padding: 12px 30px;
        width: 100%;
    }

    .card-body {
        padding: 16px;
    }
}