/* Radio Tell Identität — Frontend-Styling (schlank, neutral) */

.rti-box {
    max-width: 420px;
    margin: 1em 0;
    padding: 20px 22px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    line-height: 1.5;
    color: #222;
    box-sizing: border-box;
}

.rti-title    { margin: 0 0 12px; font-size: 20px; }
.rti-subtitle { margin: 22px 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: #666; }

.rti-form { margin: 0 0 8px; }
.rti-form label {
    display: block;
    font-size: 13px;
    color: #555;
    margin: 10px 0 4px;
}
.rti-form input[type="email"],
.rti-form input[type="text"] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}
.rti-form input:focus { outline: 2px solid #c8102e33; border-color: #c8102e; }

#rti-code { letter-spacing: 6px; text-align: center; font-size: 22px; }

.rti-btn {
    margin-top: 12px;
    background: #c8102e;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    line-height: 1.2;
    text-align: center;
    color: #fff !important;
}
/* Theme-Linkfarben dürfen die Button-Schrift nicht überschreiben */
a.rti-btn, a.rti-btn:link, a.rti-btn:visited, a.rti-btn:hover, a.rti-btn:focus { color: #fff !important; text-decoration: none !important; }
.rti-btn:hover  { background: #a50d26; }
.rti-btn:disabled { opacity: .6; cursor: default; }
.rti-btn-secondary { background: #444; }
.rti-btn-secondary:hover { background: #222; }

.rti-link {
    background: none;
    border: none;
    color: #c8102e;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 0;
    text-decoration: underline;
}
.rti-link.rti-danger { color: #999; }
.rti-link.rti-danger:hover { color: #c8102e; }

.rti-hint { color: #777; font-size: 13px; margin: 6px 0; }
.rti-row  { margin: 6px 0; }
.rti-label { display: inline-block; min-width: 70px; color: #666; font-size: 13px; }

.rti-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
/* Angemeldet-Hinweis: „Mein Konto" links neben „Abmelden" (nebeneinander) */
.rti-actions-inline { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }

.rti-devices { margin: 4px 0; }
.rti-device {
    display: flex;
    align-items: center;
    gap: 10px 14px;
    flex-wrap: wrap;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.rti-device:last-child { border-bottom: none; }

.rti-device-name-wrap { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.rti-device-name {
    width: 240px;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 9px;
    font-size: 14px;
    font-family: inherit;
    color: #1d2327;
    transition: border-color .15s ease;
}
.rti-device-name:focus { border-color: #c8102e; outline: none; }
.rti-device-save {
    appearance: none; -webkit-appearance: none;
    border: 1px solid #c8102e; background: #c8102e; color: #fff;
    border-radius: 6px; padding: 5px 12px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.rti-device-save:hover { background: #a50d26; }
.rti-device-saved { color: #1a7f4b; font-size: 13px; white-space: nowrap; }

/* Erkennung + Zeitpunkt: eine Zeile, rechts neben dem Feld */
.rti-device-meta { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rti-device-meta .rti-hint { display: inline; margin: 0; }
.rti-device-logout { flex: 0 0 auto; margin-left: auto; }
.rti-badge {
    display: inline-block;
    font-size: 11px;
    background: #eafaf0;
    color: #1a7f4b;
    border-radius: 4px;
    padding: 1px 6px;
    vertical-align: middle;
}

.rti-msg {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 14px;
}
.rti-msg-ok    { background: #eafaf0; color: #1a7f4b; }
.rti-msg-error { background: #fdecec; color: #b3261e; }

/* ── Kontoseite v2 (Tabs + Profil) ── */
.rti-konto2 { max-width: none; width: 100%; padding: 0; }
.rti-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line, #e6e6e6); padding: 0 10px; flex-wrap: wrap; }
.rti-tab { appearance: none; background: none; border: none; padding: 13px 14px; font-size: 15px; color: #6b6b6b; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; font-family: inherit; }
.rti-tab.active { color: #c8102e; border-bottom-color: #c8102e; font-weight: 600; }
/* Kein türkiser Fokus-/Aktiv-Hintergrund vom Theme — aktiver Tab bleibt weiss.
   Der rote Unterstrich zeigt den aktiven Tab; Tastatur-Fokus bleibt sichtbar. */
.rti-tab:hover { background: transparent; }
.rti-tab:focus,
.rti-tab:active { background: transparent !important; box-shadow: none !important; outline: none; }
.rti-tab:focus-visible { outline: 2px solid #c8102e33 !important; outline-offset: -3px; }
/* „★ X Titel bewertet" – dezente Zeile unter dem Profilbild */
.rti-activity { margin: 14px 0 0; font-size: 14px; color: #4a4a4a; }
.rti-activity strong { color: #1d2327; }

/* Einheitliche Abschnitte in der Merkliste (Formationen, Podcasts, …) */
.rti-merk-sec { margin: 4px 0 20px; }
.rti-merk-sec:last-child { margin-bottom: 4px; }

/* Abschnitts-Überschriften IMMER gleich (Merkliste, Meine Einträge UND
   „Angemeldete Geräte" im Profil) — egal welches Tag/welche Klasse, und
   überstimmt Theme-Titel. Kompakter Grossbuchstaben-Stil. */
#rti-konto .rti-dyn h2,
#rti-konto .rti-dyn h3,
#rti-konto .rti-dyn h4,
#rti-konto .rti-dyn h5,
#rti-konto .rti-dyn h6,
#rti-konto .rti-subtitle {
    margin: 20px 0 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    color: #666 !important;
    font-family: inherit !important;
    line-height: 1.3 !important;
}
.rti-panel { display: none; padding: 22px; }
.rti-panel.active { display: block; }

.rti-toolbar { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.rti-btn-ghost { background: #f0f0f2; color: #333; }
.rti-btn-ghost:hover { background: #e4e4e8; }
.rti-btn-sm { padding: 7px 14px; font-size: 13px; margin-top: 0; }

.rti-profhead { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; position: relative; }
.rti-avatar { position: relative; flex: 0 0 auto; width: 84px; height: 84px; }
.rti-avatar img, .rti-initials { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; }
.rti-initials { background: linear-gradient(135deg, #c8102e, #7a0a1c); color: #fff; font-size: 30px; font-weight: 600; }
.rti-cam { display: none; position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; background: #c8102e; color: #fff; border: 3px solid #fff; cursor: pointer; font-size: 13px; line-height: 1; }
.rti-editing .rti-cam { display: block; }
.rti-who .rti-name { font-size: 17px; font-weight: 600; }
.rti-who .rti-email2 { color: #6b6b6b; font-size: 14px; }
.rti-photo-remove { display: none; font-size: 13px; padding: 4px 0; }
.rti-editing .rti-photo-remove { display: inline-block; }

.rti-field { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; }
.rti-field:last-of-type { border-bottom: none; }
.rti-flabel { flex: 0 0 140px; color: #6b6b6b; font-size: 13px; padding-top: 8px; }
.rti-opt { color: #b0b0bb; font-size: 11px; }
.rti-fval { flex: 1; font-size: 15px; padding-top: 8px; min-height: 20px; }
.rti-empty { color: #b9b9c0; font-style: italic; }
.rti-fedit { flex: 1; display: none; }
.rti-editing .rti-fval { display: none; }
.rti-editing .rti-fedit { display: block; }
.rti-fedit input, .rti-fedit select { width: 100%; max-width: 520px; padding: 9px 11px; border: 1px solid #ccc; border-radius: 8px; font-size: 15px; font-family: inherit; box-sizing: border-box; }
.rti-fedit input[type="hidden"] { display: none; }
.rti-readonly { background: #f4f4f5; color: #888; }

.rti-save-area { display: none; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line, #e6e6e6); }
.rti-editing .rti-save-area { display: block; }
.rti-editing .rti-toolbar { visibility: hidden; }
.rti-gdpr { display: flex; gap: 10px; align-items: flex-start; background: #fafafb; border: 1px solid #e6e6e6; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #444; }
.rti-gdpr input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 auto; }
.rti-gdpr a { color: #c8102e; }
.rti-save-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.rti-hr { border: none; border-top: 1px solid #eee; margin: 24px 0 16px; }

/* ── Bild-Zuschneide-Overlay ── */
.rti-konto2 { position: relative; }
.rti-cropper { position: absolute; inset: 0; background: rgba(0,0,0,.55); z-index: 40; display: none; align-items: center; justify-content: center; }
.rti-cropper-box { background: #fff; border-radius: 12px; padding: 16px; width: min(320px, 92%); box-shadow: 0 12px 44px rgba(0,0,0,.35); }
.rti-cropper-title { font-weight: 600; margin-bottom: 12px; text-align: center; }
.rti-cropper-stage { display: flex; justify-content: center; }
.rti-cropper-stage canvas { width: 280px; height: 280px; border-radius: 50%; background: #eee; border: 1px solid #ddd; cursor: grab; touch-action: none; }
.rti-cropper-stage canvas:active { cursor: grabbing; }
.rti-cropper-zoom { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #555; margin: 14px 2px; }
.rti-cropper-zoom input { flex: 1; }
.rti-cropper-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Zweiter Foto-Button (Kamera) unten links, Upload bleibt unten rechts */
.rti-cam-shoot { right: auto; left: -2px; }
/* Kamera-Overlay (geräteeigene Kamera) */
.rti-cam-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); z-index: 41; display: none; align-items: center; justify-content: center; }
.rti-cam-box { background: #fff; border-radius: 12px; padding: 16px; width: min(360px, 94%); box-shadow: 0 12px 44px rgba(0,0,0,.35); }
.rti-cam-stage { display: flex; justify-content: center; }
.rti-cam-stage video { width: 100%; max-width: 300px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: #000; transform: scaleX(-1); }

/* Trägerverein-Mitglied: Krone neben dem Namen */
.rti-member-badge{display:inline-block;margin-left:5px;font-size:.95em;line-height:1;cursor:default;vertical-align:baseline;}
