html { scroll-behavior: smooth; }

body { font: 30px/150% Montserrat-Light,Roboto,Georgia,Times,"Times New Roman",serif;
       letter-spacing: 0.02em;
       -webkit-hyphens: auto; hyphens: auto;
       padding: 0;
}

html, body {
        height: 100%;
        margin: 0;
    }
    
.page-container {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }
    
.page-content {
        flex: 1 0 auto;
    }
    
.footer {
        flex-shrink: 0;
    }

@font-face {
   font-family: "Montserrat-Light";
   src: local('Montserrat-Light'),
        url(/fonts/Montserrat-Light.ttf);
}

@font-face {
   font-family: "Montserrat-Thin";
   src: local('Montserrat-Thin'),
        url(/fonts/Montserrat-Thin.ttf);
}

@font-face {
   font-family: "fontawesome";
   src: local('fontawesome'),
        url(/fonts/fontawesome-webfont.ttf);
}

td { border:1px solid #bbb }
table td { vertical-align:top }


video { display:block; max-width:800px; margin:0px 0px 20px 0px }

h1, h3 { font-family: Montserrat-Thin }

h1 { font-size:15px; letter-spacing: 0.5em; line-height:15px; color:#fff; margin-bottom:0px }
h2, h3 { font-size:40px; line-height:60px }
.k1 { font-size:20px; line-height:20px }
.box1 { background:#eee; border-radius: 20px; padding:10px 20px }
.box1, #gallery { clear:right }

.content { margin: 0px 40px }

input[type=text], input[type=password], input[type=date] { min-height:30px; width:500px}
input[type=submit], button.translate-btn, button.btn-cancel  { height:50px; margin:0px; padding:0px }

input[type=submit] { width:508px; }

button[type=submit], button.translate-btn, button.btn-cancel {
            padding: 10px;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1em;
            margin-bottom:15px !important;
}

button[type=submit] {
            background: #0d6efd;
}


.download-auth-container {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    margin: 20px 0;
}



/* Standards für Input & Button im Formular */
.auth-form-group input[type="password"] {
    flex: 1; /* Nimmt auf Desktop den verfügbaren Platz ein */
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 18px;
    padding: 10px;
}

.auth-form-group .login-modal-btn {
    white-space: nowrap; /* Verhindert ungewollte Umbrüche im Button-Text */
    box-sizing: border-box;
    font-size: 20px;
}

.auth-form-group .login-modal-btn, .auth-form-group input[type="password"] {
    height: 50px;
}

.auth-form-group form {
    display: block;
    width: 100%;
}

.translate-btn {
    background: #66CCFF;
}
.translate-btn:hover { background: #99FFFF; }

.headline { background-color:#000; line-height:0px; padding:10px 3px; text-align:center }
.headline img { width:120px; margin:10px 0px 0px 0px }

.gal1,.gal2,.copy  { text-align:center; }
.gal1 { margin-bottom:80px; background-color:#41464f }


img { width:80% }
small img { position:relative; bottom:-5px; width:368px; height:24px }
small img.num { position:relative; bottom:0px; width:219px; height:19px }

#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
  gap: 1em;
}

#gallery > figcaption {
  grid-column: 1 / -1;
}

#cover, #cover img { width:100%; float:left }

figure {
    position: relative;
    width: 45%;
    height: auto;
    float: right;
    padding: 0.5em;
    border: 1px solid silver;
    margin: 0 1em 1em 2em;
}

#fig1 {
    width:30%;
}

figure img {
    width: 100%;
}

figcaption { font-style: italic; }


a.btn:link, a.btn:visited {
  background-color: #999;
  color: white;
  padding: 20px 50px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size:20px;
  line-height:30px;
  font-weight:bold;
  border-radius:35px;
  margin: 5px 0px;
  width: 443px;
}

#pagetop {
    font-family: fontawesome;
    background: #333;
    -webkit-border-radius: 50%;
    border: 5px solid #fff;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: none;
    font-size: 20px;
    line-height: 1;
    outline: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    text-decoration: none;
    width: 50px;
    height: 50px;
    z-index: 9999;
    padding:0px 0px 5px 0px
}

#pagetop:before {
    content: "\f077";
}

.lh0 {
    line-height: 0;
}


.error {
     background: #f8d7da;
     color: #842029;
     padding: 10px;
     border-radius: 4px;
     margin-bottom: 15px;
}

/* Hintergrund-Overlay */
.login-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;               /* Volle Displaybreite */
    height: 100vh;              /* Volle Displayhöhe */
    height: 100dvh;             /* Beachtet dynamische Adressleiste auf Android */
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;            /* Sehr hoher Z-Index */
    justify-content: center;
    align-items: center;
    -webkit-overflow-scrolling: touch;
}

/* Modal-Box */
.login-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 600px;
    max-width: 80%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #333;
    margin:0px;
}

/* Schließen-Button */
.login-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}
.login-modal-close:hover { color: #000; }

/* Grid für das Formular */
.login-modal-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 10px;
    align-items: center;
    margin-top: 15px;
}
.login-modal-grid label {
    font-weight: bold;
    text-align: right;
    font-size: 0.9em;
}
.login-modal-grid input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.login-modal-btn, .translate-btn, .btn-cancel {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding: 10px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}


.admin-downloads-header > button:last-of-type {
    color: #fff;
}

.login-modal-btn, .btn-download-action, .admin-downloads-header > button:last-of-type {
    background: #0d6efd;
}

.login-modal-btn:hover, .btn-download-action:hover, .admin-downloads-header > button:last-of-type:hover { background: #0b5ed7; }

.btn-cancel {
    background: #999;
}

.btn-cancel:hover { background: #aaa; }

/* ==========================================================================
   GALERIE DRAG & DROP SORTIERUNG (EDITMODUS)
   ========================================================================== */
.drag-sort-container {
    margin: 20px 0;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#sec-gallery-wrapper { margin-top:30px; }

.drag-sort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
.drag-sort-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}
.drag-sort-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 2px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
    cursor: grab;
    user-select: none;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.drag-sort-item:active {
    cursor: grabbing;
}

.drag-sort-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: opacity 0.15s ease, filter 0.15s ease;
}
.drag-sort-item.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}
.drag-sort-item.drag-over {
    border-color: #0d6efd;
    transform: scale(1.03);
}
.sort-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 11px;
    line-height: 22px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}
#sort-status-msg {
    font-size: 0.85em;
    color: #198754;
    font-weight: bold;
    display: none;
}

/* 1. Basis-Definition für das Abdunkel-Overlay */
.drag-sort-item .tile-dim-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.55); /* Dunkler halbtransparenter Schleier */
    opacity: 0;                             /* Standardmäßig unsichtbar */
    pointer-events: none;                   /* Klicks gehen an darunterliegende Elemente durch */
    z-index: 2;                             /* Über dem Bild, unter den Badges/Buttons */
    border-radius: 4px;
    transition: opacity 0.15s ease;
}

/* 2. Overlay bei versteckten Kacheln einblenden */
.drag-sort-item.is-hidden .tile-dim-overlay {
    opacity: 1;                             /* Macht den Schleier sichtbar */
}

        .drag-sort-item.is-hidden {
            filter: grayscale(35%);
            border: 2px dashed #6c757d;
        }

/* 3. Sicherstellen, dass Badges und Buttons über dem Overlay liegen und voll deckend bleiben */
.drag-sort-item .tile-select-checkbox,
.drag-sort-item .tile-delete-btn,
.drag-sort-item .sort-badge,
.drag-sort-item .tile-status-badges-left,
.drag-sort-item .tile-status-badges {
    z-index: 10;
    opacity: 1 !important;
    filter: none !important;
}

/* style00001 [ImageEditModal: Vorschau-Bild und erweitertes Formular] */

/* Vergrößere das Modal leicht für die Bilder-Formulare */
.login-modal-content.image-edit-content {
    width: 750px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Bild-Vorschau Bereich */
.image-preview-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.edit-modal-thumb {
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.image-preview-info {
    font-size: 0.9em;
    color: #555;
}

/* Layout der Eingabefelder (Label OBERHALB vom Input) */
.image-edit-grid .input-row,
.login-modal-content .input-row {
    display: flex;
    flex-direction: column;
    gap: 6px; /* Abstand zwischen Label und Input */
    align-items: flex-start;
    margin-bottom: 12px;
}

.image-edit-grid button[type=submit], .image-edit-grid button.translate-btn { width:100% }

.image-edit-grid label, .login-modal-content label {
    font-weight: bold;
    font-size: 0.85em;
    color: #444;
    white-space: nowrap; /* Verhindert Zeilenumbrüche auf dem Desktop! */
    overflow: visible;    /* Verhindert das Abschneiden von Buchstaben wie 'g' */
}

/* style00002 [ImageEditModal: Inputs und Textareas exakt bündig] */

.image-edit-grid input,
.image-edit-grid textarea,
#downloadGalleryModal input
 {
    width: 100%;
    max-width: 100%;       /* Verhindert, dass die Textarea über das Grid hinausragt */
    padding: 6px 8px;
    box-sizing: border-box; /* Wichtig für identische Inhaltsberechnung */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9em;
    display: block;        /* Verhindert Inline-Sizing-Abweichungen */
}

.image-edit-grid textarea {
    resize: vertical;      /* Erlaubt Vergrößern nur nach unten */
    overflow-y: auto;      /* Zeigt die Scrollleiste nur bei Bedarf an */
}

.image-edit-grid .full-width {
    grid-template-columns: 160px 1fr;
}


/* Toggle-Button-Leiste für den Editmodus */
.edit-toggle-bar {
    display: grid;
    /* Erstellt gleich breite Spalten. Die Spalten sind mindestens so breit
       wie der längste Text (+ Padding) und max. 300px groß */
    grid-template-columns: repeat(auto-fit, minmax(max-content, 300px));
    gap: 10px;
    margin: 20px 0 15px 0;
}

.edit-toggle-btn {
    width: 100%; /* Füllt die jeweilige Grid-Spalte komplett aus */
    white-space: nowrap; /* Text bleibt IMMER einzeilig */

    padding: 8px 16px;
    background: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #495057;
    transition: all 0.2s ease;
    text-align: center;
    box-sizing: border-box;
}

.edit-toggle-btn.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

        /* Modal-Overlay für Miniatur-Vollbild */
        #preview-modal-overlay {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.85);
            z-index: 999999;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            padding: 20px;
            box-sizing: border-box;
        }
        #preview-modal-img {
            max-width: 90%;
            max-height: 80vh;
            border-radius: 4px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.5);
        }
        #preview-modal-desc {
            color: #fff;
            margin-top: 15px;
            max-width: 80%;
            text-align: center;
            font-size: 1.1em;
        }
        #preview-modal-close {
            position: absolute;
            top: 15px;
            right: 25px;
            color: #fff;
            font-size: 35px;
            font-weight: bold;
            cursor: pointer;
        }

.tile-delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.1s ease;
}

.tile-delete-btn:hover {
    transform: scale(1.15);
    background: #dc3545;
}

/* style00005 [Gallery: Zentriertes grünes Häkchen bei Selektion] */

/* Versteckt die Standard-System-Checkbox */
.tile-select-checkbox {
    display: none !important;
}

/* 1. Kachel-Rahmen grün hervorheben */
.drag-sort-item.selected,
.ug-thumb-wrapper.selected-thumb {
    outline: 3px solid #28a745 !important;
    outline-offset: -3px !important;
    border-radius: 4px;
}

/* 2. Zentrales Häkchen-Icon über Pseudo-Element auf der Kachel */
.drag-sort-item.selected::after,
.ug-thumb-wrapper.selected-thumb::after {
    content: "\2713";
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 44px;
    height: 44px;
    background-color: #28a745; /* Kräftiges App-Grün */
    color: #ffffff;
    font-size: 26px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 999;
    pointer-events: none; /* Klicks gehen durch das Häkchen hindurch */
    animation: checkmarkPop 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 4. Das Häkchen bei Auswahl bleibt zuoberst */
.drag-sort-item.selected::after {
    z-index: 999 !important;
}

/* 3. Bild leicht abdunkeln, damit das Häkchen besser heraussticht */
.drag-sort-item.selected img,
.ug-thumb-wrapper.selected-thumb img {
    opacity: 0.75 !important;
    filter: brightness(0.9) !important;
}

/* Pop-Effekt beim Erscheinen */
@keyframes checkmarkPop {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* style00004 [Gallery: Aktionsbuttons für Mehrfachauswahl] */
.select-actions-bar {
    display: block;
    width:100%;
    gap: 8px;
    align-items: center;
}

.btn-select-action {
    padding: 5px 10px;
    border: 1px solid #ced4da;
    background: #eee;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.82em;
    font-weight: 600;
    transition: all 0.15s ease;
}

.btn-select-action:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

#btn-delete-selected {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

#btn-delete-selected:hover {
    background: #bb2d3b;
    border-color: #b02a37;
}

#btn-deselect-all-edit, #btn-hide-selected, #btn-show-selected, #btn-delete-selected {
    display: none;
}

/* Container, der Input/Textarea, Clear- und Stempel-Button vereint */
.stamp-input-wrapper {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.stamp-input-wrapper .stampable-input {
	flex: 1;
	border: none !important;
	outline: none !important;
	padding: 6px 10px;
	background: transparent;
}

/* Gemeinsame Basis-Styles für die Buttons im Wrapper */
.clear-btn,
.stamp-btn {
	background: #f8f9fa;
	border: none;
	border-left: 1px solid #e0e0e0;
	padding: 0 10px;
	cursor: pointer;
	color: #888;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

/* Spezifische Anpassungen für den Clear-Button */
.clear-btn:hover {
	background: #fee2e2;
	color: #dc2626;
}

/* Spezifische Anpassungen für den Stempel-Button */
.stamp-btn:hover {
	background: #e9ecef;
	color: #333;
}

/* Aktiv-Zustand des Stempels (Orange-Hervorhebung) */
.stamp-input-wrapper.stamped {
	border-color: #ff9800;
	box-shadow: 0 0 5px rgba(255, 152, 0, 0.4);
}

.stamp-input-wrapper.stamped .stamp-btn {
	background: #ff9800;
	color: #fff;
	border-left-color: #e68a00;
}

/* Stempel-Button in der Galerie-Toolleiste */
.stamp-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: not-allowed;
    opacity: 0.6;
    font-weight: bold;
    transition: all 0.25s ease;
}

.stamp-action-btn.hidden {
    display: none !important;
}

/* Hervorgehobener Zustand wenn Bilder ausgewählt sind */
.stamp-action-btn.ready {
    background-color: #ff9800;
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

.stamp-action-btn.ready:hover {
    background-color: #e68a00;
}

/*
.input-row input[type="text"]:not(.stampable-input) {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
*/

/* Container rechts unten auf der Miniatur */
.tile-status-badges {
    position: absolute;
    bottom: 4px;
    right: 4px;
    display: flex;
    gap: 3px;
    z-index: 2;
    pointer-events: none;
}

/* Einheitliches Design für die kleinen Buchstaben-Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: 800;
    font-family: sans-serif;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    line-height: 1;
}

/* Container für Badges in der linken Ecke */
.tile-status-badges-left {
    position: absolute;
    bottom: 4px;
    left: 4px;
    display: flex;
    gap: 3px;
    pointer-events: none;
    z-index: 2;
}

/* Spezielles Styling für das versteckte Auge-Icon: Schwarzer Grund, weiße Linie */
.status-badge.hidden-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.85); /* Schwarzer Hintergrund */
    backdrop-filter: blur(2px);
    color: #ffffff; /* Weiße Icon-Linien */
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    z-index: 3; /* Sicherstellen, dass Badges über dem Overlay liegen */

}

.status-badge.hidden-icon svg {
    width: 14px;
    height: 14px;
    stroke: #ffffff; /* Explizit weiß */
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* 1. Vollständig LEER (Kräftiges Orange) */
.status-badge.missing-info {
    color: #ffb74d;
    border: 1px solid rgba(255, 183, 77, 0.6);
}

/* 2. TEILWEISE leer (Blass / Halbtransparent) */
.status-badge.missing-info.partial {
    color: rgba(255, 183, 77, 0.4);
    border: 1px solid rgba(255, 183, 77, 0.2);
    background: rgba(0, 0, 0, 0.4); /* Auch der Hintergrund etwas dezent heller/transparenter */
}

/* Dezent unterschiedliche Farben für schnelle Unterscheidung */
.status-badge.missing-map  { color: #64b5f6; border: 1px solid rgba(100, 181, 246, 0.4); } /* Blau für Map */
.status-badge.missing-wiki { color: #e0e0e0; border: 1px solid rgba(224, 224, 224, 0.4); } /* Hellgrau für Wiki */

/* Stellt sicher, dass Reihen mit 'full-width' beide Spalten im Grid überspannen */
.form-fields-container .input-row.full-width {
    grid-column: 1 / -1;
    width: 100%;
}

/* style00007 [Compact Round Share Icon Buttons] */
#gallery-share-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 38px;
    background: #ffffff;
    width: 100%;
/*
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    border-radius: 30px;
*/
    transition: all 0.3s ease;
}

#gallery-share-bar.disabled {
    opacity: 0.35;
    filter: grayscale(1);
    pointer-events: none;
}

#gallery-share-bar .share-title, #gallery-share-bar .share-append-link-label {
    font-weight: 600;
    font-size: 13px;
    color: #555;
    margin-right: 4px;
    line-height: 100%;
}

/* style00020 [Share Bar Layout, Custom Title Field & Corrected Pointer Events] */
/* style00022 [Share Bar Layout, Cross-Browser Placeholder & Responsive Spacing] */

/* Hauptcontainer für Share-Buttons & Titel-Eingabe */
.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    transition: opacity 0.3s ease;
    flex-direction: column;
    justify-content: center;
}

.share-custom-title-input {
        margin-top: 5px;
}

/* Deaktivierter Zustand: Buttons ausgrauen */
.share-bar.disabled {
    opacity: 0.5;
}

/* Klicksperre im deaktivierten Zustand NUR auf den Buttons */
.share-bar.disabled .btn-share {
    pointer-events: none;
    cursor: not-allowed;
}

/* Beschriftung "Teilen:" */
.share-title {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin-right: 4px;
}

/* Kleine, runde Icon-Buttons */
.btn-share {
    flex-shrink: 0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, opacity 0.2s ease, background-color 0.2s ease;
    padding: 0;
}

.btn-share:hover {
    transform: translateY(-2px);
}

.btn-share:active {
    transform: scale(0.9);
}

/* Farben */
.share-native { background-color: #28a745; }
.share-whatsapp { background-color: #25D366; }
.share-facebook { background-color: #1877F2; }
.share-x { background-color: #000000; }
.share-email { background-color: #6c757d; }

/* Eingabefeld für den benutzerdefinierten Titel */
.share-custom-title-input {
    display: none; /* Im deaktivierten Zustand aus dem Layout entfernen */
    min-width: 180px;
    height: 36px !important;
    padding: 0 12px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 9999px;
    color: #222222;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    pointer-events: auto;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Erst im Layout einblenden, wenn die Leiste aktiv ist */
.share-bar:not(.disabled) .share-custom-title-input {
    display: block;
}

/* Platzhalter-Text (Placeholder) für alle Browser-Engines erzwungen */
.share-custom-title-input::-webkit-input-placeholder { color: #777777 !important; opacity: 1 !important; }
.share-custom-title-input::-moz-placeholder { color: #777777 !important; opacity: 1 !important; }
.share-custom-title-input:-ms-input-placeholder { color: #777777 !important; opacity: 1 !important; }
.share-custom-title-input::placeholder { color: #777777 !important; opacity: 1 !important; }

/* Focus-Zustand */
.share-custom-title-input:focus {
    border-color: #0066cc;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.share-append-link-label {
    display:none;
    align-items:center;
    gap:5px;
/*  margin-left:8px;  */
    cursor:pointer;
}

/* Erst im Layout einblenden, wenn die Leiste aktiv ist */
.share-bar:not(.disabled) .share-append-link-label {
    display: inline-flex;
}

/* style00023 [Gallery Share Button & Fallback Modal] */
.share-gallery-wrapper {
    text-align: center;
    margin: 15px 10px 5px 10px;
}

.btn-share-gallery {
    background: transparent;
    border: 1px solid #ccc;
    color: #555;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    height: 45px;
}

.btn-share-gallery:hover {
    color: #fff;
    border-color: #333;
    background: #333;
}

.btn-share-gallery.disabled,
.btn-share-gallery:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(100%);
}

/* Modal Styles */
.share-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.share-modal-card {
    background: #1a1a1a;
    color: #fff;
    padding: 24px;
    border-radius: 10px;
    width: 90%;
    max-width: 380px;
    position: relative;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
}

.share-modal-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
}

.share-modal-close:hover { color: #fff; }

.share-modal-card h3 { margin: 0 0 5px 0; font-size: 18px; }

.share-modal-subtitle { font-size: 13px; color: #aaa; margin-bottom: 20px; }

.share-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.share-btn {
    display: block;
    padding: 9px 0;
    border-radius: 6px;
    text-decoration: none;
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
}

.share-btn.wa { background: #25D366; }
.share-btn.fb { background: #1877F2; }
.share-btn.pin { background: #E60023; }
.share-btn.mail { background: #555; }
.share-btn:hover { opacity: 0.9; }

.share-copy-box {
    display: flex;
    gap: 8px;
}

.share-copy-box input {
    flex: 1;
    background: #000;
    border: 1px solid #333;
    color: #888;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
}

.share-copy-box button {
    background: #333;
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
}

.share-copy-box button:hover { background: #444; }

.share-gallery-hint {
    margin-top:5px;
    font-size: 18px;
    line-height: 25px;
    color: #888;
    font-style: italic;
    letter-spacing: 0.3px;
}

/* style00010 [Disable Context Menu / Touch Callout for Gallery Images] */
.ug-thumb-wrapper,
.ug-thumb-wrapper *,
#gallery img {
    -webkit-touch-callout: none !important; /* iOS Callout */
    -webkit-user-select: none !important;   /* Safari/Chrome */
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;           /* Standard */
    -webkit-user-drag: none !important;     /* Verhindert Dragging */
}

#gallery-selection-controls {
/*  width:100%; */
    margin-bottom: 30px;
    display: block;
    gap: 10px;
    text-align: center;
    }

#gallery-selection-controls button {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    line-height: 20px;
    }

#btn-deselect-all.disabled,
#btn-deselect-all:disabled {
    opacity: 1;
    color: #000;
    pointer-events: none;
    cursor: not-allowed;
    }

/* style00003 [Gallery: Selection and Marking Styles]

.ug-thumb-wrapper.selected-thumb {
    outline: 4px solid #007bff !important;
    outline-offset: -4px !important;
    opacity: 0.85 !important;
}

.ug-thumb-wrapper.selected-thumb::after {
    content: "?";
    position: absolute;
    top: 5px;
    right: 5px;
    background: #007bff;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-weight: bold;
    font-size: 12px;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

*/



/* Unitegallery - Ergaenzung */

/* Layout-Schutz: Niemals den ug-thumb-wrapper in Position/Display verändern! */

/* Transparenz für versteckte Kacheln (publish=0) */
#gallery .ug-thumb-wrapper.is-hidden-preview img,
#gallery .ug-thumb-wrapper.is-hidden-preview .ug-tile-outer {
    opacity: 0.45 !important;
}

#gallery .ug-thumb-wrapper.is-hidden-preview:hover img,
#gallery .ug-thumb-wrapper.is-hidden-preview:hover .ug-tile-outer {
    opacity: 0.75 !important;
}

/* Das Overlay wird absolut im inneren Wrapper positioniert */
.hidden-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 999;
}

.hidden-preview-overlay svg {
    width: 32px;
    height: 32px;
    stroke: #ffffff;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.9));
}

.container { max-width: 800px; }
/* .total-card { background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 25px; border-left: 4px solid #00adf0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); color: #333; } */
.total-card { background: #eee; padding: 20px; border-radius: 8px; border: 1px solid #ddd; margin-bottom: 25px; color: #333; }
.total-card strong { font-size: 1.4rem; color: #0088cc; }
/* style00003 [Table Border Fix - Separate Collapsing] */
.container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #f9f9fb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #ddd !important;
}
.container th, .container td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #e0e0e0; color: #333333; }
.container th { background: #e9ecef; color: #495057; font-weight: 600; text-transform: uppercase; font-size: 0.85rem; }
.container td { border: none; }
.container .badge-fb { color: #1877f2; font-weight: bold; }
.container .badge-total { color: #2e7d32; font-weight: bold; }
.container .time { color: #6c757d; font-size: 0.85rem; }

.btn-date-preset {
    background: #f0f0f0;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.78em;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-date-preset:hover:not(:disabled) {
    background: #e0e0e0;
    border-color: #bbb;
    color: #111;
}
.btn-date-clear {
    color: #a00000;
    border-color: #f5c6cb;
    background: #fdf2f2;
}
.btn-date-clear:hover:not(:disabled) {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}
.btn-date-preset:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(100%);
}

/* --- Desktop Standard-Design --- */
.download-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
}

.download-admin-table th,
.download-admin-table td {
    padding: 10px 8px;
    text-align: left;
}

.download-admin-table thead tr {
/*    border-bottom: 2px solid #ccc;   */
}

.download-admin-table .col-cb {
    width: 30px;
    text-align: center;
}

.download-admin-table .col-actions {
    text-align: right;
}

/* Action Icons Styling */
.action-buttons {
    display: inline-flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    color: #555;
    background: #f0f0f0;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-action:hover {
    background: #e0e0e0;
}

.btn-action.btn-edit:hover {
    color: #007bff;
    background: #e6f0ff;
}

.btn-action.btn-delete:hover {
    color: #dc3545;
    background: #ffe6e6;
}

/* Standardmäßig sichtbar */
.btn-text-optional {
    display: inline;
}

/* Farbliche Abhebung für selektierte Tabellenzeilen (Desktop & Mobile) */
.download-admin-table tbody tr.selected {
    background-color: #d1e7dd !important; /* Dezentes Grün (oder z.B. #e2e3e5 für Grau) */
    transition: background-color 0.2s ease;
}

/* Haupt-Container der Toolbar */
.gallery-controls-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background-color: #f8f9fa;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Auswahltasten (Alle / Keine) */
.gallery-select-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    background: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-control:hover:not(.disabled) {
    background: #e9ecef;
    border-color: #adb5bd;
}

.btn-control.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Download-Bereich (Optische Trennung) */
.gallery-download-controls {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.dl-option-group {
    display: flex;
    align-items: stretch;
    gap: 14px;
    background: #ddd;
    padding: 4px 10px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.dl-control-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #495057;
    cursor: pointer;
    white-space: nowrap;
}

.dl-select {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ced4da;
    background-color: #fff;
    font-size: 13px;
}

.dl-range {
    vertical-align: middle;
    width: 150px;
    cursor: pointer;
}

.dl-badge {
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    min-width: 38px;
    text-align: center;
}

/* Haupt-Download Button */
.btn-download-action {
    justify-content: center;
    padding: 5px 30px !important;
    font-weight: 600;
    color: #fff;
    border-color: #fff !important;
    border-radius: 5px !important;
    transition: background-color 0.2s ease;
    min-height: 50px;
    height: 100%;
}

.btn-download-action:hover:not(.disabled) {
    background-color: #0b5ed7;
}

.btn-download-action.disabled {
    background-color: #6c757d;
    opacity: 0.65;
    cursor: not-allowed;
}

/* --- Quick Download Button im Thumb --- */
.ug-thumb-quick-download {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.ug-thumb-quick-download:hover {
    background: #007bff;
}

 .download-action-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.admin-downloads-header {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Container für Modal-Buttons */
.modal-button-group {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    align-items: stretch; /* Garantiert gleiche Höhe aller Buttons */
}

/* Gemeinsame Basis für die Buttons im Modal */
.modal-button-group button,
.modal-button-group .login-modal-btn,
.modal-button-group .btn-cancel {
    box-sizing: border-box;
    margin: 0; /* Verhindert ungewollte Standard-Abstände */
    padding: 0px 16px; /* Einheitliches Innen-Padding für gleiche Höhe */
    font-size: 0.95em;
    line-height: 1.2;
    align-items: center;
    justify-content: center;
}

.login-modal-content h3 {
    font-weight:bold;
    margin:0px;
}

.login-modal-content .share-gallery-hint {
    margin-bottom:20px;
}

/* --- Inline Edit Styles --- */
td.editable {
    position: relative;
    cursor: pointer;
    transition: background-color 0.15s ease;
    vertical-align: middle !important; /* Erzwingt vertikale Zentrierung in der Tabellenzelle */
}

/* Stift-Icon (Dezent SVG) */
td.editable::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2007bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'%3E%3C/path%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.25;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

td.editable:hover::after {
    opacity: 0.85;
}

td.editable.editing::after {
    display: none;
}

/* Input-Wrapper: Zwingt den Inhalt exakt auf die maximale Zellbreite */
.inline-edit-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 3. Das Input-Feld: Dynamische Breite, etwas höher & größere Schrift */
.inline-edit-input {
    flex: 1 1 0%; /* Zwingt Flexbox, das Feld auf den verbleibenden Platz zu schrumpfen */
    min-width: 0 !important; /* Verhindert das Überquellen aus der Tabellenzelle */
    width: 100% !important;
    height: 34px !important; /* Etwas höher für bessere Bedienbarkeit */
    padding: 4px 8px !important;
    font-size: 0.95rem !important; /* Schrift etwas größer */
    line-height: 1.2 !important;
    border: 1px solid #007bff !important;
    border-radius: 4px !important;
    outline: none !important;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.3) !important;
    background: #ffffff !important;
    color: #333333 !important;
    box-sizing: border-box !important;
}

/* Speichern- & Abbrechen-Buttons */
.inline-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 34px; /* Gleiche Höhe wie das Input-Feld */
    padding: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

.inline-edit-save {
    background-color: #28a745;
    color: #ffffff;
}
.inline-edit-save:hover {
    background-color: #218838;
}

.inline-edit-cancel {
    background-color: #dc3545;
    color: #ffffff;
}
.inline-edit-cancel:hover {
    background-color: #c82333;
}

.inline-edit-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

/* style00004 [CSS: Stift-Icon größer (16px) und rechtsbündig am Zellenrand positioniert] */

/* Basis-Styling für bearbeitbare Zellen: Richtet Inhalt links und Icon rechtsbündig aus */
.download-admin-table td.editable {
    position: relative;
    cursor: pointer;
}

/* Der Container mit dem Textwert erstreckt sich über die volle Breite */
.download-admin-table td.editable .cell-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

/* Stift-Icon: Vergrößert auf 16px und rechts am Rand positioniert */
.download-admin-table td.editable .cell-value::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: auto; /* Stößt das Icon ganz nach rechts */
    padding-left: 15px; /* Verhindert das Aufkleben am Text */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'%3E%3C/path%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0; /* Standardmäßig auf Desktop unsichtbar */
    transition: opacity 0.2s ease-in-out;
}

/* Hover-Effekt auf Desktop */
.download-admin-table td.editable:hover .cell-value::after {
    opacity: 0.8;
}

/* =========================================================
   Zusammengefasste Responsive-Anpassungen (Smartphones & Tablets)
   ========================================================= */
@media screen and (max-width: 768px) {

    /* --- Typografie & Allgemeine Elemente --- */
    body {
        -webkit-hyphens: auto;
        hyphens: auto;
    }
    h1 {
        font-size: 10px;
        line-height: 10px;
        letter-spacing: 0.2em;
        margin-top: 10px;
    }
    h2, h3 {
        font-size: 120%;
        line-height: 140%;
    }
    .k1 {
        font-size: 60%;
        line-height: 60%;
    }
    .content {
        font-size: 80%;
        line-height: 140%;
        margin: 0 10px;
    }
    .box1 {
        padding: 10px;
    }
    img.logo {
        width: 200px;
    }
    .headline img {
        width: 80px;
    }
    video {
        width: 100%;
    }
    small img {
        position: relative;
        bottom: -5px;
        width: 100%;
    }
    figure, #fig1 {
        width: auto;
        margin: 0 auto 1em auto;
        float: none;
    }

    /* --- Formulare, Inputs & Buttons --- */
    input[type=text],
    input[type=password] {
        height: 50px;
        width: 98%;
    }
    input[type=submit],
    button[type=submit],
    button.translate-btn,
    button.btn-cancel {
        height: 60px;
        width: 100%;
    }
    a.btn:link,
    a.btn:visited {
        padding: 20px 0;
        background-color: #00DC00;
        width: 100%;
    }
    .share-custom-title-input,
    .gallery-share-bar,
    .btn-share-gallery,
    .download-action-group {
        width: 100%;
    }
    
    .btn-share-gallery {
        background: #f0f0f0;
    }
    .share-gallery-hint {
        display: block !important;
    }

    /* --- Layouts & Modals --- */
    .edit-toggle-bar {
        grid-template-columns: 1fr; /* 1 Spalte = 100% Breite */
    }
    .modal-button-group {
        flex-direction: column-reverse; /* Primary Button oben, Cancel unten */
        width: 100%;
    }
    .modal-button-group button,
    .modal-button-group .login-modal-btn,
    .modal-button-group .btn-cancel {
        width: 100%;
    }
    .login-modal-btn .btn-text-optional {
        display: none;
    }
    .auth-form-group {
        flex-direction: column;
    }
    .auth-form-group input[type="password"],
    .auth-form-group .login-modal-btn {
        width: 100% !important;
        margin-bottom: 10px;
    }
    .image-edit-grid label {
        text-align: left;
        white-space: normal;
    }
    .image-edit-grid .input-row {
        grid-template-columns: 140px 1fr;
        gap: 10px;
    }

    /* --- Tabellen-Transformation (Cards im Mobile-Modus) --- */
    .download-admin-table thead {
        display: none;
    }
    .download-admin-table,
    .download-admin-table tbody,
    .download-admin-table tr,
    .download-admin-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        border: none;
    }
    .download-admin-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 15px;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        overflow: hidden;
    }
    .download-admin-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 8px 12px;
        border-bottom: 1px dashed #eee;
    }
    .download-admin-table td:last-child {
        border-bottom: none;
        background-color: #eee;
    }
    .download-admin-table tbody td:first-child {
        background-color: #ddd;
        font-weight: bold;
    }
    .download-admin-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #666;
        text-align: left;
        padding-right: 10px;
    }
    .download-admin-table td.col-cb {
        justify-content: space-between;
    }
    .download-admin-table .action-buttons {
        justify-content: flex-end;
    }
    .download-admin-table tbody tr.selected td:first-child {
        background-color: #a3cfbb !important;
    }
    .download-admin-table tbody tr.selected td:last-child {
        background-color: #c1e1c1 !important;
    }

    /* --- Galerie- & Download-Steuerung --- */
    .gallery-controls-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }
    .gallery-select-group {
        width: 100%;
    }
    .gallery-select-group .btn-control {
        flex: 1;
        justify-content: center;
    }
    .gallery-download-controls {
        flex-direction: column;
        align-items: stretch;
        border-left: none;
        border-top: 1px solid #dee2e6;
        padding-left: 0;
        padding-top: 10px;
        gap: 10px;
    }
    .dl-option-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }
    .dl-control-label {
        justify-content: space-between;
        width: 100%;
    }
    .dl-action-group,
    .btn-download-action {
        width: 100%;
        height: 60px;
    }
    .dl-range {
        width: 65%;
    }
    
/* Behebt den vertikal verschobenen Klickbereich auf Smartphones */
    .download-admin-table td.editable {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 10px !important;
        min-height: 44px; /* Angemessene Touch-Target-Höhe */
        box-sizing: border-box !important;
    }

    /* Stellt sicher, dass der Cell-Value genau an der richtigen Stelle liegt */
    .download-admin-table td.editable .cell-value {
        display: inline-block;
        margin: 0;
        padding: 0;
        vertical-align: middle;
    }

    .download-admin-table td.editable .inline-edit-wrapper {
        width: 60%; /* Breitenverteilung im Card-Layout */
        max-width: 60%;
    }

    .download-admin-table td.editable::after {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .download-admin-table td.editable .cell-value::after {
        opacity: 0.85;
        width: 18px;
        height: 18px;
    }

}

.share-gallery-hint.expire-warning {
    margin-top: 20px;
    color: red;
}

/* Sanfter Übergang für das Ein-/Ausblenden */
#btn-delete-galleries {
    transition: visibility 0.2s ease, opacity 0.2s ease;
}

/* Admin-Button für neue Menüpunkte */
.menu-add-item {
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.btn-add-menu-entry {
    font-style: italic !important;
    opacity: 0.75;
    color: #81c784 !important; /* Dezent grün gefärbt zur Abhebung */
    transition: opacity 0.2s ease, color 0.2s ease;
    background: #666;
}

.btn-add-menu-entry:hover {
    opacity: 1;
    color: #BAFFBB !important;
    background-color: rgba(255, 255, 255, 0.05);
}
