* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    padding: 1rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #00ADEF, #008fc7);
    color: white;
    padding: 2rem;
    text-align: center;
}

.logo {
    height: 50px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-content {
    padding: 2rem;
}

/* Quick Start Bereich */
.quick-start {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

    .quick-start h2 {
        color: #28a745;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

.quick-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.quick-option {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #28a745;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .quick-option:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
    }

    .quick-option i {
        font-size: 2rem;
        color: #28a745;
        margin-bottom: 0.5rem;
    }

    .quick-option h3 {
        color: #2c3e50;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .quick-option p {
        color: #596b7d;
        font-size: 0.85rem;
    }

.calculator-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

    .section-header h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #2c3e50;
        margin: 0;
    }

    .section-header .icon {
        font-size: 1.5rem;
        color: #00ADEF;
    }

.description {
    color: #596b7d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.calc-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e1e5e9;
}

    .calc-card h3 {
        color: #2c3e50;
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

    .input-group label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: #2c3e50;
        position: relative;
    }

.info-icon {
    color: #00ADEF;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    transition: transform 0.2s;
}

    .info-icon:hover {
        transform: scale(1.1);
    }

.tooltip {
    position: absolute;
    background: #2c3e50;
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    width: 280px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    top: auto;
    bottom: calc(100% + 10px);
    left: 0;
}

    .tooltip::before {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 20px;
        width: 10px;
        height: 10px;
        background: #2c3e50;
        transform: rotate(45deg);
    }

.info-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip .emoji {
    font-size: 1.2rem;
    margin-right: 0.3rem;
}

.input-group input, .input-group select, .consumer-quick-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.consumer-quick-select {
    padding: 0.75rem;
}

    .input-group input:focus, .input-group select:focus, .consumer-quick-select:focus {
        outline: none;
        border-color: #00ADEF;
    }

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Verbraucher-Tabelle Erweiterungen */
.verbraucher-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    padding: 0 0.75rem;
    font-size: 0.9rem;
}

.header-col {
    padding: 0.5rem 0;
}

.verbraucher-liste {
    margin-bottom: 1.5rem;
}

.verbraucher-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

    .verbraucher-item input {
        padding: 0.75rem;
    }

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

    .remove-btn:hover {
        background: #c82333;
    }

.add-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
    margin-bottom: 1rem;
}

    .add-btn:hover {
        background: #218838;
    }

.button-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.calc-button {
    background: linear-gradient(135deg, #00ADEF, #008fc7);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

    .calc-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 173, 239, 0.25);
    }

    .calc-button:active {
        transform: translateY(0);
    }

.reset-button {
    background: #6c757d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

    .reset-button:hover {
        background: #5c636a;
        transform: translateY(-2px);
    }

.result {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #e7f3ff, #f0f8ff);
    border: 2px solid #00ADEF;
    border-radius: 10px;
    font-size: 1.1rem;
    display: none;
    position: relative;
}

    .result::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        background: linear-gradient(135deg, #00ADEF, #008fc7);
        border-radius: 10px 0 0 10px;
    }

    .result.show {
        display: block;
        animation: slideIn 0.3s ease;
    }

    .result.warning {
        background: linear-gradient(135deg, #fff3cd, #fff9e6);
        border-color: #ffc107;
    }

        .result.warning::before {
            background: #ffc107;
        }

    .result.error {
        background: linear-gradient(135deg, #f8d7da, #fde2e4);
        border-color: #dc3545;
    }

        .result.error::before {
            background: #dc3545;
        }

    .result.success {
        background: linear-gradient(135deg, #d4edda, #e6f4ea);
        border-color: #28a745;
    }

        .result.success::before {
            background: #28a745;
        }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0.5rem 0 0 0;
}

    .result ul li {
        padding: 0.25rem 0;
        position: relative;
        padding-left: 1.5rem;
    }

        .result ul li::before {
            content: "⚡";
            position: absolute;
            left: 0;
            color: #00ADEF;
        }

.interpretation-box {
    background: #f0f8ff;
    border: 1px solid #00ADEF;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

    .interpretation-box .title {
        font-weight: 600;
        color: #00ADEF;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .interpretation-box .content {
        color: #2c3e50;
        line-height: 1.5;
    }

.error-text {
    color: #dc3545;
    font-weight: 500;
}

.learn-more {
    background: linear-gradient(135deg, #fff5e6, #ffe8cc);
    border: 1px solid #ff9800;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

    .learn-more .title {
        color: #ff9800;
        font-weight: 600;
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .learn-more .content {
        color: #2c3e50;
        line-height: 1.6;
    }

/* Erweiterte Vergleichstabelle */
.advanced-section {
    background: #f5f7fa;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
    border: 1px solid #e1e5e9;
}

    .advanced-section h2 {
        color: #2c3e50;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .advanced-section .description {
        color: #596b7d;
        margin-bottom: 1.5rem;
    }

.comparison-table-simple {
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.simple-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

    .simple-table th {
        background: #f8f9fa;
        color: #2c3e50;
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        border-bottom: 2px solid #e1e5e9;
    }

    .simple-table td {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f0f0f0;
        vertical-align: middle;
    }

    .simple-table tbody tr:hover {
        background: #f8f9fa;
    }

    .simple-table .highlight {
        font-weight: 600;
        color: #28a745;
    }

    .simple-table .warning {
        color: #856404;
    }

    .simple-table .danger {
        color: #721c24;
    }

    .simple-table .small-text {
        font-size: 0.85rem;
        color: #596b7d;
    }

/* Mobile Optimierung */
@media (max-width: 768px) {
    .input-row {
        grid-template-columns: 1fr;
    }

    .verbraucher-header, .verbraucher-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .verbraucher-header {
        display: none; /* Header auf Mobile ausblenden */
    }

    .quick-options {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .calc-button, .reset-button {
        min-width: auto;
    }

    .main-content {
        padding: 1.5rem;
    }

    #quick-add-consumer {
        flex-direction: column;
    }
}