/* Freunde, Profil, Wiederherstellung, Rechtliches, Regeln, Nicht gefunden (Handy-Basis, ab 900 px PC) */

.k-seite {
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 20px 104px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.k-titelzeile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.k-seite h1 { margin: 0; font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 34px; line-height: 1; }
.k-text { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 700; color: var(--gruengrau); }
.k-klein { font-size: 13px; font-weight: 900; letter-spacing: 0.1em; color: var(--gruengrau); }
.k-gelb { color: var(--gelb); }
.k-zurueck { display: none; }
a.k-zurueck { text-decoration: none; }
.k-spalten { display: flex; flex-direction: column; gap: 14px; }

button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }
a.l-nav-knopf { text-decoration: none; }

.k-badge {
  position: absolute;
  top: 0;
  right: 16px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--tomate);
  color: var(--tinte);
  border: 2px solid var(--tinte);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
}

/* Knöpfe */
.k-knopf {
  min-height: 44px;
  padding: 0 14px;
  background: var(--gelb);
  color: var(--tinte);
  border: 3px solid var(--tinte);
  border-radius: 10px;
  font-family: "Chivo", sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.k-knopf-karton { background: var(--karton); }
.k-knopf-dunkel { background: var(--tinte); color: var(--gelb); font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 15px; }
.k-knopf-gross {
  min-height: 56px;
  width: 100%;
  box-shadow: 0 5px 0 var(--schatten);
  font-family: "Alfa Slab One", serif;
  font-weight: 400;
  font-size: 18px;
}
.k-knopf-tomate { background: var(--tomate); font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 16px; box-shadow: 0 4px 0 var(--schatten); }
.k-rand {
  min-height: 56px;
  background: transparent;
  color: var(--papier);
  border: 3px solid var(--papier);
  border-radius: 10px;
  font-family: "Chivo", sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.k-knopf:disabled { background: var(--gesperrt); color: var(--gruengrau); cursor: default; }

/* Eingabe */
.k-eingabe {
  box-sizing: border-box;
  min-height: 52px;
  padding: 0 14px;
  background: var(--papier);
  color: var(--tinte);
  border: 3px solid var(--tinte);
  border-radius: 10px;
  font-family: "Chivo", sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.k-zeile-form { display: flex; gap: 8px; }
.k-zeile-form .k-eingabe { flex: 1; min-width: 0; }
.k-meldung { margin: 0; min-height: 20px; font-size: 14px; font-weight: 900; color: var(--gelb); }
.k-meldung.k-fehler { color: #FF9C86; }

/* Freundesliste */
.k-box { display: flex; flex-direction: column; gap: 12px; }
.k-abschnitt { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.k-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.k-freund {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--papier);
  color: var(--tinte);
  border: 3px solid var(--tinte);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--schatten);
}
.k-freund-offline { background: var(--karton); }
.k-freund-anfrage { background: var(--gelb); }
.k-freund .s-avatar { flex: none; }
.k-freund-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.k-freund-name { font-weight: 900; font-size: 16px; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-freund-info { font-size: 13px; font-weight: 700; color: var(--braun); }
.k-punkt { flex: none; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--tinte); background: var(--teal); }
.k-punkt-aus { background: #9A9A8E; }
.k-leer { margin: 0; font-size: 15px; font-weight: 700; color: var(--gruengrau); }
.k-entfernen { flex: none; min-height: 44px; min-width: 44px; padding: 0; background: transparent; border: 0; font-size: 18px; font-weight: 900; color: var(--braun); cursor: pointer; }

/* Einladungsleiste in der Lobby */
.k-einladung {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--gelb);
  color: var(--tinte);
  border: 3px solid var(--tinte);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--schatten);
}
.k-einladung span { font-size: 14px; font-weight: 700; line-height: 1.25; }
.k-einladung b { font-weight: 900; }
.k-einladung-knoepfe { display: flex; gap: 8px; flex: none; }
.k-rein { min-height: 44px; padding: 0 16px; background: var(--tinte); color: var(--gelb); border: 0; border-radius: 8px; font-family: "Alfa Slab One", serif; font-size: 16px; cursor: pointer; }
.k-nein { min-height: 44px; padding: 0 12px; background: transparent; color: var(--tinte); border: 3px solid var(--tinte); border-radius: 8px; font-family: "Chivo", sans-serif; font-weight: 900; font-size: 13px; cursor: pointer; }

/* Profil */
.k-profilkopf { display: flex; align-items: center; gap: 16px; }
.k-profilkopf .s-avatar svg { width: 96px; height: 96px; }
.k-profilname { margin: 0; font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 28px; line-height: 1.1; overflow-wrap: anywhere; text-transform: uppercase; }
.k-kacheln { display: flex; gap: 10px; }
.k-kachel { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--papier); color: var(--tinte); border: 3px solid var(--tinte); border-radius: 12px; box-shadow: 0 4px 0 var(--schatten); }
.k-kachel b { font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 28px; line-height: 1.1; }
.k-kachel span { font-size: 12px; font-weight: 900; letter-spacing: 0.08em; color: var(--braun); }
.k-tabelle { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.k-tabelle th { text-align: right; font-size: 12px; font-weight: 900; letter-spacing: 0.08em; color: var(--gruengrau); padding: 0 8px; }
.k-tabelle th:first-child { text-align: left; padding-left: 0; }
.k-tabelle td { padding: 10px 8px; background: var(--papier); color: var(--tinte); font-weight: 900; text-align: right; border-top: 3px solid var(--tinte); border-bottom: 3px solid var(--tinte); }
.k-tabelle td:first-child { text-align: left; border-left: 3px solid var(--tinte); border-radius: 10px 0 0 10px; text-transform: uppercase; }
.k-tabelle td:last-child { border-right: 3px solid var(--tinte); border-radius: 0 10px 10px 0; }

/* Code-Kacheln */
.k-code { display: grid; grid-template-columns: repeat(4, 62px); gap: 10px; }
.k-code span {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--papier);
  color: var(--tinte);
  border: 3px solid var(--tinte);
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--schatten);
  font-family: "Alfa Slab One", serif;
  font-size: 28px;
}
.k-code-leer span { background: var(--filz-sehr-dunkel); color: var(--gesperrt); box-shadow: none; }
.k-warnung { margin: 0; padding: 12px 14px; background: var(--gelb); color: var(--tinte); border: 3px solid var(--tinte); border-radius: 12px; box-shadow: 0 4px 0 var(--schatten); font-size: 15px; font-weight: 700; line-height: 1.35; }
.k-knopfzeile { display: flex; gap: 10px; }
.k-knopfzeile > * { flex: 1; }

/* Rechtliches und Regeln */
.k-karte { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; background: var(--karton); color: var(--tinte); border: 3px solid var(--tinte); border-radius: 14px; box-shadow: 6px 6px 0 var(--schatten); }
.k-karte h2 { margin: 0; font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 24px; }
.k-karte p, .k-karte li { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; }
.k-karte ul, .k-karte ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.k-feld { display: flex; flex-direction: column; gap: 2px; }
.k-feld b { font-size: 12px; font-weight: 900; letter-spacing: 0.08em; color: var(--braun); }
.k-feld span { font-size: 16px; font-weight: 900; overflow-wrap: anywhere; }
.k-hinweis { font-size: 13px; font-weight: 700; color: var(--braun); }

.k-regelkarte { display: flex; flex-direction: column; gap: 8px; }
.k-regelkarte h2 { display: flex; align-items: center; gap: 10px; }
.k-regelkarte h2 svg { flex: none; width: 40px; height: 40px; }

/* Nicht gefunden */
.k-404 { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-bottom: 40px; }
.k-404-code { display: flex; gap: 8px; }
.k-404-code span { width: 54px; height: 62px; display: flex; align-items: center; justify-content: center; background: var(--papier); color: var(--tinte); border: 3px solid var(--tinte); border-radius: 10px; box-shadow: 0 4px 0 var(--schatten); font-family: "Alfa Slab One", serif; font-size: 28px; transform: rotate(-3deg); }
.k-404-code span:nth-child(even) { transform: rotate(3deg); }
.k-logo { display: flex; align-items: center; gap: 8px; }
.k-logo-mc { background: var(--tomate); color: var(--tinte); border: 3px solid var(--tinte); box-shadow: 3px 3px 0 var(--tinte); padding: 2px 8px; font-family: "Alfa Slab One", serif; font-size: 16px; transform: rotate(-3deg); }
.k-logo-games { font-family: "Alfa Slab One", serif; font-size: 26px; color: var(--gelb); text-shadow: 3px 3px 0 var(--tinte); -webkit-text-stroke: 2px var(--tinte); paint-order: stroke fill; }
.k-lobbylink { display: flex; align-items: center; justify-content: center; min-height: 56px; text-decoration: none; }

@media (min-width: 900px) {
  .k-seite { max-width: 1100px; padding: 32px 48px 56px; gap: 22px; }
  .k-seite h1 { font-size: 52px; }
  .k-zurueck { display: inline-flex; align-self: flex-start; }
  .k-spalten { flex-direction: row; align-items: flex-start; gap: 48px; }
  .k-haupt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
  .k-seite-karte { flex: none; width: 400px; }
  .k-freund { padding: 10px 12px; }
  .k-freund-name { font-size: 18px; }
  .k-code { grid-template-columns: repeat(12, 62px); }
}

.k-links a { color: inherit; }
.l-nav-knopf { position: relative; }

/* Regeln */
.g-reiter { display: flex; flex-wrap: wrap; gap: 10px; }
.g-pille { min-height: 44px; padding: 0 16px; background: var(--papier); color: var(--tinte); border: 3px solid var(--tinte); border-radius: 999px; box-shadow: 0 3px 0 var(--schatten); font-family: "Chivo", sans-serif; font-weight: 900; font-size: 14px; cursor: pointer; }
.g-pille-an { background: var(--gelb); }
.g-inhalt { display: flex; flex-direction: column; gap: 12px; }
.g-titel { margin: 0; font-family: "Alfa Slab One", serif; font-weight: 400; font-size: 26px; }
.g-schritte { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.g-schritte li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 900; line-height: 1.35; }
.g-nr { flex: none; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--gelb); color: var(--tinte); border: 3px solid var(--tinte); border-radius: 50%; font-family: "Alfa Slab One", serif; font-size: 16px; }
.g-extra { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.g-extra li { display: flex; flex-direction: column; }
.g-extra b { font-weight: 900; font-size: 16px; }
.g-extra span { font-size: 14px; font-weight: 700; color: var(--gruengrau); }
@media (min-width: 900px) { .g-inhalt { max-width: 720px; } .g-titel { font-size: 34px; } }

.s-avatar { flex: none; display: flex; }
.k-lobbylink-klein { display: flex; align-items: center; text-decoration: none; }

/* Gesperrt */
.k-stempel-gesperrt { align-self: flex-start; transform: rotate(-4deg); padding: 8px 22px; background: var(--tomate); color: var(--tinte); border: 4px solid var(--tinte); border-radius: 8px; box-shadow: 6px 6px 0 var(--schatten); font-family: "Alfa Slab One", serif; font-size: 38px; }
.k-tafel { margin: 0; padding: 4px 16px; background: var(--filz-dunkel); border: 3px solid var(--filz-sehr-dunkel); border-radius: 12px; }
.k-tafel > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 3px solid var(--filz-sehr-dunkel); }
.k-tafel > div:last-child { border-bottom: 0; }
.k-tafel dt { font-size: 13px; font-weight: 900; letter-spacing: 0.1em; color: var(--gruengrau); }
.k-tafel dd { margin: 0; font-size: 16px; font-weight: 900; color: var(--papier); text-align: right; }
.k-tafel dd.k-gelb { color: var(--gelb); }

/* Freundesliste in der hellen PC-Spalte der Lobby: dunkle Schrift auf Karton */
.l-freunde .k-leer, .l-freunde .k-klein { color: var(--braun); }
.l-freunde .k-gelb { color: var(--tinte); }
.l-freunde .k-meldung { color: var(--tinte); }
.l-freunde .k-meldung.k-fehler { color: #A3200B; }
.l-freunde .k-freund { box-shadow: 0 3px 0 var(--schatten); }
