/* Wrapper legt Elemente nebeneinander */
.ninafuchs-area {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Textbereich */
.ninafuchs-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 600px;
}

/* Bild bleibt unverändert rund + Rand + Glow */
.rundbild {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
}

.ninafuchs-quote {
    border-left: 4px solid var(--corporateColor);
    padding-left: 1rem;
    font-size: 1.1rem;
    line-height: 1.3;
    color: var(--corporateColor);
    margin: 1rem 0;
}

.ninafuchs-quote .unterschrift {
    font-family: 'Birthstone';
    font-size: 3rem;
}

.info-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 0;
}

.label {
    font-weight: bold;
    width: 40%;
}

.value {
    width: 60%;
    text-align: right;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.4rem;
}

.upload-box {
    border: 2px dashed #ccc;
    padding: 1.5rem;
    text-align: center;
    border-radius: 0.5rem;
    background: #fafafa;
    transition: border-color 0.3s;
}

.upload-box:hover {
    border-color: #007bff;
}

.upload-box label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.upload-box input[type="file"] {
    display: block;
    margin: auto;
}

#timer {
    text-align: center;
    font-size: 24px;
    color: #222;
    font-weight: bold;
    background: #ffffff;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: inline-block;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 rgb(255, 0, 0); }
    50% { box-shadow: 0 0 16px rgb(255, 0, 0); }
    100% { box-shadow: 0 0 0 rgb(188, 28, 52); }
}

.overlay-sending {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 10%;
}

.overlay-content {
    color: white;
    font-size: clamp(24px, 8vw, 48px);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.loading-dots {
    display: inline-block;
    width: 1.5em;
    text-align: left;
}

.loading-dots::after {
    content: '.';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}


.termin-container {
    padding: 1rem;
    border-radius: var(--borderRadius);
    /*max-width: 600px;*/
    align-items: flex-end;
}

.termin-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.termin-header h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.termin-header p {
    color: #666;
    font-size: 0.95rem;
}

.termin-slots {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.termin-slot {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.3s;
}

.termin-slot:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.termin-slot.slot-selected {
    background: #8daa3a;
    border-color: #607327;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
}

.termin-slot.slot-selected .slot-tag,
.termin-slot.slot-selected .select-group label {
    color: white;
}

.termin-slot.keine-termine {
    opacity: 0.8;
    background: #4f4f4f;
    color: var(--white);
    cursor: not-allowed;
}

.termin-slot.keine-termine .slot-tag {
    color: white;
}

.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.slot-tag {
    font-weight: 600;
    font-size: 1rem;
}

.slot-datum {
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Datum für verfügbare Slots */
.termin-slot:not(.keine-termine) .slot-datum {
    background: #387d22;
    color: var(--white);
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: right;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border:1px white solid;
}

/* Datum für nicht verfügbare Slots */
.termin-slot.keine-termine .slot-datum {
    background: #c0392b;
    color: var(--white);
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: right;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border:1px white solid;
}

/* Datum für ausgewählte Slots */
.termin-slot.slot-selected .slot-datum {
    background: #2e7d32;
    color: var(--white);
}

.slot-selects {
    display: flex;
    gap: 1rem;
}

.select-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.select-group label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.select-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
}

.select-group select:focus {
    outline: none;
    border-color: #8eab39;
}

.select-group select:disabled {
    background: #2c2c2c;
    color: var(--white);
    cursor: not-allowed;
}

.keine-termine-text {
    color: #dcdcdc;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.5rem;
}

.termin-nachricht {
    margin-top: 1.5rem;
}

.termin-nachricht h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.termin-nachricht textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
}

.termin-nachricht textarea:focus {
    outline: none;
    border-color: #8eab39;
}

.termin-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.termin-buttons button {
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}


.btn-back:hover {
    background: #eee;
}

/* Mobile-Fallback */
@media (max-width: 786px) {
    .ninafuchs-area {
        flex-direction: column;
        text-align: center;
        gap: 0;
    }

    .rundbild {
        width: 120px;
        height: 120px;
    }

    .form-group input[type="file"] {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .termin-buttons {
        flex-direction: row-reverse;
    }

    .termin-buttons button {
        flex: 1;
    }
}

@media (min-width: 768px) {
    .overlay-content {
        font-size: 48px;
    }
}