/* Mobile-First: Tiles - Base (bis 575px) */
.base-tile {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
    margin: 15px 0;
    border: 1px solid var(--glass-border-dark);
    border-radius: 18px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-subtle);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Tablet (600px - 1023px) */
@media (min-width: 600px) {
    .base-tile {
        padding-left: 25px;
        padding-right: 25px;
        padding-top: 35px;
        padding-bottom: 35px;
    }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) {
    .base-tile {
        padding-left: 30px;
        padding-right: 30px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* Widescreen (1440px+) */
@media (min-width: 1440px) {
    .base-tile {
        padding-left: 30px;
        padding-right: 30px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

.base-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    background: var(--glass-bg);
}

.base-tile-number {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-xxl);
    line-height: var(--line-height-base);
    text-align: center;
    margin-bottom: 10px;
}

.base-tile-text {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.base-tile-title {
    text-align: center;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100%;
}

/* Wenn base-tile-title mit base-headline-h3 kombiniert wird, werden die H3-Styles verwendet */
h3.base-tile-title.base-headline-h3,
.base-tile-title.base-headline-h3 {
    font-family: var(--font-family-primary);
    font-size: clamp(0.875rem, 2.5vw, var(--font-size-h3));
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-text-primary) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    hyphens: none;
    word-break: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
}

/* Desktop: Schriftgröße wieder auf normale H3-Größe */
@media (min-width: 1024px) {
    h3.base-tile-title.base-headline-h3,
    .base-tile-title.base-headline-h3 {
        font-size: var(--font-size-h3);
    }
}

.base-tile-description {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.base-tile-content {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.base-tile-content strong {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    font-weight: bold;
}

.base-tile-label {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.base-tiles-row {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.base-tiles-row .base-tile {
    flex: 1 1 100%;
    width: 100%;
    min-width: 100%;
    height: 200px;
}

/* Regel 014: Mobile-Ansicht - Pro Zeile nur eine Tile */
@media (max-width: 575px) {
    .base-tiles-row {
        flex-direction: column;
    }

    .base-tiles-row .base-tile {
        flex: 1 1 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

