:root {
    --primary: #005da1;
    --primary-light: #308ee7;
    --primary-verylight: #e7f0fa;
    --secondary: #0071ba;
    --text-dark: #041d2e;
    --text-light: #fff;
    --text-grey: #184260;
    --shadow-light: #e9f5ff;
    --shadow-container: rgba(0,0,0,0.10);
    --container-bg: rgba(235, 235, 235, 0.1);
    --container-bg-mobile: #e7f0fa;
    --input-border: #b8c1ec;
    --input-focus: #005da1;
    --input-bg: rgba(255,255,255,0.95);
    --error-bg: #f8d7da;
    --error-border: #f5c2c7;
    --error-text: #842029;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'DejaVu Sans', Arial, sans-serif;
    background-image: url('wallpaper.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* --- Nur für MOBILE Hochformat! --- */
@media (max-width: 700px) and (orientation: portrait) {
    body {
        background-image: url('mobile_wallpaper.jpg');
        background-size: cover;
        background-position: center center;
        background-attachment: fixed;
        background-repeat: no-repeat;
        background-color: unset;
    }
}
/* Noch kleiner: 400px, falls du willst */
@media (max-width: 400px) and (orientation: portrait) {
    body {
        background-size: cover; 
    }
}

/* --- Für mobile Geräte im LANDSCAPE und kleine Geräte --- */
@media (max-width: 700px) and (orientation: landscape) {
    body {
        background-image: url('wallpaper.jpg');
        background-size: cover;
        background-position: center center;
        background-attachment: fixed;
        background-repeat: no-repeat;
        background-color: unset;
    }
}


.spacer-top {
    height: 50px;
    width: 100%;
}

/* Logo wie Startseite */
.bild-logo {
    width: 100px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.bild-logo img {
    width: 100px;
    height: auto;
    display: block;
}


/* Vereinsname */
.vereinsname {
    text-align: center;
    font-size: 2.1rem;
    font-weight: 700;
    margin-top: 0.7em;
    margin-bottom: 10px;
    color: #041d2e;
    letter-spacing: 1.2px;
    text-shadow:
        0 0 10px #fff,
        0 2px 7px #fff,
        0 4px 16px #e5eaf2,
        0 1.5px 12px #b1b1b1a0;
    font-family: 'DejaVu Sans', Arial, sans-serif;
}

/* EST */
.est {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: #0c40b9;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    opacity: 0.93;
    font-family: 'DejaVu Sans', Arial, sans-serif;
    text-shadow:
        0 0 18px #fff,
        0 2px 12px #d7e8ff,
        0 0 26px #bde3ff,
        0 1.5px 18px #a0d2ffcc,
        0 0 40px #84b8f8;
}

/* Flex Wrapper */
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Container */
.container,
.impressum-container {
    background-color: var(--container-bg);
    border-radius: 18px;
    box-shadow: 0 0 10px rgba(0,0,0,0.10);
    padding: 0.8rem 2rem 2rem 2rem;
    min-width: 450px;
    max-width: 600px;
    margin: 2rem auto 1.3rem auto;
    position: relative;
    z-index: 1;
    text-align: center;
    transition: box-shadow 0.2s;
}
.container:hover,
.impressum-container:hover {
    box-shadow: 0 4px 20px 0 rgba(0,93,161,0.08);
}

.sign {
    font-size: 4rem;
    margin-bottom: 1.1rem;
    color: #005da1;
    text-shadow: 0 2px 8px #e0f1fa;
}

h1 {
    font-size: 2rem;
    color: #0e3757;
    margin-bottom: 0.6rem;
    text-shadow: 0 1px 5px #e9f5ff;
}

.info-text p {
    margin: 1.1rem 0 1.1rem 0;
    color: #184260;
    font-size: 1.06rem;
    line-height: 1.6;
    text-align: center;
    text-shadow: 0 1px 5px #e5eaf2;
}

.countdown-text {
    font-size: 1.1rem;
    color: #005da1;
    margin-top: 0.4rem;
    margin-bottom: 1.2rem;
    font-weight: bold;
    text-shadow: 0 1px 5px #e5eaf2;
}
.countdown-number {
    font-size: 2rem;
    color: #2176ae;
    font-weight: bold;
    letter-spacing: 2px;
}

a {
    color: #005da1;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
a:hover {
    color: #0e7fb1;
    text-decoration: underline;
}

.impressum-container h2 {
    font-size: 1.08rem;
    color: #0e3757;
    margin: 0 0 0.5rem 0;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-align: center;
}
.impressum-container p {
    font-size: 0.95rem;
    color: #103053;
    text-align: center;
}

/* Login Formular */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 18px;
    margin-bottom: 10px;
    align-items: stretch;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}
.login-form label {
    color: #103053;
    font-weight: bold;
    font-size: 1.07rem;
    margin-bottom: 3px;
    text-align: left;
}
.login-form input {
    padding: 10px 14px;
    font-size: 1.05rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    transition: border 0.18s;
}
.login-form input:focus {
    border: 1.5px solid var(--input-focus);
    background: #e8f0fa;
}
.login-form button {
    background: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 6px;
    font-size: 1.13rem;
    padding: 0.9em 0;
    font-weight: bold;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 4px;
    margin-bottom: 6px;
    box-shadow: 0 1px 5px #e5eaf2;
    transition: background 0.16s;
}
.login-form button:hover {
    background: var(--text-grey);
}

/* Fehlerbox für Login */
.login-error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid var(--error-border);
    border-radius: 7px;
    margin-bottom: 14px;
    padding: 7px 10px;
    text-align: center;
    font-size: 1.01rem;
}

.login-form button.btn-anmelden {
    display: inline-block;
    width: 100%;
    max-width: 430px;
    margin: 1.2em auto 0 auto;
    padding: 0.85em 2.1em;
    background: linear-gradient(90deg, #005da1 80%, #308ee7 100%);
    color: #fff;
    font-size: 1.18rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px 0 #8ec8f880, 0 0.5px 5px #e3eef5;
    text-shadow: 0 1px 4px #23548277;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: background 0.18s, transform 0.14s, box-shadow 0.18s;
}
.btn-anmelden:hover,
.btn-anmelden:focus {
    background: linear-gradient(90deg, #308ee7 0%, #005da1 100%);
    color: #fff;
    transform: translateY(-1.5px) scale(1.03);
    box-shadow: 0 4px 20px 0 #b4e6ff77;
    text-decoration: none;
    outline: none;
}

.btn-beantragen {
  margin-top: 12px;
  background: linear-gradient(90deg, #1e90ff 30%, #3bc0ff 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.06em;
  border: none;
  border-radius: 1.8em;
  padding: 0.7em 1.5em;
  box-shadow: 0 1px 8px #0001;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.02em;
}
.btn-beantragen:hover,
.btn-beantragen:focus {
  background: linear-gradient(90deg, #3bc0ff 10%, #1e90ff 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 18px #0047aa44;
  outline: none;
}


/* Mobile Style */
@media (max-width: 600px) {

    .container,
    .impressum-container {
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
        border-radius: 16px;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        padding: 2.1rem 2vw 2.1rem 2vw;
    }

    h1 {
        font-size: 2.2rem;
    }
    .sign {
        font-size: 3.2rem;
    }
    .ssl-lock {
        font-size: 2.5rem;
    }
    .countdown-number {
        font-size: 2.2rem;
    }
    .info-text p,
    .countdown-text,
    .impressum-container,
    .impressum-container p {
        font-size: 1.25rem;
    }
    a {
        font-size: 1.2rem;
        padding: 1em 1.7em;
    }
    .vereinsname {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }
    .est {
        font-size: 1rem;
        margin-bottom: 6px;
    }
}

/* Noch responsiver für mini-Displays */
@media (max-width: 400px) {
    .container,
    .impressum-container {
        padding: 1rem 1vw 1rem 1vw;
        border-radius: 10px;
    }

    h1 {
        font-size: 1.35rem;
    }
    .sign {
        font-size: 2.1rem;
    }
    .ssl-lock {
        font-size: 1.8rem;
    }
    .countdown-number {
        font-size: 1.3rem;
    }
    .info-text p,
    .countdown-text,
    .impressum-container,
    .impressum-container p {
        font-size: 1.07rem;
    }
    a {
        font-size: 1rem;
        padding: 0.7em 1em;
    }
    .vereinsname {
        font-size: 1.04rem;
        margin-bottom: 4px;
    }
    .est {
        font-size: 0.83rem;
        margin-bottom: 3px;
    }
}


/* Modal-Stil (angepasst an dein Layout) */
.modal {
    display: none; /* Standard: unsichtbar! */
    position: fixed;
    z-index: 999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(30, 51, 77, 0.17);
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
}
.modal.show {
    display: flex;   /* Nur wenn Modal offen! */
}

.modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 0 44px 0 #e5eaf2, 0 1.5px 18px #d7e8ff40;
    padding: 2.1em 1.5em 1.5em 1.5em;
    min-width: 290px;
    max-width: 90vw;
    color: #184260;
    position: relative;
    animation: popIn 0.27s;
    text-align: left;
}
@keyframes popIn {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.close-modal {
    position: absolute;
    right: 16px;
    top: 10px;
    font-size: 1.9em;
    color: #005da1;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.16s;
}
.close-modal:hover {
    color: #196cab;
}
.modal-content h2 {
    font-size: 1.22rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0.8em;
    color: #005da1;
    text-align: center;
    text-shadow: 0 1px 8px #e5eaf2;
}
.modal-body ol {
    margin-top: 0.22em;
    margin-bottom: 0.65em;
    margin-left: 1.1em;
}
.modal-body li {
    margin-bottom: 0.19em;
    line-height: 1.4;
}
@media (max-width: 600px) {
    .modal-content {
        max-width: 99vw;
        padding: 1.2em 1vw 1.3em 1vw;
        font-size: 1.08em;
    }
}
