:root {
    --bg-color: linear-gradient(90deg, #fef6e4 0%, #f8f6ff 100%);
    --text-color: #000;   /* Standard: schwarz für Light-Mode */
    --footer-bg: #f5f5f5;
    --footer-text: #555;
    --footer-border: #ddd;
    --footer-link: #0078d7;
}
body,
body.light{
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}

/* Dark Theme */
body.dark {
    --heading-color: #0082c4; /*Farbe für Überschriften */
    --text-color: #fff;   /* Schrift weiß */
    --bg-color: #111827;  /* Hintergrund dunkel */ /*D0336 */
    --bg-color-sec: #1F2933; /*Sekundärer Hintergrund z.B. Übersicht-card und tbody */
    --footer-bg: #1F2933;      /* dunkles Grau */
    --footer-text: #eee;    /* hellgrau/weiß */
    --footer-border: #444;  /* etwas dunkler */
    --footer-link: #4da3ff; /* helleres Blau für Kontrast */
    --aLink: #99bbff; /*Link */
    --nav-bg: rgba(31, 41, 51, 0.7) ; /* diese Farbe #1F2933 in 70% Transparenz */
}
body.dark h1,
body.dark h2,
body.dark h3 {
    color: var(--heading-color);
}
body.dark a{
    color: var(--aLink);
}
body.dark tbody{
    background: var(--bg-color-sec);
}

body.dark .uebersicht-card {
    background: #1F2933;
    color: #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

body.dark .uebersicht-card a {
    color: #0082c4; /*#99bbff */
}
body.dark aside{
    background: #1F2933;
}
body.dark #filterArea{
    background: #1F2933;
}
body.dark #mobileThemeToggle,
body.dark .mobile-dropbtn {
    background: rgba(0, 130, 196, 0.1); /* dezentes Blau mit Transparenz */
    border: 1px solid rgba(0, 130, 196, 0.3);
    color: #0082C4;
}

.container {
    background: transparent !important; /* überschreibt Hintergrund */
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    border-bottom-width: 0px;
    padding-left: 0px;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
}

.header-ohneMenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-ohneMenu-left {
    display: flex;
    align-items: center;
    margin-left: 20px;
}
.header-ohneMenu-right {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.header-spacer {
    height: 60px; /* entspricht der Header-Höhe */
}
/* Menü */
/* --- Menü oben --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 1rem;
    z-index: 1000;
    flex-wrap: wrap;
}
body.dark nav {
    background: var(--nav-bg);
}
.nav-left {
    flex: 0 0 auto; /* Logo bleibt links */
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center; /* Links mittig */
    gap: 1rem; /* Abstand zwischen Links */
}
nav a {
    color: white;
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    transition: background 0.2s;
    font-size: 0.9rem;
    background: none; /* explizit */
    outline: none;
}
nav a:hover {
    background: rgba(255,255,255,0.2);
}

nav a.active {
    background: #0078d7;
    outline: none;
}
nav a:focus {
    background: none; /* oder gewünschte Farbe */
    outline: none;
}
/* Dropdown Basis */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9em; /* zuvor 16px */
    padding: 8px 12px;
    padding: 8px 12px;
    background: #888;
    border-radius: 8px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 150px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content a {
    color: black;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #eee;
}
.dropdown-user {
  /*  color: var(--text-color); */
    color: #0d0d0d;
    font-weight: bold;
    cursor: default; /* kein Zeiger → nicht klickbar */
}

/* Dropdown anzeigen */
.dropdown:hover .dropdown-content {
    display: block;
}
/* --- Punkte rechts --- */
.dot-nav {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1001;
}

.dot-nav a {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    display: block;
    transition: background 0.3s, transform 0.2s;
}

.dot-nav a.active {
    background: #0078d7;
    transform: scale(1.2);
}

.dot-nav a:hover {
    background: #444;
}
.bottom-actions {
    display: none; /*D0298 */
}
@media (max-width: 768px) {
    nav {
        gap: 2px;
    }

    .nav-left { /* Logo nur auf Desktop anzeigen */
        display: none;
    }
    .nav-right {
        display: none !important;
    }


    .nav-center {
        gap: unset;
        margin-left: -10px;
    }
    nav a.active{
        background: none;
        color: rgb(235, 137, 27);
    }
    nav a.active::before {
        content: "";
        display: block;
        width: 20px;
        height: 20px;
        background-image: url('/images/favicon.ico');
        background-size: contain;
        background-repeat: no-repeat;
        margin: 0 auto 4px auto; /* zentriert über Text */
    }
    /* D0298 Anpassungen Menü für Mobil */
    .bottom-actions {
        display: flex !important;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: var(--bg-color, #fff);
        border-top: 1px solid var(--border-color, #ddd);
        padding: 0.5rem;
        gap: 0.5rem;
        z-index: 100;
        backdrop-filter: blur(10px);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    /* Mobile Buttons kompakter */
    #mobileThemeToggle, .mobile-dropbtn {
        flex: 1;
        padding: 0.4rem 0.3rem;
        border: none;
        border-radius: 8px;
        font-size: 0.95rem;
        background: var(--accent-color, #007bff);
        color: white;
        cursor: pointer;
    }
    .mobile-dropbtn{
        width: 100%;
    }

    /* Mobile Dropdown */
  
    .mobile-dropdown {
        position: relative;
        flex: 2 !important;

    }
    .mobile-dropdown-content {
         display: none; /* GESTARTET GESCHLOSSEN */
       /*D0334 position: absolute; */
        bottom: 100%; left: 0; right: 0;
        background: var(--bg-color);
        border: 1px solid var(--border-color);
        border-radius: 8px 8px 0 0;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
        min-width: 200px;
        max-height: 200px;
        overflow-y: auto;
    }

    .mobile-dropdown-content a {
        display: block;
        padding: 0.8rem 1rem;
        text-decoration: none;
        color: var(--text-color);
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-dropdown-content a:hover {
        background: var(--hover-color);
    }
    .mobile-dropdown-content a:last-child {
        border-bottom: none;
    }
}
@media (max-height: 500px) and (orientation: landscape) {
    .nav-right { display: flex !important; }
    .bottom-actions { display: none !important; }
}
/* Ende D0298*/
/* Handy Landscape: Logo links neben dem aktiven Link */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-left {
        display: none; /* Standard-Logo links außen ausblenden */
    }

    nav a.active::before {
        /* content: url('/images/favicon.ico'); */
        display: inline-block;
        margin-right: 2px;
        vertical-align: middle;
        /* height: 16px; */
    }

    nav a.active {
        background: none; /* kein Hintergrund, nur Icon + Text */
        color: #0078d7;
    }
}
@media (max-width: 481px) {
    .nav-right { /* Logo nur auf Desktop anzeigen */
        display: none;
    }

}
.layout-full-width {
    display: grid;
    grid-template-columns: 1fr; /* Standard: nur Main */
    gap: 1rem;
    /* max-width: 100vw;  Maximal Viewport-Breite */
    overflow-x: auto;
}

.layout.has-sidebar {
    display: grid;
    /* zwei Spalten im Verhältnis 3:1 */
    grid-template-columns: 3fr 1fr; /* 60/40 oder 70/30 */
    gap: 1rem; /*Abstand zwischen den Spalten */
}

aside {
    width: 100%;
    background-color: #F6F6F6;
}

aside h2 {
    margin-left: 10px;
    color: #3486b8;
    font-weight: bold;
}
aside p {
    margin-left: 10px;
}

.rowGrid3 {
    /* drei gleiche Spalten */
    grid-template-columns: repeat(3, 1fr);
    display: grid;
}
@media (max-width: 1050px){
.rowGrid3 {
    grid-template-columns: repeat(2, 1fr);
}
    .container{
        width: 95%;
    }
}
#themeToggle {
    padding: 0.5rem 1rem;
    cursor: pointer;
    /*  border: none;
     border-radius: 8px;
     background: #888;
     color: white;
     font-size: 1rem; */
    margin-left: 5px;
    background: rgba(0, 130, 196, 0.1);
    border: 1px solid rgba(0, 130, 196, 0.3);
    color: #0082C4;
    border-radius: 12px;

}
.DashbuttonOrange{
    width: 210px;
}
.uebersicht-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
@media (min-width: 900px) {
    .uebersicht-grid {
        grid-template-columns: repeat(3, minmax(250px, 1fr));
    }
}

.uebersicht-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none; /* kein Unterstrich */
    color: inherit;        /* übernimmt Schriftfarbe vom Theme */
}

.uebersicht-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px; /* kleiner Abstand zwischen Icon & Text */
}

.uebersicht-card p {
    margin: 0 0 10px;
}

.uebersicht-card a {
    color: #3366cc;
    text-decoration: none;
    font-size: 0.9rem;
}

.uebersicht-card a:hover {
    text-decoration: underline;
}

.uebersicht-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.card-link {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #3366cc;
    text-decoration: none;
}
.card-link:hover{
    text-decoration: underline;
}

body.dark .uebersicht-card a {
    color: #99bbff;
}
.uebersicht-card {
    cursor: default;
}

.uebersicht-card.clickable {
    cursor: pointer;
}
.styled-list .pill {
    background: rgba(51, 102, 204, 0.12);
    color: #223a66;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
}
.dark .pill {
    background: rgba(99, 179, 237, 0.14);
    color: #CDE6FF;
    border: 1px solid rgba(99, 179, 237, 0.35);
}
/* Footer */

.site-footer {
    margin-top: 10px;
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--footer-text);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    position: relative;
    font-weight: lighter;
    letter-spacing: 2px;

}

.site-footer a {
    color: var(--footer-link);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}
@media (max-width: 786px) {
 .site-footer{
     margin-bottom: 55px;
 }
    
}

@media (max-width: 480px) {
    .container {
        width: 97%;
        padding: 5px;
    }
    .layout.has-sidebar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .rowGrid3 {
        grid-template-columns: 1fr;
    }
}
.meldung-box {
    margin-bottom: 5px;
    color: darkred;
    font-style: italic;
}
.highlight-bar{
    height: 5px;
    color: rgb(235, 137, 27);
    background-color: rgb(235, 137, 27);
    border-color: rgb(235, 137, 27);
}
/*PWD check */
.valid { color: green; }
.invalid { color: red; }

/*D0281 LoginForm select,
textarea*/
input.loginForm[type="text"],
input.loginForm[type="password"]
 {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}
button.loginForm[type="submit"] {
    background-color: #FF9900;
    color: white;
    border: none;
    padding: 10px 22px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
body.dark input.loginForm[type="text"],
body.dark input.loginForm[type="password"]
{
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: rgb(204, 204, 204);
}

.styled-table th{
    background: rgb(235, 137, 27); /*zuvor #FFBB33*/
    color: white;
    font-weight: 600;
}
.styled-table tbody tr:nth-of-type(even) {
    background-color: rgba(52, 134, 184, 0.12);
}

/* D0296 QR-Code Modal Overlay */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}
.qr-modal-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.qr-image {
    max-width: 250px;
    max-height: 250px;
    min-width: 200px;
    border: 4px solid white;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.qr-modal h3 {
    margin: 1rem 0 0.5rem;
    color: #333;
}
.close-btn, .qr-button, .jm_button-ansicht {
    padding: 6px 14px; /* zuvor 0.8rem 1.5rem*/
    border-radius: 12px;
    cursor: pointer;
    /*font-size: 1rem; */
    margin-top: 0.5rem;
    transition: all 0.3s;
    background: rgba(0, 130, 196, 0.1);
    border: 1px solid rgba(0, 130, 196, 0.3);
    color: #0082C4;

}
.close-btn:hover, .qr-button:hover {
    transform: translateY(-1px);
    background: rgba(0, 130, 196, 0.25); /* etwas mehr Farbe */
    border-color: #0082C4;

}
@media (max-width: 480px) {
    .qr-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    .qr-image {
        max-width: 250px;
        max-height: 250px;
    }
}
/* D0296 Ende: QR-Code Modal Overlay */
/* D0317: Vorschläge bearbeiten */
.itemEdit-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.itemEdit-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 80%;           /* Größer: 80% statt 50% */
    max-width: 800px;     /* Max Breite */
    max-height: 70vh;     /* Höhe begrenzen */
    overflow-y: auto;     /* Scroll bei viel Inhalt */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.success { background: #4CAF50; color: white; }
.danger { background: #f44336; color: white; }
.close-btn { background: #ddd; color: #333; }

.zurueckgezogen { text-decoration: line-through; opacity: 0.6; color: #888; }
.erledigt { text-decoration: line-through; background: #d4edda; color: #155724; }
.status-btn {
    padding: 6px 14px;
    border-radius: 12px;
    cursor: pointer;
    background: #0082C4; /* voller Blau-Farbe */
    border: 1px solid #0068A0; /* dunklerer Rand */
    color: #F9FAFB;
}
.status-btn:hover {
    transform: translateY(-1px);
    background: #0068A0; /* dunkler Hover */
    border-color: #005A8C;
    color: #F9FAFB

}
.status-btn.zurueck { background: #ffcdd2; color: #c62828; }

/*Erledigt, rückgängig machen */
input[type="checkbox"] {
    transform: scale(1.2); /* Etwas größer */
    margin-right: 8px;
}

small {
    color: #666;
    font-size: 11px;
    display: block;
    margin-top: 2px;
}

.timestamp {
    color: #666;
    font-size: 11px;
    display: block;
}

.erledigt-row {
    background: #f0f8f0 !important;
    opacity: 0.8;
}
select#editStatus {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

/*D0317 Ende */

/* D0299 Filter */
#filterArea {
    padding-top: 20px; /* Reduzieren */
    margin-bottom: 20px; /* Abstand zur Tabelle */
    margin-top: 0;
    position: relative;
    z-index: 10;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
    user-select: none;
    font-size: 0.875rem;
}
.filter-toggle-button {
    position: relative; /* Nicht sticky */
    margin-bottom: 15px;
    z-index: 20;
}
/* Filter Gruppieren */
.filter-row {
    display: flex;
    gap: 10px;           /* Abstand zwischen Gruppen */
    flex-wrap: wrap;     /* Zeilenumbruch bei zu wenig Platz */
    margin-bottom: 10px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    /* flex: 1 1 220px;      Gruppen brauchen mindestens 300px, wachsen flexibel */
    min-width: 180px;    /* Mindestbreite */
}

.filter-group label {
    min-width: 70px;     /* fixierte Labelbreite */
    font-weight: 600;
}
.filter-input, select {
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s, color 0.3s;
    color: #222;
}
.filter-input {
    color: black; /* Standardfarbe */
}
.filter-input:focus, select:focus {
    outline: none;
    border-color: #00796b;
    color: #00796b;
    box-shadow: 0 0 5px #00796baa;
}
/* Eingabetext blau wenn nicht leer */
.filter-input:not(:placeholder-shown),
.filter-input:focus,
select:not([value=""]) {
    color: blue;
}
/* Button Styles */
button {
    font-size: 0.95rem;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
    transition: background-color 0.3s;
    margin-bottom: 5px;
}

button:hover:not(:disabled) {
    filter: brightness(0.9);
}
/*Alle Filter zurücksetzen */
.btn-active {
    margin-left: 10px;
    background-color: #d32f2f; /* rot z.B. */
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-disabled {
    background-color: #ccc; /* grau */
    color: #666;
    cursor: not-allowed;
}
/* Bereich für Buttons */
.filter-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6px;
}
.filter-buttons button {
    min-width: 140px;
}
/* Responsive: Tabellen auf kleinen Bildschirmen */
@media (max-width: 768px) {
    /* Für Hauptansicht und Projekt-Tabellen */
    td.limited-content {
        max-height: 5em; /* Höhe limitieren, z.B. 3 Zeilen */
        overflow: hidden;
        display: -webkit-box; /* für mehrzeiligen Ellipsis (webkit-basiert) */
        -webkit-line-clamp: 3; /* max. 3 Zeilen sichtbar */
        -webkit-box-orient: vertical;
        cursor: pointer;
    }

    /*Filter-Bereich */
    /*form {
        font-size: 0.8rem;
        padding: 10px 12px;
    } */

    /*Filter gruppieren */
    .filter-row {
        flex-direction: column;
        gap: 8px;
    }

    .filter-group {
        min-width: auto;
        flex: none;
    }

    .filter-group label {
        min-width: 90px;
    }

    /* Filter Buttons
    .filter-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .filter-buttons button {
        min-width: 100%;
    } */

}
/*D0321*/
.legend-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap; /* bei kleinem Bildschirm untereinander */
}

.legend-form {
    flex: 0 1 40%; /*zuvor flex: 1 1 260px; */
}

.legend-row {
    margin-bottom: 12px;
}

.legend-image {
    flex: 0 0 220px;
    text-align: center;
}

.legend-image img {
    max-width: 200px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

/* Modal fürs große Bild */
.legend-modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.legend-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.legend-modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}
@media (max-width: 768px) {
    .legend-form {
        flex: 1 1 260px; /*zuvor flex: 1 1 260px; */
    }
}
/* Ende D0321*/
/* D0327 */
.scroll-to-vorschlaege {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 0.5rem 1rem;
    z-index: 999;
    opacity: 1;              /* 🔑 STANDARD sichtbar */
    transform: translateY(0);
    transition: all 0.3s ease;
    display: block;
    backdrop-filter: blur(10px);
    background: rgba(0, 130, 196, 0.1);
    border: 1px solid rgba(0, 130, 196, 0.3);
    color: #0082C4;
    border-radius: 25px;
    cursor: pointer;
}

/* 🔑 HIDDEN = UNSICHTBAR */
.scroll-to-vorschlaege.hidden {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    pointer-events: none !important;
}
/*D0327 Ende */
/* Mobile-Button in bottom-actions */
.scroll-btn {
    display: none; /* Desktop: versteckt */
}
@media (max-width: 768px) {


    /* Mobile: Scroll-Pfeil in bottom-actions anzeigen */
    .scroll-btn {
        display: block;
        background: rgba(255,255,255,0.2);
        border: none;
        font-size: 1.2rem;
        cursor: pointer;
        backdrop-filter: blur(10px);
        margin-bottom: 0px;
    }

    .scroll-btn.visible {
        display: block;
    }
    
}
/*Zitat */
.jm_button25small {
    padding: 5px 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    outline: none;
    color: #000;
    background-color: #E6E3E1;
    border: none;
    border-radius: 50px;
    margin: 1px;
}

/* Infoseite FB */

/* Container für Bilder + Text nebeneinander */
.fragetypen-wrapper {
    display: flex;
    flex-wrap: wrap; /* bricht um, wenn zu schmal */
    gap: 20px;
    align-items: flex-start;
    margin-top: 10px;
    border-bottom: 1px solid #ddd; /* dezenter Strich */
    padding-bottom: 10px;
}

/* Bilder nebeneinander */
.image-row {
    display: flex;
    gap: 20px;         /* Abstand zwischen den Boxen */
    justify-content: center;
    flex-wrap: wrap;   /* Bilder umbrechen, wenn es auf Handy zu eng wird */
}

.image-box {
    text-align: center;
    max-width: 500px;  /* Bilder nicht zu groß */
}
.text-box {
    max-width: 500px;  /* Bilder nicht zu groß */
}

.image-box img {
    max-width: 100%;
    height: auto;
}

.image-row img {
    max-width: 100%;
    height: auto;
    flex: 0 0 auto; /* verhindert Aufblasen */
}
.image-row img {
    object-fit: contain;
    border-radius: 8px;
}
/* Textbox rechts daneben, von .question-s/ds */
.fragetypen-text-box{
    /* margin-top: 20px; */
    flex:1;
    text-align: center;
}
.fragetypen-text {
    flex: 1; /* nimmt den restlichen Platz ein */
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
}
.question-ds {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(80,40,120,0.10);
    padding: 15px 18px 15px 18px;
    margin: 10px auto 0 5px;
    max-width: 530px;
}
.question-s {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(80,40,120,0.10);
    padding: 15px 10px 15px 10px;
    margin: 10px auto 0 auto;
    max-width: 530px;
}
body.dark .question-s {
    background: #1e1e1e;              /* dunkler Hintergrund, nicht ganz schwarz */
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4); /* dunkler, weicher Schatten */
    padding: 15px 10px;
    max-width: 530px;
    color: #e0e0e0;                   /* heller, neutraler Text */
}
/*D0334 Hamburger Menü */
.mobile-nav { display: none; }


/* Ab z.B. 768px runter: Desktop aus, Mobile + Bottom-Bar an */
@media (max-width: 768px) {
    /* Desktop-Menü ausblenden */
    .nav-center {
        display: none;
    }
    .bottom-actions { display: none !important;}
    .nav-left {
        display: flex;
    }
    .scroll-to-vorschlaege.visible {
        display: block !important;
    }

    /* Wrapper oben im Header */
    .mobile-nav {
        display: flex;
        justify-content: flex-end;   /* nach rechts */
        align-items: center;
        padding: 0.1rem 1rem;
        gap: 0.5rem;
    }

    /* Hamburger-Button */
    .hamburger {
        width: 42px;
        height: 42px;
        border-radius: 999px;
        border: none;
        background: rgba(255, 255, 255, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: relative;
        transition: background 0.2s ease, transform 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .hamburger:active {
        transform: scale(0.96);
    }

    /* Drei Linien (Icon) – falls du keine Emoji verwendest */
    .hamburger-line {
        position: relative;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 999px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .hamburger-line::before,
    .hamburger-line::after {
        content: "";
        position: absolute;
        left: 0;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 999px;
        transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease, opacity 0.2s ease;
    }
    .hamburger-line::before {
        top: -6px;
    }
    .hamburger-line::after {
        bottom: -6px;
    }

    /* Zustand wenn offen (per JS .is-open auf Button setzen) */
    .hamburger.is-open .hamburger-line {
        transform: rotate(45deg);
    }
    .hamburger.is-open .hamburger-line::before {
        top: 0;
        transform: rotate(-90deg);
    }
    .hamburger.is-open .hamburger-line::after {
        bottom: 0;
        opacity: 0;
    }

    /* Dropdown-Menü */
    .mobile-menu {
        position: absolute;
        top: 60px;          /* unter dem Header */
        right: 1rem;
        min-width: 280px;
        display: none;
        flex-direction: column;
        background: var(--bg-color);
        /* background: rgba(0,0,0,0.7); /#222 */
        border-radius: 0.75rem;
        box-shadow: 0 10px 25px rgba(0,0,0,0.35);
        overflow: hidden;
        z-index: 1000;
    }

    .mobile-menu a {
        padding: 0.85rem 1.1rem;
        display: block;
       /* color: #f5f5f5; */
        color: var(--text-color);
        text-decoration: none;
        font-size: 0.95rem;
    }

    .mobile-menu a + a {
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    .mobile-menu a:hover {
        background: rgba(255,255,255,0.06);
    }
}
/*D0336 Speicher-Button */
.jm_button-save{
    padding: 7px 25px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    outline: currentcolor;
    border-radius: 12px;
    margin-left: 1px;
    background: rgb(0, 130, 196);
    border: 1px solid rgb(0, 104, 160);
    color: rgb(249, 250, 251);
}
.jm_button-save:hover{
    background: #0068A0; /* dunkler Hover */
    border-color: #005A8C;
    color: #F9FAFB;
}

/* //D033X Ranking Styles - KOMPAKT */
.styled-table .grip {
    width: 28px; height: 28px; line-height: 24px;
    background: #f8f9fa; border: 1px solid #dee2e6;
    border-radius: 4px; margin-right: 6px;
    display: inline-flex; align-items: center;
    justify-content: center; font-size: 14px;
    cursor: grab; transition: all 0.15s;
}

.styled-table .grip:active {
    background: #e9ecef; border-color: #adb5bd;
}

.styled-table .reihe-input, .styled-table .rang-input {
    width: 45px; height: 32px; font-size: 15px;
    text-align: center; border: 1px solid #dee2e6;
    border-radius: 4px; font-weight: 600; padding: 0;
    background: white;
}

.styled-table .reihe-input:focus, .styled-table .rang-input:focus {
    border-color: #FFBB33; outline: none;
    box-shadow: 0 0 0 2px rgba(255,187,51,0.15);
    background: #fffaf0;
}

/* GESTRICHELTE LINIE (kompakt) */
.ui-sortable-placeholder {
    background: transparent !important;
    border: 2px dashed #FFBB33 !important;
    visibility: visible !important;
    height: 45px !important;  /* Kompakt */
    margin: 2px 0 !important;
}

/* SAUBERER HELPER (kein riesig/schief) */
.ui-sortable-helper {
    opacity: 0.95 !important;
    background: inherit !important;
    box-shadow: none !important;
    transform: none !important;
}

.ui-sortable-helper td {
    border-color: inherit !important;
}

/* Gäste: deaktiviert */
.readonly .grip {
    opacity: 0.4; pointer-events: none; cursor: default;
}
.readonly input[type=number] {
    background: #f8f9fa; pointer-events: none; cursor: default;
}
.readonly tr { cursor: default !important; }

/* Hover-Effekt */
.sortable tr:hover .grip {
    background: #e9ecef; border-color: #FFBB33;
}
.sortable tr:hover td:first-child {
    background: rgba(159, 159, 158, 0.55);
}

/* Mobile-Optimierung */
@media (max-width: 768px) {
    .grip { width: 32px; height: 32px; font-size: 16px; }
    .reihe-input, .rang-input { width: 50px; height: 36px; font-size: 16px; }
    .ui-sortable-placeholder { height: 55px !important; }
}
/* Text-Input wie Number aussehen lassen */
.reihe-input, .rang-input {
    width: 45px; height: 32px; font-size: 15px;
    text-align: center; border: 1px solid #dee2e6;
    border-radius: 4px; font-weight: 600; padding: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Number-Optik */
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
}

/* Mobile Numeric Keyboard */
.reihe-input, .rang-input {
    inputmode: "numeric";
    pattern: "[0-9]*";
}
.styled-table td[style*="display: flex"] {
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 55px !important;
}

.reihe-input, .rang-input {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
body.dark .grip {
    background: var(--bg-color-sec);
}
body.dark .grip:active {
    background: var(--bg-color); border-color: #adb5bd;
}
body.dark .sortable tr:hover .grip {
    background: var(--bg-color); border-color: #FFBB33;
}
.jm_button-save small{
    color: white;
}
/* Ende D033x */
/*D0349: Infoseite z.B.: Colly */
.step-container {
    display: flex;
    /* align-items: center;  Pfeil vertikal zentrieren zur Textbox */
    gap: 10px;
}

.text-box {
    max-width: 300px; /* optional: Breite der Textboxen */
}

.arrow-box {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
@media (max-width: 768px) {
    .step-container {
        flex-direction: column; /* untereinander */
        align-items: center;    /* zentriert */
    }

    .arrow-box {
        transform: rotate(90deg); /* Pfeil nach unten */
    }
}/*
section {
   min-height: 100vh;
    padding: 50px 20px 40px;
    box-sizing: border-box;
}
section {
    padding: 50px 20px 40px;
} */

.section-zusammen {
    padding: 50px 20px 40px;
    border-bottom: 1px solid #ddd;
}

.section-full {
    min-height: 100vh;
    scroll-snap-align: start;
}
.section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 60px 0 40px;
    color: #6b7280;
    font-size: 0.9rem;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.15);
}
.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 60px 0;
}

.subnav a {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.05);
    font-size: 0.85rem;
    text-decoration: none;
}
.scroll-indicator {
    text-align: center;
    opacity: 0.4;
    margin-top: 40px;
    font-size: 1.2rem;
}
