* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    font-size: 1.2em;
    color: #666;
}

/* Datenquelle Styling */
.data-source {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border-left: 4px solid #4ECDC4;
}

.data-source p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
}

.source-link {
    color: #4ECDC4;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.source-link:hover {
    color: #FF6B6B;
    text-decoration: underline;
}

/* Social Media Section */
.social-section {
    margin-top: 20px;
    text-align: center;
}

.social-section p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #4ECDC4;
}

.social-link svg {
    flex-shrink: 0;
}

/* Tab Navigation */
.tab-container {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
    flex: 1;
    max-width: 150px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.tab-btn span {
    display: block;
    line-height: 1.2;
}

.tab-btn span:first-child {
    margin-bottom: 2px;
}

.tab-btn:hover {
    border-color: #4ECDC4;
    background: rgba(78, 205, 196, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.tab-btn.active {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    color: white;
    border-color: #4ECDC4;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Tab Navigation */
.tab-container {
    display: flex;
    gap: 5px;
    margin-bottom: 0;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: #4ECDC4;
    background: rgba(78, 205, 196, 0.1);
}

.tab-btn.active {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    color: white;
    border-color: #4ECDC4;
}

.search-container {
    position: relative;
    flex: 1 1 250px;
    min-width: 200px;
    max-width: 400px;
}

.search-container input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    height: 44px;
    box-sizing: border-box;
}

.search-container input:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.search-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.search-container button:hover {
    color: #FF6B6B;
}

.filter-container {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Filter container adjustments */

select {
    padding: 12px 12px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 44px;
    box-sizing: border-box;
    min-width: 120px;
}

select[multiple] {
    height: auto;
    min-height: 44px;
    max-height: 120px;
    overflow-y: auto;
    border-radius: 15px;
    padding: 8px;
}

select[multiple] option {
    padding: 4px 8px;
    margin: 2px 0;
    border-radius: 8px;
    cursor: pointer;
}

select[multiple] option:checked {
    background-color: #4ECDC4;
    color: white;
}

select:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.clear-filter-btn {
    padding: 12px 12px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 44px;
    box-sizing: border-box;
    min-width: 120px;
    color: #666;
    font-weight: 500;
}

.clear-filter-btn:hover {
    border-color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
}

.clear-filter-btn:focus {
    outline: none;
    border-color: #4ECDC4;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.add-btn {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-card h3 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card p {
    font-size: 1.1em;
    color: #666;
    font-weight: 500;
}

.table-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-width: 1400px;
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 10;
    height: 50px;
    line-height: 1.2;
    box-sizing: border-box;
    vertical-align: middle;
    position: relative;
}

th.sort-asc::after {
    content: "↑";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: bold;
}

th.sort-desc::after {
    content: "↓";
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: bold;
}

th:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a42a0);
}

td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

tr:hover {
    background: rgba(78, 205, 196, 0.1);
}

tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    color: #FFD700;
    font-size: 1.2em;
}

.category-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    text-transform: uppercase;
}

.category-premium {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: white;
}

.category-standard {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    color: white;
}

.category-günstig {
    background: linear-gradient(45deg, #95E1D3, #84C7AE);
    color: white;
}

.action-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin: 2px;
    transition: all 0.3s ease;
}

.edit-btn {
    color: #4ECDC4;
    border-color: #4ECDC4;
}

.edit-btn:hover {
    background: #4ECDC4;
    color: white;
}

.delete-btn {
    color: #FF6B6B;
    border-color: #FF6B6B;
}

.delete-btn:hover {
    background: #FF6B6B;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalOpen 0.3s ease;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #FF6B6B;
}

.modal h2 {
    margin-bottom: 20px;
    color: #333;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal input,
.modal select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.modal input:focus,
.modal select:focus {
    outline: none;
    border-color: #4ECDC4;
}

.modal button[type="submit"] {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.info-btn {
    color: #667eea;
    border-color: #667eea;
}

.info-btn:hover {
    background: #667eea;
    color: white;
}

/* Details Modal */
.details-modal-container .modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.detail-item {
    padding: 10px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border-left: 3px solid #4ECDC4;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .controls {
        gap: 12px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 968px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .controls {
        gap: 12px;
    }
    
    .search-container {
        max-width: 300px;
        order: 1;
    }
    
    .tab-container {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .filter-container {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.8em;
        margin-bottom: 8px;
    }
    
    header p {
        font-size: 1em;
    }
    
    .social-section p {
        font-size: 1em;
    }
    
    .social-links {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .social-link {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .social-link svg {
        margin-right: 4px;
    }
    
    .controls {
        gap: 10px;
    }
    
    .tab-container {
        gap: 3px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1;
    }
    
    .filter-container {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .clear-filter-btn {
        min-width: 100px;
        font-size: 13px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card h3 {
        font-size: 1.5em;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px 4px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0px;
    }
    
    header {
        padding: 2px;
        margin-bottom: 0px;
    }
    
    header h1 {
        font-size: 1.6em;
        margin-bottom: 0px;
    }
    
    header p {
        font-size: 0.9em;
        margin-bottom: 0px;
    }
    
    .social-section {
        margin-top: 0px;
        margin-bottom: 0px;
    }
    
    .social-section p {
        font-size: 0.85em;
        margin-bottom: 2px;
    }
    
    .social-links {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 2px;
    }
    
    .social-link {
        padding: 6px !important;
        font-size: 0 !important;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        flex: none;
    }
    
    .social-link svg {
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
    }
    
    .social-link span {
        display: none !important;
    }
    
    .controls {
        gap: 0px;
        flex-direction: column;
        margin: 2px 0px 5px 0px;
        padding: 0px;
    }
    
    .search-container {
        order: 1;
        width: 100%;
        height: auto;
        margin: 8px 0;
        padding: 0;
        position: relative;
        overflow: visible;
    }
    
    .search-toggle {
        display: none;
    }
    
    .search-toggle:hover {
        background: rgba(78, 205, 196, 0.1);
        transform: scale(1.1);
    }
    
    .search-toggle svg {
        color: #666;
        width: 14px;
        height: 14px;
    }
    
    .search-input-container {
        position: static;
        transform: none;
        width: 100%;
        overflow: visible;
        transition: none;
        z-index: auto;
        background: transparent;
        border-radius: 0;
        backdrop-filter: none;
        box-shadow: none;
        padding: 0;
    }
    
    .search-input-container.expanded {
        width: 90vw;
        max-width: 400px;
        padding: 10px;
    }
    
    .search-input-container input {
        font-size: 16px;
        padding: 12px 15px;
        height: 44px;
        border-radius: 25px;
        width: 100%;
        border: 2px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.9);
        box-sizing: border-box;
        opacity: 1;
        transition: all 0.3s ease;
        color: #333;
    }
    
    .search-input-container input:focus {
        outline: none;
        border-color: #4ECDC4;
        box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
        background: white;
        text-align: left;
    }
    
    .search-input-container input:not(:placeholder-shown) {
        text-align: left;
    }
    
    .search-input-container.expanded input {
        opacity: 1;
    }
    
    .search-input-container button {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        font-size: 14px;
        cursor: pointer;
        color: #666;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease;
        opacity: 0;
    }
    
    .search-input-container.expanded button {
        opacity: 1;
    }
    
    .search-input-container button:hover {
        background: rgba(255, 107, 107, 0.1);
        color: #FF6B6B;
    }
    
    .tab-container {
        order: 2;
        gap: 1px;
        width: 100%;
        margin: 2px 0px;
        padding: 0px;
        position: relative;
    }
    
    .tab-btn {
        padding: 6px 4px;
        font-size: 11px;
        flex: 1;
        min-width: 0;
        height: 32px;
        border-radius: 16px;
        margin: 0px;
    }
    
    .filter-container {
        order: 3;
        background: transparent;
        border-radius: 10px;
        padding: 4px;
        width: calc(100% - 8px);
        margin: 2px auto 10px auto;
        gap: 2px;
        flex-direction: column;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
    }
    
    .filter-container > * {
        margin: 0;
    }
    
    .clear-filter-btn {
        width: 100%;
        font-size: 16px;
        text-align: center;
        border-radius: 10px;
        height: 40px;
        padding: 8px 8px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        background: transparent;
        transition: all 0.2s ease;
        min-width: auto;
        color: white;
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .clear-filter-btn {
        max-width: 140px;
        margin: 0 auto;
        font-size: 16px;
        padding: 8px 12px;
        flex-shrink: 0;
    }
    
    .clear-filter-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    /* Force transparent filter container on mobile */
    .filter-container {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    
    /* Alternative: Stack the filter controls on very small screens */
    .filter-container {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .clear-filter-btn {
        order: 2;
        align-self: center;
        width: auto !important;
        min-width: 120px;
        max-width: 160px;
    }
    
    .clear-filter-btn:focus {
        outline: none;
        border-color: #4ECDC4;
        box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
    }
    
    .clear-filter-btn {
        background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
        color: white;
        border: none;
        font-weight: 500;
    }
    
    .clear-filter-btn:active {
        transform: scale(0.98);
    }
    
    /* Mobile Category Filter Optimizations */
    .category-filter-section {
        margin-bottom: 25px;
    }
    
    /* Mobile styling adjustments */
    
    .category-filter-options {
        margin-top: 10px !important;
        padding: 15px !important;
        border-radius: 10px !important;
    }
    
    .filter-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .filter-option {
        padding: 6px 10px !important;
        font-size: 13px !important;
        border-radius: 6px !important;
    }
    
    .filter-option input[type="checkbox"] {
        transform: scale(1.2) !important;
    }
    
    .filter-container {
        order: 3;
        background: transparent;
        border-radius: 10px;
        padding: 4px;
        width: calc(100% - 8px);
        margin: 0 auto 20px auto;
        gap: 2px;
        flex-direction: column;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        position: relative;
        z-index: 50;
    }
    
    .stat-card {
        padding: 8px;
        text-align: center;
        border-radius: 12px;
    }
    
    .stat-card h3 {
        font-size: 1.2em;
        margin-bottom: 2px;
    }
    
    .stat-card p {
        font-size: 0.85em;
        margin: 0;
    }
    
    table {
        font-size: 12px;
        min-width: 100%;
    }
    
    th, td {
        padding: 6px 4px;
        white-space: nowrap;
    }
    
    .table-container {
        margin: 0 -1px;
        padding: 0 1px;
    }
    
    .modal-content {
        margin: 2% auto;
        padding: 8px;
        width: 98%;
        max-width: none;
        border-radius: 12px;
    }
    
    .modal h2 {
        font-size: 1.1em;
    }
    
    .modal p {
        font-size: 0.8em;
    }
    
    footer {
        padding: 6px 1px;
        margin-top: 0px;
    }
    
    footer p {
        font-size: 12px;
        margin: 0px;
    }
    
    .export-container {
        margin: 0px;
        padding: 0px;
    }
    
    .export-btn {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 15px;
    }
}

/* Desktop search - always expanded */
@media (min-width: 481px) {
    .search-toggle {
        display: none !important;
    }
    
    .search-input-container {
        position: static !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    .search-input-container input {
        height: auto !important;
        border-radius: 25px !important;
        padding: 12px 35px 12px 15px !important;
    }
}

/* Touch-optimized interactions */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.8em;
        margin-bottom: 8px;
    }
    
    header p {
        font-size: 1em;
    }
    
    .social-section p {
        font-size: 1em;
    }
    
    .social-links {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .social-link {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .controls {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .search-container {
        order: 2;
        width: 70%;
        min-width: auto;
        margin: 8px 0;
        flex: none;
        margin-right: 8px;
    }
    
    .search-container input {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 25px;
        font-size: 16px;
        background: rgba(255, 255, 255, 0.9);
        color: #333;
        transition: all 0.3s ease;
        height: 44px;
        box-sizing: border-box;
    }
    
    .search-container input:focus {
        outline: none;
        border-color: #4ECDC4;
        box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
        background: white;
    }
    
    .search-container button {
        display: none;
    }
    
    .tab-container {
        order: 1;
        gap: 4px;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 8px 6px;
        font-size: 10px;
        flex: 1;
        min-width: 70px;
        border-radius: 18px;
        font-weight: 600;
        min-height: 40px;
    }
    
    .tab-btn span {
        line-height: 1.1;
    }
    
    .tab-btn span:first-child {
        margin-bottom: 1px;
    }
    
    .tab-btn:hover {
        background: rgba(78, 205, 196, 0.1);
    }
    
    .filter-container {
        order: 2;
        gap: 6px;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
        padding: 0;
        margin: 8px 0;
        display: flex;
        align-items: center;
    }
    
    .clear-filter-btn {
        min-width: 80px;
        font-size: 12px;
        padding: 6px 12px;
        height: 44px;
        flex-shrink: 0;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card h3 {
        font-size: 1.5em;
    }
    
    table {
        font-size: 14px;
        min-width: 800px;
    }
    
    th, td {
        padding: 8px 4px;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .social-link:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    button:hover {
        transform: none;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4ECDC4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    background-color: #f8f9fa;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
}

footer p {
    margin: 5px 0;
    font-size: 14px;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Export Button */
.export-container {
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.export-btn {
    padding: 12px 24px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Enhanced Touch Support for Mobile Devices */
button,
.search-button,
.clear-filter-btn {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   PINKE VERSION (aktiviert mit ?pink=true)
   ======================================== */

body.pink-mode {
    background: linear-gradient(135deg, #ff6eb4 0%, #c44569 100%) !important;
}

.pink-mode header h1 {
    background: linear-gradient(45deg, #ff6eb4, #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pink-mode .tab-btn.active {
    background: linear-gradient(45deg, #ff6eb4, #ff9ff3);
    color: white;
}

.pink-mode .tab-btn:hover {
    background: rgba(255, 110, 180, 0.1);
}

.pink-mode .search-container input:focus,
.pink-mode .search-input-container input:focus {
    border-color: #ff6eb4;
    box-shadow: 0 0 0 3px rgba(255, 110, 180, 0.1);
}

.pink-mode .clear-filter-btn {
    background: linear-gradient(45deg, #ff6eb4, #ff9ff3);
    color: white;
    border: none;
}

.pink-mode .clear-filter-btn:hover {
    background: linear-gradient(45deg, #ff9ff3, #ff6eb4);
    transform: translateY(-2px);
}

.pink-mode .stat-card {
    border-left: 4px solid #ff6eb4;
}

.pink-mode .export-btn {
    background: linear-gradient(45deg, #ff6eb4, #ff9ff3);
}

.pink-mode .export-btn:hover {
    background: linear-gradient(45deg, #ff9ff3, #ff6eb4);
    transform: translateY(-2px);
}

.pink-mode table thead th {
    background: linear-gradient(45deg, #ff6eb4, #ff9ff3);
    color: white;
}

.pink-mode .social-link:hover {
    background: rgba(255, 110, 180, 0.1);
    transform: translateY(-2px);
}

.pink-mode .controls {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(255, 110, 180, 0.2);
}

.pink-mode .data-source {
    border-left-color: #ff6eb4;
}

.pink-mode .source-link {
    color: #ff6eb4;
}

.pink-mode .source-link:hover {
    color: #ff9ff3;
}

/* 🍎 Apfel-Regen Easter Egg Animation - Performance optimiert */
@keyframes apfel-fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 1;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(calc(100vh + 50px)) rotate(180deg);
        opacity: 0;
    }
}

#apfel-rain div {
    will-change: transform, opacity;
    animation-timing-function: ease-in;
    backface-visibility: hidden; /* Bessere Performance */
    transform-style: preserve-3d; /* Hardware-Beschleunigung */
}
