/* Mobile-First: Basis-Styles gelten für mobile Geräte */
.widget-tile {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    background: var(--color-surface);
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 25px;
    padding-bottom: 25px;
    margin: 15px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.widget-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.widget-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--color-border-light);
    background-color: var(--color-surface-hover);
}

.widget-tile:hover::before {
    opacity: 1;
}

.widget-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;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.widget-tile-text {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    text-align: center;
    color: var(--color-text-secondary);
}

.widget-tile-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    color: var(--color-text-primary);
}

.widget-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;
}

/* Regel 003 von 011-ui-mobile.mdc: In der Mobile Version darf pro Zeile nur 1 Tile sein */
.widget-tiles-row .widget-tile {
    flex: 1 1 100%;
    width: 100%;
    min-width: 100%;
    height: 200px;
}

/* Mobile-First: Responsive Design - Regel 022: 4 Breakpoints */
/* Basis-Styles gelten für mobile (max-width: 576px) - keine Media Query erforderlich */

/* Tablet/iPad (min-width: 600px) */
@media (min-width: 600px) {
    .widget-tile {
        padding: 25px;
    }
    
    .widget-tiles-row .widget-tile {
        flex: 1 1 0;
        min-width: 200px;
        width: auto;
    }
}

/* Kleiner Desktop/13-Zoll (min-width: 1024px) */
@media (min-width: 1024px) {
    .widget-tile {
        padding: 25px;
    }
}

/* Großer Desktop/Widescreen (min-width: 1440px) */
@media (min-width: 1440px) {
    .widget-tile {
        padding: 25px;
    }
}
