﻿/* Modernes Styling für die mobile Feedback-Seite */

.feedback-page-wrapper {
    min-height: calc(100vh - 120px);
}

.feedback-card-container {
    max-width: 680px;
}

.feedback-logo-wrap {
    transition: transform 0.2s ease;
}

.feedback-logo-wrap:hover {
    transform: scale(1.03);
}

.feedback-brand-logo {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.feedback-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 600;
}

.feedback-title {
    color: #ffffff;
}

.feedback-lead {
    color: #cbd5e1;
}

.feedback-section-label {
    color: #ffffff;
}

.feedback-field-label {
    color: #ffffff;
}

.feedback-toggle-label {
    color: #ffffff;
}

.feedback-subtext {
    color: #94a3b8;
}

.feedback-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Hauptkarte */
.feedback-box {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

/* Interaktive Sterne-Bewertung */
.star-rating-container {
    display: inline-flex;
    align-items: center;
}

.star-input {
    display: none;
}

.star-label {
    font-size: 2.25rem;
    color: #475569;
    cursor: pointer;
    padding: 0 0.35rem;
    transition: transform 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;
}

.star-label.is-active,
.star-label.is-hover {
    color: #fbbf24 !important;
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.45);
}

.star-label:hover {
    transform: scale(1.18);
}

/* Google Booster Banner */
.google-funnel-card {
    background: radial-gradient(circle at top, rgba(234, 179, 8, 0.15) 0%, rgba(30, 41, 59, 0.95) 75%);
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(234, 179, 8, 0.15);
    position: relative;
    overflow: hidden;
    animation: fadeInSlide 0.35s ease-out;
}

.google-badge-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #ea4335, #c5221f);
    box-shadow: 0 6px 16px rgba(234, 67, 53, 0.4), 0 0 0 6px rgba(234, 67, 53, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.google-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-weight: 700 !important;
    font-size: 1rem;
    padding: 0.85rem 1.85rem;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.google-btn-action:hover {
    transform: translateY(-2px) scale(1.03);
    background: #f8fafc !important;
    color: #0f172a !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.google-colored-icon {
    font-size: 1.25rem;
    color: #ea4335;
}

/* Kategorie-Karten */
.category-card {
    display: block;
    cursor: pointer;
    background: rgba(30, 41, 59, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.85rem;
    padding: 1rem;
    transition: all 0.2s ease;
    white-space: normal !important;
    height: 100%;
}

.category-card:hover {
    border-color: rgba(96, 165, 250, 0.6);
    background: rgba(51, 65, 85, 0.8);
    transform: translateY(-2px);
}

.category-card .cat-icon {
    font-size: 1.35rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
    transition: color 0.2s ease;
}

.category-card .cat-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.3;
}

.category-card .cat-desc {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.3;
    margin-top: 0.2rem;
}

.btn-check:checked + .category-card {
    background: rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5), 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-check:checked + .category-card .cat-icon {
    color: #60a5fa;
}

.btn-check:checked + .category-card .cat-title {
    color: #ffffff;
}

.btn-check:checked + .category-card .cat-desc {
    color: #e2e8f0;
}

/* Formularelemente */
.feedback-textarea {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 0.85rem;
    resize: none !important;
    padding: 1rem 1.15rem;
    line-height: 1.6;
}

.feedback-textarea::placeholder {
    color: #94a3b8;
    opacity: 0.8;
}

.feedback-textarea:focus {
    background-color: rgba(15, 23, 42, 0.85);
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    color: #ffffff;
}

.contact-option-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem !important;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-option-card.is-active {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.contact-toggle-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-switch {
    width: 2.85rem !important;
    height: 1.5rem !important;
    cursor: pointer;
    background-color: #334155;
    border-color: #475569;
    background-image: url("data:image/svg+xml,%3csvg xmlns=''http://www.w3.org/2000/svg'' viewBox=''-4 -4 8 8''%3e%3ccircle r=''3'' fill=''%2394a3b8''/%3e%3c/svg%3e");
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.custom-switch:checked {
    background-color: #2563eb !important;
    border-color: #3b82f6 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns=''http://www.w3.org/2000/svg'' viewBox=''-4 -4 8 8''%3e%3ccircle r=''3'' fill=''white''/%3e%3c/svg%3e");
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.5) !important;
}

.custom-input-group {
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.custom-input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background: rgba(15, 23, 42, 0.95);
}

.custom-input-group .input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    background: rgba(30, 41, 59, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: #60a5fa;
    font-size: 1rem;
}

.custom-input-field {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    outline: none;
    box-shadow: none !important;
    width: 100%;
}

.custom-input-field::placeholder {
    color: #64748b;
}

/* Success Card */
.feedback-success-card {
    background: #1e293b;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.success-icon-badge i {
    font-size: 4rem;
}

.contact-ack-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.select-none {
    user-select: none;
}

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

/* ==========================================================================
   LIGHT MODE OVERRIDES
   ========================================================================== */
:root[data-theme="light"] .feedback-title {
    color: #0f172a;
}

:root[data-theme="light"] .feedback-lead {
    color: #475569;
}

:root[data-theme="light"] .feedback-badge {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.25);
    color: #1d4ed8;
}

:root[data-theme="light"] .feedback-box {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(15, 23, 42, 0.05);
}

:root[data-theme="light"] .feedback-section-label,
:root[data-theme="light"] .feedback-field-label,
:root[data-theme="light"] .feedback-toggle-label {
    color: #0f172a;
}

:root[data-theme="light"] .feedback-subtext {
    color: #64748b;
}

:root[data-theme="light"] .feedback-divider {
    border-color: #e2e8f0 !important;
}

:root[data-theme="light"] .star-label {
    color: #cbd5e1;
}

:root[data-theme="light"] .star-label.is-active,
:root[data-theme="light"] .star-label.is-hover {
    color: #f59e0b !important;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

:root[data-theme="light"] .category-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

:root[data-theme="light"] .category-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

:root[data-theme="light"] .category-card .cat-icon {
    color: #64748b;
}

:root[data-theme="light"] .category-card .cat-title {
    color: #0f172a;
}

:root[data-theme="light"] .category-card .cat-desc {
    color: #64748b;
}

:root[data-theme="light"] .btn-check:checked + .category-card {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

:root[data-theme="light"] .btn-check:checked + .category-card .cat-icon {
    color: #2563eb;
}

:root[data-theme="light"] .btn-check:checked + .category-card .cat-title {
    color: #1e40af;
}

:root[data-theme="light"] .btn-check:checked + .category-card .cat-desc {
    color: #3b82f6;
}

:root[data-theme="light"] .feedback-textarea {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

:root[data-theme="light"] .feedback-textarea::placeholder {
    color: #94a3b8;
}

:root[data-theme="light"] .feedback-textarea:focus {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
    color: #0f172a;
}

:root[data-theme="light"] .contact-option-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

:root[data-theme="light"] .contact-option-card.is-active {
    background: #ffffff;
    border-color: #bfdbfe;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
}

:root[data-theme="light"] .contact-toggle-icon-wrap {
    background: #eff6ff;
    border-color: #dbeafe;
}

:root[data-theme="light"] .custom-switch {
    background-color: #cbd5e1;
    border-color: #94a3b8;
}

:root[data-theme="light"] .custom-input-group {
    background: #ffffff;
    border-color: #cbd5e1;
}

:root[data-theme="light"] .custom-input-group .input-icon {
    background: #f1f5f9;
    border-right-color: #e2e8f0;
    color: #2563eb;
}

:root[data-theme="light"] .custom-input-field {
    color: #0f172a !important;
}

:root[data-theme="light"] .custom-input-field::placeholder {
    color: #94a3b8;
}

:root[data-theme="light"] .google-funnel-card {
    background: radial-gradient(circle at top, rgba(254, 243, 199, 0.8) 0%, #ffffff 85%);
    border: 1.5px solid #fde68a;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.12);
}

:root[data-theme="light"] .google-funnel-card h2 {
    color: #0f172a !important;
}

:root[data-theme="light"] .google-funnel-card p {
    color: #475569 !important;
}

:root[data-theme="light"] .google-btn-action {
    background: #0f172a !important;
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
}

:root[data-theme="light"] .google-btn-action:hover {
    background: #1e293b !important;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.3);
}

:root[data-theme="light"] .feedback-success-card {
    background: #ffffff;
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .feedback-success-card h1 {
    color: #0f172a !important;
}

:root[data-theme="light"] .feedback-success-card p {
    color: #475569 !important;
}

:root[data-theme="light"] .contact-ack-box {
    background: #eff6ff;
    border-color: #bfdbfe;
}

:root[data-theme="light"] .contact-ack-box strong {
    color: #1e40af !important;
}