    /* File: assets/css/frontend.css */

    /* Inter Variable Font – Frontend */
    @font-face {
        font-family: 'Inter';
        src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
        font-weight: 100 900;
        font-style: normal;
        font-display: swap;
    }

    /* Tarif Manager Frontend UI: Font-Stack */
    .tm-frontend-wrap,
    .tm-frontend-wrap .tm-card,
    .tm-frontend-wrap .tm-card-section,
    .tm-frontend-wrap .tm-card-title,
    .tm-frontend-wrap .tm-card-options,
    .tm-frontend-wrap .tm-card-cta {
        font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    }

    .tm-frontend-wrap {
        margin: 2rem 0;
        font-size: 14px;
        color: #111827;
    }

    /* Liste von Cards */
    .tm-frontend-card-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* Einzelne Tarif-Card – Basisstil */
    .tm-card {
        background: #ffffff;
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
        overflow: hidden;
        transition:
            box-shadow 0.2s ease,
            transform 0.2s ease;
    }

    .tm-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    }

    /* Card-Layout: 3 Spalten + Details-Zeile */
    .tm-frontend-card-list .tm-card {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr) 260px;
        column-gap: 24px;
    }

    /* 3 Sektionen */
    .tm-card-section {
        padding: 16px 18px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* linke Sektion bleibt fix, wird nicht gestreckt */
    .tm-card-section-left,
    .tm-card-section-middle,
    .tm-card-section-right {
        align-self: none;
    }

    /* Linke Spalte */
    .tm-card-section-left {
        flex: 0 0 200px;
        border-right: 1px solid #e5e7eb;
        background: #fafafa;
        display: flex;
        flex-direction: column;
        align-items: center;      /* horizontal mittig */
        justify-content: center;  /* vertikal mittig */
        text-align: center;
        gap: 8px;
    }

    /* Tarifanbieter-Logo in der linken Card-Sektion */
    .tm-card-provider {
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 10px;
        color: #374151;
    }

    .tm-provider-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .tm-provider-badge__logo {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tm-provider-badge__logo img {
        max-width: 60%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

    .tm-provider-badge__name {
        font-size: 12px;
        font-weight: 500;
        color: #111827;
    }

    /* Netzinfo links */
    .tm-card-netz {
        font-weight: 600;
        font-size: 13px;
        color: #000000;
        margin-bottom: 6px;
    }

    .tm-card-netz img {
        width: 20px;
    }

    .tm-card-term {
        font-size: 12px;
        color: #6b7280;
    }

    /* Smartphone-Bild unter dem Provider-Logo */
    .tm-card-phone {
        margin: 6px 0 10px;
    }

    .tm-card-phone__image {
        width: 100px;
        height: 100px;
        border-radius: 18px;
        background: #f3f4ff;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    }

    .tm-card-phone__image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        display: block;
    }

    .tm-card-phone__placeholder {
        font-size: 11px;
        color: #6b7280;
        text-align: center;
        padding: 4px;
    }

    /* Mittlere Spalte */
    .tm-card-section-middle {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .tm-card-title {
        font-size: 18px;
        font-weight: 700;
    }

    .tm-card-data {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .tm-card-subline {
        font-size: 12px;
        color: #6b7280;
    }

    /* --- Feature-Blöcke in der mittleren Card-Sektion --- */

    .tm-card-features {
        margin-top: 10px;
        padding-top: 20px;
        border-top: 1px solid rgba(148, 163, 184, 0.35);
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 6px;
    }

    .tm-feature-card {
        cursor: default;
        display: flex;
        align-items: center;
        padding: 8px 10px;
        border-radius: 16px;
        background: #f5f7ff;
        column-gap: 8px;
        border: 1px solid transparent;
        transition:
            transform 0.15s ease,
            box-shadow 0.15s ease,
            background-color 0.15s ease,
            border-color 0.15s ease;
    }

    .tm-feature-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.10);
        background-color: #ffffff;
        border-color: rgba(148, 163, 184, 0.25);
    }

    .tm-feature-avatar {
        width: 32px;
        height: 32px;
        border-radius: 12px;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    /* Netz-Icon – nur das Logo in der kleinen Kachel zeigen */
    .tm-feature-avatar--netz .tm-netz-badge {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tm-feature-avatar--netz .tm-netz-badge__label {
        display: none;
    }

    .tm-feature-avatar--netz .tm-netz-badge__icon {
        width: 21px;
        height: 22px;
    }

    .tm-feature-avatar--netz .tm-netz-badge__icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Variantenfarben für andere Blöcke (optional etwas absetzen) */
    .tm-feature-avatar--data {
        background: #ffffff;
    }

    .tm-feature-avatar--flat {
        background: #ffffff;
    }

    .tm-feature-icon-symbol {
        font-size: 16px;
    }

    .tm-feature-icon-symbol img {
        display: block;
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    /* Text im Feature-Block */
    .tm-feature-content {
        display: flex;
        flex-direction: column;
    }

    /* Badge hinter dem Datenvolumen (5G / LTE) */
    .tm-feature-title {
        font-size: 14px;
        font-weight: 600;
        color: #111827;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .tm-feature-title-main {
        font-weight: 600;
    }

    .tm-badge-speed {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 6px;
        height: 18px;
        border-radius: 5px;
        background-color: #1d4ed8;
        color: #ffffff;
        font-size: 10px;
        font-weight: 600;
        line-height: 1;
        text-transform: uppercase;
    }

    .tm-feature-subtitle {
        font-size: 12px;
        color: #6b7280;
        font-weight: 500;
    }

    /* Optionen unter den Feature-Kacheln (Wunschfreischaltdatum, eSIM, ...) */
    .tm-card-options {
        margin-top: 24px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 12px;
    }

    .tm-card-option {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        color: #374151;
        font-weight: 400;
    }

    .tm-card-option-icon {
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .tm-card-option-icon img {
        display: block;
        width: 100%;
        height: 100%;
    }

    .tm-card-option-label {
        white-space: nowrap;
    }

    /* Tarifaktion */
    .tm-card-tarifaktion {
        margin-top: 20px;
        padding: 8px 10px;
        border-radius: 10px;
        background: #ecfdf5;
        border: 1px solid rgba(16, 185, 129, 0.35);
        font-size: 13px;
        color: #166534;
        font-weight: 500;
    }

    /* Tarifdetails Button unter der Tarifaktion – neue Variante */

    .tm-card-details-toggle {
        margin-top: 12px;
        display: flex;
        justify-content: center;
    }

    .tm-card-details-btn {
        border: none;
        background: transparent;
        font-size: 13px;
        font-weight: 500;
        color: #2563eb;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 999px;
        cursor: pointer;
        transition:
            background-color 0.15s ease,
            box-shadow 0.15s ease,
            transform 0.15s ease;
    }

    .tm-card-details-btn:hover {
        background-color: rgba(37, 99, 235, 0.06);
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
        transform: translateY(-1px);
    }

    .tm-card-details-label {
        line-height: 1.2;
    }

    /* NEUER CARET-BLOCK – ersetzt alle bisherigen Styles */

    /* Kreis um den Pfeil */
    .tm-card-details-caret {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 1.5px solid currentColor;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 6px;
        box-sizing: border-box;
    }

    /* ↓ Pfeil (Chevron) */
    .tm-card-details-caret::before {
        content: "";
        width: 5px;
        height: 5px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);              /* macht aus dem L ein V nach unten */
        box-sizing: border-box;
        transition: transform 0.25s ease;
    }

    /* Wenn aufgeklappt → Pfeil nach oben drehen */
    .tm-card-details-btn[aria-expanded="true"] .tm-card-details-caret::before {
        transform: rotate(225deg);             /* 45° + 180° */
    }

    /* Wrapper über volle Card-Breite */
    .tm-card-details-wrapper {
        grid-column: 1 / -1;
        border-top: 1px solid #e5e7eb;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition:
            max-height 0.25s ease,
            opacity 0.2s ease;
    }

    .tm-card-details-wrapper.is-open {
        max-height: 900px; /* ausreichend groß für Inhalt */
        opacity: 1;
    }

    /* Inneres Grid der Details */
    .tm-card-details-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 24px;
        font-size: 13px;
        padding: 20px;
    }

    .tm-detail-column {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .tm-detail-section {
        border-radius: 14px;
        background: #f9fafb;
        padding: 12px 14px;
    }

    .tm-detail-heading {
        font-weight: 600;
        margin-bottom: 8px;
    }

    .tm-detail-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 2px 0;
    }

    .tm-detail-row span:last-child {
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .tm-detail-row-total span:last-child {
        font-weight: 600;
    }

    /* Rechte Spalte */
    .tm-card-section-right {
        flex: 0 0 260px;
        border-left: 1px solid #e5e7eb;
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Header bündig oben wie Titel */
        align-items: stretch;
        gap: 10px;
    }

    /* Bestellübersicht */
    .tm-order-header {
        font-size: 18px;
        font-weight: 700;
    }

    .tm-order-block {
        font-size: 14px;
        padding-top: 6px;
        border-top: 1px solid rgba(148, 163, 184, 0.35);
    }

    .tm-order-group-title {
        font-weight: 600;
        margin-bottom: 4px;
    }

    .tm-order-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 8px;
        margin-bottom: 2px;
    }

    .tm-order-label {
        color: #374151;
    }

    .tm-order-value {
        font-variant-numeric: tabular-nums;
        color: #111827;
        font-size: 12px;
        font-weight: 500;
    }

    .tm-order-row-total {
        margin-top: 4px;
        font-weight: 700;
    }

    .tm-order-row-total .tm-order-value {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 3px 8px;
        border-radius: 5px;
        background-color: #1d4ed8;
        color: #ffffff;
        font-weight: 600;
    }

    /* Monatspreis + Button unten rechts */
    .tm-card-price-block {
        text-align: right;
        margin-top: 10px;
        padding-top: 8px;
        border-top: 1px solid rgba(148, 163, 184, 0.35);
        box-shadow: none;
        background: transparent;
        border-radius: 0;
    }

    .tm-card-price-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #9ca3af;
        margin-bottom: 1px;
        font-weight: 600;
    }

    .tm-card-price-value {
        font-size: 18px;
        font-weight: 600;
        color: #1d4ed8;
    }

    /* CTA-Button */
    .tm-card-cta {
        margin-top: 10px;
    }

    .tm-frontend-link {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        color: #ffffff;
        text-decoration: none;
        border: 1px solid #11248f;
        background-color: #11248f;
        transition:
            background-color 0.15s ease,
            border-color 0.15s ease,
            box-shadow 0.15s ease,
            transform 0.1s ease;
    }

    .tm-frontend-link:hover {
        background-color: #0d1a63;
        border-color: #0d1a63;
        transform: translateY(-1px);
    }

    /* Empty-State */
    .tm-frontend-empty {
        color: #6b7280;
    }

    /* --- Responsive Styles --- */

    /* Tablet/Mobile: Card-Layout anpassen */
    @media (max-width: 768px) {
        .tm-frontend-card-list .tm-card {
            grid-template-columns: 1fr;
        }

        .tm-card-section-left,
        .tm-card-section-right {
            border-right: none;
            border-left: none;
            border-bottom: 1px solid #e5e7eb;
        }

        .tm-card-section-right {
            align-items: flex-start;
            text-align: left;
        }

        .tm-card-price-block {
            text-align: left;
        }

        .tm-card-details-inner {
            grid-template-columns: 1fr;
        }
    }

    /* Mobile: Blöcke schön untereinander */
    @media (max-width: 640px) {
        .tm-card-features {
            grid-template-columns: 1fr;
        }

        .tm-card-options {
            grid-template-columns: 1fr 1fr;
        }
    }
