/* ==========================================================================
   Mobile First Styling für Mod Tarife
   ========================================================================== */

/* Optionaler Wrapper, falls du die Module manuell gruppieren möchtest */
.tarife-module-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

/* Container Setup - Stretch Ready */
.mod-tarife-container {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #444;
}

/* Karten Basis */
.tarife-block {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #eaeaea;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
.tarife-head {
    background-color: #799d19;
    color: #ffffff;
    padding: 1.2rem;
    text-align: center;
}

.tarife-head h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
}

/* Content & Typografie */
.tarife-content {
    padding: 1.5rem;
    flex-grow: 1;
    /* Zwingt den Content-Bereich, den Rest der Höhe auszufüllen */
    display: flex;
    flex-direction: column;
}

.t-sub-headline {
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem 0;
    color: #666;
    border-bottom: 2px solid #799d19;
    display: inline-block;
    align-self: flex-start;
}

/* Listen Reset */
.tarife-data-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* MOBILE FIRST LAYOUT */
.tarife-data-list li {
    display: flex;
    flex-direction: column;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 0.5rem;
}

.tarife-data-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.t-label {
    flex: 1 1 auto;
    line-height: 1.4;
    word-break: break-word;
}

.t-label small {
    display: block;
    color: #888;
    margin-top: 4px;
}

.t-value {
    flex: 0 0 auto;
    font-weight: 600;
    text-align: left;
    color: #555;
}

.t-value.highlight {
    color: #799d19;
    font-weight: 700;
}

/* HTML-Elemente, Buttons & Barrierefreiheit */
.t-btn {
    display: inline-block;
    background-color: #0078c1;
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, outline 0.3s ease;
    white-space: nowrap;
    margin-top: 0.5rem;
    align-self: flex-start;
}

.t-btn:hover {
    background-color: #005a91;
}

.tarife-data-list a {
    color: #0078c1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
}

.tarife-data-list a:hover {
    color: #005a91;
    text-decoration-thickness: 2px;
}

.t-btn:focus-visible,
.tarife-data-list a:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
    border-radius: 2px;
}

.tarife-data-list strong,
.tarife-data-list b {
    font-weight: 700;
    color: #333;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (min-width: 480px) {
    .tarife-data-list li {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        gap: 1.5rem;
    }

    .tarife-data-list li.align-center {
        align-items: center;
    }

    .t-value {
        text-align: right;
        white-space: nowrap;
    }

    .t-btn {
        margin-top: 0;
    }
}

@media (min-width: 768px) {
    .tarife-module-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
