/* ============================================
   Angebote Manager - Frontend Styles
   ============================================ */

:root {
    --angebote-primary: #1a365d;
    --angebote-accent: #9F3882;
    --angebote-accent-light: #b84996;
    --angebote-text: #1a202c;
    --angebote-text-light: #4a5568;
    --angebote-text-muted: #718096;
    --angebote-bg: #ffffff;
    --angebote-bg-light: #f7fafc;
    --angebote-border: #e2e8f0;
    --angebote-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --angebote-shadow-hover: 0 20px 50px rgba(159, 56, 130, 0.15);
}

/* ============================================
   Container
   ============================================ */
.angebote-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   Filter
   ============================================ */
.angebote-filter {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.angebote-filter-btn {
    background: var(--angebote-bg);
    border: 2px solid var(--angebote-accent);
    color: var(--angebote-accent);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-family: inherit;
}

.angebote-filter-btn:hover,
.angebote-filter-btn.active {
    background: var(--angebote-accent);
    color: var(--angebote-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(159, 56, 130, 0.3);
}

/* ============================================
   Cards Design
   ============================================ */
.angebote-grid {
    display: grid;
    gap: 25px;
    margin-bottom: 40px;
}

.angebote-grid.angebote-spalten-2 {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.angebote-grid.angebote-spalten-3 {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.angebote-grid.angebote-spalten-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.angebot-card {
    background: var(--angebote-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--angebote-shadow);
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.angebot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--angebote-accent), var(--angebote-accent-light));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.angebot-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--angebote-shadow-hover);
    border-color: var(--angebote-accent);
}

.angebot-card:hover::before {
    transform: scaleX(1);
}

.angebot-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 15px;
}

.angebot-info {
    flex: 1;
}

.angebot-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--angebote-primary);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.angebot-dauer {
    color: var(--angebote-text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.angebot-preis {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--angebote-accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.angebot-preis sup {
    font-size: 0.7em;
}

.angebot-beschreibung {
    margin-top: 15px;
    color: var(--angebote-text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.angebot-beschreibung p {
    margin: 0;
}

/* Badges */
.angebot-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.angebot-badge-beliebt {
    background: #fbbf24;
    color: #78350f;
}

.angebot-badge-neu {
    background: #34d399;
    color: #064e3b;
}

.angebot-badge-top {
    background: #60a5fa;
    color: #1e3a8a;
}

.angebot-badge-premium {
    background: var(--angebote-accent);
    color: var(--angebote-bg);
}

/* ============================================
   Table Design
   ============================================ */
.angebote-table {
    overflow-x: auto;
}

.angebote-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--angebote-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--angebote-shadow);
}

.angebote-table thead {
    background: var(--angebote-primary);
    color: var(--angebote-bg);
}

.angebote-table th {
    padding: 18px 25px;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.angebote-table td {
    padding: 18px 25px;
    border-bottom: 1px solid var(--angebote-border);
}

.angebote-table tr:last-child td {
    border-bottom: none;
}

.angebote-table .angebot-row {
    transition: background 0.2s;
}

.angebote-table .angebot-row:hover {
    background: var(--angebote-bg-light);
}

.angebot-name {
    font-weight: 600;
    color: var(--angebote-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.angebot-dauer-col {
    color: var(--angebote-text-muted);
}

.angebot-preis-col {
    font-weight: 700;
    color: var(--angebote-accent);
    text-align: right;
    white-space: nowrap;
}

.angebot-badge-inline {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ============================================
   List Design
   ============================================ */
.angebote-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.angebot-list-item {
    background: var(--angebote-bg);
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: var(--angebote-shadow);
    border-left: 4px solid var(--angebote-accent);
    transition: all 0.3s;
}

.angebot-list-item:hover {
    transform: translateX(5px);
    box-shadow: var(--angebote-shadow-hover);
}

.angebot-list-left {
    flex: 1;
}

.angebot-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--angebote-primary);
    margin: 0 0 5px 0;
}

.angebot-list-dauer {
    color: var(--angebote-text-muted);
    font-size: 0.9rem;
}

.angebot-list-preis {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--angebote-accent);
    white-space: nowrap;
}

/* ============================================
   Minimal Design
   ============================================ */
.angebote-minimal {
    background: var(--angebote-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--angebote-shadow);
}

.angebot-minimal-row {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--angebote-border);
}

.angebot-minimal-row:last-child {
    border-bottom: none;
}

.angebot-minimal-name {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--angebote-primary);
    min-width: 200px;
}

.angebot-minimal-dots {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, var(--angebote-border) 50%, transparent 50%);
    background-size: 8px 1px;
    margin: 0 15px;
}

.angebot-minimal-details {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.angebot-minimal-dauer {
    color: var(--angebote-text-muted);
    font-size: 0.9rem;
}

.angebot-minimal-preis {
    font-weight: 700;
    color: var(--angebote-accent);
    white-space: nowrap;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .angebote-grid {
        grid-template-columns: 1fr !important;
    }

    .angebote-filter {
        gap: 8px;
    }

    .angebote-filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .angebot-header {
        flex-direction: column;
        align-items: start;
    }

    .angebot-preis {
        margin-top: 10px;
    }

    .angebote-table {
        font-size: 0.9rem;
    }

    .angebote-table th,
    .angebote-table td {
        padding: 12px 15px;
    }

    .angebot-list-item {
        flex-direction: column;
        align-items: start;
    }

    .angebot-list-preis {
        align-self: flex-end;
    }

    .angebot-minimal-row {
        flex-direction: column;
        align-items: start;
        gap: 8px;
    }

    .angebot-minimal-name {
        min-width: auto;
    }

    .angebot-minimal-dots {
        display: none;
    }

    .angebot-minimal-details {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .angebot-card {
        padding: 20px;
    }

    .angebot-badge {
        top: 15px;
        right: 15px;
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .angebote-table th,
    .angebote-table td {
        padding: 10px;
        font-size: 0.85rem;
    }

    .angebote-minimal {
        padding: 20px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .angebote-filter {
        display: none;
    }

    .angebot-card,
    .angebot-list-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .angebot-card:hover,
    .angebot-list-item:hover {
        transform: none;
    }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .angebot-card,
    .angebot-list-item,
    .angebote-filter-btn {
        transition: none !important;
    }

    .angebot-card::before {
        transition: none !important;
    }
}
