.testimonial-page {
    width: 100%;
}

/* ---------- Hero ---------- */
.ts-hero {
    text-align: center;
    padding: 2.25rem 1.5rem 2rem;
    margin-bottom: 2rem;
    border-radius: 18px;
    background:
        radial-gradient(120% 140% at 50% -20%, rgba(37, 99, 235, 0.14), transparent 60%),
        linear-gradient(160deg, #eff4ff 0%, #f8fafc 60%);
    border: 1px solid var(--border);
}

.ts-hero-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.ts-hero h1 {
    font-size: 1.9rem;
    line-height: 1.15;
    margin: 0 0 0.85rem;
}

.ts-hero-text {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto;
}

.ts-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

/* ---------- Form ---------- */
.ts-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ts-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
}

.ts-section-title {
    font-size: 1.15rem;
    margin: 0 0 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ts-section-hint {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 1.15rem;
}

.ts-grid {
    display: grid;
    gap: 1rem;
    align-items: end; /* Eingabefelder unten ausrichten, auch wenn ein Label umbricht */
}
.ts-grid-2 { grid-template-columns: 1fr 1fr; }
.ts-grid + .ts-grid { margin-top: 1rem; }

@media (max-width: 620px) {
    .ts-grid-2 { grid-template-columns: 1fr; }
    .ts-hero h1 { font-size: 1.55rem; }
}

.ts-field { margin-bottom: 0; }
.ts-field + .ts-field { margin-top: 1rem; }

.ts-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
}

.ts-optional {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.8rem;
}

.ts-required-mark { color: var(--error); }

.ts-field input,
.ts-field select,
.ts-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ts-field input:focus,
.ts-field select:focus,
.ts-field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #fff;
}

.ts-field textarea { resize: vertical; min-height: 160px; line-height: 1.6; }

.ts-callsign { text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

.ts-field-note {
    font-size: 0.82rem;
    color: var(--text-light);
    margin: 0.5rem 0 0;
    line-height: 1.5;
}

.ts-charcount {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.35rem;
}

/* ---------- Upload ---------- */
.ts-upload {
    display: block;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 1.75rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: var(--bg);
}
.ts-upload:hover, .ts-upload.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.04);
}

.ts-upload-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
}
.ts-upload-inner svg { color: var(--primary); margin-bottom: 0.25rem; }
.ts-upload-title { font-weight: 600; color: var(--text); font-size: 1rem; }
.ts-upload-hint { font-size: 0.82rem; }

/* Vorschau-Grid für bis zu 3 Bilder */
.ts-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}
.ts-preview-grid:empty { display: none; }
.ts-preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.ts-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ts-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.ts-preview-remove:hover { background: var(--error); }

/* ---------- Consent ---------- */
.ts-consent {
    background: linear-gradient(160deg, rgba(22,163,74,0.06), rgba(37,99,235,0.05));
    border: 1px solid rgba(22,163,74,0.25);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    margin-top: 0.5rem;
}
.ts-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.92rem;
    line-height: 1.55;
}
.ts-consent-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
    accent-color: var(--success);
    cursor: pointer;
}
.ts-consent-label a { color: var(--primary); font-weight: 600; }

.ts-privacy-note {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.55;
    margin: 1rem 0 0;
}
.ts-privacy-note a { color: var(--primary); }

/* ---------- Captcha (Gäste) ---------- */
#captcha-container .ts-captcha {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}
#captcha-container label { font-weight: 600; display:block; margin-bottom: 0.5rem; }
#captcha-container input {
    width: 160px;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--bg);
}

/* ---------- Actions ---------- */
.ts-actions {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 1rem;
}
.ts-actions .btn { min-width: 280px; }

.ts-alert { margin-bottom: 1.25rem; }

/* ---------- Success ---------- */
.ts-success {
    text-align: center;
    max-width: 620px;
    margin: 1rem auto;
    padding: 2.5rem 1.5rem;
}
.ts-success-badge {
    width: 76px;
    height: 76px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(160deg, #16a34a, #15803d);
    box-shadow: 0 8px 24px rgba(22,163,74,0.35);
    animation: ts-pop 0.4s ease;
}
@keyframes ts-pop {
    0% { transform: scale(0.4); opacity: 0; }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}
.ts-success h1 { font-size: 1.7rem; margin-bottom: 0.75rem; }
.ts-success .lead { color: var(--text-light); font-size: 1.05rem; line-height: 1.65; }
.ts-success-sig { margin-top: 1.25rem; font-weight: 600; color: var(--text); }
.ts-success-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

/* Aktionsleiste im Bearbeiten-Formular (zwei Buttons nebeneinander) */
.ts-edit-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.5rem 0 1rem;
}
