/* =========================================================
   style.css – NEU, SAUBER, STABIL
========================================================= */

/* ================= RESET / BASIS ================= */
html {
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: "Open Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #030d18;

    background:
            linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
            url("../img/login-bg.jpg") center / cover no-repeat;
}

@media (max-width: 768px) {
    body { background-attachment: scroll; }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0044cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ================= CONTAINER ================= */
.cd-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.cd-section {
    padding: 2.5rem 0;
}

.site-footer {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9em;
    opacity: 0.85;
}

/* Legal pages */
.legal-content { max-width: 1000px; }
.legal-header { text-align: center; margin: 0 0 1.5rem; }
.legal-subline { margin: .25rem 0 0; opacity: .8; }
.legal-card {
    background: rgba(255,255,255,.92);
    border-radius: 14px;
    padding: 18px 18px;
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
    margin: 0 0 18px;
}
.legal-card h2 { margin-top: 0; }
.legal-card h3 { margin: 14px 0 6px; }
.legal-nowrap { white-space: nowrap; }


/* =========================================================
   NAVIGATION – MOBILE FIRST
========================================================= */
.cd-secondary-nav {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 64px;

    background: rgba(3,13,24,0.96);
    z-index: 1000;
}

/* Abstand unter fixer Nav */
.nav-spacer {
    height: 64px;
}

/* Menü-Liste */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;

    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;

    background: rgba(3,13,24,0.98);
    display: none;
    flex-direction: column;
    text-align: center;
}

.nav-menu.open {
    display: flex;
}

.nav-menu li a,
.nav-menu li span {
    padding: 1em;
    display: block;
    color: #f0eee1;
    font-weight: 700;
}

/* ================= HAMBURGER (nur Mobile) ================= */
.cd-secondary-nav-trigger {
    position: fixed;
    top: 10px;
    right: 5%;

    width: 44px;
    height: 44px;

    background: rgba(3,13,24,0.96);
    border-radius: 6px;

    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 1100;
}

.cd-secondary-nav-trigger span,
.cd-secondary-nav-trigger span::before,
.cd-secondary-nav-trigger span::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: #f0eee1;
    position: relative;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.cd-secondary-nav-trigger span::before {
    position: absolute;
    top: -6px;
}

.cd-secondary-nav-trigger span::after {
    position: absolute;
    top: 6px;
}

/* Hamburger → X */
.cd-secondary-nav-trigger.is-open span {
    background: transparent;
}

.cd-secondary-nav-trigger.is-open span::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.cd-secondary-nav-trigger.is-open span::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================= DESKTOP ================= */
@media (min-width: 992px) {

    /* Hamburger komplett AUS */
    .cd-secondary-nav-trigger {
        display: none;
    }

    /* Menü horizontal */
    .nav-menu {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        height: 64px;
        background: transparent;
    }

    .nav-menu li a,
    .nav-menu li span {
        padding: 0 24px;
        height: 64px;
        line-height: 64px;
    }
}

/* =========================================================
   LOGIN GRID (STARTSEITE)
========================================================= */
.login-grid {
    margin: 4rem auto 0;
    display: grid;
    gap: 32px;
    justify-items: center;
}

/* Mobile */
@media (max-width: 599px) {
    .login-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 991px) {
    .login-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 992px) {
    .login-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================= LOGIN CARD ================= */
.login-card {
    width: 100%;
    max-width: 320px;

    background: rgba(255,255,255,0.95);
    border-radius: 14px;
    padding: 22px;

    text-align: center;
    color: inherit;

    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.login-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(0,0,0,0.22);
}

.login-card h3 {
    margin: 14px 0 6px;
}

/* =========================================================
   LOGIN FORM
========================================================= */
.cd-login-wrap {
    max-width: 520px;
    margin: 3rem auto 0;
}

.cd-login-card {
    background: rgba(255,255,255,0.96);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 38px;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

input:focus {
    outline: none;
    border-color: rgba(245,72,74,0.9);
    box-shadow: 0 0 0 3px rgba(245,72,74,0.15);
}

.cd-btn,
button {
    padding: 0.8em 1.6em;
    border-radius: 999px;
    border: none;
    cursor: pointer;

    font-weight: 700;
    background-color: rgba(245,72,74,0.9);
    color: #fff;
}

.cd-btn:hover,
button:hover {
    background-color: #f5484a;
}

/* =========================================================
   HONEYPOT
========================================================= */
.hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
