/*
 * Customer shell V19
 * Shared visual language for dashboard, tour generator, master data and billing.
 * All rules are scoped to body.customer-shell-v19.
 */

body.customer-shell-v19,
body.customer-shell-v19 input,
body.customer-shell-v19 select,
body.customer-shell-v19 textarea,
body.customer-shell-v19 button,
body.customer-shell-v19 a,
body.customer-shell-v19 p,
body.customer-shell-v19 span,
body.customer-shell-v19 li,
body.customer-shell-v19 label,
body.customer-shell-v19 table,
body.customer-shell-v19 th,
body.customer-shell-v19 td,
body.customer-shell-v19 strong {
    font-family: var(--font-sans);
}

body.customer-shell-v19 {
    background: var(--bg-page);
    color: var(--text-primary);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    -webkit-font-smoothing: antialiased;
}

body.customer-shell-v19 h1,
body.customer-shell-v19 h2,
body.customer-shell-v19 h3,
body.customer-shell-v19 h4,
body.customer-shell-v19 h5,
body.customer-shell-v19 .modal-title {
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--tracking-h3);
}

body.customer-shell-v19 h1,
body.customer-shell-v19 .wt-title {
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
    letter-spacing: var(--tracking-tight);
}

body.customer-shell-v19 h2,
body.customer-shell-v19 .wt-heading {
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
    letter-spacing: var(--tracking-h2);
}

body.customer-shell-v19 h3,
body.customer-shell-v19 .wt-subheading,
body.customer-shell-v19 .modal-title {
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
    letter-spacing: var(--tracking-h3);
}

body.customer-shell-v19 .wt-title,
body.customer-shell-v19 .wt-heading,
body.customer-shell-v19 .wt-subheading {
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: var(--font-weight-semibold);
}

body.customer-shell-v19 .wt-body,
body.customer-shell-v19 .wt-body-lg,
body.customer-shell-v19 .wt-meta,
body.customer-shell-v19 .wt-label,
body.customer-shell-v19 .wt-overline {
    font-family: var(--font-sans);
}

body.customer-shell-v19 .wt-body {
    color: var(--text-primary);
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
}

body.customer-shell-v19 .wt-body-lg {
    color: var(--text-secondary);
    font-size: var(--font-size-body-lg);
    line-height: var(--line-height-body-lg);
}

body.customer-shell-v19 .wt-meta,
body.customer-shell-v19 .wt-label {
    color: var(--text-secondary);
    font-size: var(--font-size-body-sm);
    line-height: var(--line-height-body-sm);
}

body.customer-shell-v19 .wt-label {
    font-weight: var(--font-weight-medium);
}

body.customer-shell-v19 .wt-overline {
    color: var(--accent);
    font-size: var(--font-size-caps);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--tracking-wide);
    line-height: var(--line-height-caps);
    text-transform: uppercase;
}

/* Shared top navigation */
body.customer-shell-v19 .dashboardinner_header .navbar,
body.customer-shell-v19 .stepmenu_header .navbar,
body.customer-shell-v19 .customerdashboard_header > .navbar {
    background: var(--text-primary) !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: var(--shadow-md);
}

body.customer-shell-v19 .dashboardinner_header .navbar a,
body.customer-shell-v19 .stepmenu_header .navbar a,
body.customer-shell-v19 .customerdashboard_header > .navbar a {
    color: var(--text-on-ink);
}

body.customer-shell-v19 .customerdashboard_header > .navbar .navbar-brand img,
body.customer-shell-v19 .dashboardinner_header .navbar-brand img,
body.customer-shell-v19 .stepmenu_header .navbar-brand img {
    filter: brightness(0) invert(1) !important;
    opacity: 0.92;
}

body.customer-shell-v19 .dashboardinner_header .navbar-brand.logo-nav {
    filter: brightness(0) invert(1) !important;
    opacity: 0.92;
}

body.customer-shell-v19 .dashboardinner_header {
    position: relative;
    width: 100%;
}

body.customer-shell-v19 .dashboardinner_header #navigation {
    align-items: center;
    display: flex;
    min-height: 64px;
    padding: 0 var(--space-5);
}

body.customer-shell-v19 .dashboardinner_header #navigation #navbar {
    display: flex !important;
    height: 64px;
    left: 50%;
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    width: auto;
}

body.customer-shell-v19 .dashboardinner_header #navigation .customer_navigation,
body.customer-shell-v19 .dashboardinner_header #navigation .customer_navigation .nav-tourlist {
    align-items: stretch;
    display: flex !important;
    height: 64px;
    margin: 0;
    padding: 0;
    width: auto;
}

body.customer-shell-v19 .dashboardinner_header #navigation .customer_navigation .nav-tourlist > li {
    flex: 0 0 auto;
    width: auto !important;
}

body.customer-shell-v19 .dashboardinner_header #navigation .customer_navigation .nav-tourlist > li > a {
    align-items: center;
    display: flex;
    font-size: var(--font-size-body-sm) !important;
    gap: var(--space-2);
    height: 64px;
    padding: 0 var(--space-4) !important;
    width: auto !important;
}

body.customer-shell-v19 .dashboardinner_header .navbar-nav > li > a,
body.customer-shell-v19 .stepmenu_header .navbar-nav > li > a {
    border: 0 !important;
    font-size: var(--font-size-body-sm);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--tracking-normal);
    text-transform: none;
}

body.customer-shell-v19 .dashboardinner_header .navbar-nav > li.active > a,
body.customer-shell-v19 .stepmenu_header .navbar-nav > li.active > a,
body.customer-shell-v19 .dashboardinner_header .navbar-nav > li > a:hover,
body.customer-shell-v19 .stepmenu_header .navbar-nav > li > a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-on-accent) !important;
}

body.customer-shell-v19 .dash-lang-btn {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: inline-flex !important;
    gap: var(--space-2);
    margin-top: 1px;
    padding: 6px 12px !important;
}

body.customer-shell-v19 .dash-lang-menu,
body.customer-shell-v19 .dropdown-menu,
body.customer-shell-v19 .sd-dropdown-menu {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: var(--space-2) !important;
}

body.customer-shell-v19 .dash-lang-menu a,
body.customer-shell-v19 .dropdown-menu a,
body.customer-shell-v19 .sd-dropdown-menu a {
    border-radius: var(--radius-xs);
    color: var(--text-secondary) !important;
    font-size: var(--font-size-body-sm) !important;
    padding: 8px 10px !important;
}

body.customer-shell-v19 .dash-lang-menu a:hover,
body.customer-shell-v19 .dash-lang-menu a.is-active,
body.customer-shell-v19 .dropdown-menu a:hover,
body.customer-shell-v19 .dropdown-menu .active > a,
body.customer-shell-v19 .sd-dropdown-menu a:hover {
    background: var(--accent-subtle) !important;
    color: var(--accent-hover) !important;
}

/* Secondary menus and tabs */
body.customer-shell-v19 .submenu.tabs-section,
body.customer-shell-v19 .tabs-section,
body.customer-shell-v19 .tourinfo-tabs {
    background: transparent !important;
    border: 0 !important;
}

body.customer-shell-v19 .cd-tabs__navigation,
body.customer-shell-v19 .tourinfo-tabs nav ul,
body.customer-shell-v19 .nav-tabs {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    gap: var(--space-1);
    padding: var(--space-2) !important;
}

body.customer-shell-v19 .cd-tabs__navigation > li,
body.customer-shell-v19 .tourinfo-tabs nav ul > li,
body.customer-shell-v19 .nav-tabs > li {
    background: transparent !important;
    border: 0 !important;
    margin: 0 !important;
}

body.customer-shell-v19 .cd-tabs__navigation > li > a,
body.customer-shell-v19 .tourinfo-tabs nav ul > li > a,
body.customer-shell-v19 .nav-tabs > li > a {
    background: transparent !important;
    border: 0 !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-secondary) !important;
    font-size: var(--font-size-body-sm) !important;
    font-weight: var(--font-weight-medium);
    padding: 10px 14px !important;
    text-transform: none !important;
}

body.customer-shell-v19 .cd-tabs__navigation > li.active > a,
body.customer-shell-v19 .cd-tabs__navigation > li > a.cd-selected,
body.customer-shell-v19 .tourinfo-tabs nav ul > li.active > a,
body.customer-shell-v19 .nav-tabs > li.active > a,
body.customer-shell-v19 .nav-tabs > li > a:hover {
    background: var(--accent-subtle) !important;
    color: var(--accent-hover) !important;
}

body.customer-shell-v19 .dreieck {
    display: none !important;
}

/* Surfaces, billing cards and tables */
body.customer-shell-v19 .commonbox,
body.customer-shell-v19 .panel,
body.customer-shell-v19 .boxes,
body.customer-shell-v19 .access_div,
body.customer-shell-v19 .user_information,
body.customer-shell-v19 .innerdiv,
body.customer-shell-v19 .transaction-list .top_box {
    border-color: var(--border-default) !important;
}

body.customer-shell-v19 .commonbox,
body.customer-shell-v19 .panel,
body.customer-shell-v19 .transaction-list .boxes {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md) !important;
}

body.customer-shell-v19 .panel-heading,
body.customer-shell-v19 .top_box,
body.customer-shell-v19 .commonbox > header {
    background: var(--bg-surface-alt) !important;
    border-bottom: 1px solid var(--border-default) !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
    color: var(--text-primary) !important;
}

body.customer-shell-v19 .panel-heading h4,
body.customer-shell-v19 .panel-heading .white {
    color: var(--text-primary) !important;
    font-family: var(--font-sans);
}

body.customer-shell-v19 .transaction-list .boxes {
    margin: var(--space-4) !important;
    padding: var(--space-5) !important;
}

body.customer-shell-v19 .transaction-list .listing > li {
    border-color: var(--border-default) !important;
}

body.customer-shell-v19 table,
body.customer-shell-v19 .table,
body.customer-shell-v19 .listing {
    color: var(--text-secondary);
}

body.customer-shell-v19 table th,
body.customer-shell-v19 .listing label {
    color: var(--text-primary) !important;
    font-weight: var(--font-weight-semibold);
}

/* Forms and validation */
body.customer-shell-v19 .form-control,
body.customer-shell-v19 input[type="text"],
body.customer-shell-v19 input[type="email"],
body.customer-shell-v19 input[type="password"],
body.customer-shell-v19 input[type="number"],
body.customer-shell-v19 select,
body.customer-shell-v19 textarea {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
    color: var(--text-primary) !important;
    min-height: 42px;
}

body.customer-shell-v19 textarea.form-control {
    min-height: 110px;
}

body.customer-shell-v19 .form-control:focus,
body.customer-shell-v19 input:focus,
body.customer-shell-v19 select:focus,
body.customer-shell-v19 textarea:focus {
    border-color: var(--border-focus) !important;
    box-shadow: var(--shadow-focus) !important;
    outline: 0;
}

body.customer-shell-v19 .control-label,
body.customer-shell-v19 label {
    color: var(--text-secondary);
    font-size: var(--font-size-body-sm);
    font-weight: var(--font-weight-medium);
}

body.customer-shell-v19 .errormessage,
body.customer-shell-v19 .help-block-error,
body.customer-shell-v19 .text-danger,
body.customer-shell-v19 .tour-error {
    background: var(--status-risk-bg);
    border-radius: var(--radius-xs);
    color: var(--status-risk-fg) !important;
    display: block;
    font-size: var(--font-size-body-sm);
    line-height: var(--line-height-body-sm);
    margin-top: var(--space-2);
    padding: var(--space-2) var(--space-3);
    white-space: normal !important;
}

body.customer-shell-v19 .errormessage:empty,
body.customer-shell-v19 .help-block-error:empty,
body.customer-shell-v19 .text-danger:empty,
body.customer-shell-v19 .tour-error:empty {
    display: none;
}

/* Buttons and links */
body.customer-shell-v19 .btn,
body.customer-shell-v19 .back_btn,
body.customer-shell-v19 .addkontakt_btn {
    border-radius: var(--radius-full) !important;
    font-family: var(--font-sans);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-button);
    padding: 11px 18px;
    text-transform: none !important;
    transition: background var(--duration-base) var(--ease-standard),
        border-color var(--duration-base) var(--ease-standard),
        color var(--duration-base) var(--ease-standard);
}

body.customer-shell-v19 .btn-primary,
body.customer-shell-v19 .btn-primary-2,
body.customer-shell-v19 .btn-info,
body.customer-shell-v19 .updateform,
body.customer-shell-v19 .addkontakt_btn {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--text-on-accent) !important;
}

body.customer-shell-v19 .btn-primary:hover,
body.customer-shell-v19 .btn-primary-2:hover,
body.customer-shell-v19 .btn-info:hover,
body.customer-shell-v19 .updateform:hover,
body.customer-shell-v19 .addkontakt_btn:hover {
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
}

body.customer-shell-v19 .btn-default,
body.customer-shell-v19 .btn-secondary,
body.customer-shell-v19 .back_btn {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-strong) !important;
    color: var(--text-primary) !important;
}

/* Alerts, empty states and AJAX errors */
body.customer-shell-v19 .alert {
    background-image: none !important;
    border: 1px solid transparent !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: none;
    color: var(--text-primary) !important;
    font-size: var(--font-size-body-sm);
    line-height: var(--line-height-body);
    padding: var(--space-4) var(--space-5) !important;
}

body.customer-shell-v19 .alert-danger {
    background: var(--status-risk-bg) !important;
    border-color: var(--status-risk-fg) !important;
    color: var(--status-risk-fg) !important;
}

body.customer-shell-v19 .alert-warning {
    background: var(--status-warn-bg) !important;
    border-color: var(--status-warn-fg) !important;
    color: var(--status-warn-fg) !important;
}

body.customer-shell-v19 .alert-info,
body.customer-shell-v19 .alert-success {
    background: var(--status-ok-bg) !important;
    border-color: var(--status-ok-fg) !important;
    color: var(--status-ok-fg) !important;
}

body.customer-shell-v19 #noRecordFound {
    background: var(--bg-muted);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    margin: var(--space-5);
    padding: var(--space-8) var(--space-5);
}

/* Verbleibende Legacy-Magenta-Akzente → V19-Tokens.
 * Visuell nachgewiesen (computed rgb(170,11,87) = #aa0b57):
 *   - .top_content   Premium-Hinweisbanner auf /customer/tour/create-tour
 *   - .account-navi  Magenta-Block im Account-Bereich der dunklen Top-Nav (my-data)
 *   - hr.small       Sektions-Trenner unter Überschriften (my-data / Kontaktmanager) */
body.customer-shell-v19 .top_content {
    background: var(--accent-subtle) !important;
    border: 1px solid var(--accent-soft) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
    color: var(--text-primary) !important;
    margin: var(--space-5);
    padding: var(--space-4) var(--space-5) !important;
}

body.customer-shell-v19 .top_content p,
body.customer-shell-v19 .top_content .text-center {
    color: var(--text-primary) !important;
    margin: 0;
}

body.customer-shell-v19 .account-navi {
    background: transparent !important;
}

body.customer-shell-v19 hr.small {
    border: 0 !important;
    border-top: 2px solid var(--accent) !important;
    color: var(--accent) !important;
}

/* Box-Überschrift .heading_xs: auf Desktop display:none, auf Mobile sichtbar
 * mit Legacy-Magenta-Text (tab-box.css, Spezifität 0,4,1) → Ink + Token-Divider. */
body.customer-shell-v19 .commonbox h1.heading_xs {
    color: var(--text-primary) !important;
    border-bottom-color: var(--border-default) !important;
}

/* Legacy-Blau (#009ee0) Profilbild-Upload-Button → Terrakotta-Kreis
 * (visuell nachgewiesen: blauer Kreis mit weißem Pfeil auf my-data) */
body.customer-shell-v19 .profileImageUploader {
    background: var(--accent) !important;
}

/* Haupt-/Step-Navigationslinks: Legacy-Montserrat → Inter.
 * Muss die ID-Regel #navigation .navbar-nav li a {font:Montserrat !important}
 * (meinen-daten.css) schlagen → eigener #-Anker für ausreichende Spezifität.
 * Icon-Fonts (.fa / .icon) tragen eine spezifischere font-family und bleiben. */
body.customer-shell-v19 #navigation .navbar-nav li a,
body.customer-shell-v19 #navigation .nav-tourlist li a,
body.customer-shell-v19 #stepMenu .navbar-nav li a {
    font-family: var(--font-sans) !important;
}

/* ============================================================
 * Batch B — systemische Legacy-Bleeds auf Sweep-Routen.
 * Jede Regel beseitigt eine konkrete, am DOM nachgewiesene Legacy-Quelle
 * (Inline-Style oder explizite Legacy-Klasse). !important schlägt Inline
 * ohne !important bzw. spezifische Legacy-Regeln. Keine pauschale *-Schicht.
 * ============================================================ */

/* Explizite Legacy-Font-Klasse .font-quicksand (tour/_load_tours.php) → Inter.
 * Gegenregel: @font-face Quicksand + .font-quicksand in common.css/meinen-daten.css. */
body.customer-shell-v19 .font-quicksand {
    font-family: var(--font-sans) !important;
}

/* Inline-Magenta-Buttons .btn-primary-2 (style="background:#aa0b57" in
 * setting/_load_*-Partials) → Akzent. CSS-!important > Inline ohne !important. */
body.customer-shell-v19 .btn-primary-2 {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--text-on-accent) !important;
}

/* Premium-/Lock-Icons mit Inline color:#aa0b57 (_load_features.php,
 * _load_qrcode_form.php) → Akzent statt Magenta. */
body.customer-shell-v19 .fa-lock {
    color: var(--accent) !important;
}

/* Legacy-Blau (#009ee0) auf Info-Links/Badges/Buttons (Editor/Setting) → Akzent.
 * Gegenregel: Bootstrap .btn-info/.label-info + inline #009ee0. */
body.customer-shell-v19 .label-info,
body.customer-shell-v19 .badge-info,
body.customer-shell-v19 span.label[style*="009ee0"],
body.customer-shell-v19 span[style*="background:#009ee0"],
body.customer-shell-v19 span[style*="background: #009ee0"] {
    background: var(--accent) !important;
    color: var(--text-on-accent) !important;
}
body.customer-shell-v19 .text-info,
body.customer-shell-v19 a[style*="009ee0"],
body.customer-shell-v19 a[style*="color:#009ee0"] {
    color: var(--accent) !important;
}

/* Every customer popup gets the same shell, including legacy modals. */
body.customer-shell-v19 .modal-backdrop {
    background: var(--bg-overlay) !important;
}

body.customer-shell-v19 .modal-content {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-xl) !important;
    color: var(--text-primary);
    overflow: hidden;
}

body.customer-shell-v19 .modal-header,
body.customer-shell-v19 .modal-header[style] {
    background: var(--bg-surface-alt) !important;
    border-bottom: 1px solid var(--border-default) !important;
    border-radius: 0 !important;
    color: var(--text-primary) !important;
    padding: var(--space-5) var(--space-6);
}

body.customer-shell-v19 .modal-header .modal-title,
body.customer-shell-v19 .modal-header h1,
body.customer-shell-v19 .modal-header h2,
body.customer-shell-v19 .modal-header h3,
body.customer-shell-v19 .modal-header h4,
body.customer-shell-v19 .modal-header p {
    color: var(--text-primary) !important;
}

body.customer-shell-v19 .modal-header .modal-title {
    font-family: var(--font-sans) !important;
    font-size: var(--font-size-h3) !important;
    font-weight: var(--font-weight-semibold) !important;
    letter-spacing: var(--tracking-h3) !important;
    line-height: var(--line-height-h3) !important;
    text-transform: none !important;
}

body.customer-shell-v19 .modal-header .close,
body.customer-shell-v19 .modal-header .clos {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: var(--radius-full);
    color: var(--text-primary) !important;
    height: 34px;
    opacity: 1 !important;
    width: 34px;
}

body.customer-shell-v19 .modal-body {
    color: var(--text-secondary);
    padding: var(--space-6);
}

body.customer-shell-v19 .modal-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-default);
    padding: var(--space-4) var(--space-6);
}

body.customer-shell-v19 :focus-visible {
    outline: 0;
    box-shadow: var(--shadow-focus);
}

@media (max-width: 991px) {
    body.customer-shell-v19 .dash-lang-wrap {
        margin-left: var(--space-3) !important;
    }

    body.customer-shell-v19 .dashboardinner_header #navigation #navbar {
        display: none !important;
    }

    body.customer-shell-v19 .cd-tabs__navigation,
    body.customer-shell-v19 .tourinfo-tabs nav ul {
        border-radius: var(--radius-sm);
        display: block !important;
    }
}

@media (max-width: 767px) {
    body.customer-shell-v19 .modal-dialog {
        margin: var(--space-3);
    }

    body.customer-shell-v19 .modal-body,
    body.customer-shell-v19 .modal-header,
    body.customer-shell-v19 .modal-footer {
        padding: var(--space-4);
    }

    body.customer-shell-v19 .transaction-list .boxes {
        margin: var(--space-3) !important;
        padding: var(--space-4) !important;
    }
}

/* ============================================================
 * § Sanierung Batch A (2026-06-12) — Rest-Font-Bleed geteilte Chrome
 * Legacy (common.css/dashboard.css/footer.css) setzt Quicksand/Montserrat
 * auf Header-, Sprachmenu- und Footer-Links tief gescoped -> gezieltes
 * !important auf der gemeinsamen Shell (kein globales *).
 * ============================================================ */
body.customer-shell-v19 .dash-lang-btn,
body.customer-shell-v19 .dash-lang-menu a,
body.customer-shell-v19 .frontside_footer,
body.customer-shell-v19 .frontside_footer a,
body.customer-shell-v19 .frontside_footer li,
body.customer-shell-v19 .frontside_footer p,
body.customer-shell-v19 .footerlink a,
body.customer-shell-v19 .shortlink a,
body.customer-shell-v19 .nav-tourlist a,
body.customer-shell-v19 .navbar-nav > li > a,
body.customer-shell-v19 .dashboardinner_header .credit-badge,
body.customer-shell-v19 .dashboardinner_header .credit-badge span,
body.customer-shell-v19 .dashboardinner_header .credit-badge a,
body.customer-shell-v19 .customer_navigation .nav a,
body.customer-shell-v19 .customer_navigation a,
body.customer-shell-v19 .cd-tabs__navigation a,
body.customer-shell-v19 .account-navi a,
body.customer-shell-v19 .account-navi span {
    font-family: var(--font-sans) !important;
}
body.customer-shell-v19 .frontside_footer h2,
body.customer-shell-v19 .frontside_footer h3,
body.customer-shell-v19 .frontside_footer h4 {
    font-family: var(--font-sans) !important;
}
/* Mobiler Hamburger trug Alt-Magenta (#aa0b57) -> V19-Akzent. */
body.customer-shell-v19 .navbar-toggle {
    background-color: var(--accent) !important;
}

/* Mobile: Legacy `.account-navi{right:-14px}` ragte 14px ueber den rechten
   Viewport-Rand -> unbeabsichtigter horizontaler Dokument-Scroll (tour-index
   u.a.). Ursachengenau eingefangen statt body overflow-x zu maskieren.
   (V19-Sanierung Batch B, 2026-06-13) */
@media (max-width: 767px) {
    body.customer-shell-v19 .account-navi {
        right: 0 !important;
    }
}

/* ============================================================
 * Sprachwaehler-Menue (.dash-lang-*) — zentralisiert aus den 3 dupliziertem
 * Layout-<style>-Bloecken (main.php / tours-main.php / customer_dashboard.php).
 * Magenta-Tint #f0e6eb -> Token. (Feinschliff 2026-06-16, Code/CSS-Trennung)
 * ============================================================ */
.dash-lang-wrap{position:relative;display:inline-block;vertical-align:middle;}
.dash-lang-btn{color:rgba(255,255,255,0.7);font-size:14px;cursor:pointer;text-decoration:none;padding:10px 10px;display:block;transition:color .2s;}
.dash-lang-btn:hover,.dash-lang-btn:focus{color:#fff;text-decoration:none;}
.dash-lang-menu{display:none;position:absolute;left:0;top:100%;background:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:0 4px 12px rgba(0,0,0,0.15);min-width:170px;max-height:350px;overflow-y:auto;z-index:9999;padding:4px 0;}
.dash-lang-wrap:hover .dash-lang-menu{display:block;}
.dash-lang-menu a{display:block;padding:5px 14px;color:#333;font-size:12px;text-decoration:none;white-space:nowrap;}
.dash-lang-menu a:hover{background:#f5f5f5;}
.dash-lang-menu a.is-active{background:var(--accent-subtle, #FAEDE6);color:var(--accent, #A8553B);font-weight:600;}

/* Fix 2026-07-05: In der dunklen Kopf-Navigation von tours-main
   (.dashboardinner_header: my-data, tour-index, tour-detail, statistics) waren
   die INAKTIVEN .nav-tourlist-Tabs (z.B. "Neue Funktionen", "Virtuelle Touren")
   auf Bootstrap-Default #333 = dunkel auf dunkel -> erst bei Hover sichtbar.
   Auf hell setzen (aktiver Tab + Hover = weiss). Dashboard nutzt einen anderen
   Header (.customerdashboard_header) und bleibt unberuehrt. */
body.customer-shell-v19 .dashboardinner_header .nav-tourlist > li > a {
    color: rgba(255, 255, 255, 0.72);
}
body.customer-shell-v19 .dashboardinner_header .nav-tourlist > li.active > a,
body.customer-shell-v19 .dashboardinner_header .nav-tourlist > li > a:hover,
body.customer-shell-v19 .dashboardinner_header .nav-tourlist > li > a:focus {
    color: #fff;
}

/* Einheitliche obere Statusleiste im my-data/tours-main-Header
   (.dashboardinner_header): Markup + Werte 1:1 wie das Dashboard
   (customer-v19.css, dort auf .customerdashboard_header gescopet).
   Gleiches muss gleich aussehen. (2026-07-06) */
body.customer-shell-v19 .dashboardinner_header .navbar .dash-topbar-status {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    height: auto;
    align-self: center;
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin: 0;
    max-width: none;
    flex: 0 1 auto;
    min-width: 0;
}
body.customer-shell-v19 .dashboardinner_header .navbar .dash-topbar-status > * {
    align-self: center;
}
body.customer-shell-v19 .dashboardinner_header .dash-topbar-status .tour_status,
body.customer-shell-v19 .dashboardinner_header .dash-topbar-status .tour_plan {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    float: none;
    margin: 0;
    border: 0;
}
body.customer-shell-v19 .dashboardinner_header .dash-topbar-status ul {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}
body.customer-shell-v19 .dashboardinner_header .dash-topbar-status ul li {
    display: flex;
    flex-direction: row;
    align-items: center;
    line-height: 1;
    gap: 6px;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.78);
    border: 0 !important;
    box-shadow: none !important;
    width: auto;
    padding: 0;
    font-size: var(--font-size-body-sm);
    letter-spacing: var(--tracking-normal);
}
body.customer-shell-v19 .dashboardinner_header .dash-topbar-status ul li span {
    color: #fff;
    font-family: var(--font-sans);
    font-size: var(--font-size-body-lg);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    padding: 0 !important;
}
body.customer-shell-v19 .dashboardinner_header .navbar a.dash-topbar-credits {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
    /* wie Dashboard: dort gewinnt .navbar a { color: var(--text-on-ink) } */
    color: var(--text-on-ink);
    padding-left: var(--space-4);
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    font-size: var(--font-size-body-sm);
    /* Legacy-Quicksand auf tours-main-Routen neutralisieren (Dashboard erbt
       Inter aus .navbar a; hier explizit, gleiches Schriftbild). */
    font-family: var(--font-sans);
}
body.customer-shell-v19 .dashboardinner_header .dash-topbar-credits img { height: 14px; opacity: 0.9; }
body.customer-shell-v19 .dashboardinner_header .dash-topbar-credits span {
    color: #fff;
    font-family: var(--font-sans);
    font-weight: var(--font-weight-semibold);
}
body.customer-shell-v19 .dashboardinner_header .dash-topbar-credits:hover { color: #fff; }
body.customer-shell-v19 .dashboardinner_header .navbar .dash-topbar-status .dash-topbar-newtour {
    flex: 0 0 auto;
    margin-left: var(--space-4);
    white-space: nowrap;
    color: var(--text-on-accent);
    font-family: var(--font-sans);
}
body.customer-shell-v19 .dashboardinner_header .dash-topbar-status .dash-topbar-newtour i { font-size: 12px; }
/* Tourpaket kaufen: sekundaerer Button links neben "Tour erstellen" (Frank, 2026-11-14). */
body.customer-shell-v19 .dashboardinner_header .navbar .dash-topbar-status .dash-topbar-buypackage {
    flex: 0 0 auto;
    margin-left: var(--space-4);
    white-space: nowrap;
    font-family: var(--font-sans);
    color: #1b1a18;
    background: #f8f5ef;
    border: 1px solid #cbbda9;
}
body.customer-shell-v19 .dashboardinner_header .navbar .dash-topbar-status .dash-topbar-buypackage:hover { background: #efe8dc; color: #1b1a18; }
body.customer-shell-v19 .dashboardinner_header .dash-topbar-status .dash-topbar-buypackage i { font-size: 12px; }
body.customer-shell-v19 .dashboardinner_header .navbar .dash-topbar-status .dash-topbar-buypackage + .dash-topbar-newtour { margin-left: var(--space-2); }

/* Typography baseline for customer backoffice and tour editor.
   Legacy views still load page-level CSS with Quicksand, Montserrat and Myriad.
   Keep icons untouched, but normalize visible UI text to Inter. */
body.customer-shell-v19,
body.customer-shell-v19 h1,
body.customer-shell-v19 h2,
body.customer-shell-v19 h3,
body.customer-shell-v19 h4,
body.customer-shell-v19 h5,
body.customer-shell-v19 h6,
body.customer-shell-v19 p,
body.customer-shell-v19 a,
body.customer-shell-v19 span,
body.customer-shell-v19 li,
body.customer-shell-v19 label,
body.customer-shell-v19 small,
body.customer-shell-v19 strong,
body.customer-shell-v19 th,
body.customer-shell-v19 td,
body.customer-shell-v19 input,
body.customer-shell-v19 select,
body.customer-shell-v19 textarea,
body.customer-shell-v19 button,
body.customer-shell-v19 .btn,
body.customer-shell-v19 .form-control,
body.customer-shell-v19 .modal-title,
body.customer-shell-v19 .panel-title,
body.customer-shell-v19 .panel-heading,
body.customer-shell-v19 .dropdown-menu,
body.customer-shell-v19 .tooltip,
body.customer-shell-v19 .popover {
    font-family: var(--font-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif) !important;
}

body.customer-shell-v19 .fa,
body.customer-shell-v19 .far,
body.customer-shell-v19 .fas,
body.customer-shell-v19 .fal,
body.customer-shell-v19 .fab {
    font-family: FontAwesome !important;
}

body.customer-shell-v19 .glyphicon {
    font-family: "Glyphicons Halflings" !important;
}

body.customer-shell-v19 [class^="icon-"],
body.customer-shell-v19 [class*=" icon-"] {
    font-family: "simple-line-icons" !important;
}

body.customer-shell-v19 .zmdi {
    font-family: "Material-Design-Iconic-Font" !important;
}

/* Shared gray editor masthead; independent of plan and editor surface tokens. */
body.customer-shell-v19 #stepMenu.stepmenu_header,
body.customer-shell-v19 #stepMenu.stepmenu_header > nav.navbar.navbar-fixed-top {
    background: #D5D9DC !important;
    background-color: #D5D9DC !important;
    background-image: none !important;
    border-bottom-color: #BFC5CA !important;
}
body.customer-shell-v19 #stepMenu.stepmenu_header .navbar-brand,
body.customer-shell-v19 #stepMenu.stepmenu_header .dash-lang-btn,
body.customer-shell-v19 #stepMenu.stepmenu_header .navbar-nav > li > a {
    color: #1B1A18 !important;
}

/* Keep editor context and package summary together in one compact second row. */
body.customer-shell-v19 #stepMenu .editor-context { display:flex !important; align-items:center; gap:8px 16px; padding:6px 20px !important; min-height:40px; background:#F8F5EF; }
body.customer-shell-v19 #stepMenu .editor-context > span:first-child { max-width:28%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.customer-shell-v19 #stepMenu .editor-context > span:nth-child(2) { display:none; }
body.customer-shell-v19 #stepMenu .editor-context .editor-shell-credit-summary { float:none !important; margin:0 0 0 auto !important; font-size:12px !important; gap:8px !important; color:#544E45 !important; }
body.customer-shell-v19 #stepMenu .editor-context #editor-save-status { margin:0; font-size:12px; }
body.customer-shell-v19 #stepMenu .editor-context #editor-save-status:not([data-state="error"]):not([data-state="saving"]):not([data-state="dirty"]) { display:none; }
body.customer-shell-v19 #stepMenu .editor-context #aSlelectState { padding:5px 12px !important; font-size:12px !important; }
body.customer-shell-v19 #stepMenu .navbar-fixed-top #acntNav.account-navi { width:auto !important; height:36px !important; min-width:136px; border-radius:8px !important; margin:8px 16px !important; padding:0 12px !important; box-shadow:none !important; }
body.customer-shell-v19 #stepMenu #acntNav #exit-tour { display:flex !important; gap:8px; color:#1B1A18 !important; font-size:13px !important; line-height:20px; white-space:nowrap; }
@media(max-width:991px) { body.customer-shell-v19 #stepMenu .editor-context { flex-wrap:wrap; } body.customer-shell-v19 #stepMenu .editor-context > span:first-child { max-width:100%; } body.customer-shell-v19 #stepMenu .editor-context .editor-shell-credit-summary { flex-wrap:wrap; white-space:normal !important; } }
@media (min-width:992px) and (max-width:1400px) {
 body.customer-shell-v19 #stepMenu .navbar-nav > li.nav-step-arrow { display:none !important; }
 body.customer-shell-v19 #stepMenu .navbar-nav > li > a { padding-left:10px !important; padding-right:10px !important; }
}

/* Reset legacy negative offsets and circular-account dimensions on editor exit. */
body.customer-shell-v19 #stepMenu .navbar-fixed-top #acntNav.account-navi {
    position:absolute !important; top:9px !important; right:16px !important; bottom:auto !important; left:auto !important;
    margin:0 !important; height:36px !important; transform:none !important;
}
body.customer-shell-v19 #stepMenu #acntNav > ul,
body.customer-shell-v19 #stepMenu #acntNav > ul > li {
    position:static !important; top:auto !important; right:auto !important; bottom:auto !important; left:auto !important;
    height:100% !important; min-height:0 !important; margin:0 !important; padding:0 !important; transform:none !important;
    display:flex !important; align-items:center !important;
}
body.customer-shell-v19 #stepMenu #acntNav #exit-tour { height:100% !important; min-height:0 !important; padding:0 !important; line-height:20px !important; align-items:center !important; }

/* Clearly visible dashboard actions on the light header. */
body.customer-shell-v19 .dash-topbar-status a.dash-topbar-buypackage{display:inline-flex!important;align-items:center;gap:8px;min-height:40px;padding:10px 16px!important;background:#fffaf3!important;color:#1b1a18!important;border:1px solid #b9a58f!important;border-radius:8px!important;font-weight:600;text-decoration:none!important}body.customer-shell-v19 .dash-topbar-status a.dash-topbar-buypackage span,body.customer-shell-v19 .dash-topbar-status a.dash-topbar-buypackage i{color:#1b1a18!important}body.customer-shell-v19 .dash-topbar-status a.dash-topbar-buypackage:hover{background:#eee3d3!important}.dashboard-tour-actions{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 0 22px}.dashboard-tour-actions h1{font-size:24px;font-weight:600;margin:0;color:#1b1a18}.dashboard-create-tour{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:12px 20px;border:1px solid #a8553b;border-radius:10px;background:#a8553b;color:white!important;font:600 14px/1.4 Inter,system-ui,sans-serif;text-decoration:none!important}.dashboard-create-tour:hover{background:#91462f;border-color:#91462f}@media(max-width:580px){.dashboard-tour-actions{align-items:flex-start;flex-direction:column}.dashboard-create-tour{width:100%}}

/* Keep the package action identifiable when navigating by keyboard. */
body.customer-shell-v19 .dash-topbar-status a.dash-topbar-buypackage:focus-visible { outline:3px solid #91462f; outline-offset:3px; }
