/* ==========================================================================
   EPCAN v2 Verfügbarkeitsanzeige
   Shared Styles für Normal- und Inline-Check
   ========================================================================== */

/* --------------------------------------------------------------------------
   Kategorie-Karte
   -------------------------------------------------------------------------- */

.epcan-v2-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--epcan-v2-accent, #6c757d);
    border-radius: 8px;
    padding: 28px 32px;
    margin: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.epcan-v2-card__icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    color: var(--epcan-v2-accent, #6c757d);
}

.epcan-v2-card__icon svg {
    width: 100%;
    height: 100%;
}

.epcan-v2-card__body {
    flex: 1;
    min-width: 0;
}

.epcan-v2-card__area {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--epcan-v2-accent, #6c757d);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.epcan-v2-card__headline {
    font-size: 24px;
    font-weight: 700;
    color: #122538;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.epcan-v2-card__text {
    font-size: 16px;
    color: #374151;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

.epcan-v2-card__detail {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Status-Texte (AreaState etc.)
   -------------------------------------------------------------------------- */

.epcan-v2-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f0f7ff;
    border: 1px solid #d0e3f7;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 0 0 24px 0;
}

.epcan-v2-status__icon {
    flex-shrink: 0;
    color: #004D9F;
    margin-top: 1px;
}

.epcan-v2-status__text {
    font-size: 14px;
    color: #122538;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Tarif-Überschrift
   -------------------------------------------------------------------------- */

.epcan-v2-tariffs__heading {
    font-size: 18px;
    font-weight: 600;
    color: #122538;
    text-align: center;
    margin: 32px 0 20px;
    position: relative;
}

.epcan-v2-tariffs__heading::before,
.epcan-v2-tariffs__heading::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: #d1d5db;
}

.epcan-v2-tariffs__heading::before {
    right: calc(50% + 100px);
}

.epcan-v2-tariffs__heading::after {
    left: calc(50% + 100px);
}

/* --------------------------------------------------------------------------
   Tarif-Grid
   -------------------------------------------------------------------------- */

.epcan-v2-tariffs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 0 0 24px 0;
}

/* --------------------------------------------------------------------------
   Tarif-Tile
   -------------------------------------------------------------------------- */

.epcan-v2-tile {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    width: calc(33.333% - 14px);
    min-width: 240px;
    max-width: 320px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.epcan-v2-tile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.epcan-v2-tile--business {
    border-color: #004D9F;
    border-width: 2px;
}

.epcan-v2-tile--gestattung {
    border-color: #6c757d;
    border-style: dashed;
}

/* Tile Header */
.epcan-v2-tile__header {
    margin-bottom: 16px;
}

.epcan-v2-tile__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.epcan-v2-tile__badge--business {
    background: #e8f0fe;
    color: #004D9F;
}

.epcan-v2-tile__badge--sbs {
    background: #e8f0fe;
    color: #004D9F;
}

.epcan-v2-tile__badge--gestattung {
    background: #f3f4f6;
    color: #6c757d;
}

.epcan-v2-tile__name {
    font-size: 17px;
    font-weight: 600;
    color: #122538;
    margin: 0;
    line-height: 1.3;
}

/* Gestattungsvertrag-Hinweis */
.epcan-v2-tile__hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    background: #fef9f0;
    border: 1px solid #f0dcc3;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.4;
    color: #7a6240;
}

.epcan-v2-tile__hint svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #c89640;
}

/* Tile Preis */
.epcan-v2-tile__price {
    text-align: center;
    padding: 16px 0;
    margin-bottom: 16px;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.epcan-v2-tile__price-label {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.epcan-v2-tile__price-value {
    font-size: 28px;
    font-weight: 700;
    color: #122538;
}

.epcan-v2-tile__price-value small {
    font-size: 18px;
    font-weight: 600;
}

/* Tile Actions */
.epcan-v2-tile__actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.epcan-v2-tile__upgrade {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.epcan-v2-tile__upgrade span {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.epcan-v2-btn {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    line-height: 1.4;
    box-sizing: border-box;
    word-break: break-word;
}

.epcan-v2-btn--book {
    background: #F1800E;
    color: #fff;
    width: 100%;
}

.epcan-v2-btn--book:hover {
    background: #d9710c;
    color: #fff;
    text-decoration: none;
}

.epcan-v2-btn--upgrade {
    background: transparent;
    color: #F1800E;
    border: 2px solid #F1800E;
    font-size: 13px;
    padding: 8px 16px;
}

.epcan-v2-btn--upgrade:hover {
    background: #F1800E;
    color: #fff;
    text-decoration: none;
}

.epcan-v2-btn--primary {
    background: #004D9F;
    color: #fff;
}

.epcan-v2-btn--primary:hover {
    background: #003a7a;
    color: #fff;
    text-decoration: none;
}

.epcan-v2-tile--business .epcan-v2-btn--book {
    background: #004D9F;
}

.epcan-v2-tile--business .epcan-v2-btn--book:hover {
    background: #003a7a;
}

.epcan-v2-tile--gestattung .epcan-v2-btn--book {
    background: #6c757d;
}

.epcan-v2-tile--gestattung .epcan-v2-btn--book:hover {
    background: #565e64;
}

/* --------------------------------------------------------------------------
   Actions Container (Projektseite etc.)
   -------------------------------------------------------------------------- */

.epcan-v2-actions {
    text-align: center;
    margin: 24px 0;
}

/* --------------------------------------------------------------------------
   Neubau-Hinweis
   -------------------------------------------------------------------------- */

.epcan-v2-neubau-hint {
    background: #f0f7ff;
    border-left: 4px solid #004D9F;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.epcan-v2-neubau-hint a {
    color: #004D9F;
    font-weight: 600;
    text-decoration: none;
}

.epcan-v2-neubau-hint a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .epcan-v2-tile {
        width: calc(50% - 10px);
        min-width: 200px;
    }
}

@media (max-width: 640px) {
    .epcan-v2-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
        gap: 16px;
    }

    .epcan-v2-card__icon {
        width: 56px;
        height: 56px;
    }

    .epcan-v2-card__headline {
        font-size: 20px;
    }

    .epcan-v2-tariffs__heading::before,
    .epcan-v2-tariffs__heading::after {
        display: none;
    }

    .epcan-v2-tile {
        width: 100%;
        max-width: 340px;
        min-width: unset;
    }
}
