/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body.eintrag-page {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at center, rgba(18, 28, 64, 0.62), rgba(5, 8, 22, 0.96) 58%),
        #050816;
    color: white;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 84px 20px 60px;
    position: relative;
    overflow-x: hidden;
}

/* Kategorie-Bilder */

.category-background {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

/* Kategorie-Karten */
.category-card {
    position: fixed;

    width: 28vw;
    min-width: 260px;
    max-width: 440px;

    height: calc((100vh - 112px - 18px) / 2);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 28px;
    border: 1px solid rgba(210, 220, 255, 0.13);

    overflow: hidden;
    opacity: 1;

    box-shadow: 0 0 35px rgba(0, 0, 0, 0.35);

    cursor: pointer;
    pointer-events: auto;

    transition:
        transform 0.55s ease,
        box-shadow 0.55s ease,
        border-color 0.55s ease;
}

/* Dunkler Bildverlauf */
.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(3, 6, 18, 0.90),
            rgba(3, 6, 18, 0.35),
            rgba(3, 6, 18, 0.08)
        );
    opacity: 0.72;
    transition: opacity 0.45s ease;
    z-index: 1;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(150, 170, 255, 0.35);
    box-shadow:
        0 0 45px rgba(0, 0, 0, 0.55),
        0 0 25px rgba(108, 99, 255, 0.18);
}

.category-card.is-open {
    transform: translateY(-8px) scale(1.025);
    border-color: rgba(160, 180, 255, 0.45);
    box-shadow:
        0 0 55px rgba(0, 0, 0, 0.65),
        0 0 34px rgba(108, 99, 255, 0.28);
}

.category-card.is-open::before {
    opacity: 0.92;
}

/* Falls echte img-Tags benutzt werden */
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    display: block;
}

/* Kategorie-Überschrift */
.category-card span {
    position: absolute;
    left: 28px;
    bottom: 28px;
    z-index: 3;

    color: #eef3ff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;

    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(8, 12, 30, 0.62);
    border: 1px solid rgba(200, 215, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);

    transition:
        transform 0.45s ease,
        opacity 0.35s ease,
        bottom 0.45s ease;
}

.category-card-right span {
    left: auto;
    right: 28px;
    text-align: right;
}

.category-card.is-open span {
    bottom: calc(100% - 64px);
    transform: scale(0.96);
}

/* Positionen links/rechts */
.category-card-left {
    left: 12px;
}

.category-card-right {
    right: 12px;
}

/* Positionen oben/unten */
.category-card-top {
    top: 84px;
}

.category-card-bottom {
    bottom: 12px;
}

/* Kategorie-Infobox */
.category-info {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    z-index: 4;

    padding: 18px 20px;
    border-radius: 22px;

    background: rgba(8, 12, 30, 0.62);
    border: 1px solid rgba(210, 220, 255, 0.18);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: rgba(255, 255, 255, 0.86);

    opacity: 0;
    transform: translateY(28px);
    pointer-events: none;

    transition:
        opacity 0.45s ease,
        transform 0.45s ease;
}

.category-card.is-open .category-info {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.category-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: 0;
    font-weight: 600;
    text-transform: none;
}

.category-info p {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(238, 243, 255, 0.82);
}

/* Nur dieser Link führt zur Kategorie-Seite */
.category-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 9px 16px;
    border-radius: 999px;
    text-decoration: none;
    color: white;
    font-size: 13px;
    font-weight: 700;
    background: rgba(80, 100, 200, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.category-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 14px 34px rgba(108, 99, 255, 0.36);
}

/* FORMULAR-CONTAINER */
.container {
    width: 100%;
    max-width: 720px;
    background: rgba(8, 12, 30, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    padding: 50px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.38);
    position: relative;
    z-index: 2;
    margin-top: 12px;
}

/* ÜBERSCHRIFT */
h1 {
    font-size: 32px;
    margin-bottom: 36px;
    letter-spacing: 1px;
    color: white;
}

/* ZEILE */
.zeile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

/* LABEL */
.merkmal {
    color: #a8adc7;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* EINGABEFELDER */
.eingabefeld,
input[type="text"],
input[type="date"],
input[type="file"],
textarea {
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-size: 15px;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
}

.eingabefeld::placeholder,
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.eingabefeld:focus,
input[type="text"]:focus,
input[type="date"]:focus,
textarea:focus {
    outline: none;
    border-color: rgba(124, 140, 255, 0.7);
    background: rgba(255, 255, 255, 0.09);
    box-shadow:
        0 0 8px rgba(124, 140, 255, 0.25),
        0 0 20px rgba(124, 140, 255, 0.15);
}

/* TEXTAREA */
textarea {
    resize: vertical;
    min-height: 280px;
}

/* RADIO BUTTONS */
input[type="radio"] {
    accent-color: #6c63ff;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.wert label {
    color: #ccc;
    cursor: pointer;
    margin-left: 8px;
    font-size: 15px;
}

.wert div {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* DATEI AUSWÄHLEN */
.datei-button {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.datei-button:hover {
    border-color: rgba(124, 140, 255, 0.7);
    color: white;
}

/* BILD VORSCHAU */
.wert img {
    margin-top: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    max-width: 100%;
}

/* TEXT UNTER BILD */
.wert p {
    color: #a8adc7;
    font-size: 13px;
    margin-top: 8px;
}

/* BUTTONS */
input[type="submit"],
input[type="reset"] {
    width: 100%;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-sizing: border-box;
}

input[type="submit"] {
    background: rgba(80, 100, 200, 0.2);
    color: white;
}

input[type="submit"]:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.4);
}

.resetbutton {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #aaa;
}

.resetbutton:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: scale(1.03);
}

/* BESTÄTIGUNG */
.bestaetigung {
    width: 100%;
    max-width: 720px;
    margin-top: 14px;
    background: rgba(8, 12, 30, 0.76);
    border: 1px solid rgba(124, 140, 255, 0.3);
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    z-index: 2;
}

.bestaetigung p {
    font-size: 20px;
    margin-bottom: 24px;
    color: #aeb7ff;
}

.bestaetigung-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.bestaetigung-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1;
    color: white;
    background: rgba(80, 100, 200, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        filter 0.22s ease;
}

.bestaetigung-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
    box-shadow:
        0 20px 46px rgba(110, 90, 255, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* RESPONSIVE */
@media (max-width: 1450px) {
    .category-card {
        width: 380px;
        height: 240px;
    }

    .category-card-left {
        left: 16px;
    }

    .category-card-right {
        right: 16px;
    }

    .bestaetigung {
        max-width: 680px;
    }
}

/* Wenn es zu eng wird: Seitenbilder ausblenden, damit nichts überlappt */
@media (max-width: 1600px) {
    .category-background {
        display: none;
    }

    body.eintrag-page {
        padding-left: 20px;
        padding-right: 20px;
        justify-content: center;
    }

    .bestaetigung {
        max-width: 720px;
        width: 100%;
    }
}

@media (max-width: 760px) {
    body.eintrag-page {
        padding-top: 96px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .container,
    .bestaetigung {
        width: 100%;
        max-width: 100%;
        padding: 34px 22px;
        border-radius: 20px;
    }

    h1 {
        font-size: 26px;
    }

    .bestaetigung p {
        font-size: 18px;
        line-height: 1.4;
    }

    .bestaetigung-actions {
        flex-direction: column;
        gap: 12px;
    }

    .bestaetigung-button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .bestaetigung {
        padding: 30px 18px;
    }

    .bestaetigung p {
        font-size: 16px;
    }

    .bestaetigung-button {
        font-size: 14px;
    }
}