/* THYNK — Public Styles */
/* Primärfarbe: #651acf · Sekundär: #FFD700 · Mobile First */
/* Schrift: Plus Jakarta Sans — self-hosted (assets/fonts/), kein Google-Fonts-Aufruf */

/* ── 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 {
    /* Seite ist hell designt — Geräte-Dunkelmodus (iOS Safari/Firefox) darf
       Canvas + Formularfelder NICHT auf dunkel umfärben. */
    color-scheme: light;
    --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 {
    width: 100%;
}

.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;
    background: #fff;
    color: #1a1a1a;
    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: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
}

.thynk-event-card {
    background: linear-gradient(135deg, #651acf, #3D89D2);
    border-radius: 12px;
    padding: 18px;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
/* Im Grid (Home/Liste) füllt die Card die Spalte statt zentriert zu sein. */
.thynk-events .thynk-event-card {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.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;
}

/* Titel-Link erbt sonst die globale Link-Farbe (lila/blau) → unlesbar auf dem
   lila Karten-Verlauf. Auf der Card ist alles weiß. */
.thynk-event-card__title a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.thynk-event-card__title a:hover {
    text-decoration: none;
}

.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: auto;
    padding-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;
}

.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 {
    margin: 0;
    padding: 0 16px;
}

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

.thynk-trainer__section {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    font-weight: 700;
    margin: 4px 0 10px;
}

.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-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.thynk-trainer__pair-names { flex: 1; }
.thynk-trainer__pair-meta { font-size: .82rem; color: #6b7280; line-height: 1.4; }
.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;
    width: 100%;
    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: 0 0 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) {
    /* Desktop: Grid mit count-abhängiger Spaltenzahl.
       2 & 4 Partner → 2 Spalten (4 = 2×2), 3 → nebeneinander, 1 → volle Breite. */
    .thynk-partners { display: grid; grid-template-columns: repeat(2, 1fr); }
    .thynk-partners--cols-1 { grid-template-columns: 1fr; }
    .thynk-partners--cols-2 { grid-template-columns: repeat(2, 1fr); }
    .thynk-partners--cols-3 { grid-template-columns: repeat(3, 1fr); }
    .thynk-partner-card { min-width: 0; }
}

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

.thynk-login {
    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: 640px;
        padding: 32px 40px 60px;
    }
    body.thynk-layout-wide .thynk-page-content {
        max-width: 1040px;
    }
}

/* 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: 2 Spalten nebeneinander auf Desktop (Home + Liste), gestapelt mobil */
@media (min-width: 768px) {
    .thynk-events { grid-template-columns: 1fr 1fr; }
}

/* ── 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;
    /* Bleed bis an die Ränder des Content-Containers (= volle Viewport-Breite auf
       Mobile, da .thynk-page-content dort 16px Padding hat). KEIN 100vw/vw:
       vw ist auf iOS-WebKit (Safari/Firefox-iOS) breiter als der sichtbare
       Viewport und lässt die ganze Seite horizontal wegrutschen. */
    margin-left: -16px;
    margin-right: -16px;
    margin-top: -20px;
    margin-bottom: 28px;
    padding: 24px 20px 22px;
}

.thynk-page-header__inner {
    max-width: 100%;
    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 {
        /* Desktop-Content-Padding ist 40px → Bleed bis zum Content-Box-Rand. */
        margin-left: -40px;
        margin-right: -40px;
        margin-top: -32px;
        margin-bottom: 36px;
        padding: 36px 48px 32px;
    }
    .thynk-page-header__icon  { font-size: 2.2em; }
}

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

.thynk-admin {
    max-width: 100%;
    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 {
    position: relative;
    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;
}

/* Inline-Icons in Meta-Zeilen (ersetzen die entfernten Emojis) */
.thynk-ico {
    width: 1.05em;
    height: 1.05em;
    display: inline-block;
    vertical-align: -0.16em;
    margin-right: 6px;
    color: #8b8f98;
    flex: none;
}

/* Icon in Event-Cards erbt die weiße Kartenfarbe */
.thynk-event-card__meta .thynk-ico { color: rgba(255, 255, 255, 0.85); }

/* Größere Variante ohne Rand-Abstand für die Dashboard-Nav-Karten */
.thynk-ico--nav {
    width: 1.5em;
    height: 1.5em;
    margin-right: 0;
    vertical-align: middle;
    color: inherit;
}

/* Variante für die runden Icon-Tiles (Daten-Zeilen, Stat-Kacheln) */
.thynk-ico--tile {
    width: 21px;
    height: 21px;
    margin-right: 0;
    vertical-align: middle;
    color: #651acf;
}

.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;
    border-bottom: none;
    transition: color 0.16s;
}

.thynk-nav__links .thynk-nav__item a:hover {
    color: #fff;
}

.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);
    margin-top: 0;
}

/* ── 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: 40px; border: 2px solid #d6d6e0; border-radius: 8px;
    font-weight: 600; font-size: 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-nav .thynk-btn { padding: 8px 18px; font-size: .9rem; }
.thynk-survey-counter { color: #555; font-size: .9rem; margin-left: auto; }

/* Trainer-Trainingskarten (einheitlich, etwas luftiger) */
.thynk-q-block--training { padding: 16px 18px; margin-bottom: 12px; }
.thynk-q-block--training .thynk-q-block__title { margin-bottom: 8px; }
.thynk-q-block--training .thynk-q-block__title strong { font-size: 1.05em; }
.thynk-q-block--training .thynk-admin-row__meta { margin-top: 6px; line-height: 1.55; }
.thynk-q-block--training .thynk-q-block__actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Accordion „Weitere anzeigen" (Profil-Listen) */
.thynk-more { margin: 6px 0 10px; }
.thynk-more > summary { cursor: pointer; color: #651acf; font-weight: 600; font-size: var(--fs-sm); padding: 8px 0; list-style: none; }
.thynk-more > summary::-webkit-details-marker { display: none; }
.thynk-more > summary::after { content: " ▾"; }
.thynk-more[open] > summary::after { content: " ▴"; }

@media (max-width: 480px) {
    .thynk-survey-scale { gap: 4px; }
    .thynk-survey-scale__item span { min-height: 38px; font-size: .95rem; }
    .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; }

/* ── Footer ────────────────────────────────────────────────────────────── */
/* Sticky-Footer: body als Flex-Spalte, Footer wird per margin-top:auto an den
   unteren Rand gedrückt, wenn der Inhalt kurz ist. Overlay ist position:fixed
   (out of flow), daher unkritisch für das Flex-Layout. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.thynk-footer {
    margin-top: auto;
    border-top: 1px solid #e5e7eb;
    background: #faf9fc;
}
.thynk-footer__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.thynk-footer__brand {
    font-size: var(--fs-sm);
    color: #6b7280;
}
.thynk-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.thynk-footer__item a {
    font-size: var(--fs-sm);
    color: #6b7280;
    text-decoration: none;
    border-bottom: none;
}
.thynk-footer__item a:hover {
    color: #651acf;
}
@media (max-width: 600px) {
    .thynk-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ── Modal (Bestätigungs-Dialog) ──────────────────────────────────────────── */
.thynk-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.thynk-modal[hidden] { display: none; }
.thynk-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 12, 31, 0.55);
}
.thynk-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    max-width: 420px;
    width: 100%;
    padding: 28px;
    animation: thynk-modal-in 0.16s ease-out;
}
@keyframes thynk-modal-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
.thynk-modal__title {
    margin: 0 0 8px;
    font-size: var(--fs-h3);
    color: #111;
}
.thynk-modal__message {
    margin: 0 0 24px;
    font-size: var(--fs-base);
    line-height: 1.5;
    color: #4b5563;
    white-space: pre-line;
}
.thynk-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

/* ── Auswertung ───────────────────────────────────────────────────────────── */
.thynk-bars { display: flex; flex-direction: column; gap: 6px; }
.thynk-bar { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.thynk-bar__label { flex: 0 0 110px; color: #4b5563; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thynk-bar__track { flex: 1; height: 14px; background: #f3f0fa; border-radius: 7px; overflow: hidden; }
.thynk-bar__fill { display: block; height: 100%; background: #651acf; }
.thynk-bar__val { flex: 0 0 90px; text-align: right; color: #6b7280; }
.thynk-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.thynk-table th, .thynk-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e5e7eb; }
.thynk-table th { color: #6b7280; font-weight: 600; }

/* Abstand zwischen Trainer-Karten (Verwaltung → Trainer) */
.thynk-trainer-card { margin-bottom: 12px; }

/* Roter Alarm-Meta (Training ohne Trainer): Text + Icon rot */
.thynk-admin-row__meta--alert { color: #dc2626; font-weight: 600; }
.thynk-admin-row__meta--alert .thynk-ico { color: #dc2626; }

/* Rotes Hinweis-Badge oben rechts am Nav-Button (Trainings/Trainer mit To-do) */
.thynk-nav-alert {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    box-sizing: border-box;
    text-align: center;
    background: #dc2626;
    color: #fff;
    font-size: 0.72em;
    font-weight: 700;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 99px;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

/* ── Akkordeon (natives details/summary) ─────────────────────────────────── */
.thynk-accordion {
    margin-top: 24px;
    border-top: 1px solid #e5e7eb;
    padding-top: 8px;
}
.thynk-accordion > summary {
    cursor: pointer;
    font-weight: 700;
    color: #b91c1c;
    padding: 10px 0;
    list-style: none;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 12px;
}
.thynk-accordion > summary::-webkit-details-marker { display: none; }
.thynk-accordion > summary::before {
    content: "";
    flex: none;
    width: 0;
    height: 0;
    border-left: 11px solid currentColor;   /* nach rechts zeigend */
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    transition: transform .15s ease;
}
.thynk-accordion[open] > summary::before { transform: rotate(90deg); }
.thynk-accordion--muted > summary { color: #6b7280; font-weight: 400; font-size: 0.85em; gap: 8px; }
.thynk-accordion--muted > summary::before {
    border-left-width: 8px;
    border-top-width: 5px;
    border-bottom-width: 5px;
}

/* Einwilligungs-Box vor dem Fragebogen (Art. 9) */
.thynk-survey-consent {
    background: #f6f2fe;
    border: 1px solid #e3def0;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 20px;
}
.thynk-survey-consent p { margin: 0 0 10px; font-size: 0.95em; }
.thynk-survey-consent__check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9em;
    line-height: 1.5;
    cursor: pointer;
}
.thynk-survey-consent__check input { margin-top: 3px; flex: none; }

/* Teilen-Button */
.thynk-share-btn { display: inline-flex; align-items: center; gap: 6px; }
.thynk-share-btn .thynk-ico { color: inherit; margin-right: 0; width: 1em; height: 1em; }

/* ── Karte (Leaflet) ─────────────────────────────────────────────────────── */
.thynk-map { width: 100%; border-radius: 10px; overflow: hidden; }
.thynk-map--picker { height: 320px; margin-top: 8px; }
.thynk-map--view   { height: 210px; margin-top: 12px; }
.thynk-map--mini   { height: 140px; margin-top: 10px; }
.thynk-map-field { position: relative; }
.thynk-map-results {
    list-style: none; margin: 4px 0 0; padding: 0;
    border: 1px solid #e5e7eb; border-radius: 8px; max-height: 180px; overflow-y: auto;
}
.thynk-map-results:empty { display: none; }
.thynk-map-results li { padding: 8px 12px; font-size: 0.85em; cursor: pointer; border-bottom: 1px solid #f1f1f4; }
.thynk-map-results li:last-child { border-bottom: 0; }
.thynk-map-results li:hover { background: #f6f2fe; }
.thynk-map-results .thynk-map-empty { color: #9a93ac; cursor: default; }
.thynk-map-results .thynk-map-empty:hover { background: transparent; }

/* ── Datenschutzerklärung / Rechtstext ([thynk_datenschutz]) ──────────────── */
.thynk-legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 8px 4px 48px;
    font-size: var(--fs-base);
    line-height: 1.7;
    color: #2b2735;
}
.thynk-legal h2 {
    font-size: var(--fs-h2);
    margin: 2.2em 0 0.5em;
    padding-top: 1.2em;
    border-top: 1px solid #ece8f4;
    line-height: 1.25;
}
.thynk-legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0.8em; }
.thynk-legal h3 {
    font-size: var(--fs-h3);
    margin: 1.6em 0 0.4em;
    line-height: 1.3;
}
.thynk-legal p { margin: 0 0 1em; }
.thynk-legal ul, .thynk-legal ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.thynk-legal li { margin: 0 0 0.4em; }
.thynk-legal a { color: #651acf; text-decoration: underline; text-underline-offset: 2px; }
.thynk-legal a:hover { color: #4d13a0; }
.thynk-legal strong { font-weight: 600; }

/* ── Redesign-Tokens (Home Phase 1, Basis für Phase 2) ─────────────── */
:root{
  --thynk-ink:#14130f; --thynk-panel:#1d1b15; --thynk-paper:#f6f2e9;
  --thynk-warmwhite:#faf8f3; --thynk-accent:#651acf; --thynk-accent-hover:#4d13a0;
  --thynk-accent-soft:#f2e9ff; --thynk-muted:#8b8779; --thynk-muted-2:#6b6a63;
  --thynk-line-light:rgba(250,248,243,0.14); --thynk-line-dark:rgba(20,19,15,0.12);
  --thynk-font-head:'Barlow Condensed',system-ui,sans-serif;
  --thynk-font-body:'Source Sans 3',system-ui,sans-serif;
  --thynk-maxw:1180px; --thynk-radius:2px;
}
