/* Team-Planer team.acewolf.eu (08.11.2026) – dunkel, Lila/Glas wie acewolf.eu, aber schlicht */
:root {
  --bg: #120E1C; --bg2: #1A1428; --glas: rgba(42, 33, 69, .55); --linie: rgba(139, 92, 246, .22);
  --text: #ECE7F7; --leise: #A79DC0; --lila: #8B5CF6; --lila2: #A78BFA; --pink: #D946EF; --gold: #F59E0B;
  --gruen: #22C55E; --rot: #EF4444; --blau: #3BA7FF;
  --grad: linear-gradient(120deg, #8B5CF6 0%, #D946EF 55%, #F59E0B 100%);
  --r: 14px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 15px/1.5 'Nunito', system-ui, sans-serif;
  background: radial-gradient(900px 500px at 10% -10%, rgba(139, 92, 246, .22), transparent 60%),
              radial-gradient(700px 400px at 100% 0%, rgba(217, 70, 239, .14), transparent 60%), var(--bg);
}
a { color: var(--lila2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 600; margin: 0 0 .6rem; line-height: 1.25; }
h2 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
h3 { font-size: .95rem; color: var(--leise); }
code { font: .9em 'IBM Plex Mono', monospace; background: rgba(139, 92, 246, .15); padding: .05rem .35rem; border-radius: 6px; }

/* Kopf */
.tp-top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .6rem 1rem; background: rgba(18, 14, 28, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--linie);
}
.tp-marke { display: flex; align-items: center; gap: .5rem; color: var(--text); font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.05rem; }
.tp-marke b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tp-marke:hover { text-decoration: none; }
.tp-nav { display: flex; gap: .25rem; flex: 1; }
.tp-nav a { color: var(--leise); padding: .35rem .7rem; border-radius: 999px; }
.tp-nav a:hover { color: var(--text); text-decoration: none; background: rgba(139, 92, 246, .12); }
.tp-nav a.an { color: var(--text); background: rgba(139, 92, 246, .25); }
.tp-ich { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--leise); font-size: .9rem; }
.tp-ich img { border-radius: 50%; }
.tp-link { background: none; border: 0; color: var(--leise); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }

.tp-main { max-width: 1150px; margin: 0 auto; padding: 1.2rem 16px 3rem; }
.tp-h1 { font-size: 1.6rem; }
.tp-kopf { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .4rem; }
.tp-kopf h2 { margin: 0; }

/* Karten + Raster */
.tp-karte {
  background: var(--glas); border: 1px solid var(--linie); border-radius: var(--r); padding: 1rem 1.1rem; margin-bottom: 1rem;
  backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.tp-mitte { max-width: 460px; margin: 12vh auto 0; text-align: center; }
.tp-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 1rem; }
.tp-raster.zwei { grid-template-columns: 1.4fr 1fr; }
.tp-raster.drei { grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
@media (max-width: 800px) { .tp-raster.zwei, .tp-raster.drei { grid-template-columns: 1fr; } }
details.tp-karte > summary { cursor: pointer; font-weight: 700; list-style: none; }
details.tp-karte > summary::-webkit-details-marker { display: none; }
details[open].tp-karte > summary { margin-bottom: .8rem; }
.tp-neu > summary { color: var(--lila2); }

/* Zeilen */
.tp-zeile {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .55rem .7rem; margin: 0 -.3rem .3rem;
  border-radius: 10px; color: var(--text); border-left: 3px solid var(--lila);
  background: rgba(255, 255, 255, .025);
}
.tp-zeile:hover { background: rgba(139, 92, 246, .12); text-decoration: none; }
.tp-zeile.s-in_arbeit { border-left-color: var(--gold); }
.tp-zeile.s-erledigt { border-left-color: var(--gruen); opacity: .7; }
.tp-zeile.s-erledigt .tp-titel { text-decoration: line-through; }
.tp-zeile.p-dringend:not(.s-erledigt), .tp-zeile.ueber { border-left-color: var(--rot); }
.tp-zeile.termin { border-left-color: var(--blau); }
.tp-nr { color: var(--leise); font: .85rem 'IBM Plex Mono', monospace; }
.tp-titel { flex: 1; min-width: 10rem; font-weight: 600; }
.tp-wann { color: var(--blau); font-weight: 700; min-width: 7.5rem; font-size: .9rem; }
.tp-meta { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.tp-wer { color: var(--leise); font-size: .85rem; }
.tp-chip { font-size: .78rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(139, 92, 246, .16); color: var(--text); white-space: nowrap; }
.tp-chip.rot { background: rgba(239, 68, 68, .2); color: #FCA5A5; }
.tp-chip.gross { font-size: .9rem; padding: .25rem .7rem; }
.tp-zahl { font-size: .8rem; background: var(--grad); color: #fff; border-radius: 999px; padding: 0 .5rem; }
.tp-mehr { display: inline-block; margin-top: .3rem; font-size: .9rem; }
.tp-leise { color: var(--leise); }
.klein { font-size: .85rem; }
.rot { color: #FCA5A5; }
.tp-gross { font-size: 1.15rem; font-weight: 700; color: var(--blau); margin: 0 0 .6rem; }
.tp-text { white-space: normal; margin: .2rem 0 .8rem; }
.tp-zurueck { display: inline-block; margin-bottom: .6rem; }

/* Tabs + Suche */
.tp-tabs { display: flex; gap: .3rem; margin: .2rem 0 1rem; flex-wrap: wrap; }
.tp-tabs a { padding: .35rem .9rem; border-radius: 999px; color: var(--leise); border: 1px solid var(--linie); }
.tp-tabs a.an { color: #fff; background: var(--lila); border-color: var(--lila); }
.tp-tabs a:hover { text-decoration: none; color: var(--text); }
.tp-suche input { min-width: 14rem; }

/* Formulare */
.tp-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .7rem 1rem; }
.tp-form .breit { grid-column: 1 / -1; }
.tp-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--leise); }
input, select, textarea {
  font: inherit; color: var(--text); background: rgba(10, 8, 17, .6); border: 1px solid var(--linie); border-radius: 10px;
  padding: .5rem .65rem; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--lila); outline-offset: 1px; }
textarea { resize: vertical; }

/* Knöpfe */
.tp-knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; cursor: pointer; border: 0; border-radius: 10px;
  padding: .55rem 1rem; font: 700 .92rem 'Nunito', sans-serif; color: #fff; background: var(--grad); text-decoration: none;
}
.tp-knopf:hover { filter: brightness(1.1); text-decoration: none; }
.tp-knopf.zweit { background: rgba(139, 92, 246, .18); color: var(--text); border: 1px solid var(--linie); }
.tp-knopf.gruen { background: var(--gruen); }
.tp-knopf.rot { background: rgba(239, 68, 68, .85); }
.tp-knopf.klein { padding: .25rem .65rem; }
.tp-knopf.gross { padding: .8rem 1.4rem; font-size: 1rem; margin: .6rem 0; }
.tp-knopf.discord { background: #5865F2; }
.tp-aktionen { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.tp-aktionen form, .tp-loeschen { margin: 0; }
.tp-loeschen { margin-top: 1rem; text-align: right; }

/* Fakten */
.tp-fakten { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .4rem 0; }
.tp-fakten dt { color: var(--leise); }
.tp-fakten dd { margin: 0; }

/* Verlauf */
.tp-verlauf { list-style: none; margin: 0; padding: 0; }
.tp-verlauf li { padding: .35rem 0; border-bottom: 1px solid rgba(139, 92, 246, .1); font-size: .92rem; }
.tp-verlauf small { display: block; color: var(--leise); font-size: .78rem; }
.tp-person { padding: .15rem 0; }

/* Kalender */
.tp-kal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: .6rem; }
.tp-kal > b { text-align: center; font-size: .78rem; color: var(--leise); padding-bottom: .2rem; }
.tp-kal .tag { min-height: 84px; border-radius: 8px; background: rgba(255, 255, 255, .03); padding: 4px; overflow: hidden; border: 1px solid transparent; }
.tp-kal .tag.heute { border-color: var(--lila); background: rgba(139, 92, 246, .12); }
.tp-kal .tag.vorbei { opacity: .5; }
.tp-kal .z { font-size: .78rem; color: var(--leise); }
.tp-kal .tag a { display: block; font-size: .72rem; line-height: 1.25; margin-top: 2px; padding: 2px 4px; border-radius: 5px;
  background: rgba(59, 167, 255, .18); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .tp-kal .tag { min-height: 54px; } .tp-kal .tag a { font-size: 0; height: 6px; padding: 0; } }

/* Meldungen */
.tp-flash { padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid var(--linie); background: var(--glas); }
.tp-flash.success { border-color: rgba(34, 197, 94, .5); }
.tp-flash.error { border-color: rgba(239, 68, 68, .6); color: #FCA5A5; }
