/* v216: Mottoshows – Banner, Abstimmung, Archiv, Admin-Fenster */
#rtMotto{box-sizing:border-box;max-width:1240px;margin:0 auto 18px;padding:20px 22px;border:1px solid #7a2a44;border-radius:16px;
  background:radial-gradient(120% 140% at 0% 0%,#3a1222 0%,#1a1219 55%,#141218 100%);box-shadow:0 10px 30px #0005;color:#fff;position:relative;overflow:hidden}
#rtMotto[hidden]{display:none!important}
#rtMotto::after{content:"";position:absolute;inset:auto -60px -80px auto;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,#ee284733,transparent 70%);pointer-events:none}
body.rt-menu-beta:not(:has(#home.active)) #rtMotto{display:none!important}
body:not(:has(#home.active)) #rtMotto{display:none!important}
.motto-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;position:relative;z-index:1}
.motto-eyebrow{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.14em;color:#ff7a93;margin-bottom:6px}
.motto-next h2{margin:0 0 4px;font-size:clamp(24px,3.2vw,34px);line-height:1.1;font-weight:900;letter-spacing:.01em;text-transform:uppercase}
.motto-when{margin:0 0 8px;font-weight:700;color:#ffb3c1}
.motto-desc{margin:0 0 10px;color:#e6dbe1;font-size:14px}
.motto-after{margin:10px 0 0;font-size:12px;color:#b9aab3}
.motto-live{margin:8px 0 0;font-weight:800;color:#ff5a76}
.motto-count{display:flex;gap:8px;margin-top:6px}
.motto-count span{display:flex;flex-direction:column;align-items:center;min-width:58px;padding:8px 6px;border-radius:12px;background:#ffffff0d;border:1px solid #ffffff1f}
.motto-count strong{font-size:24px;line-height:1;font-weight:900;font-variant-numeric:tabular-nums}
.motto-count small{font-size:11px;color:#c9b6c0;margin-top:3px}
.motto-poll{padding:14px 16px;border-radius:14px;background:#0000002e;border:1px solid #ffffff17}
.motto-poll h3{margin:0 0 4px;font-size:19px;line-height:1.25}
.motto-small{margin:4px 0;font-size:12px;color:#c3b4bc}
.motto-options{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 4px}
.motto-option{appearance:none;cursor:pointer;padding:10px 14px;border-radius:999px;border:1px solid #ee284780;background:#ee284714;color:#fff;font-weight:700;font-size:14px;transition:transform .12s,background .12s}
.motto-option:hover{background:#ee284733;transform:translateY(-1px)}
.motto-option.is-mine{background:linear-gradient(135deg,#ee2847,#a3122f);border-color:#ff6b84;box-shadow:0 4px 16px #ee284755}
.motto-idea{display:flex;gap:8px;margin-top:10px}
.motto-idea input{flex:1;min-width:0;padding:9px 12px;border-radius:10px;border:1px solid #ffffff2a;background:#0005;color:inherit;font:inherit}
.motto-idea button{padding:9px 14px;border-radius:10px;border:1px solid #ee284799;background:#ee284722;color:inherit;font-weight:700;cursor:pointer}
.motto-myideas{margin:8px 0 0;padding-left:18px;font-size:12px;color:#d6c6ce}
.motto-results{display:flex;flex-direction:column;gap:6px;margin:10px 0 4px}
.motto-result{position:relative;display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:10px;background:#ffffff0a;overflow:hidden}
.motto-result>*:not(.motto-bar){position:relative;z-index:1}
.motto-bar{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#ee284744,#ee284711);z-index:0}
.motto-result.is-winner{outline:1px solid #ffc94d99;background:#ffc94d12}
.motto-result.is-winner .motto-bar{background:linear-gradient(90deg,#ffc94d55,#ffc94d14)}
.motto-place{font-weight:900;width:22px;color:#ffb3c1}
.motto-rtitle{flex:1;min-width:0;font-weight:700;overflow-wrap:anywhere}
.motto-pct{font-size:12px;font-weight:800;color:#f2dfe6;white-space:nowrap}
.motto-planned{color:#ffd779;font-weight:700}
.motto-foot{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;margin-top:14px;position:relative;z-index:1}
.motto-link{appearance:none;background:none;border:0;padding:4px 0;color:#ff9fb2;font-weight:700;text-decoration:underline;cursor:pointer;font-size:13px}
.motto-admin-btn{appearance:none;padding:8px 12px;border-radius:10px;border:1px dashed #ff9fb299;background:#ffffff08;color:#ffd0da;font-weight:700;cursor:pointer;font-size:13px}
/* Dialoge */
.motto-dialog{max-width:min(640px,94vw)}
.motto-dh{margin:16px 0 8px;font-size:14px;letter-spacing:.06em;text-transform:uppercase;color:#ff9fb2}
.motto-archive{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.motto-archive li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;background:#ffffff0a;border:1px solid #ffffff14}
.motto-archive li strong{overflow-wrap:anywhere}
.motto-archive li span{font-size:13px;color:#c9b6c0;white-space:nowrap}
.motto-archive-admin li>div:first-child{display:flex;flex-direction:column;min-width:0}
.motto-tools{display:flex;gap:6px;flex-shrink:0}
.motto-tools button,.motto-x,.motto-ok{padding:6px 10px;border-radius:8px;font-size:12px;cursor:pointer}
.motto-x{border:1px solid #ffffff2a;background:transparent;color:inherit}
.motto-ok{border:1px solid #2fbf6a99;background:#2fbf6a22;color:inherit;font-weight:700}
.motto-asec{padding:14px 0;border-top:1px solid #ffffff17}
.motto-asec:first-child{border-top:0;padding-top:4px}
.motto-asec h3{margin:0 0 10px;font-size:17px}
.motto-asec h4{margin:12px 0 6px;font-size:14px}
.motto-only{color:#ffd779}
.motto-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.motto-field{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#c9b6c0}
.motto-field input,.motto-field textarea,.motto-field select{padding:9px 10px;border-radius:10px;border:1px solid #ffffff2a;background:#0004;color:inherit;font:inherit;font-size:14px}
.motto-field:has(textarea),.motto-wide{grid-column:1/-1}
.motto-check{grid-column:1/-1;display:flex;gap:8px;align-items:center;font-size:13px;margin-top:8px}
.motto-row{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.motto-pending{display:flex;align-items:center;gap:8px;padding:6px 0}
.motto-plan{padding:12px;border-radius:12px;background:#ffc94d10;border:1px solid #ffc94d55;margin-bottom:14px}
@media (max-width:560px){#rtMotto{padding:16px}.motto-count span{min-width:52px}.motto-archive li{flex-wrap:wrap}}
/* Heller Modus */
html[data-theme=light] #rtMotto{background:linear-gradient(120deg,#fff3f6,#ffffff 60%);border-color:#efc3cf;color:#211b20;box-shadow:0 6px 22px #3f183012}
html[data-theme=light] .motto-when{color:#b3163a}
html[data-theme=light] .motto-desc,html[data-theme=light] .motto-small,html[data-theme=light] .motto-after{color:#5d4d56}
html[data-theme=light] .motto-count span,html[data-theme=light] .motto-result,html[data-theme=light] .motto-archive li{background:#00000006;border-color:#0000001a}
html[data-theme=light] .motto-count small{color:#6c5a64}
html[data-theme=light] .motto-poll{background:#ffffffb3;border-color:#efc3cf}
html[data-theme=light] .motto-option{color:#211b20}
html[data-theme=light] .motto-option.is-mine{color:#fff}
html[data-theme=light] .motto-idea input,html[data-theme=light] .motto-field input,html[data-theme=light] .motto-field textarea,html[data-theme=light] .motto-field select{background:#fff;border-color:#d8cbd1}
html[data-theme=light] .motto-pct,html[data-theme=light] .motto-archive li span{color:#5d4d56}
html[data-theme=light] .motto-link{color:#b3163a}
html[data-theme=light] .motto-admin-btn{color:#8a1730;background:#fff}
html[data-theme=light] #rtMotto .motto-option.is-mine{background:linear-gradient(135deg,#ee2847,#a3122f)!important;border-color:#c81d3d!important;color:#fff!important}
html[data-theme=light] #rtMotto .motto-option:not(.is-mine){background:#fff!important;border-color:#e3a9b8!important;color:#3a1f2a!important}
#rtMotto.motto-slim{padding:10px 16px;background:#16141a;border-style:dashed}
#rtMotto.motto-slim::after{display:none}
#rtMotto.motto-slim .motto-foot{margin-top:0}
/* v217: Regeln bei Mottos, 100 Vorschläge, Rhythmus, Motto bei der Show */
.motto-options:has(.has-rule){display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.motto-option{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left}
.motto-option.has-rule{border-radius:14px}
.motto-option small{font-weight:500;font-size:12px;line-height:1.35;opacity:.85}
.motto-draft{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.motto-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 6px 6px 12px;border-radius:999px;background:#ee284722;border:1px solid #ee284777;font-size:13px}
.motto-chip-x{padding:2px 8px;border-radius:999px;border:0;background:#0003;color:inherit;cursor:pointer}
.motto-ideas summary{cursor:pointer;font-weight:800;font-size:15px;padding:4px 0;list-style:none}
.motto-ideas summary::-webkit-details-marker{display:none}
.motto-ideas summary::after{content:" ▾";color:#ff9fb2}
.motto-ideas[open] summary::after{content:" ▴"}
.motto-ideas-bar{display:flex;gap:8px;margin:10px 0}
.motto-ideas-bar input,.motto-ideas-bar select{flex:1;min-width:0;padding:9px 10px;border-radius:10px;border:1px solid #ffffff2a;background:#0004;color:inherit;font:inherit;font-size:14px}
.motto-ideas-list{display:flex;flex-direction:column;gap:6px;max-height:420px;overflow:auto;padding-right:4px}
.motto-idea-card{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#ffffff0a;border:1px solid #ffffff14}
.motto-idea-card>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.motto-idea-card small{color:#c9b6c0;font-size:12px;line-height:1.35}
.motto-idea-acts{display:flex;flex-direction:column;gap:6px;flex-shrink:0}
.motto-idea-acts button{padding:6px 10px;border-radius:8px;font-size:12px;cursor:pointer;white-space:nowrap}
.motto-tag{display:inline-block;width:max-content;font-size:10px;font-weight:800;letter-spacing:.04em;padding:2px 6px;border-radius:6px;background:#ffc94d22;color:#ffd779}
.motto-rhythm{padding-top:0}
.motto-rhythm-form{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end;margin-top:6px}
.motto-rhythm-form button{padding:9px 12px;border-radius:10px}
.motto-badge{display:flex;flex-direction:column;gap:2px;margin:8px 0;padding:10px 12px;border-radius:12px;border:1px solid #ff9fb266;background:linear-gradient(120deg,#ee284726,#ee28470a);color:inherit}
.motto-badge-eyebrow{font-size:10px;font-weight:800;letter-spacing:.14em;color:#ff7a93}
.motto-badge strong{font-size:16px;line-height:1.2}
.motto-badge small{font-size:12px;line-height:1.35;opacity:.9}
.motto-badge-detail{max-width:760px;margin:10px 0 14px}
@media (max-width:560px){.motto-idea-card{flex-direction:column;align-items:stretch}.motto-idea-acts{flex-direction:row}.motto-idea-acts button{flex:1}.motto-rhythm-form{grid-template-columns:1fr}}
html[data-theme=light] .motto-idea-card,html[data-theme=light] .motto-ideas-bar input,html[data-theme=light] .motto-ideas-bar select{background:#fff;border-color:#e3d3da}
html[data-theme=light] .motto-idea-card small{color:#5d4d56}
html[data-theme=light] .motto-badge{background:#fff3f6;border-color:#efc3cf}
html[data-theme=light] .motto-tag{color:#8a5a00;background:#ffe9b3}
/* v219: Handy – Regeln umbrechen statt rauslaufen, kein iOS-Text-Aufblasen, kompakter */
#rtMotto,#rtMotto *{-webkit-text-size-adjust:100%;text-size-adjust:100%}
#rtMotto .motto-option,#rtMotto .motto-option strong,#rtMotto .motto-option small{white-space:normal;overflow-wrap:anywhere;min-width:0;max-width:100%;box-sizing:border-box}
#rtMotto .motto-option small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px!important}
#rtMotto .motto-options:has(.has-rule){grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr))}
@media (max-width:560px){
 .motto-next h2{font-size:clamp(18px,5.4vw,22px)}
 .motto-when{font-size:14px}
 .motto-count strong{font-size:19px}.motto-count span{min-width:46px;padding:6px 5px}
 .motto-poll{padding:12px}.motto-poll h3{font-size:16px}
 #rtMotto .motto-option{padding:8px 12px;font-size:13px}
 .motto-grid{gap:12px}
}
/* v219b: Motto-Kasten auf Show-Karte/Show-Seite klein halten (Show-Karten-Schrift nicht übernehmen) */
.motto-badge,.motto-badge *{-webkit-text-size-adjust:100%;text-size-adjust:100%;letter-spacing:normal;text-transform:none}
#shows .motto-badge,.motto-badge.motto-badge-card,.motto-badge.motto-badge-detail{display:inline-flex!important;flex-direction:column;max-width:100%;box-sizing:border-box;padding:7px 10px!important;margin:6px 0!important;gap:1px!important}
#shows .motto-badge .motto-badge-eyebrow,.motto-badge .motto-badge-eyebrow{font-size:9px!important;letter-spacing:.14em!important;line-height:1.3!important;text-transform:uppercase}
#shows .motto-badge strong,.motto-badge strong{font-size:14px!important;line-height:1.25!important;font-weight:800!important;margin:0!important}
#shows .motto-badge small,.motto-badge small{font-size:11.5px!important;line-height:1.3!important;margin:0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* v219d: unter den Bewertungen */
#rtMotto.motto-in-home{margin:22px 0 18px;max-width:none}
/* v221: Konto löschen */
.account-delete-link{display:block;margin:18px auto 0;background:none!important;border:0!important;box-shadow:none!important;color:#9a8f96!important;font-size:13px!important;text-decoration:underline;padding:6px!important;cursor:pointer}
.account-delete-dialog{max-width:440px}
.account-delete-dialog ul{margin:6px 0 14px;padding-left:20px;line-height:1.45;font-size:14px}
.account-delete-dialog label{display:grid;gap:6px;font-size:14px}
.account-delete-error{color:#ff6b84;min-height:1em;font-size:13px}
.account-delete-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.account-delete-actions .danger{background:#c81d3d!important;color:#fff!important;border-color:#c81d3d!important}
.account-delete-actions .danger:disabled{opacity:.45}
/* v221: Konto-Extras (Benachrichtigungen, Meldungen) */
.account-extras{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.push-prefs{display:grid;gap:4px}
.push-pref-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 2px;border-bottom:1px solid #ffffff14;font-size:15px}
.push-pref-row input{appearance:none;-webkit-appearance:none;width:51px;height:31px;border-radius:999px;background:#3a3a3f;position:relative;flex:none;cursor:pointer;transition:background .2s;margin:0}
.push-pref-row input::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 6px #0004;transition:transform .22s cubic-bezier(.2,.8,.2,1)}
.push-pref-row input:checked{background:#34c759}
.push-pref-row input:checked::after{transform:translateX(20px)}
html[data-theme=light] .push-pref-row{border-color:#0000001a}
html[data-theme=light] .push-pref-row input{background:#e5e5ea}
.push-hint{font-size:13px;margin-top:10px}
.admin-reports{display:grid;gap:10px}
.admin-report{display:grid;gap:4px;padding:12px;border:1px solid #ffffff1a;border-radius:12px}
.admin-report-acts{display:flex;gap:8px;margin-top:6px}
.rt-calendar-link{display:inline-block;margin:0 0 12px 14px;font-size:14px;color:#ff9fb2;text-decoration:none;font-weight:600}
.rt-calendar-link:hover{text-decoration:underline}
html[data-theme=light] .rt-calendar-link{color:#c81d3d}
@media (max-width:560px){.rt-calendar-link{margin:0 0 12px}}
/* v222: Aufklappen „Wie ist das gemeint?“, Rädchen, Zufall mit Schloss */
.motto-option-wrap{display:flex;flex-direction:column;gap:4px}
.motto-option-wrap .motto-option{width:100%}
.motto-explain{font-size:13px;margin:0 2px}
.motto-explain summary{cursor:pointer;color:#ff9fb2;font-weight:600;list-style:none;padding:2px 0;display:inline-block}
.motto-explain summary::-webkit-details-marker{display:none}
.motto-explain summary::after{content:" ▾";font-size:11px}
.motto-explain[open] summary::after{content:" ▴"}
.motto-explain-body{margin-top:6px;padding:10px 12px;border-radius:12px;background:#ffffff0d;border:1px solid #ffffff1a;line-height:1.45;color:#e6dbe1}
.motto-explain-body p{margin:0 0 6px}.motto-explain-body p:last-child{margin:0}
.motto-explain-body b{color:#ffb3c1}
html[data-theme=light] .motto-explain summary{color:#c81d3d}
html[data-theme=light] .motto-explain-body{background:#fff3f6;border-color:#efc3cf;color:#3a1f2a}
html[data-theme=light] .motto-explain-body b{color:#a3122f}
.motto-badge .motto-explain{margin-top:4px}
.motto-random,.motto-wheel{flex-wrap:wrap;gap:8px;align-items:center}
.motto-random select,.motto-wheel select{min-width:0;flex:1 1 150px}
.motto-chip.is-locked{border-color:#34c759!important;box-shadow:0 0 0 1px #34c75955 inset}
.motto-chip-lock{background:none!important;border:0!important;padding:0 4px!important;font-size:13px!important;cursor:pointer;box-shadow:none!important}
.motto-idea-extra{display:block;margin-top:4px;opacity:.8;font-style:italic}
