/* Rahmen der eigenständigen Fassung: Landeseite, Serverwahl, Kopfzeile.

   Die Bausteine (Knöpfe, Felder, Farben, Schriften) kommen aus tt-core.css.
   Hier steht nur, was es dort nicht gibt, weil es im Webhub der Rahmen der
   Adminzentrale war. Der body-Block von früher ist entfallen — er setzte
   Grund und Schrift selbst und hätte die Grundlage überstimmt.            */

.sw-laden {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 90px 20px; color: var(--muted);
}

/* ======================= Landeseite ======================= */

.sw-hero {
  position: relative; overflow: hidden;
  max-width: 720px; margin: 0 auto;
  padding: 76px 24px 70px; text-align: center;
}
.sw-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 340px at 50% -6%, rgba(200, 163, 124, .13), transparent 68%);
}
.sw-hero > * { position: relative; }

.sw-logo {
  width: 104px; height: 104px; margin: 0 auto 22px;
  display: block; border-radius: 50%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
}

.sw-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 6.6vw, 62px); line-height: .96;
  letter-spacing: .012em; text-transform: uppercase;
  color: #fff; text-wrap: balance;
}

.sw-sub {
  max-width: 54ch; margin: 0 auto 30px;
  font-size: 16.5px; color: var(--text); opacity: .82;
}
.sw-sub b { color: var(--cyan); font-weight: 600; }

.sw-punkte { display: inline-block; margin: 0 0 32px; padding: 0; text-align: left; list-style: none; }
.sw-punkte li {
  position: relative; margin-bottom: 11px; padding-left: 27px;
  color: var(--text); opacity: .8; font-size: 14.5px; line-height: 1.5;
}
.sw-punkte li::before {
  content: ''; position: absolute; left: 4px; top: 7px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}

.sw-akt { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.sw-fuss { font-size: 13px; color: var(--muted); max-width: 52ch; margin: 0 auto; }

/* ======================= Kopfzeile ======================= */

.sw-kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 7, 6, .82);
  backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 50;
}
.sw-marke { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sw-marke img { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; }
.sw-marke b {
  font-family: var(--font-display); font-weight: 400;
  font-size: 17px; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; line-height: 1;
}
.sw-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sw-user strong { color: var(--text); font-weight: 600; }
.sw-aus {
  color: var(--muted); text-decoration: none;
  padding: 5px 10px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.sw-aus:hover { color: var(--text); border-color: var(--line-soft); background: rgba(236, 226, 213, .04); }

/* Sichtbar machen, wenn man gerade fremde Server verwaltet. */
.sw-master {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(200, 163, 124, .4);
  background: rgba(200, 163, 124, .1);
}

/* ======================= Serverwahl ======================= */

.sw-wahl { max-width: 940px; margin: 0 auto; padding: 44px 22px 70px; }
.sw-wahl h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: 30px; letter-spacing: .02em; text-transform: uppercase;
  color: #fff; margin-bottom: 6px;
}
.sw-wahl-sub { margin: 0 0 26px; font-size: 14.5px; color: var(--muted); }

.sw-server-liste {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px; margin-bottom: 26px;
}

.sw-server {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 15px; width: 100%; text-align: left;
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  background: var(--panel-strong); color: var(--text);
  font: inherit; cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .14s ease;
}
.sw-server:hover {
  border-color: rgba(200, 163, 124, .42);
  background: #1b1714;
  transform: translateY(-2px);
}
.sw-server img, .sw-ini {
  width: 42px; height: 42px; border-radius: 11px; flex: 0 0 auto;
  object-fit: cover;
}
.sw-ini {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #3b2f24, #1d1712);
  color: var(--cyan); font-weight: 700; font-size: 15px;
  text-transform: uppercase;
}
.sw-sname {
  flex: 1; min-width: 0;
  font-size: 14.5px; font-weight: 600; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sw-tag {
  flex: 0 0 auto;
  padding: 3px 8px; border-radius: 99px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-soft);
}
.sw-tag.ist-master { color: var(--cyan); border-color: rgba(200, 163, 124, .4); background: rgba(200, 163, 124, .1); }

.sw-leer {
  padding: 34px 26px; text-align: center;
  border: 1px dashed #3a3128; border-radius: var(--radius-lg);
  background: rgba(20, 17, 15, .5);
  grid-column: 1 / -1;
}
.sw-leer b { display: block; margin-bottom: 8px; font-size: 16px; color: #fff; }
.sw-leer p { margin: 0 auto; max-width: 46ch; font-size: 14px; color: var(--muted); }

.sw-mehr { display: inline-flex; }

/* ======================= Kurzmeldung ======================= */

.sw-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 999; max-width: min(92vw, 460px);
  padding: 12px 18px;
  border: 1px solid rgba(200, 163, 124, .35); border-radius: var(--radius-md);
  background: #1b1714; color: var(--text);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow);
  animation: sw-toast-auf .22s var(--ease-out);
}
@keyframes sw-toast-auf {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 640px) {
  .sw-hero { padding: 52px 18px 50px; }
  .sw-logo { width: 84px; height: 84px; }
  .sw-kopf { padding: 11px 15px; }
  .sw-wahl { padding: 30px 15px 50px; }
  .sw-server-liste { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .sw-server:hover { transform: none; }
  .sw-toast { animation: none; }
}
