html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, sans-serif;
    background: #f0f7ff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Weißer Kasten */
.container {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,148,255,0.2);
    border: 1px solid #e6e6e6;
    text-align: center;
    box-sizing: border-box;
    min-height: 400px;
}

h1 {
    text-align: center;
    color: #003366;
    font-size: 28px;
    margin-bottom: 30px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-size: 14px;
    color: #003366;
    display: block;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

button {
    background: #0094FF;
    color: #fff;
    padding: 12px 0;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

button:hover {
    background: #007acc;
}

p {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #003366;
}

p a {
    color: #0094FF;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}

/* Fehlermeldungen */
.feedback {
    text-align: center;
    font-size: 14px;
    margin-top: 5px;
    word-wrap: break-word;
}

.feedback.error { color: red; }
.feedback.success { color: green; }

/* Passwortstärke-Anzeige (Step 3) */
#pwd-strength {
    text-align: left;
    margin-top: 5px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 420px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 22px;
    }

    input, button {
        font-size: 14px;
        padding: 10px;
    }

    p {
        font-size: 13px;
    }
}

/* Cursor nur bei Inputs blinkend */
body, h1, h2, h3, h4, p, span, div {
    caret-color: transparent;
}

input, textarea {
    caret-color: auto;
}

/*--------------------------------------------------------------------------*/
/* Rollen-Auswahl Schritt 1 */

.role-container {
    width: 100%;
    max-width: 800px;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,148,255,0.2);
    border: 1px solid #e6e6e6;
    text-align: center;
    box-sizing: border-box;
    min-height: 400px;
}

.role-select-box {
    display: flex;
    flex-direction: column; /* Rollen untereinander */
    gap: 20px;
    margin-top: 20px;
}

.role-option {
    flex: 1;
    cursor: pointer;
}

.role-card:hover {
    transform: translateY(-3px); /* leichter Hover-Effekt */
    box-shadow: 0 8px 20px rgba(0,148,255,0.3);
}

.role-option input[type="radio"] {
    display: none;
}

.role-card {
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 20px; /* größere Rundung */
    padding: 30px;        /* mehr Innenabstand */
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.role-option input[type="radio"]:checked + .role-card {
    border-color: #0094FF;
    box-shadow: 0 0 15px rgba(0,148,255,0.4);
}

.role-card h3 {
    margin: 0 0 10px;
}

.role-card p {
    font-size: 14px;
    color: #555;
}

/* ========= FEATURE-LISTEN ZWEI SPALTEN ========= */
.role-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-top: 15px;
}

.role-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.role-features li {
    margin-bottom: 8px;
    text-align: left;
}

/* BUTTON STYLES */
button[type="submit"] {
    margin-top: 25px;
    padding: 12px 25px;
    background-color: #0094FF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #007acc;
}

/* OPTIONAL: ICON + Text Abstand */
.role-features li::before {
    content: '•';
    color: #0094FF;
    display: inline-block;
    width: 20px;
}
/*==================================================================*/

#stand-headline {
    font-size: 25px;
}

#visitor-headline {
    font-size: 25px;
}

#stand-headline {
    padding: 0 0 10px;
}

#visitor-headline {
    padding: 0 0 10px;
}

#stand-left {
    margin-left: 10px;
}

#stand-right {
    margin-left: 25px;
}

#visitor-left {
    margin-left: 10px;
}

#visitor-right {
    margin-left: 25px;
}

/* =======================================================================
   RESPONSIVE-ERWEITERUNG (NEU) — nur unterhalb des bestehenden CSS
   Regeln: keine neuen Klassen/IDs, kein JS, kein Inline-CSS, Desktop unverändert
======================================================================= */

/* -----------------------------------------------------------------------
   MOBILE (NEU) — max-width: 480px
   Ziele: volle Breite ab 320px, Touch-Abstände, lesbar, kein horizontales Scrollen
----------------------------------------------------------------------- */
@media (max-width: 480px) {
    html, body {
        overflow-x: hidden; /* verhindert horizontales Scrollen bei engen Geräten */
    }

    body {
        padding: 16px;
        align-items: flex-start;  /* besser bei kleiner Höhe / Tastatur */
        justify-content: flex-start;
    }

    /* Signup-Form Container */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 24px 18px;
        min-height: 0; /* verhindert unnötige Höhe auf kleinen Screens */
    }

    h1 {
        font-size: 22px;
        margin-bottom: 22px;
    }

    form {
        gap: 14px;
    }

    label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    /* Inputs: 16px gegen iOS-Zoom, größere Touchfläche */
    input {
        font-size: 16px;
        padding: 12px;
        border-radius: 10px;
    }

    button {
        font-size: 16px;
        padding: 14px 0;
        border-radius: 12px;
    }

    p {
        font-size: 13px;
        margin-top: 18px;
    }

    .feedback,
    #pwd-strength {
        font-size: 14px;
    }

    /* Rollen-Auswahl ebenfalls mobile-safe, falls Step 1 auf Mobile genutzt wird */
    .role-container {
        width: 100%;
        max-width: 100%;
        padding: 24px 18px;
        min-height: 0;
    }

    .role-select-box {
        gap: 16px;
        margin-top: 18px;
    }

    .role-card {
        padding: 20px;
        border-radius: 18px;
    }

    .role-features {
        grid-template-columns: 1fr; /* verhindert Überlauf durch 2 Spalten */
        gap: 8px 12px;
    }

    /* Entfernt linke Einrückungen auf sehr schmalen Screens */
    #stand-left,
    #stand-right,
    #visitor-left,
    #visitor-right {
        margin-left: 0;
    }

    button[type="submit"] {
        width: 100%;
        font-size: 16px;
        padding: 14px 18px;
        border-radius: 10px;
    }
}

/* -----------------------------------------------------------------------
   MOBILE (NEU) — max-width: 767px
   Ziele: volle Breite, angenehme Abstände, kein horizontales Scrollen
----------------------------------------------------------------------- */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
    }

    body {
        padding: 18px;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 28px 22px;
        min-height: 0;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    input {
        font-size: 16px;
        padding: 12px;
    }

    button {
        font-size: 16px;
        padding: 14px 0;
    }

    p {
        margin-top: 18px;
    }

    .role-container {
        width: 100%;
        max-width: 100%;
        padding: 28px 22px;
        min-height: 0;
    }

    .role-features {
        grid-template-columns: 1fr; /* sicher gegen Überläufe auf Mobile */
    }

    #stand-left,
    #stand-right,
    #visitor-left,
    #visitor-right {
        margin-left: 0;
    }

    button[type="submit"] {
        width: 100%;
        padding: 14px 20px;
    }
}

/* -----------------------------------------------------------------------
   TABLET (NEU) — max-width: 1024px
   Ziele: Tablet wirkt nicht "gezoomt", stabile Breiten/Abstände, Desktop bleibt gleich
----------------------------------------------------------------------- */
@media (max-width: 1024px) {
    html, body {
        overflow-x: hidden;
    }

    body {
        padding: 20px;
    }

    /* etwas großzügiger auf Tablet, ohne Desktop zu beeinflussen */
    .container {
        max-width: 440px;
        padding: 36px;
    }

    .role-container {
        max-width: 760px;
        padding: 36px;
    }

    h1 {
        font-size: 26px;
        margin-bottom: 26px;
    }

    input {
        font-size: 16px;
        padding: 11px;
    }

    button {
        padding: 13px 0;
    }

    button[type="submit"] {
        padding: 13px 24px;
    }

    .role-features {
        gap: 10px 16px;
    }
}
