/* =================================================================
   FREIRAUMFILM FIXED STYLES
   Ergänzende Styles für die behobenen Calculator-Funktionen
   ================================================================= */

/* Projektbeschreibung Textarea - Neues Feld */
#projectDescription {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

#projectDescription:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#projectDescription.invalid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

#projectDescription.valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Zeichenzähler */
.char-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.char-counter .count {
    font-weight: 600;
}

.char-counter .count.warning {
    color: #f59e0b;
}

.char-counter .count.danger {
    color: #ef4444;
}

.char-counter .hint {
    font-size: 0.75rem;
    font-style: italic;
}

/* Preisaufschlüsselung - Verbessertes Layout */
.price-breakdown {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.price-breakdown h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-breakdown h4::before {
    content: "📊";
    font-size: 1.25rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breakdown-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.breakdown-item .label {
    font-size: 0.875rem;
    color: #4b5563;
    font-weight: 500;
}

.breakdown-item .value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 600;
}

.breakdown-item.total {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #3b82f6;
}

.breakdown-item.total .label {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 700;
}

.breakdown-item.total .value {
    font-size: 1.125rem;
    color: #3b82f6;
    font-weight: 700;
}

/* Qualitätsstufen Labels - Aktualisierte Anzeige */
.quality-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.quality-badge.basic {
    background-color: #dbeafe;
    color: #1e40af;
}

.quality-badge.standard {
    background-color: #d1fae5;
    color: #065f46;
}

.quality-badge.premium {
    background-color: #fef3c7;
    color: #92400e;
}

/* Validierungs-Feedback für Projektbeschreibung */
.validation-message {
    display: none;
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.validation-message.show {
    display: block;
}

.validation-message.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.validation-message.success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

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

/* Button Disabled State - Verbessertes Styling */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Tooltip für deaktivierte Buttons */
.button-wrapper {
    position: relative;
    display: inline-block;
}

.button-wrapper[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.button-wrapper:hover[data-tooltip]::after {
    opacity: 1;
}

/* Responsive Anpassungen */
@media (max-width: 640px) {
    #projectDescription {
        min-height: 100px;
        font-size: 0.875rem;
        padding: 0.625rem;
    }
    
    .price-breakdown {
        padding: 1rem;
    }
    
    .breakdown-item {
        padding: 0.5rem 0;
    }
    
    .breakdown-item .label,
    .breakdown-item .value {
        font-size: 0.8125rem;
    }
    
    .char-counter {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Preiskarten - Basis-Preis Hervorhebung */
.video-type-card .price-tag {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: 0.75rem;
}

.video-type-card .price-tag .prefix {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.video-type-card .price-tag .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.video-type-card .price-tag .suffix {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Zusätzliche Optionen - Bessere Preisanzeige */
.option-card .option-price {
    font-size: 1rem;
    font-weight: 700;
    color: #3b82f6;
    margin-top: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.option-card .option-price .symbol {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Erfolgreiche Formular-Übermittlung */
.success-message {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left: 4px solid #10b981;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    animation: slideDown 0.5s ease;
}

.success-message h3 {
    color: #065f46;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: #047857;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Loading State für "Angebot anfordern" Button */
button.loading {
    position: relative;
    color: transparent;
}

button.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .price-breakdown,
    #projectDescription {
        page-break-inside: avoid;

/* ================================================================
   MOBILE MENU FIX (ohne Tailwind-Abhängigkeit)
   ================================================================ */
#mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0d1117;
    color: white;
    text-align: center;
    padding: 1rem 0;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 50;
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease forwards;
}

#mobile-menu li {
    margin: 0.75rem 0;
}

#mobile-menu a {
    color: #ffffff;
    font-weight: 600;
    transition: color 0.2s ease;
}

#mobile-menu a:hover {
    color: #3b82f6;
}

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