.print-list-box {
    display: none;
    border: 2px solid #000000ff !important;
}
.print-list-box.show {
    display: block !important;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-selected {
    background-color: #28a745 !important;
    border-color: #e0df00 !important;
    color: white !important;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
    border-radius: 3px;
}

.btn-gelb {
    border-color: #254461 !important;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
    border-radius: 3px;
}

.btn-blau {
    background-color: #007bff !important;
    border-color: #254461 !important;
    color: white !important;
    border-radius: 3px;
}

/* Status-Farben für Buttons und Badges */
.status-gelb {
    background-color: #ffff00 !important;
    color: #000 !important;
    border: 1px solid #254461 !important;
}
.status-hellgruen {
    background-color: #90ee90 !important;
    color: #000 !important;
    border: 1px solid #254461 !important;
}
.status-bronze {
    background-color: #cd7f32 !important;
    color: #fff !important;
    border: 1px solid #254461 !important;
}
.status-silber {
    background-color: #c0c0c0 !important;
    color: #000 !important;
    border: 1px solid #254461 !important;
}
.status-gold {
    background-color: #ffd700 !important;
    color: #000 !important;
    border: 1px solid #254461 !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.status-standard {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.begehungen-badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.9em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    min-width: 35px;
}

.nutzergruppe-cell {
    min-width: 80px;
    vertical-align: middle !important;
}

.icon-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 40px;
    justify-content: center;
}
.icon-container img {
    display: block;
}
.icon-container .kurzl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.65rem;
    line-height: 1;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.85), -1px -1px 3px rgba(0,0,0,0.85);
    z-index: 2;
}


.icon-placeholder {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 3px;
}

.nutzergruppe-text {
    font-size: 0.7em;
    color: #6c757d;
    margin-top: 2px;
    text-align: center;
}

.legende-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}
.legende-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
}
.legende-color-box {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 3px;
    border: 1px solid #254461;
}

/* Mobile View Styles */
.mobile-route-card {
    display: none;
    border: 3px solid #254461;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background: white;
}

.mobile-route-header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 8px;
    cursor: pointer;
    gap: 6px;
    min-height: 50px;
    overflow: hidden;
}

.mobile-route-name {
    display: flex;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.mobile-route-title {
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-route-difficulty {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
}

.mobile-route-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.mobile-route-actions .btn {
    padding: 4px 6px;
    font-size: 11px;
    min-width: 30px;
}

.mobile-route-details {
    display: none;
    padding: 15px;
    background: white;
    border-top: 2px solid #e0df00;
}

.mobile-route-details.show {
    display: block;
}

.mobile-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.mobile-detail-row:last-child {
    border-bottom: none;
}

.mobile-detail-label {
    font-weight: bold;
    color: #254461;
}

.mobile-detail-value {
    color: #333;
    text-align: right;
}

@media (max-width: 512px) {
    .table-responsive {
        display: none !important;
    }
    .mobile-route-card {
        display: block !important;
    }
    .mobile-search-container {
        display: block !important;
    }
}

.mobile-search-container {
    display: none;
}

/* Zurück-Button Styling */
.zurueck-button {
  display: inline-block;
  padding: 12px 30px;
  margin-bottom: 20px;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  border: none;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.zurueck-button:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}

/* Routen-Button Styling (gleicher Style wie zurueck-button) */
.routen-button {
  display: inline-block;
  padding: 12px 30px;
  margin-bottom: 20px;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  border: none;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
}

.routen-button:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
}
.navbar-climbr {
    background: linear-gradient(90deg, #254461 0%, #1e3548 100%);
}

/* Logo Home Button */
.logo-home-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    margin: 0;
    display: inline-block;
    line-height: 1;
    transition: all 0.2s ease;
    text-decoration: none !important;
    border-radius: 2px;
}
.logo-home-btn:hover {
    background-color: #e0df00;
    transform: scale(1.05);
}
.logo-home-btn img {
    height: 40px;
    width: auto;
    filter: brightness(1.1);
}
.hero-section {
    background: linear-gradient(135deg, #254461 0%, #1e3548 100%);
    color: #e0df00;
    padding: 3rem 0;
    margin-bottom: 0;
}
.stat-card {
    position: relative;
    background: #e1ebf1ff;
    padding: 10px;           /* ca. 20 % kleiner */
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 4px #e0df00;
    height: 80px;           /* etwas kompakter */   
}

/* 5 Karten in einer Zeile ab 800px Breite */
@media (min-width: 800px) {
    .stat-col {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }
}

/* Icon links oben */
.stat-card i {
    position: absolute;
    top: 10px;
    left: 10px;
    margin: 10px;
}

/* Wert rechts oben */
.stat-number, 
.klettermeter {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Label unten mittig */
.stat-label {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    font-size: 1rem;
}

.activity-item {
    border-left: 4px solid #254461;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.activity-success {
    border-left-color: #3CB371;
}
.activity-fail {
    border-left-color: #FF6F61;
}

/* Aktivitätslevel Farben - climbr.zone harmonisch */
.activity-low {
    background-color: rgba(135, 206, 250, 0.3);
    border-left: 4px solid #87CEFA;
}
.activity-medium {
    background-color: rgba(60, 179, 113, 0.3);
    border-left: 4px solid #3CB371;
}
.activity-high {
    background-color: rgba(224, 223, 0, 0.3);
    border-left: 4px solid #e0df00;
}
.activity-extreme {
    background-color: rgba(255, 111, 97, 0.3);
    border-left: 4px solid #FF6F61;
}
/* Grauer Button für eingeschränkte Benutzer (freeuser, freehalle, freesetzer, gast) */
.routen-button-restricted {
  display: inline-block;
  padding: 12px 30px;
  margin-bottom: 20px;
  background-color: #808080;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
}

.routen-button-restricted:hover {
  background-color: #a0a0a0;
  color: #ffffff;
}

/* Nutzergruppen-Icon mit kurzl-Overlay */
.icon-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.icon-container img {
    display: block;
}
.icon-container .kurzl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.65rem;
    line-height: 1;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.85), -1px -1px 3px rgba(0,0,0,0.85);
    z-index: 2;
}

/* Mobile Icon-Container */
.mobile-ng-icon {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.mobile-ng-icon img {
    display: block;
}
.mobile-ng-icon .kurzl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.85), -1px -1px 3px rgba(0,0,0,0.85);
    z-index: 2;
}

/* Nutzergruppen-Beschreibungs-Overlay */
.nutzergruppe-fulloverlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    color: white;
    text-align: center;
    backdrop-filter: blur(5px);
    cursor: pointer;
}
.nutzergruppe-fulloverlay.active {
    display: flex;
}
.nutzergruppe-fulloverlay img {
    max-width: 220px;
    max-height: 220px;
    border-radius: 12px;
}
.nutzergruppe-fulloverlay .ng-description {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 30px;
    max-width: 80%;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.nutzergruppe-fulloverlay .ng-close-hint {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

    border-left: 4px solid #FF6F61;
}

/* Legende für Aktivitätslevel */
.legend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.legend-color {
    width: 30px;
    height: 20px;
    border-radius: 1px;
    border: 2px solid #254461;
}
.legend-color.activity-low {
    background-color: #87CEFA;
}
.legend-color.activity-medium {
    background-color: #3CB371;
}
.legend-color.activity-high {
    background-color: #e0df00;
}
.legend-color.activity-extreme {
    background-color: #FF6F61;
}

/* Button Styles - alle Buttons gelb */
.btn-primary {
    background-color: #e0df00 !important;
    border-color: #254461 !important;
    color: #254461 !important;
}
.btn-primary:hover {
    background-color: #254461 !important;
    border-color: #e0df00 !important;
    color: #ffffffff !important;
}
.btn-outline-primary {
    color: #e0df00 !important;
    border-color: #e0df00 !important;
}
.btn-outline-primary:hover {
    background-color: #e0df00 !important;
    border-color: #e0df00 !important;
    color: #254461 !important;
}
.text-primary {
    color: #e0df00 !important;
}

.no-overflow {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Button Styles - alle Buttons gelb */
.btn-secondary {
    background-color: #254461 !important;
    color: #e0df00 !important;
    border-color: #e0df00 !important;
}
.btn-secondary:hover {
    background-color: #e0df00 !important;
    color: #254461 !important;
}

/* Button Styles - alle Buttons gelb */
.btn-toggle {
    background-color: #616025 !important;
    color: #a13c4a !important;
    border-color: #e0df00 !important;
}
.btn-toggle:hover {
    background-color: #00e056 !important;
    color: #254461 !important;
}

/* ===================== RANGLISTE LANG ===================== */

/* Rang-Badge */
.rl-rang {
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    flex-shrink: 0;
}

.rl-rang-1 {
    background: linear-gradient(135deg, #FFD700, #B8860B);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.rl-rang-2 {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    box-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}

.rl-rang-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    box-shadow: 0 0 8px rgba(205, 127, 50, 0.5);
}

.rl-rang-default {
    background: #6c757d;
}

/* Trend-Pfeil */
.rl-trend {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-left: 6px;
}

.rl-trend-up {
    color: #28a745;
}

.rl-trend-down {
    color: #dc3545;
}

.rl-trend-eq {
    color: #6c757d;
}

.rl-trend-mobile {
    margin: 0 6px;
}

/* Profilbild */
.rl-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: linear-gradient(135deg, #FFD700, #B8860B);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.rl-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #8eb0d1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
}

/* Mobile-Karten */
.rl-mobile-card {
    display: none;
}

.rl-m-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background 0.2s;
}

.rl-m-row:hover {
    background: #f0f6f0;
}

.rl-m-info {
    flex: 1;
    min-width: 0;
    margin-left: 10px;
}

.rl-m-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #212529;
}

.rl-m-punkte {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bs-dblau, #1a3c5e);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
}

.rl-m-chevron {
    margin-left: 8px;
    color: #adb5bd;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.rl-m-row.open .rl-m-chevron {
    transform: rotate(180deg);
}

/* Aufklappbarer Steckbrief */
.rl-m-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.rl-m-details.open {
    max-height: 500px;
    padding: 14px 16px;
}

.rl-steckbrief {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rl-steckbrief-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #e9ecef;
}

.rl-steckbrief-item:last-child {
    border-bottom: none;
}

.rl-steckbrief-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    white-space: nowrap;
    margin-right: 12px;
}

.rl-steckbrief-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #212529;
    text-align: right;
}

/* Desktop-Tabelle */
.rl-desktop-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rl-col-rang {
    width: 70px;
}

.rl-text-capitalize {
    text-transform: capitalize;
}

/* Filter Mobile */
.rl-filter-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: var(--bs-dblau, #1a3c5e);
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.rl-filter-toggle:hover {
    opacity: 0.9;
}

.rl-filter-toggle-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.rl-filter-toggle-chevron {
    transition: transform 0.3s;
    font-size: 0.9rem;
}

.rl-filter-toggle.open .rl-filter-toggle-chevron {
    transform: rotate(180deg);
}

.rl-filter-content {
    transition: max-height 0.4s ease, padding 0.3s ease;
}

/* Legende Altersklassen */
.rl-legende-toggle {
    cursor: pointer;
}

.rl-legende-icon {
    color: var(--bs-dblau, #1a3c5e);
}

.rl-legende-chevron {
    font-size: 0.75rem;
    color: #6c757d;
}

.rl-legende-note {
    font-size: 0.8rem;
}

.rl-legende-table {
    font-size: 0.85rem;
}

.rl-legende-thead {
    background: var(--bs-dblau, #1a3c5e);
    color: #fff;
}

.rl-legende-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.rl-legende-content.open {
    max-height: 600px;
}

/* Responsive Umschaltung bei 512px */
@media (max-width: 511px) {
    .rl-desktop-table-wrap {
        display: none !important;
    }

    .rl-mobile-card {
        display: block !important;
    }

    .rl-filter-toggle {
        display: flex !important;
    }

    .rl-filter-content {
        display: none;
    }

    .rl-filter-content.open {
        display: block;
    }

    .rl-legende-content .table-responsive {
        display: block !important;
        overflow-x: auto;
    }
}

@media (min-width: 512px) {
    .rl-desktop-table-wrap {
        display: block !important;
    }

    .rl-mobile-card {
        display: none !important;
    }

    .rl-filter-toggle {
        display: none !important;
    }

    .rl-filter-content {
        display: block !important;
    }

    .rl-legende-content {
        max-height: none;
        overflow: visible;
    }
}
/* ======================================================================
   ROUTEN.CSS — PATCH für meine_routen, admin_nfc, manage_displays
   In bestehende routen.css einfügen (oder ersetzen, falls bereits vorhanden).
   Voraussetzung: colors.css mit --bs-dblau / --bs-gelb ist vorher geladen.
   ====================================================================== */

/* ── CSS-Variablen-Bridge ─────────────────────────────────────────────── */
:root {
    --blau: var(--bs-dblau);
    --gelb: var(--bs-gelb);
}

/* ── Schrift ──────────────────────────────────────────────────────────── */
body, .card, .btn, .form-control, .form-select, table,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 200;
}

/* ── Seiten-Header (Page-Header) ──────────────────────────────────────── */
.page-header {
    background-image: linear-gradient(to right, var(--bs-dblau), var(--bs-gelb));
    color: #fff;
    padding: 20px 0;
    margin-bottom: 30px;
}
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}
.page-header .subtitle {
    font-size: .85rem;
    opacity: .85;
}

/* ── Card-Header mit Verlauf ──────────────────────────────────────────── */
.gradient-header {
    background-image: linear-gradient(to right, var(--bs-dblau), var(--bs-gelb)) !important;
    color: #fff !important;
}
.gradient-header .card-title,
.gradient-header h5 {
    color: #fff !important;
    margin-bottom: 0;
}

/* ── fadeIn Animation ─────────────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Routenschild-Druck-Box ───────────────────────────────────────────── */
.print-list-box {
    display: none;
    border: 2px solid var(--bs-dblau) !important;
}
.print-list-box.show {
    display: block !important;
    animation: fadeIn 0.3s ease-in-out;
}

/* ── Auswahl-Button (für aktive Routen) ───────────────────────────────── */
.btn-selected {
    background-color: #28a745 !important;
    border-color: var(--bs-gelb) !important;
    color: white !important;
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
    border-radius: 3px;
}

/* ── Status-Farben für Buttons und Badges ─────────────────────────────── */
.status-gelb       { background-color: #ffff00 !important; color: #000 !important; border: 1px solid var(--bs-dblau) !important; }
.status-hellgruen  { background-color: #90ee90 !important; color: #000 !important; border: 1px solid var(--bs-dblau) !important; }
.status-bronze     { background-color: #cd7f32 !important; color: #fff !important; border: 1px solid var(--bs-dblau) !important; }
.status-silber     { background-color: #c0c0c0 !important; color: #000 !important; border: 1px solid var(--bs-dblau) !important; }
.status-gold       { background-color: #ffd700 !important; color: #000 !important; border: 1px solid var(--bs-dblau) !important; box-shadow: 0 0 10px rgba(255, 215, 0, 0.8); }
.status-standard   { background-color: #f8f9fa;            color: #333;            border: 1px solid #dee2e6; }

.begehungen-badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.9em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    min-width: 35px;
}

/* ── Filter-Container ─────────────────────────────────────────────────── */
.filter-container {
    display: none;
    background-color: #f8f9fa;
    padding: 15px;
    border: 2px solid var(--bs-dblau);
    border-radius: 8px;
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease-in-out;
}
.filter-container.show { display: block; }
.filter-group  { margin-bottom: 10px; }
.filter-label  { font-weight: bold; margin-bottom: 5px; display: block; }

/* ── Legende ──────────────────────────────────────────────────────────── */
.legende-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}
.legende-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
}
.legende-color-box {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 3px;
    border: 1px solid var(--bs-dblau);
}

/* ── Nutzergruppe-Zelle / Icon-Container ──────────────────────────────── */
.nutzergruppe-cell { min-width: 80px; vertical-align: middle !important; }
.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 40px;
    justify-content: center;
}
.icon-placeholder {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 3px;
}
.nutzergruppe-text {
    font-size: 0.7em;
    color: #6c757d;
    margin-top: 2px;
    text-align: center;
}

/* ── Print-Buttons ────────────────────────────────────────────────────── */
.print-btn-standard {
    background-color: var(--bs-dblau);
    border-color: var(--bs-gelb);
    color: white;
    border-radius: 3px;
}
.print-btn-standard:hover {
    background-color: var(--bs-gelb);
    border-color: var(--bs-dblau);
    color: #212529;
}
.print-btn-landscape {
    background-color: var(--bs-dblau);
    border-color: var(--bs-dblau);
    color: white;
    margin-left: 5px;
    border-radius: 3px;
}
.print-btn-landscape:hover {
    background-color: var(--bs-gelb);
    border-color: var(--bs-dblau);
    color: #212529;
}
.print-buttons-group {
    display: flex;
    gap: 5px;
    border-radius: 3px;
}

/* ── Mobile-Karten (ersetzt Tabelle auf schmalen Displays) ────────────── */
.mobile-route-card {
    display: none;
    border: 3px solid var(--bs-dblau);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background: white;
}
.mobile-route-header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 8px;
    cursor: pointer;
    gap: 6px;
    min-height: 50px;
    overflow: hidden;
}
.mobile-route-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}
.mobile-route-title {
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-route-difficulty {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
}
.mobile-route-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}
.mobile-route-actions .btn {
    padding: 4px 6px;
    font-size: 11px;
    min-width: 30px;
}
.mobile-route-details {
    display: none;
    padding: 15px;
    background: white;
    border-top: 2px solid var(--bs-gelb);
}
.mobile-route-details.show { display: block; }
.mobile-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}
.mobile-detail-row:last-child { border-bottom: none; }
.mobile-detail-label { font-weight: bold; color: var(--bs-dblau); }
.mobile-detail-value { color: #333; text-align: right; }

/* Responsive Switch zwischen Tabelle und Mobile-Karten */
@media (max-width: 512px) {
    .table-responsive { display: none !important; }
    .mobile-route-card { display: block; }
}
@media (max-width: 419px) {
    .mobile-route-header { flex-wrap: nowrap !important; }
    .mobile-route-actions { flex: 0 0 auto !important; justify-content: flex-end; }
    #mobileAdContainer { display: block !important; }
}
@media (min-width: 513px) {
    .mobile-route-card { display: none !important; }
    #mobileAdContainer { display: none !important; }
}
/* ============================================================
   routen.css – zentrale Styles für Routen-Listen
   Aktuell: pulsierender Glow-Rahmen für aktiv=2 Routen
   ============================================================ */

@keyframes routePulseGlow {
    0% {
        box-shadow: 0 0 4px 1px #fff200, 0 0 8px 2px #ff8800;
        border-color: #fff200 !important;
    }
    50% {
        box-shadow: 0 0 14px 4px #fff200, 0 0 22px 8px #ff8800;
        border-color: #ffffff !important;
    }
    100% {
        box-shadow: 0 0 4px 1px #fff200, 0 0 8px 2px #ff8800;
        border-color: #fff200 !important;
    }
}

/* Desktop / Tablet: Farbe-Zelle in der Tabelle (>= 512px) */
td.route-pulse {
    animation: routePulseGlow 1.4s ease-in-out infinite;
    border: 4px solid #fff200 !important;
    position: relative;
    z-index: 1;
}

tr.route-pulse td {
    animation: routePulseGlow 1.4s ease-in-out infinite;
    border-top: 3px solid #fff200 !important;
    border-bottom: 3px solid #fff200 !important;
}

tr.route-pulse td:first-child {
    border-left: 3px solid #fff200 !important;
}

tr.route-pulse td:last-child {
    border-right: 3px solid #fff200 !important;
}

/* Mobile (< 512px): pulsierender Rahmen um die ganze Routen-Karte */
.mobile-route-card.route-pulse {
    animation: routePulseGlow 1.4s ease-in-out infinite;
    border: 3px solid #fff200 !important;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

/* Falls direkt der Header gepulst werden soll */
.mobile-route-header.route-pulse {
    animation: routePulseGlow 1.4s ease-in-out infinite;
    border: 3px solid #fff200 !important;
    border-radius: 8px;
}

/* Kiosk-Anzeige (display_kiosk.php / display.php): Routen-Karte
   Der pulsierende Rahmen liegt auf einem Pseudo-Element, damit sich
   die Kartengröße beim Animieren nicht verändert. */
.route-card.route-pulse {
    position: relative;
    border-radius: 8px;
    z-index: 1;
}

.route-card.route-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid #fff200;
    border-radius: inherit;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 0;
    animation: routePulseGlow 1.4s ease-in-out infinite;
}

/* Pulsierender Stern als Ersatz für "! NEU !" */
@keyframes routeNeuStarPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px #fff200) drop-shadow(0 0 4px #ff8800);
        color: #fff200;
        opacity: 1;
    }
    50% {
        transform: scale(1.35);
        filter: drop-shadow(0 0 8px #fff200) drop-shadow(0 0 14px #ff8800);
        color: #ffffff;
        opacity: 0.8;
    }
}

.route-neu-star {
    display: inline-block;
    color: #fff200 !important;
    fill: #fff200;
    stroke: #fff200;
    text-shadow:
        0 0 4px #ff8800,
        0 0 8px #ff8800,
        0 0 1px #000;
    margin-right: 0.4em;
    transform-origin: center;
    animation: routeNeuStarPulse 1.4s ease-in-out infinite;
}


