/* Eigene Anpassungen für TelTrainer */

/* Anker-Sprünge (z. B. "Preise" -> #tarife) nicht unter die sticky-Navbar schieben */
html {
    scroll-padding-top: 72px;
    scroll-behavior: smooth;
}

.hero {
    background-color: #f8f9fa;
}

/* Öffentliche Navbar: Marke + Links prominenter, Links in Weiß */
header .navbar-brand {
    font-size: 1.65rem;
    letter-spacing: 0.02em;
}

header .navbar .nav-link {
    color: #fff;
    font-weight: 600;
}

header .navbar .nav-link:hover,
header .navbar .nav-link:focus {
    color: #fff;
    opacity: 0.85;
}

/* ============================================================
   Landingpage (Startseite)
   ============================================================ */

.lp-hero {
    background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
}

.lp-hero .lead {
    color: rgba(255, 255, 255, 0.85);
}

/* Szenario-„Stage": Telefon-Icon zentral, Szenario-Chips ringsum verdrahtet */
.lp-stage {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}

.lp-stage-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.lp-stage-phone {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.25);
    z-index: 3;
}

.lp-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    color: #1f2a44;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 0.4rem 0.9rem rgba(0, 0, 0, 0.2);
}

/* Chips innerhalb der Stage absolut um das Telefon positionieren.
   Deckender Hintergrund verdeckt die Verbindungslinien sauber an der Box-Kante. */
.lp-stage .lp-chip {
    position: absolute;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 2;
}

/* SVG-Icons erben die Farbe via currentColor */
.lp-feature-icon,
.lp-stage-phone {
    color: #0d6efd;
}

/* Abwechselnd getönte Abschnitte */
.lp-section {
    padding: 4rem 0;
}

.lp-section--muted {
    background-color: #f8f9fa;
}

/* Nummerierte Schritte ("So funktioniert's") */
.lp-step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: #0d6efd;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Feature-Icon (Emoji-Kreis) */
.lp-feature-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 12px;
    background-color: #e7f1ff;
    font-size: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

/* Karten mit dezentem Hover */
.lp-card {
    border: 1px solid #e9ecef;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
}

/* Store-Buttons (App-Download) */
.lp-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    border-radius: 10px;
    padding: 0.5rem 1.15rem;
    text-decoration: none;
    line-height: 1.15;
    transition: background 0.15s ease, transform 0.15s ease;
}

.lp-store-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

.lp-store-btn .lp-store-icon {
    display: inline-flex;
    align-items: center;
}

.lp-store-btn small {
    display: block;
    font-size: 0.68rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lp-store-btn strong {
    font-size: 1.05rem;
    font-weight: 600;
}

/* Tarif-Karten */
.lp-plan {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lp-plan--featured {
    border: 2px solid #0d6efd;
    box-shadow: 0 0.75rem 2rem rgba(13, 110, 253, 0.15);
}

.lp-plan-head {
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #f1f3f5;
}

.lp-plan--featured .lp-plan-head {
    background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    border-bottom: none;
}

.lp-plan-price {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
}

.lp-plan-period {
    font-size: 0.95rem;
    color: #6c757d;
}

.lp-plan--featured .lp-plan-period {
    color: rgba(255, 255, 255, 0.85);
}

.lp-plan-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.lp-plan-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.lp-plan-list li {
    display: flex;
    gap: 0.55rem;
    padding: 0.55rem 0;
}

.lp-plan-list li + li {
    border-top: 1px solid #f4f5f7;
}

.lp-plan-check {
    color: #0d6efd;
    font-weight: 700;
}

/* Abschluss-CTA */
.lp-cta {
    background: linear-gradient(180deg, #0a58ca 0%, #084298 100%);
    color: #fff;
}

/* ============================================================
   Panel-Layout (Admin- & User-Bereich)
   Sticky Header oben, linke Navigation, rechts Inhalt
   ============================================================ */

.panel-body {
    background-color: #f4f5f7;
    min-height: 100vh;
}

.panel-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    z-index: 1030;
}

.panel-shell {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 56px);
}

.panel-sidebar {
    flex: 0 0 240px;
    width: 240px;
    background-color: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 1rem 0.75rem;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.panel-sidebar .nav-link {
    color: #374151;
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.panel-sidebar .nav-link:hover {
    background-color: #f1f3f5;
    color: #111;
}

.panel-sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}

.panel-nav-icon {
    width: 1.25rem;
    text-align: center;
    display: inline-block;
}

.panel-content {
    flex: 1 1 auto;
    padding: 1.75rem 2rem;
    min-width: 0;
}

/* Mobil: Sidebar als ausklappbares Overlay */
@media (max-width: 991.98px) {
    .panel-sidebar {
        position: fixed;
        top: 56px;
        left: 0;
        z-index: 1025;
        transform: translateX(-100%);
        transition: transform 0.2s ease-in-out;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }
    .panel-sidebar.open {
        transform: translateX(0);
    }
}

/* ===== Toast-Benachrichtigungen (Flash-Messages) ===== */
.tt-toast-container {
    position: fixed;
    top: 4.75rem;            /* Abstand zum (sticky) Header */
    right: 1rem;
    z-index: 1090;           /* über sticky Header + Inhalt */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: min(360px, calc(100vw - 2rem));
    pointer-events: none;    /* Container blockt keine Klicks; Toasts selbst schon */
}
.tt-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: #fff;
    color: #1f2a44;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 4px solid #6c757d;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.18);
    padding: 0.6rem 0.7rem 0.6rem 0.85rem;
    font-size: 0.9rem;
    line-height: 1.35;
    animation: tt-toast-in 0.22s ease-out;
}
.tt-toast-msg { flex: 1 1 auto; }
.tt-toast-close {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    color: #9aa0a6;
    padding: 0 0.15rem;
}
.tt-toast-close:hover { color: #5f6368; }
.tt-toast-success { border-left-color: #198754; }
.tt-toast-danger  { border-left-color: #dc3545; }
.tt-toast-warning { border-left-color: #ffc107; }
.tt-toast-info    { border-left-color: #0d6efd; }
.tt-toast-hide { animation: tt-toast-out 0.2s ease-in forwards; }
@keyframes tt-toast-in {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: none; }
}
@keyframes tt-toast-out {
    from { opacity: 1; transform: none; }
    to   { opacity: 0; transform: translateX(20px); }
}
@media (max-width: 575.98px) {
    .tt-toast-container { left: 1rem; right: 1rem; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .tt-toast, .tt-toast-hide { animation: none; }
}

/* ===== Szenario-Formular: nummerierte Schritte ===== */
.tt-step { margin-bottom: 1.75rem; }
.tt-step-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}
.tt-step-num {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3);
}
.tt-step-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: #1f2a44;
}

/* ===== Szenario-Auswahl (Familien-Tabs + Karten) ===== */
.tt-fam-tabs .nav-link {
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5f6c7b;
    padding: 0.4rem 0.95rem;
    border: 1px solid #e3e8ef;
    background: #fff;
}
.tt-fam-tabs .nav-link:hover { border-color: #9ec5fe; color: #0d6efd; }
.tt-fam-tabs .nav-link.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}
.tt-fam-tabs .nav-link.active .badge {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #0d6efd !important;
}

.tt-scenario-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    border: 1.5px solid #e3e8ef;
    border-radius: 14px;
    background: #fff;
    padding: 1.15rem 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tt-scenario-card:hover {
    border-color: #9ec5fe;
    box-shadow: 0 0.4rem 1rem rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
}
.tt-scenario-ico {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1;
    background: #eef4ff;
    color: #0d6efd;
    margin-bottom: 0.6rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.tt-scenario-name { font-weight: 600; color: #1f2a44; }
.tt-scenario-desc { font-size: 0.8rem; color: #6c757d; line-height: 1.3; }
.btn-check:checked + .tt-scenario-card {
    border-color: #0d6efd;
    background: #f3f8ff;
    box-shadow: 0 0.4rem 1rem rgba(13, 110, 253, 0.16);
}
.btn-check:checked + .tt-scenario-card .tt-scenario-ico {
    background: #0d6efd;
    color: #fff;
}
.btn-check:focus-visible + .tt-scenario-card { outline: 2px solid #9ec5fe; outline-offset: 2px; }
/* Häkchen oben rechts auf der gewählten Karte */
.btn-check:checked + .tt-scenario-card::after {
    content: "✓";
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Schnellstart-Hinweis (Callout) */
.tt-quickhint {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: #e8f5ee;
    border: 1px solid #b7dfc6;
    color: #0f5132;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
}
.tt-quickhint-ico {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

/* Szenario-Liste: im gefilterten Kontext (konkrete Familie gewählt) ist das
   Trainingstyp-Badge redundant und wird ausgeblendet. */
#szenarioGrid.tt-filtered .tt-type-badge { display: none; }

/* Szenario-Karte: Anlegedatum dezent */
.tt-card-date { font-size: 0.78rem; }

/* ===== Start-/Onboarding-Seite (/user/) ===== */
.tt-ob-num {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}
.tt-ob-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.tt-ob-card:hover { transform: translateY(-3px); box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08); }
