/* [NEUE-VERSION] (Auftrag 235, Fenster TU1) Reiter «👥 Teams»: Verwaltung, Kind-Ansicht, Beamer. Gehört zu js/teams.js. */
.teams-verwaltung, .teams-kind, .teams-vorschau { max-width: 1200px; margin: 0 auto; padding: 8px 0 24px; }
.teams-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.teams-kopf__titel { margin: 0; font-size: 1.35rem; }
.teams-kopf__klasse { min-height: 40px; font-size: 1rem; }
.teams-kopf__klasse-name { font-weight: 600; }
.teams-kopf__reiter { font-size: .85rem; padding: 3px 10px; border-radius: 999px; }
.teams-kopf__reiter--offen { background: #e8f5e9; color: #1b5e20; }
.teams-kopf__reiter--zu { background: #ffebee; color: #b71c1c; }

.teams-meldung { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #e3f2fd; color: #0d47a1; }
.teams-meldung--fehler { background: #fff3e0; color: #8a3c00; }
.teams-meldung__zu { border: 0; background: transparent; font-size: 1rem; min-width: 32px; min-height: 32px; cursor: pointer; color: inherit; }

.teams-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.teams-chip { border: 1px solid #b0bec5; background: #fff; border-radius: 999px; padding: 6px 14px; min-height: 36px; cursor: pointer; font-size: .95rem; }
.teams-chip--aktiv { background: #263238; color: #fff; border-color: #263238; }

.teams-leiste, .teams-misch, .teams-sammel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.teams-misch { padding: 8px 10px; background: #f5f7f8; border-radius: 10px; }
.teams-misch select, .teams-misch input { min-height: 40px; font-size: 1rem; }
.teams-misch__zahl { width: 4.5em; }
.teams-sammel { padding: 8px 10px; background: #fffde7; border: 1px solid #f9e79f; border-radius: 10px; }
.teams-sammel__zahl { font-weight: 600; margin-right: 4px; }

.teams-knopf { border: 1px solid #90a4ae; background: #fff; border-radius: 8px; padding: 6px 12px; min-height: 40px; cursor: pointer; font-size: .95rem; color: #263238; }
.teams-knopf:disabled { opacity: .5; cursor: default; }
.teams-knopf--haupt { background: #1565c0; border-color: #1565c0; color: #fff; font-weight: 600; }
.teams-knopf--klein { min-height: 32px; min-width: 32px; padding: 2px 8px; }
.teams-knopf--ziel { border-left: 6px solid var(--teams-farbe, #546e7a); }
.teams-knopf--gefahr { border-color: #c62828; color: #c62828; }

.teams-einteilungen { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.teams-einteilung-karte { display: flex; align-items: center; gap: 6px; border: 1px solid #cfd8dc; border-radius: 12px; background: #fff; padding: 6px 6px 6px 0; }
.teams-einteilung-karte__oeffnen { flex: 1; text-align: left; border: 0; background: transparent; padding: 8px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 44px; }
.teams-einteilung-karte__name { font-weight: 600; font-size: 1.05rem; }
.teams-einteilung-karte__info { font-size: .85rem; color: #546e7a; }

.teams-auge { min-width: 44px; min-height: 44px; border-radius: 10px; border: 2px solid; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.teams-auge--offen { border-color: #2e7d32; color: #2e7d32; }
.teams-auge--zu { border-color: #c62828; color: #c62828; }
.teams-auge:disabled { opacity: .55; cursor: default; }

.teams-mehr { position: relative; }
.teams-mehr__knopf { list-style: none; cursor: pointer; min-width: 40px; min-height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; border-radius: 8px; }
.teams-mehr__knopf::-webkit-details-marker { display: none; }
.teams-mehr__menue { position: absolute; right: 0; top: 100%; z-index: 20; background: #fff; border: 1px solid #cfd8dc; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.15); display: flex; flex-direction: column; min-width: 160px; }
.teams-mehr__menue button { border: 0; background: transparent; text-align: left; padding: 10px 14px; min-height: 44px; cursor: pointer; font-size: .95rem; }
.teams-mehr__menue button:hover { background: #eceff1; }

.teams-archiv { margin-top: 16px; color: #455a64; }
.teams-archiv summary { cursor: pointer; min-height: 36px; padding: 6px 0; }
.teams-archiv__zeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #eceff1; }

.teams-neu, .teams-nz { border: 1px solid #cfd8dc; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; background: #fafcfd; }
.teams-neu__titel { margin: 0 0 8px; font-size: 1.05rem; }
.teams-neu__name { width: 100%; max-width: 480px; min-height: 40px; font-size: 1rem; margin-bottom: 10px; box-sizing: border-box; }
.teams-neu__vorlagen { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 10px; }
.teams-vorlage { text-align: left; border: 1px solid #cfd8dc; border-radius: 10px; background: #fff; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; font-size: .85rem; color: #37474f; min-height: 44px; }
.teams-vorlage strong { font-size: .98rem; color: #263238; }
.teams-vorlage:disabled { opacity: .5; cursor: default; }
.teams-vorlage--leer { border-style: dashed; }
.teams-vorlage__kat { color: #1565c0; font-size: .8rem; }
.teams-nz__neu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.teams-nz__wahl { min-height: 40px; font-size: 1rem; max-width: 100%; }
.teams-nz__liste { list-style: none; padding: 0; margin: 0; }
.teams-nz__liste li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; }

.teams-offen__kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.teams-offen__titel { margin: 0; font-size: 1.2rem; }
.teams-offen__kat { color: #546e7a; font-size: .9rem; }

.teams-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.teams-karte { border: 1px solid #cfd8dc; border-top: 8px solid var(--teams-farbe, #546e7a); border-radius: 12px; background: #fff; padding: 8px 10px 10px; min-height: 80px; }
.teams-karte--eigene { border-width: 3px; border-color: var(--teams-farbe, #546e7a); border-top-width: 10px; box-shadow: 0 0 0 3px rgba(21,101,192,.18); }
.teams-karte--neu { border-style: dashed; border-top: 1px dashed #90a4ae; background: #fafafa; cursor: pointer; font-size: 1rem; color: #455a64; }
.teams-karte__kopf { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.teams-karte__name { font-weight: 700; font-size: 1.05rem; flex: 1; }
.teams-karte__zahl { font-size: .85rem; color: #546e7a; }
.teams-karte__marke { background: var(--teams-farbe, #546e7a); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 600; text-shadow: 0 0 2px rgba(0,0,0,.45); }
.teams-karte__liste, .teams-ohne__liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.teams-felder { margin: 0 0 6px; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: .85rem; }
.teams-felder dt { color: #546e7a; }
.teams-felder dd { margin: 0; }

.teams-person { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 8px; background: #f5f7f8; min-height: 36px; user-select: none; -webkit-user-select: none; }
.teams-person--lesen { background: transparent; padding: 2px 0; min-height: 0; }
.teams-person--fix { background: #fff8e1; }
.teams-person__wahl { width: 22px; height: 22px; flex: none; }
.teams-person__griff { cursor: grab; touch-action: none; padding: 4px 6px; color: #78909c; font-size: 1.1rem; flex: none; }
.teams-person__name { flex: 1; overflow-wrap: anywhere; }
.teams-person__pin { border: 0; background: transparent; cursor: pointer; opacity: .3; min-width: 32px; min-height: 32px; flex: none; }
.teams-person__pin--an { opacity: 1; }
.teams-person--zieht { position: relative; z-index: 50; box-shadow: 0 8px 20px rgba(0,0,0,.25); background: #fff; opacity: .92; }
.teams-ziel--aktiv { outline: 3px dashed #1565c0; outline-offset: 2px; }

.teams-ohne { margin-top: 14px; border: 1px dashed #90a4ae; border-radius: 12px; padding: 8px 10px; background: #fcfcfc; }
.teams-ohne__titel { margin: 0 0 6px; font-size: 1rem; }
.teams-ohne__liste { flex-direction: row; flex-wrap: wrap; }
.teams-ohne__liste .teams-person { flex: 0 1 auto; }

.teams-gruppe-form { display: flex; flex-direction: column; gap: 8px; }
.teams-gruppe-form label { display: flex; flex-direction: column; gap: 2px; font-size: .85rem; color: #455a64; }
.teams-gruppe-form input, .teams-gruppe-form select, .teams-gruppe-form textarea { min-height: 36px; font-size: 1rem; box-sizing: border-box; width: 100%; }
.teams-gruppe-form__knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }

.teams-leer { color: #607d8b; margin: 8px 0; }
.teams-kind__einteilung { margin-bottom: 20px; }
.teams-kind__titel { margin: 0 0 4px; font-size: 1.15rem; }
.teams-kind__meine { margin: 0 0 8px; font-weight: 600; }
.teams-vorschau__hinweis { color: #455a64; margin: 0 0 8px; }
.teams-vorschau__raster { margin-top: 10px; }

/* Beamer: Vollbild, grosse Schrift, keine Bedienelemente */
.teams-beamer { position: fixed; inset: 0; z-index: 10000; background: #fff; overflow: auto; padding: 3vh 3vw; box-sizing: border-box; cursor: default; }
.teams-beamer__titel { font-size: clamp(2rem, 4vw, 3.5rem); margin: 0 0 2vh; text-align: center; }
.teams-raster--beamer { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 2vw; }
.teams-karte--beamer { font-size: clamp(1.3rem, 2.2vw, 2.2rem); border-top-width: 18px; }
.teams-karte--beamer .teams-karte__name { font-size: 1.15em; }
.teams-karte--beamer .teams-felder { font-size: .7em; }
.teams-beamer__hinweis { position: fixed; right: 12px; bottom: 8px; font-size: .8rem; color: #b0bec5; }

/* [NEUE-VERSION] (Auftrag 245, Fenster TU2): Teams-Sperre, Wichteln, Archiv-Hinweis, eigene Vorlagen, kurzer Reiter. */
.teams-fix--an { background: #fff3e0; border-color: #ef6c00; color: #8a3c00; }
.teams-wichteln { border: 1px solid #cfd8dc; border-radius: 12px; padding: 10px 12px; background: #fff; }
.teams-wichteln__info { margin: 0 0 6px; font-weight: 600; }
.teams-wichteln__stand, .teams-wichteln__hinweis { margin: 0 0 8px; color: #455a64; }
.teams-wichteln__liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 12px; }
.teams-wichteln__liste li { padding: 4px 8px; background: #f5f7f8; border-radius: 8px; }
.teams-wichtel { display: flex; align-items: center; gap: 12px; border: 2px solid #c62828; border-radius: 12px; padding: 12px 14px; background: #fff; max-width: 520px; }
.teams-wichtel__symbol { font-size: 2rem; }
.teams-wichtel__text { margin: 0; font-size: 1.15rem; font-weight: 600; }
.teams-loeschhinweis { border: 1px solid #ef6c00; background: #fff3e0; color: #5d2a00; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.teams-loeschhinweis ul { margin: 6px 0 0; padding-left: 18px; }
.teams-loeschhinweis li { margin: 4px 0; }
.teams-archiv__satz { margin: 6px 0; font-size: .9rem; }
.teams-archiv__zeile--bald { color: #8a3c00; font-weight: 600; }
.teams-autoloeschen { display: flex; align-items: center; gap: 8px; margin-top: 10px; min-height: 44px; font-size: .9rem; }
.teams-autoloeschen__wahl { width: 22px; height: 22px; flex: none; }
.teams-eigene { margin-bottom: 10px; }
.teams-eigene__titel { margin: 4px 0 6px; font-size: 1rem; }
.teams-vorlage-zeile { display: flex; align-items: stretch; gap: 4px; }
.teams-vorlage-zeile .teams-vorlage { flex: 1; }
.teams-vorlage--eigen { border-color: #1565c0; }
/* ARG4-3: unter 560 px nur «👥» -- die klebende Hauptnav wird durch den Reiter nicht höher. */
@media (max-width: 559px) { #tab-teams .teams-tab__wort { display: none; } }
@media (max-width: 600px) {
  .teams-einteilungen, .teams-raster, .teams-neu__vorlagen { grid-template-columns: 1fr; }
  .teams-misch, .teams-sammel { flex-direction: column; align-items: stretch; }
  .teams-misch__zahl { width: 100%; box-sizing: border-box; }
}
@media print { .teams-beamer__hinweis, .teams-misch, .teams-sammel, .teams-chips { display: none; } }
