/* THYNK — Public Styles */
/* Primärfarbe: #651acf · Sekundär: #FFD700 · Mobile First */
/* Schrift: Plus Jakarta Sans (Google Fonts, via wp_enqueue_style) */

/* ── Global ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

/* ── Typo-Maßstab (zentral) ───────────────────────────────────────────────
   Konsistente Schriftgrößen für die ganze Seite (öffentlich + Verwaltung).
   rem = relativ zur Root-Größe (16px), daher überall vorhersehbar. */
:root {
    --fs-eyebrow: 0.7rem;     /* Eyebrows, Labels, Badges (uppercase) */
    --fs-sm:      0.875rem;   /* Meta, Hilfetext, Subtitles (14px) */
    --fs-base:    1rem;       /* Fließtext (16px) */
    --fs-lead:    1.125rem;   /* Subline / Lead (18px) */
    --fs-h3:      1.375rem;   /* Karten- & Unterüberschrift (22px) */
    --fs-h2:      1.75rem;    /* Sektions- & Admin-Seitentitel (28px) */
    --fs-h1:      2.25rem;    /* Inhaltsseiten-Titel (36px) */
    --fs-display: clamp(2.25rem, 6vw, 4rem); /* Hero (36–64px, flüssig) */
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Messages ──────────────────────────────────────────────────────────── */

.thynk-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: var(--fs-base);
    line-height: 1.5;
}

.thynk-message--success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

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

/* ── Formular ───────────────────────────────────────────────────────────── */

.thynk-form {
    max-width: 480px;
}

.thynk-form__row {
    margin-bottom: 16px;
}

.thynk-form__row label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.9em;
    color: #374151;
}

.thynk-form__row input[type="text"],
.thynk-form__row input[type="email"],
.thynk-form__row input[type="password"],
.thynk-form__row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.thynk-form__row textarea {
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    overflow: hidden;
    min-height: 44px;
}

.thynk-form__row input[type="text"]:focus,
.thynk-form__row input[type="email"]:focus,
.thynk-form__row input[type="password"]:focus,
.thynk-form__row textarea:focus {
    outline: none;
    border-color: #651acf;
    box-shadow: 0 0 0 3px rgba(101, 26, 207, 0.1);
}

.thynk-form__row--checkbox label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
    cursor: pointer;
    font-size: 0.9em;
}

.thynk-form__row--checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #651acf;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.thynk-btn {
    padding: 11px 28px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s;
    display: inline-block;
    text-decoration: none;
}

.thynk-btn--primary {
    background: #651acf;
    color: #fff;
}

.thynk-btn--primary:hover {
    background: #520fa3;
}

.thynk-btn--secondary {
    background: #FFD700;
    color: #1a1a1a;
}

.thynk-btn--secondary:hover {
    background: #f5cc00;
}

.thynk-btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    cursor: default;
    opacity: 0.8;
}

.thynk-btn--ghost-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 9px 20px;
}

.thynk-btn--ghost-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.thynk-btn--danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    padding: 6px 14px;
    font-size: 0.85em;
}

.thynk-btn--danger:hover {
    background: #fecaca;
}

/* ── Event-Cards ────────────────────────────────────────────────────────── */

.thynk-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 480px;
}

.thynk-event-card {
    background: linear-gradient(135deg, #651acf, #3D89D2);
    border-radius: 12px;
    padding: 18px;
    color: #fff;
}

.thynk-event-card--full {
    opacity: 0.65;
}

.thynk-event-card__date {
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    opacity: 0.85;
}

.thynk-event-card__title {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 8px;
}

.thynk-event-card__meta {
    font-size: 0.85em;
    opacity: 0.9;
    margin-bottom: 4px;
}

.thynk-event-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    gap: 10px;
}

/* ── Badges ─────────────────────────────────────────────────────────────── */

.thynk-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
}

.thynk-badge--free {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.thynk-badge--low {
    background: rgba(255, 215, 0, 0.35);
    color: #fff;
}

.thynk-badge--full {
    background: rgba(255, 80, 80, 0.35);
    color: #fff;
}

/* ── Profil ─────────────────────────────────────────────────────────────── */

.thynk-profile h2 {
    margin-top: 0;
}

.thynk-profile__info p {
    margin: 6px 0;
    font-size: 0.95em;
}

.thynk-profile__empty {
    color: #6b7280;
    font-style: italic;
    font-size: 0.9em;
}

.thynk-bookings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 540px;
}

.thynk-booking-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    gap: 12px;
}

.thynk-booking-row--past {
    opacity: 0.5;
}

.thynk-booking-row__info {
    flex: 1;
    font-size: 0.9em;
    line-height: 1.6;
}

.thynk-booking-row__action {
    flex-shrink: 0;
}

/* ── Trainer Interface ──────────────────────────────────────────────────────────── */

.thynk-trainer {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
}

.thynk-trainer__header { margin-bottom: 20px; }

.thynk-trainer__back {
    display: inline-block;
    font-size: 0.9em;
    color: #651acf;
    text-decoration: none;
    margin-bottom: 8px;
}

.thynk-trainer__event-list { display: flex; flex-direction: column; gap: 12px; }

.thynk-trainer__event-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background: #fafafa;
    transition: border-color 0.15s;
}
.thynk-trainer__event-card:hover { border-color: #651acf; }
.thynk-trainer__event-card strong { font-size: 1.05em; color: #111827; }
.thynk-trainer__event-card span   { font-size: 0.9em; color: #6b7280; }

/* Check-in list */
.thynk-trainer__checkin-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.thynk-trainer__tn {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}
.thynk-trainer__tn--attended { background: #f0fdf4; border-color: #86efac; }
.thynk-trainer__tn--noshow   { background: #fef2f2; border-color: #fca5a5; }

.thynk-trainer__tn-name { flex: 1; font-weight: 600; min-width: 120px; }

.thynk-trainer__survey-badge {
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
}
.thynk-trainer__survey-badge--done    { background: #dcfce7; color: #166534; }
.thynk-trainer__survey-badge--pending { background: #fef3c7; color: #92400e; }

.thynk-trainer__tn-actions { display: flex; gap: 8px; }
.thynk-trainer__status-label { font-size: 0.85em; font-weight: 600; color: #374151; }

.thynk-btn--attended {
    background: #dcfce7; color: #166534;
    border: 1px solid #86efac;
    padding: 6px 14px; font-size: 0.85em;
}
.thynk-btn--noshow {
    background: #fee2e2; color: #991b1b;
    border: 1px solid #fca5a5;
    padding: 6px 14px; font-size: 0.85em;
}
.thynk-btn--undo {
    background: #f3f4f6; color: #374151;
    border: 1px solid #d1d5db;
    padding: 6px 14px; font-size: 0.85em;
}
.thynk-btn--full { width: 100%; text-align: center; padding: 14px; margin-top: 8px; }

.thynk-trainer__matching-footer { border-top: 1px solid #e5e7eb; padding-top: 20px; }
.thynk-trainer__warning { font-size: 0.9em; color: #92400e; margin-bottom: 12px; }
.thynk-trainer__hint { font-size: var(--fs-sm); color: #6b7280; margin-top: 8px; text-align: center; }
.thynk-trainer__view-pairs {
    display: block; text-align: center; margin-top: 12px;
    font-size: 0.9em; color: #651acf;
}

/* Pair list */
.thynk-trainer__algo-info { font-size: 0.85em; color: #6b7280; margin-bottom: 16px; }
.thynk-trainer__pairs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.thynk-trainer__pair {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s;
}
.thynk-trainer__pair:has(.thynk-swap-cb:checked) { border-color: #651acf; background: #f5f0ff; }
.thynk-trainer__pair--changed { border-left: 4px solid #FFD700; }

.thynk-trainer__pair input[type="checkbox"] {
    width: 20px; height: 20px; accent-color: #651acf; flex-shrink: 0;
}
.thynk-trainer__pair-names { flex: 1; }
.thynk-trainer__pair-badge {
    font-size: 0.7em; background: #fef3c7; color: #92400e;
    padding: 2px 8px; border-radius: 99px; font-weight: 600;
}

.thynk-trainer__orphan {
    padding: 12px 14px; background: #f9fafb;
    border: 1px dashed #d1d5db; border-radius: 8px; margin-bottom: 16px;
    font-size: 0.95em; color: #6b7280;
}

.thynk-btn--ghost-dark {
    background: transparent; color: #374151;
    border: 1px solid #d1d5db; padding: 10px 20px;
}
.thynk-btn--ghost-dark:hover { background: #f3f4f6; }

/* ── Theme Page Layout ──────────────────────────────────────────────────── */

.thynk-page-content {
    padding: 20px 16px 40px;
    max-width: 600px;
    margin: 0 auto;
}


/* ── Navigation ─────────────────────────────────────────────────────────── */

.thynk-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(101, 26, 207, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.thynk-nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.thynk-nav__logo {
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    font-size: 1.05em;
    letter-spacing: 2px;
}

.thynk-nav__hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 0;
}

.thynk-nav__hamburger span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: opacity 0.15s;
}

.thynk-nav__hamburger span:nth-child(1) { width: 20px; }
.thynk-nav__hamburger span:nth-child(2) { width: 20px; }
.thynk-nav__hamburger span:nth-child(3) { width: 14px; }

/* Overlay backdrop */
.thynk-nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.thynk-nav__overlay--open {
    opacity: 1;
    pointer-events: auto;
}

/* Slide-in drawer from right */
.thynk-nav__drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    background: #fff;
    padding: 56px 24px 24px;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
}

.thynk-nav__overlay--open .thynk-nav__drawer {
    transform: translateX(0);
}

.thynk-nav__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6em;
    cursor: pointer;
    color: #374151;
    line-height: 1;
    padding: 4px 8px;
}

.thynk-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.thynk-nav__item a {
    display: block;
    padding: 12px 0;
    font-size: 1.05em;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
}

.thynk-nav__item a:hover {
    color: #651acf;
}

.thynk-nav__item--logout a {
    color: #6b7280;
    font-weight: 400;
    font-size: 0.95em;
    margin-top: 8px;
    border-bottom: none;
}

@media (min-width: 768px) {
    .thynk-nav__inner { padding: 16px 32px; }
}

/* ── Landing Page — Hero ─────────────────────────────────────────────────── */

.thynk-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.thynk-hero__bg {
    position: absolute;
    inset: 0;
}

.thynk-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    .thynk-hero__video { display: none; }
    .thynk-hero__gradient { background: linear-gradient(135deg, #651acf 0%, #3D89D2 100%); }
}

.thynk-hero__gradient {
    background: linear-gradient(135deg, #651acf 0%, #3D89D2 100%);
}


.thynk-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.thynk-hero__slide--active { opacity: 1; }

.thynk-hero__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.thynk-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.thynk-hero__dot--active { background: #fff; }

.thynk-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.thynk-hero__content {
    position: relative;
    z-index: 2;
    padding: 80px 24px 48px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.thynk-hero__eyebrow {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-eyebrow);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 600;
}

.thynk-hero__headline {
    color: #fff;
    font-size: var(--fs-display);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.thynk-hero__subheadline {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--fs-lead);
    margin-bottom: 28px;
    line-height: 1.5;
}

.thynk-hero__cta {
    font-size: 0.95em;
    padding: 13px 28px;
}

.thynk-hero__scroll {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8em;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .thynk-hero__content  { padding: 120px 32px 60px; }
}

/* ── Landing Page — Sections ─────────────────────────────────────────────── */

.thynk-lp-section {
    padding: 40px 0;
}

.thynk-lp-section__inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.thynk-lp-section__label {
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #651acf;
    margin-bottom: 12px;
}

.thynk-lp-section__body {
    font-size: var(--fs-base);
    color: #374151;
    line-height: 1.7;
}

.thynk-lp-section--white       { background: #fff; }
.thynk-lp-section--tinted      { background: #f9f7ff; }
.thynk-lp-section--gradient    { background: linear-gradient(135deg, #651acf 0%, #3D89D2 100%); }

.thynk-lp-section--accent-left {
    border-left: 4px solid #651acf;
}

@media (min-width: 768px) {
    .thynk-lp-section { padding: 60px 0; }
}

/* ── Landing Page — Steps ────────────────────────────────────────────────── */

.thynk-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thynk-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.thynk-step__number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #651acf;
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.thynk-step__number--accent { background: #FFD700; color: #1a1a1a; }

.thynk-step__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.thynk-step__text strong {
    font-size: 0.9em;
    color: #111827;
    font-weight: 600;
}

.thynk-step__text span {
    font-size: 0.78em;
    color: #6b7280;
}

/* ── Landing Page — Partners ─────────────────────────────────────────────── */

.thynk-partners {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thynk-partner-card {
    background: #f9f7ff;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.thynk-partner-card__logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thynk-partner-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thynk-partner-card__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.thynk-partner-card__body strong {
    font-size: 0.85em;
    color: #111827;
    font-weight: 700;
}

.thynk-partner-card__body span {
    font-size: 0.75em;
    color: #6b7280;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .thynk-partners { flex-direction: row; flex-wrap: wrap; }
    .thynk-partner-card { flex: 1; min-width: 260px; }
}

/* ── Login Page ──────────────────────────────────────────────────────────── */

.thynk-login {
    max-width: 400px;
    margin: 0 auto;
    padding: 8px 0 32px;
}

.thynk-login__logo {
    font-weight: 800;
    font-size: 1.4em;
    letter-spacing: 3px;
    color: #651acf;
    text-align: center;
    margin-bottom: 8px;
}

.thynk-login__title {
    text-align: center;
    font-size: var(--fs-h3);
    color: #111827;
    margin-bottom: 24px;
}

.thynk-login__form { max-width: 100%; }

.thynk-login__register-link {
    text-align: center;
    font-size: var(--fs-sm);
    color: #6b7280;
    margin-top: 16px;
}

.thynk-login__register-link a {
    color: #651acf;
    font-weight: 600;
    text-decoration: none;
}

/* ── Desktop Improvements ───────────────────────────────────────────────── */

/* Nav — wider on desktop */
@media (min-width: 1024px) {
    .thynk-nav__inner {
        max-width: 1200px;
        padding: 18px 48px;
    }
}

/* Page content wrapper — wider on desktop */
@media (min-width: 768px) {
    .thynk-page-content {
        max-width: 900px;
        padding: 32px 40px 60px;
    }
}

/* LP sections — wider content area on desktop */
@media (min-width: 768px) {
    .thynk-lp-section__inner {
        max-width: 900px;
        padding: 0 48px;
    }
}

@media (min-width: 1280px) {
    .thynk-lp-section__inner {
        max-width: 1040px;
    }
}

/* LP sections — more breathing room on large screens */
@media (min-width: 1024px) {
    .thynk-lp-section         { padding: 72px 0; }
    .thynk-lp-section__label  { margin-bottom: 16px; }
    .thynk-lp-section__body   { max-width: 680px; }
}

/* Hero — scale up on desktop */
@media (min-width: 1024px) {
    .thynk-hero__content    { padding: 140px 80px 80px; max-width: 900px; }
    .thynk-hero__subheadline{ max-width: 540px; }
}

/* Steps — 2 columns on desktop */
@media (min-width: 768px) {
    .thynk-steps {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 40px;
    }
}

/* Event cards on LP — side by side on desktop */
@media (min-width: 768px) {
    .thynk-lp-section .thynk-events {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 100%;
    }
    .thynk-lp-section .thynk-event-card {
        flex: 1;
        min-width: 280px;
    }
}

/* ── Nav Logo Image ─────────────────────────────────────────────────────── */

.thynk-nav__inner {
    height: 80px; /* feste Nav-Höhe — Logo richtet sich danach, nicht umgekehrt */
}

.thynk-nav__logo--img {
    display: flex;
    align-items: center;
    height: 100%;
    overflow: hidden;
}

.thynk-nav__logo--img a {
    display: flex;
    align-items: center;
    line-height: 0;
    height: 100%;
}

/* height: auto !important überschreibt das HTML-Attribut height="..." das WP setzt */
.thynk-nav__logo--img img {
    height: auto !important;
    max-height: 50px !important;
    width: auto !important;
    max-width: 700px;
    object-fit: contain;
    /* Filter für weißes Logo auf lila Hintergrund — auskommentiert wenn Logo transparent */
    /* filter: brightness(0) invert(1); */
}

/* ── Page Header Banner ─────────────────────────────────────────────────── */

.thynk-page-header {
    background: #f5f0ff;
    /* Full-bleed: über volle Viewport-Breite, egal wie schmal der Content-Container ist */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -20px;
    margin-bottom: 28px;
    padding: 24px 20px 22px;
}

.thynk-page-header__inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid #651acf;
    padding-left: 16px;
}

.thynk-page-header__icon {
    font-size: 1.8em;
    flex-shrink: 0;
    line-height: 1;
}

.thynk-page-header__eyebrow {
    color: #651acf;
    font-size: var(--fs-eyebrow);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 3px;
    font-weight: 700;
}

.thynk-page-header__title {
    color: #1a1a1a;
    font-size: var(--fs-h2);
    font-weight: 800;
    margin: 0 0 3px;
    line-height: 1.2;
}

.thynk-page-header__subtitle {
    color: #6b7280;
    font-size: var(--fs-sm);
    margin: 0;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .thynk-page-header {
        margin-top: -32px;
        margin-bottom: 36px;
        padding: 36px 48px 32px;
    }
    .thynk-page-header__icon  { font-size: 2.2em; }
}

/* ── Frontend Admin ─────────────────────────────────────────────────────── */

.thynk-admin {
    max-width: 900px;
    margin: 0 auto;
}

.thynk-admin__back {
    display: inline-block;
    font-size: 0.9em;
    color: #651acf;
    text-decoration: none;
    margin-bottom: 16px;
    font-weight: 600;
}

.thynk-admin__count {
    font-size: 0.9em;
    color: #374151;
    margin: 12px 0;
}

/* Kennzahl-Karten */
.thynk-admin-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.thynk-admin-stat {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

.thynk-admin-stat__num {
    font-size: 1.8em;
    font-weight: 800;
    color: #651acf;
    line-height: 1.1;
}

.thynk-admin-stat__label {
    font-size: 0.72em;
    color: #6b7280;
    margin-top: 4px;
}

.thynk-admin-stat__label small { opacity: 0.8; }

/* Bereichs-Karten */
.thynk-admin-nav-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.thynk-admin-nav-card {
    background: linear-gradient(135deg, #651acf, #3D89D2);
    color: #fff;
    border-radius: 10px;
    padding: 18px 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: opacity 0.15s;
}

.thynk-admin-nav-card:hover { opacity: 0.92; }

.thynk-admin-nav-card__icon { font-size: 1.3em; }

.thynk-admin-nav-card--soon {
    background: #e5e7eb;
    color: #6b7280;
    cursor: default;
}

.thynk-admin-nav-card--soon:hover { opacity: 1; }

.thynk-admin-nav-card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.12);
    color: #374151;
    font-size: 0.6em;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 700;
}

/* Suchformular */
.thynk-admin-search {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    max-width: 100%;
}

.thynk-admin-search input[type="search"] {
    flex: 1;
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

.thynk-admin-search input[type="search"]:focus {
    outline: none;
    border-color: #651acf;
    box-shadow: 0 0 0 3px rgba(101, 26, 207, 0.1);
}

/* Listen-Zeilen */
.thynk-admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thynk-admin-row {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 14px;
}

.thynk-admin-row__info {
    font-size: 0.92em;
    line-height: 1.6;
    color: #111827;
}

.thynk-admin-row__meta {
    font-size: 0.85em;
    color: #6b7280;
}

.thynk-admin-badge {
    font-size: 0.72em;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
    white-space: nowrap;
}

.thynk-admin-badge--ok      { background: #dcfce7; color: #166534; }
.thynk-admin-badge--pending { background: #fef3c7; color: #92400e; }

@media (min-width: 768px) {
    .thynk-admin-stats     { grid-template-columns: repeat(4, 1fr); }
    .thynk-admin-nav-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ── Frontend Admin — Events ────────────────────────────────────────────── */

.thynk-admin-row__actions {
    font-size: 0.85em;
}

.thynk-admin-row__actions a {
    color: #651acf;
    text-decoration: none;
    font-weight: 600;
}

.thynk-admin-row__actions a:hover { text-decoration: underline; }

.thynk-admin-badge--draft {
    background: #f3f4f6;
    color: #6b7280;
}

/* Admin-Formular: textarea + select an die Input-Styles angleichen */
.thynk-form textarea,
.thynk-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
}

.thynk-form textarea:focus,
.thynk-form select:focus {
    outline: none;
    border-color: #651acf;
    box-shadow: 0 0 0 3px rgba(101, 26, 207, 0.1);
}

.thynk-form input[type="date"],
.thynk-form input[type="time"],
.thynk-form input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

.thynk-admin-delete {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    max-width: 480px;
}

/* ── Frontend Admin — Survey ────────────────────────────────────────────── */

.thynk-btn--small {
    padding: 4px 10px;
    font-size: 0.8em;
}

.thynk-admin-reorder {
    display: inline-flex;
    gap: 2px;
    vertical-align: middle;
    margin-right: 6px;
}

.thynk-admin-reorder form { line-height: 0; }

.sq-option-row {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}

.sq-option-row input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95em;
    box-sizing: border-box;
}

#sq_options_row { display: block; }

/* ── Frontend Admin — Drag Handle ──────────────────────────────────────── */

.thynk-admin-drag {
    cursor: grab;
    color: #9ca3af;
    font-size: 1.1em;
    user-select: none;
    margin-right: 4px;
}

.thynk-admin-drag:active { cursor: grabbing; }

.thynk-admin-row--ghost {
    opacity: 0.4;
    background: #f5f0ff;
}

/* ── Profil — Journey & Karte ──────────────────────────────────────────── */

.thynk-profile-cta {
    background: linear-gradient(135deg, #651acf, #3D89D2);
    color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.thynk-profile-cta__title {
    font-size: var(--fs-lead);
    font-weight: 800;
    margin-bottom: 4px;
}

.thynk-profile-cta__text {
    font-size: var(--fs-sm);
    opacity: 0.9;
    margin-bottom: 14px;
    line-height: 1.5;
}

.thynk-profile-cta--slim {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
}

.thynk-profile-cta--slim span {
    font-size: 0.95em;
    font-weight: 600;
}

.thynk-profile-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.thynk-profile-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.thynk-profile-card__label {
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #651acf;
}

/* ── Nav — Desktop-Inline-Links ─────────────────────────────────────────── */

.thynk-nav__links {
    display: none; /* mobil verborgen, Hamburger übernimmt */
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
}

@media (min-width: 900px) {
    .thynk-nav__links {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .thynk-nav__hamburger { display: none; }
}

.thynk-nav__links .thynk-nav__item { margin: 0; }

.thynk-nav__links .thynk-nav__item a {
    display: block;
    font-size: 0.95em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 12px;
    text-decoration: none;
    transition: color 0.16s;
}

.thynk-nav__links .thynk-nav__item a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.thynk-nav__links .thynk-nav__item.is-active a {
    color: #fff;
    font-weight: 700;
}

.thynk-nav__links .thynk-nav__item--logout a {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Profil — Redesign (Grid, Karten, Pills, Stats) ────────────────────── */

.thynk-profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 900px) {
    .thynk-profile-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        max-width: 900px;
    }
}

.thynk-profile-cta__kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78em;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.thynk-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95em;
    color: #fff;
    background: linear-gradient(150deg, #651acf, #3D89D2);
}

.thynk-profile-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.thynk-profile-card__headleft {
    display: flex;
    align-items: center;
    gap: 12px;
}

.thynk-data-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid #ece8f3;
}

.thynk-data-row:first-of-type { margin-top: 8px; }

.thynk-data-row__ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f6f2fe;
    font-size: 1.05em;
}

.thynk-data-row__grow { flex: 1; min-width: 0; }

.thynk-data-row__label {
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #9a93ac;
}

.thynk-data-row__value {
    font-size: 0.95em;
    font-weight: 600;
    color: #1c1726;
    margin-top: 2px;
    word-break: break-word;
}

.thynk-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75em;
    font-weight: 700;
    border-radius: 999px;
    padding: 5px 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

.thynk-pill--ok      { background: #dcfce7; color: #166534; }
.thynk-pill--pending { background: #fef3c7; color: #92400e; }
.thynk-pill--brand   { background: #ede4ff; color: #651acf; }

.thynk-stat-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 20px;
}

.thynk-stat-tile__ico {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ede4ff;
    font-size: 1.3em;
}

.thynk-stat-tile__num {
    font-size: 1.6em;
    font-weight: 800;
    color: #651acf;
    line-height: 1;
}

.thynk-stat-tile__lab {
    font-size: 0.82em;
    color: #6c6580;
    margin-top: 4px;
}

/* Aktiver Eintrag im Mobile-Drawer */
.thynk-nav__menu .thynk-nav__item.is-active a {
    color: #651acf;
    font-weight: 700;
}

/* ===== Survey-Stepper (Issue #6) ===== */
.thynk-survey-form.thynk-js .thynk-survey-step { display: none; }
.thynk-survey-form.thynk-js .thynk-survey-step.is-active { display: block; }
.thynk-survey-form.thynk-js .thynk-survey-legend { display: none; }
.thynk-survey-step { margin: 0 0 1.5rem; }

/* Segmentierte Skala */
.thynk-survey-scale { display: flex; gap: 6px; }
.thynk-survey-scale__item { flex: 1 1 0; position: relative; }
.thynk-survey-scale__item input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.thynk-survey-scale__item span {
    display: flex; align-items: center; justify-content: center;
    min-height: 52px; border: 2px solid #d6d6e0; border-radius: 10px;
    font-weight: 600; font-size: 1.1rem; background: #fff; transition: background .12s, border-color .12s, color .12s;
}
.thynk-survey-scale__item input:checked + span { border-color: #1f6feb; background: #1f6feb; color: #fff; }
.thynk-survey-scale__item input:focus-visible + span { outline: 2px solid #1f6feb; outline-offset: 2px; }
.thynk-survey-scale__labels { display: flex; justify-content: space-between; color: #555; font-size: .9rem; margin-bottom: 6px; }

/* Choice als volle Zeile */
.thynk-survey-choice { display: block; padding: 12px 14px; border: 2px solid #d6d6e0; border-radius: 10px; margin-bottom: 8px; cursor: pointer; }

/* Fortschritt + Navigation */
.thynk-survey-progress { height: 6px; background: #ececf3; border-radius: 4px; overflow: hidden; margin: 1rem 0; }
.thynk-survey-progress__bar { height: 100%; width: 0; background: #1f6feb; transition: width .2s; }
.thynk-survey-nav { display: flex; align-items: center; gap: 12px; }
.thynk-survey-counter { color: #555; font-size: .9rem; margin-left: auto; }

@media (max-width: 480px) {
    .thynk-survey-scale { gap: 4px; }
    .thynk-survey-scale__item span { min-height: 48px; font-size: 1rem; }
    .thynk-survey-nav { flex-wrap: wrap; }
}

/* ===== Survey-Admin: Tabs, Modus-Toggle, Fragen-Liste ===== */

/* Pre/Post als Tabs */
.thynk-tabs { display: flex; gap: 24px; border-bottom: 2px solid #e5e7eb; margin: 0 0 20px; }
.thynk-tab { padding: 10px 2px; margin-bottom: -2px; color: #6b7280; text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; }
.thynk-tab:hover { color: #111827; }
.thynk-tab--active { color: #651acf; border-bottom-color: #651acf; }

/* Umfrage-Modus: 2-Button-Toggle */
.thynk-toggle { display: inline-flex; border: 1px solid #d6d6e0; border-radius: 10px; overflow: hidden; }
.thynk-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.thynk-toggle label { margin: 0; padding: 8px 20px; cursor: pointer; font-weight: 600; color: #374151; background: #fff; transition: background .12s, color .12s; }
.thynk-toggle label:nth-of-type(2) { border-left: 1px solid #d6d6e0; }
.thynk-toggle input:checked + label { background: #651acf; color: #fff; }
.thynk-toggle input:focus-visible + label { outline: 2px solid #651acf; outline-offset: 2px; }
.thynk-form__hint { font-size: var(--fs-sm); color: #6b7280; margin: 6px 0 0; }

/* Fragen-Liste: nummerierte Blöcke, Zebra, eingerückte Folgefragen */
.thynk-q-block { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.thynk-q-block--alt { background: #f9f7ff; }
.thynk-q-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; }
.thynk-q-row--child { padding-left: 46px; }
.thynk-q-num { min-width: 34px; font-weight: 700; color: #651acf; }
.thynk-q-num--child { min-width: auto; font-weight: 600; color: #9b7fd4; }
.thynk-q-sub { color: #9b7fd4; }
.thynk-q-main { flex: 1; font-size: .92em; line-height: 1.6; color: #111827; }

/* Fragen-Auswahl (in Post übernehmen) */
.thynk-copy-all { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.thynk-copy-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; }
.thynk-copy-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }

/* Folgefrage-Zuweisung (im Frage-Editor) */
.sq-followup-row { margin-bottom: 4px; }
.sq-followup-trigger { display: block; font-size: .95em; color: #374151; margin-bottom: 6px; }
.sq-followup-select { width: 100%; font-size: .9em; padding: 8px 10px; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; }
