/*
 * produkttour.css – Knopf „❓ Hilfe“ und Aussehen der Touren (driver.js)
 *
 * Gemeinsam für alle Seiten mit einer Tour (17.10.2026). Stand zuvor als <style>
 * in productTour.js und als .btn-help in index.html. Als Datei braucht es keinen
 * Nonce (CSP erlaubt Stile von 'self').
 */

.btn-help {
    padding: 8px 20px;
    background: #4c5fd5;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Im Kopf eines Dialogs (Startseite: Organisation, Einstellungen): rechts, neben dem ×. */
.modal-header .btn-help {
    margin-left: auto;
    margin-right: 12px;
}

.btn-help:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.driver-popover.produkttour {
    max-width: 400px;
    padding: 18px 20px;
    border-radius: 12px;
}
.produkttour .driver-popover-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 8px;
}
.produkttour .driver-popover-description {
    font-size: 14.5px;
    line-height: 1.6;
    color: #2d3748;
}
.produkttour .driver-popover-progress-text {
    font-size: 13px;
    color: #4a5568;
    white-space: nowrap;
}
/* driver.js baut die Knopfzeile als <footer>; manche Seiten gestalten jedes
   footer-Element als Kasten (landingpage.css) – hier gilt das nicht. */
.produkttour .driver-popover-footer {
    margin: 14px 0 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    gap: 8px;
    flex-wrap: wrap;
}
.produkttour .driver-popover-navigation-btns {
    gap: 6px;
    margin-left: auto;
}
.produkttour .driver-popover-footer button {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-shadow: none;
    white-space: nowrap;
    margin: 0;
}
.produkttour .driver-popover-next-btn {
    background: linear-gradient(135deg, #4c5fd5 0%, #764ba2 100%);
    color: #fff;
    border: none;
}
.produkttour .driver-popover-prev-btn {
    background: #edf2f7;
    color: #2d3748;
    border: 1px solid #cbd5e0;
}
.produkttour ul,
.produkttour ol {
    margin: 6px 0 6px 18px;
    padding: 0;
}
.produkttour-knopf {
    white-space: nowrap;
}
.produkttour code {
    font-size: 13px;
    background: #edf2f7;
    padding: 1px 4px;
    border-radius: 4px;
}
.produkttour .driver-popover-close-btn:focus-visible,
.produkttour .driver-popover-footer button:focus-visible {
    outline: 3px solid #4c5fd5;
    outline-offset: 2px;
}

/* Mitmach-Schritte (produkttourKern.js): worauf die Tour wartet, und „Weiter“
   gesperrt, bis die Aufgabe erledigt ist. */
.produkttour-status {
    margin: 10px 0 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fffaf0;
    color: #744210;
    font-weight: 600;
}
.produkttour-status.erledigt {
    background: #f0fff4;
    color: #276749;
}
.produkttour .driver-popover-next-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Dialoge, die während einer Tour bedienbar sein müssen (etwa „Position
   hinzufügen“ im Vertragseditor): über Abdunklung und Sprechblase der Tour. */
body.produkttour-laeuft .ueber-produkttour {
    z-index: 1000000001 !important;
}
/* driver.css schaltet während einer Tour die Maus für alles ab außer der markierten
   Stelle und der Sprechblase (.driver-active * { pointer-events: none }). */
body.produkttour-laeuft .ueber-produkttour,
body.produkttour-laeuft .ueber-produkttour * {
    pointer-events: auto;
}
