/* =================================================================== */
/* Biketour-Manager PARTNERS PORTAL DESIGN SYSTEM (styles.css) */
/* =================================================================== */

/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --font-heading: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Color Palette: Slate Dark Theme (Base) */
    --hue: 224;
    --bg-color: hsl(var(--hue), 20%, 8%);
    --panel-color: rgba(28, 30, 38, 0.7);
    --panel-border: rgba(255, 255, 255, 0.07);
    --border-color: hsl(var(--hue), 15%, 18%);
    --text-color: hsl(var(--hue), 25%, 90%);
    --text-dim: hsl(var(--hue), 15%, 65%);
    
    /* Semantic Colors */
    --accent: hsl(207, 73%, 57%); /* Slate Blue default */
    --accent-hover: hsl(207, 85%, 65%);
    --green: hsl(142, 72%, 40%);
    --green-hover: hsl(142, 72%, 48%);
    --red: hsl(354, 76%, 53%);
    --warning: hsl(38, 92%, 50%);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --border-radius: 8px;
    --transition-speed: 0.25s;
}

/* Light Theme Variables Override */
.light-theme {
    --bg-color: hsl(var(--hue), 20%, 95%);
    --panel-color: rgba(255, 255, 255, 0.8);
    --panel-border: rgba(0, 0, 0, 0.06);
    --border-color: hsl(var(--hue), 15%, 85%);
    --text-color: hsl(var(--hue), 25%, 15%);
    --text-dim: hsl(var(--hue), 15%, 45%);
    --card-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.08);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    position: relative;
    min-height: 100vh;
}

/* Background Cyber Grid Decoration */
.bg-grid-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -10;
    pointer-events: none;
}

/* --- 2. HEADER & LAYOUT --- */
.global-header {
    background: rgba(18, 20, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent);
    transition: color var(--transition-speed);
}

.logo-sub {
    color: var(--text-color);
    font-weight: 300;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px 80px 20px;
}

/* --- 3. TYPOGRAPHY & SECTIONS --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
}

h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

p {
    color: var(--text-dim);
    margin-bottom: 15px;
}

.dashboard-hero {
    margin-bottom: 30px;
}

.dashboard-hero p {
    font-size: 16px;
}

/* --- 4. BUTTONS & FORMS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background-color: var(--green);
    color: #ffffff;
}

.btn-success:hover {
    background-color: var(--green-hover);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
    transform: translateY(-1px);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-tab {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
}

.btn-tab.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    border-color: var(--border-color);
    font-weight: 600;
}

.role-btn-group {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 3px;
    display: flex;
    gap: 2px;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control option {
    background-color: #1a1e27;
    color: #ffffff;
}


.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.form-row {
    display: flex;
    gap: 15px;
}

.col-2 { flex: 0 0 calc(16.66% - 10px); min-width: 70px; }
.col-3 { flex: 0 0 calc(25% - 11px); }
.col-4 { flex: 0 0 calc(33.33% - 10px); }
.col-5 { flex: 1; min-width: 120px; }
.col-6 { flex: 1; width: 50%; }
.col-8 { flex: 2; }

.select-small {
    padding: 5px 8px;
    font-size: 13px;
    border-radius: 4px;
}

.input-inline {
    width: 250px;
    display: inline-block;
}

.form-help {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Color Picker Wrapper */
.color-picker-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.color-picker-wrapper input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    background: none;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch {
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

/* --- 5. GRID WORKSPACE & PANELS --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: var(--panel-color);
    backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed);
}

.metric-card:hover {
    transform: translateY(-2px);
}

.highlight-card {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(28, 30, 38, 0.7) 100%);
    border: 1px solid rgba(52, 152, 219, 0.25);
}

.metric-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 600;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.metric-sub {
    font-size: 12px;
    color: var(--text-dim);
}

.workspace-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
}

.workspace-grid.grid-1-2 {
    grid-template-columns: 0.9fr 1.1fr;
}

@media (max-width: 900px) {
    .workspace-grid, .workspace-grid.grid-1-2 {
        grid-template-columns: 1fr;
    }
}

.card-panel {
    background: var(--panel-color);
    backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--card-shadow);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-header h2 {
    margin-bottom: 0;
    font-size: 20px;
}

.panel-desc {
    margin-bottom: 20px;
    font-size: 13.5px;
}

.margin-top {
    margin-top: 30px;
}

/* --- 6. DATA TABLES --- */
.table-container {
    width: 100%;
    overflow-x: auto;
}

.max-height-table {
    max-height: 400px;
    overflow-y: auto;
}

.products-table-container {
    /* Kein festes max-height mehr: Tabelle wächst natürlich mit dem Inhalt,
       die Seite scrollt bei Bedarf statt einer eigenen inneren Scrollbox. */
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

.data-table th, .data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--text-dim);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.data-table tbody tr {
    transition: background-color var(--transition-speed);
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.badge {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-unused, .badge-active {
    background-color: rgba(46, 204, 113, 0.15);
    color: var(--green);
}

.badge-allocated {
    background-color: rgba(52, 152, 219, 0.15);
    color: var(--accent);
}

.badge-activated {
    background-color: rgba(108, 92, 231, 0.15);
    color: hsl(250, 75%, 70%);
}

.badge-suspended {
    background-color: rgba(231, 76, 60, 0.15);
    color: var(--red);
}

.badge-platinum {
    background-color: rgba(240, 243, 244, 0.12);
    color: #f0f3f4;
    border: 1px solid rgba(240, 243, 244, 0.3);
}

.badge-gold {
    background-color: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
}

.badge-silver {
    background-color: rgba(189, 195, 199, 0.15);
    color: #bdc3c7;
}

.badge-candidate {
    background-color: rgba(149, 165, 166, 0.15);
    color: #95a5a6;
}

/* --- 7. TABS NAVIGATION & CONTENT --- */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
    margin-bottom: 25px;
}

.tab-nav-btn {
    background: transparent;
    color: var(--text-dim);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14.5px;
    transition: all var(--transition-speed);
}

.tab-nav-btn:hover {
    color: var(--text-color);
}

.tab-nav-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}

.tab-nav-btn.highlight-tab {
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: 4px 4px 0 0;
}

.tab-nav-btn.highlight-tab.active {
    background-color: rgba(52, 152, 219, 0.1);
}

/* --- 8. SHOP SECTION & CHECKOUT --- */
.shop-hero {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(108, 92, 231, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.shop-hero h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.shop-card {
    background: var(--panel-color);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
    position: relative;
    overflow: hidden;
}

.shop-card:hover {
    transform: translateY(-4px);
    border-color: rgba(52, 152, 219, 0.3);
}

.shop-card.featured-card {
    border: 1px solid rgba(52, 152, 219, 0.4);
    background: linear-gradient(180deg, rgba(52, 152, 219, 0.04) 0%, rgba(28, 30, 38, 0.7) 100%);
}

.shop-card.featured-card::before {
    content: "BELIEBTESTES";
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: var(--accent);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 30px;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.shop-card h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.shop-card-desc {
    font-size: 13px;
    color: var(--text-dim);
    min-height: 40px;
    margin-bottom: 15px;
}

.shop-price-container {
    margin: 15px 0 20px 0;
}

.shop-price-original {
    font-size: 14px;
    text-decoration: line-through;
    color: var(--red);
    margin-bottom: 2px;
    display: block;
}

.shop-price {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
}

.shop-price-sub {
    font-size: 12px;
    color: var(--text-dim);
    display: block;
}

.shop-discount-badge {
    background-color: rgba(46, 204, 113, 0.15);
    color: var(--green);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.shop-qty-box {
    margin-top: auto;
    margin-bottom: 15px;
}

.shop-qty-box label {
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
    color: var(--text-dim);
}

.shop-qty-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.shop-qty-input input {
    width: 60px;
    text-align: center;
}

/* Checkout Panel */
.checkout-panel {
    border: 1px solid rgba(46, 204, 113, 0.3);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, rgba(28, 30, 38, 0.7) 100%);
    animation: slideUp 0.3s ease;
}

.checkout-details {
    margin: 15px 0 20px 0;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 15px;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.checkout-details hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

.total-row {
    font-weight: 700;
    font-size: 16px;
}

.checkout-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* --- 9. BRANDING ADS LIST --- */
.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.ad-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.ad-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ad-card-header h3 {
    margin-bottom: 0;
    font-size: 16px;
}

.ad-card-preview {
    background-color: #12141A;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-card-preview img.ad-image {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin: 0 auto 5px auto;
}

.ad-card-preview .ad-title {
    font-weight: 600;
    font-size: 13px;
    margin-top: 5px;
    color: #fff;
}

.ad-card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* --- 10. CLIENT APP SIMULATOR (PREVIEW) --- */
.client-preview {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.sim-titlebar {
    background-color: rgba(0,0,0,0.3);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.sim-dots {
    display: flex;
    gap: 6px;
}

.sim-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background-color: rgba(255,255,255,0.2);
}

.sim-title {
    margin-left: 20px;
    font-size: 11px;
    color: var(--text-dim);
}

.sim-menu-bar {
    background-color: #1C1E26;
    border-bottom: 2px solid #2E313D;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    gap: 20px;
}

.sim-menu-bar img {
    height: 20px;
    max-width: 100px;
    object-fit: contain;
}

.sim-nav {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--text-dim);
}

.sim-nav span.active {
    font-weight: bold;
    color: var(--accent);
}

.sim-workspace {
    display: grid;
    grid-template-columns: 240px 1fr;
    flex: 1;
}

.sim-sidebar {
    background-color: rgba(0,0,0,0.1);
    border-right: 1px solid var(--border-color);
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.sim-sidebar-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    margin-bottom: 10px;
    font-weight: 600;
}

.sim-ad-box {
    background-color: #12141A;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    flex: 1;
    font-size: 11px;
    overflow-y: auto;
    text-align: center;
}

.sim-ad-placeholder {
    color: var(--text-dim);
    margin-top: 30px;
    font-style: italic;
}

.sim-ad-box img.ad-image {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
    margin-bottom: 5px;
}

.sim-ad-box .ad-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.sim-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sim-content h3 {
    font-size: 15px;
    margin-bottom: 0;
}

.sim-map {
    background-color: #1a2636;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.sim-map-route {
    position: absolute;
    width: 70%;
    height: 60px;
    border-top: 3px dashed var(--accent);
    border-right: 3px dashed var(--accent);
    border-radius: 0 20px 0 0;
    top: 50px;
    left: 40px;
}

.sim-map-pointer {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--green);
    border: 2px solid white;
    top: 105px;
    left: 175px;
}

.sim-buttons-row {
    display: flex;
    gap: 10px;
}

.sim-btn {
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-color);
}

.sim-btn-accent {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
    font-weight: 600;
}

/* Dynamic CSS Previewing classes */
.client-preview-light {
    --bg-color: #f5f5f7;
    --text-color: #1d1d1f;
    --text-dim: #86868b;
    --border-color: #d2d2d7;
}

.client-preview-light .sim-menu-bar {
    background-color: #e5e5ea;
    border-bottom: 2px solid #d2d2d7;
}

/* --- 11. MODAL BOXES --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.modal-backdrop.hidden {
    display: none !important;
}

.modal-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-large {
    max-width: 700px;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin-bottom: 0;
    font-size: 18px;
}

.close-btn {
    font-size: 24px;
    color: var(--text-dim);
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* --- 12. LIZENZSCHEIN (PRINTABLE CERTIFICATE) --- */
.license-certificate {
    background-color: #ffffff;
    color: #1a202c;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.cert-border {
    border: 3px double #cbd5e0;
    border-radius: 6px;
    padding: 30px;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.cert-brand-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: #2b6cb0;
}

.cert-brand-logo img {
    height: 32px;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.cert-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2d3748;
}

.cert-intro {
    font-size: 13px;
    color: #718096;
    text-align: center;
    margin-bottom: 5px;
}

.cert-customer {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    margin: 10px 0 20px 0;
    border-bottom: 1px dashed #cbd5e0;
    display: inline-block;
    width: 100%;
    padding-bottom: 5px;
}

.cert-serial {
    font-family: monospace;
    font-size: 26px;
    font-weight: 700;
    color: #c53030;
    text-align: center;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 6px;
    letter-spacing: 1px;
    margin: 15px 0 25px 0;
}

.cert-instructions {
    margin-top: 25px;
    background-color: #ebf8ff;
    border-radius: 6px;
    padding: 15px;
    font-size: 12px;
    color: #2b6cb0;
}

.cert-instructions h3 {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #2b6cb0;
}

.cert-instructions ol {
    margin-left: 18px;
}

.cert-instructions li {
    margin-bottom: 4px;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    margin-top: 25px;
    font-size: 11px;
    color: #718096;
}

.align-right {
    text-align: right;
}

/* --- 13. ALERTS & NOTIFICATIONS --- */
.info-alert, .form-alert {
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 13.5px;
    margin-bottom: 20px;
}

.info-box {
    background-color: rgba(52, 152, 219, 0.08);
    color: var(--accent);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.warning-box {
    background-color: rgba(241, 196, 15, 0.08);
    color: var(--warning);
    border: 1px solid rgba(241, 196, 15, 0.2);
}

.success-box {
    background-color: rgba(46, 204, 113, 0.08);
    color: var(--green);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.db-mode-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-label, .role-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.indicator-dot.mock-active {
    background-color: var(--warning);
    box-shadow: 0 0 8px var(--warning);
}

.indicator-dot.supabase-active {
    background-color: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.reseller-pick-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reseller-pick-box label {
    font-size: 12px;
    color: var(--text-dim);
}

.hidden {
    display: none !important;
}

/* --- 14. ANIMATIONS --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- 15. PRINT LAYOUT OVERRIDES --- */
@media print {
    /* Hide everything on the page except the printable certificate */
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    
    body * {
        visibility: hidden;
    }
    
    #modalPrintLicense, #modalPrintLicense *, #printArea, #printArea * {
        visibility: visible;
    }
    
    #modalPrintLicense {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: none !important;
        backdrop-filter: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }
    
    .modal-card {
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        background: transparent !important;
    }
    
    .license-certificate {
        box-shadow: none !important;
        border: none !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 600px !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
    }
    
    .cert-border {
        border: 2px solid #000000 !important;
    }
    
    .cert-title {
        color: #000000 !important;
    }
    
    .cert-customer {
        color: #000000 !important;
        border-bottom-color: #000000 !important;
    }
    
    .cert-serial {
        color: #000000 !important;
        border: 2px solid #000000 !important;
        background: #f7fafc !important;
    }
    
    .cert-instructions {
        border: 1px solid #000000 !important;
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .cert-instructions h3 {
        color: #000000 !important;
    }
    
    .no-print {
        display: none !important;
    }
}

/* --- 16. UTILITY CLASSES --- */
.text-green    { color: var(--green) !important; }
.text-accent   { color: var(--accent) !important; }
.text-dim      { color: var(--text-dim) !important; }
.text-red      { color: var(--red) !important; }
.text-center   { text-align: center; }
.text-uppercase{ text-transform: uppercase; }
.font-bold     { font-weight: 700; }
.font-highlight{ font-weight: 600; }

.shortcode-badge {
    font-family: monospace;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* --- 17. ROLE COLOR THEMES --- */

/* Reseller Admin (Kaufmännisch) – Emerald Green */
body.theme-reseller-admin {
    --accent: hsl(158, 64%, 42%);
    --accent-hover: hsl(158, 64%, 52%);
}
body.theme-reseller-admin .global-header {
    border-bottom: 2px solid hsl(158, 64%, 42%);
    box-shadow: 0 2px 20px rgba(16, 185, 129, 0.12);
}
body.theme-reseller-admin .role-badge {
    background: rgba(16, 185, 129, 0.12);
    color: hsl(158, 64%, 55%);
    border-color: rgba(16, 185, 129, 0.3);
}
body.theme-reseller-admin .btn-primary:hover {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

/* Reseller POS – Amber/Orange */
body.theme-reseller-pos {
    --accent: hsl(38, 92%, 50%);
    --accent-hover: hsl(38, 92%, 60%);
}
body.theme-reseller-pos .global-header {
    border-bottom: 2px solid hsl(38, 92%, 50%);
    box-shadow: 0 2px 20px rgba(245, 158, 11, 0.12);
}
body.theme-reseller-pos .role-badge {
    background: rgba(245, 158, 11, 0.12);
    color: hsl(38, 92%, 62%);
    border-color: rgba(245, 158, 11, 0.3);
}
body.theme-reseller-pos .btn-primary:hover {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
}
body.theme-reseller-pos .form-control:focus {
    border-color: hsl(38, 92%, 50%);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Reseller Technical – Violet/Purple */
body.theme-reseller-tech {
    --accent: hsl(262, 70%, 65%);
    --accent-hover: hsl(262, 70%, 73%);
}
body.theme-reseller-tech .global-header {
    border-bottom: 2px solid hsl(262, 70%, 65%);
    box-shadow: 0 2px 20px rgba(139, 92, 246, 0.12);
}
body.theme-reseller-tech .role-badge {
    background: rgba(139, 92, 246, 0.12);
    color: hsl(262, 70%, 75%);
    border-color: rgba(139, 92, 246, 0.3);
}
body.theme-reseller-tech .btn-primary:hover {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.35);
}
body.theme-reseller-tech .form-control:focus {
    border-color: hsl(262, 70%, 65%);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* --- 17. LOGIN SCREEN --- */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.login-card {
    background: var(--panel-color);
    backdrop-filter: blur(20px);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 50px 40px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-logo {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo .logo-accent {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
    display: block;
    color: var(--accent);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.login-logo .logo-sub {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 400;
}

.login-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-dim);
    margin-top: -24px;
    margin-bottom: 28px;
}

.login-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--red);
    border: 1px solid rgba(231, 76, 60, 0.25);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 15px;
    display: none;
}

.login-error.visible { display: block; }

.login-demo-info {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.login-demo-info h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 12px;
    font-weight: 600;
}

.demo-credential-grid {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.demo-cred-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 7px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: 10px;
}

.demo-cred-item:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
}

.demo-cred-role { font-size: 12.5px; font-weight: 600; color: var(--text-color); }
.demo-cred-pw { font-family: monospace; font-size: 11px; color: var(--text-dim); }
.demo-cred-dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-admin        { background: hsl(207, 73%, 57%); }
.dot-reseller-admin { background: hsl(158, 64%, 42%); }
.dot-reseller-pos   { background: hsl(38, 92%, 50%); }
.dot-reseller-tech  { background: hsl(262, 70%, 65%); }

/* --- 18. HEADER LOGGED-IN STATE --- */
.role-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.btn-logout {
    background: rgba(231, 76, 60, 0.1);
    color: var(--red);
    border: 1px solid rgba(231, 76, 60, 0.2);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.btn-logout:hover { background: rgba(231, 76, 60, 0.2); }

/* --- 19. ADMIN TABS --- */
.admin-main-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--border-color);
    gap: 4px;
    margin-bottom: 15px;
}

.main-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-dim);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.main-tab-btn:hover {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.02);
}

.main-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-sub-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.015);
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.admin-tab-navigation {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    gap: 5px;
    margin-bottom: 30px;
}

/* Monitor reseller selector (inside admin monitor tab) */
.monitor-reseller-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 24px;
}

.monitor-reseller-bar label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    white-space: nowrap;
}

/* --- 20. RESELLER ADMIN VIEW --- */
.reseller-admin-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.reseller-admin-hero .hero-text p { margin-bottom: 0; }

/* --- 21. POS VIEW --- */
.pos-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 25px;
    align-items: start;
}

@media (max-width: 900px) {
    .pos-layout { grid-template-columns: 1fr; }
}

.pos-counter-card {
    background: var(--panel-color);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.pos-counter-value {
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    display: block;
}

.pos-counter-label {
    font-size: 13px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 8px;
    display: block;
}

.pos-zero-warning .pos-counter-value { color: var(--red); }

.pos-hero {
    margin-bottom: 30px;
}

/* --- 22. REPORTS TAB --- */
.reports-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

/* --- 23. BIKE FLEET MANAGEMENT --- */
.fleet-container {
    margin-top: 15px;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.fleet-category-section {
    margin-bottom: 28px;
}

.fleet-category-header {
    font-size: 12pt;
    font-weight: bold;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 6px;
    margin-bottom: 12px;
}

.fleet-subcategory-section {
    margin-bottom: 16px;
}

.fleet-subcategory-header {
    font-size: 9.5pt;
    font-weight: bold;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-left: 4px;
    border-left: 3px solid var(--border-color);
}

.fleet-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.fleet-count-badge {
    font-size: 8pt;
    color: var(--text-dim);
    margin-left: auto;
}

.bike-card-artikelnr {
    font-size: 7pt;
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 4px;
    font-family: monospace;
    opacity: 0.7;
}

.bike-card-category {
    font-size: 7.5pt;
    color: var(--accent);
    text-align: center;
    margin-bottom: 6px;
    opacity: 0.85;
}

/* ── Kategorie-Manager ──────────────────────────────────────────────────── */
.category-manager-panel {
    margin: 12px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.category-manager-toggle {
    background: rgba(255,255,255,0.04);
    padding: 9px 14px;
    cursor: pointer;
    font-size: 9pt;
    font-weight: bold;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.category-manager-toggle:hover {
    background: rgba(255,255,255,0.07);
}

.cat-manager-toolbar {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.category-tree {
    padding: 8px 12px 12px 12px;
}

.cat-ober-item {
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
}

.cat-ober-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: rgba(255,255,255,0.04);
    font-weight: bold;
    font-size: 9pt;
}

.cat-ober-name {
    flex: 1;
    color: var(--accent);
}

.cat-slug-badge {
    font-size: 7.5pt;
    font-family: monospace;
    color: #88ccff;
    background: rgba(40,100,200,0.18);
    border: 1px solid rgba(80,160,255,0.25);
    padding: 1px 6px;
    border-radius: 4px;
    min-width: 56px;
    text-align: center;
    user-select: all;
    cursor: text;
    title: "CSV-Schlüssel";
}

.cat-sort-badge {
    font-size: 7pt;
    color: var(--text-dim);
    background: rgba(255,255,255,0.06);
    padding: 1px 5px;
    border-radius: 3px;
}

.cat-unter-list {
    padding: 4px 8px 6px 28px;
}

.cat-unter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 8.5pt;
}

.cat-unter-item:hover {
    background: rgba(255,255,255,0.04);
}

.cat-unter-name {
    flex: 1;
    color: var(--text-color);
}

.cat-bike-count {
    font-size: 7pt;
    color: var(--text-dim);
    margin-left: 4px;
}

.cat-empty-hint {
    font-size: 8pt;
    color: var(--text-dim);
    font-style: italic;
    padding: 4px 6px;
}

/* ── CSV-Import/Export Modal ─────────────────────────────────────────────── */
.csv-import-modal .modal-card {
    max-width: 680px;
    max-height: 80vh;
    overflow-y: auto;
}

.csv-validation-errors {
    background: rgba(220, 50, 50, 0.12);
    border: 1px solid rgba(220,50,50,0.4);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 8.5pt;
}

.csv-validation-errors ul {
    margin: 6px 0 0 16px;
    padding: 0;
    color: #ff8888;
}

.csv-validation-ok {
    background: rgba(50, 200, 100, 0.12);
    border: 1px solid rgba(50,200,100,0.4);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 8.5pt;
    color: #88ffaa;
}

.csv-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 7.5pt;
    margin-top: 10px;
}

.csv-preview-table th {
    background: rgba(255,255,255,0.08);
    padding: 5px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.csv-preview-table td {
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text-dim);
}

.csv-import-mode {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.csv-import-mode label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9pt;
    cursor: pointer;
}

.bike-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bike-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bike-card.is-default {
    opacity: 0.75;
    background-color: rgba(255, 255, 255, 0.01);
    border-style: dashed;
}

.bike-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 7.5pt;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-default {
    background-color: #555;
    color: #fff;
}

.badge-custom {
    background-color: var(--accent);
    color: #fff;
}

.bike-card-photo-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.15);
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.bike-card-photo {
    max-height: 90px;
    max-width: 95%;
    object-fit: contain;
}

.bike-card-fallback {
    font-size: 28pt;
}

.bike-card-name {
    font-size: 11pt;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 8px;
    text-align: center;
}

.bike-card-stats {
    font-size: 8pt;
    color: var(--text-dim);
    margin-bottom: 12px;
    flex-grow: 1;
}

.bike-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.bike-stat-row:last-child {
    border-bottom: none;
}

.bike-card-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.slider-value-desc {
    display: flex;
    justify-content: space-between;
    font-size: 8pt;
    margin-top: 4px;
}

.calculated-value {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    padding: 6px;
    text-align: center;
    font-size: 10pt;
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- 16. POS COIN VOUCHER PRINT STYLES --- */
#printArea {
    display: none;
}

@media print {
    #printArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }
    
    .print-voucher {
        width: 100%;
        max-width: 600px;
        margin: 20px auto;
        border: 2px dashed #000 !important;
        padding: 20px;
        background: #fff !important;
        color: #000 !important;
        box-sizing: border-box;
        page-break-inside: avoid;
    }
    
    .print-voucher-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    
    .print-voucher-logo {
        height: 40px;
        filter: grayscale(100%);
    }
    
    .print-voucher-reseller {
        font-size: 14pt;
        font-weight: bold;
    }
    
    .print-voucher-body {
        text-align: center;
        margin: 20px 0;
    }
    
    .print-voucher-value {
        font-size: 48pt;
        font-weight: 900;
        line-height: 1;
    }
    
    .print-voucher-val-label {
        font-size: 16pt;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }
    
    .print-voucher-code {
        font-family: monospace;
        font-size: 20pt;
        font-weight: bold;
        background: #eee !important;
        padding: 10px;
        border: 1px solid #ccc;
        display: inline-block;
        letter-spacing: 1px;
    }
    
    .print-voucher-footer {
        border-top: 1px solid #ccc;
        padding-top: 10px;
        font-size: 9pt;
        text-align: center;
        line-height: 1.4;
    }

}

/* WYSIWYG Split Editor Styles */
.modal-large-split {
    max-width: 900px !important;
}
.wysiwyg-split-container {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 20px;
}
.wysiwyg-preview-panel {
    background: #1C1E26 !important;
    border: 1px solid #2E313D;
    border-radius: 6px;
    padding: 10px;
    box-sizing: border-box;
    width: 290px;
    height: 100%;
    min-height: 380px;
    max-height: 480px;
    overflow-y: auto;
    color: #E1E4EC !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.wysiwyg-preview-panel .ad-container {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #12141A !important;
    border: 1px solid #2E313D;
    border-radius: 6px;
    box-sizing: border-box;
}
.wysiwyg-preview-panel img.ad-image {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    margin-bottom: 8px !important;
    display: block !important;
}
.wysiwyg-preview-panel .ad-title {
    font-size: 10.5pt !important;
    font-weight: bold !important;
    margin-bottom: 6px !important;
    color: #FFFFFF !important;
}
.wysiwyg-preview-panel p {
    font-size: 9pt !important;
    color: #8890A6 !important;
    margin: 4px 0 !important;
    line-height: 1.35 !important;
}
.wysiwyg-preview-panel a {
    text-decoration: none !important;
    outline: none !important;
}
.wysiwyg-preview-panel .ad-btn, .wysiwyg-preview-panel span {
    background-color: #3498DB !important;
    color: #FFFFFF !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 8.5pt !important;
    font-weight: bold !important;
    display: inline-block !important;
    margin-top: 8px !important;
    border: none !important;
}

/* Pflichtangaben Validation */
.pflichtangabe-empty {
    border: 1px solid rgba(231, 76, 60, 0.75) !important;
    box-shadow: 0 0 4px rgba(231, 76, 60, 0.25);
}

/* Premium Widget Cards Hub styling */
.widget-card {
    transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.22s ease, filter 0.22s ease !important;
}
.widget-card:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
    filter: brightness(1.15) !important;
}

/* Mobile-Friendly Grid columns override to prevent horizontal scrolling */
@media (max-width: 768px) {
    .global-header {
        padding: 10px 15px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .header-logo {
        font-size: 18px !important;
    }
    .header-controls {
        gap: 6px !important;
    }
    .header-controls button {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    .mobile-grid-1col {
        grid-template-columns: 1fr !important;
    }
    .portal-header {
        padding: 15px !important;
    }
    .portal-header div {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .cyclist-widget-grid {
        grid-template-columns: 1fr !important;
    }
    #gpxWebMap, #tourWebMap {
        height: 300px !important;
        min-height: 300px !important;
    }
}

/* GPX Map Maximized Mode styles */
.gpx-map-maximized {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: #000 !important;
}

.gpx-map-maximized #gpxWebMap {
    height: calc(100vh - 120px) !important;
    min-height: calc(100vh - 120px) !important;
}

.gpx-map-maximized #gpxElevationContainer {
    position: absolute !important;
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    background: rgba(12, 16, 29, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    margin-top: 0 !important;
    z-index: 100000 !important;
}



