/* Mein Craft — selfreg page */
.page-selfreg {
  --sr-bg: #0a0e17;
  --sr-teal: #3dd6c8;
  --sr-coral: #ff6b4a;
  --sr-amber: #f5b942;
  --sr-purple: #9b7dff;
  --sr-surface: rgba(255, 255, 255, 0.04);
  --sr-border: rgba(255, 255, 255, 0.1);

  background: var(--sr-bg);
  color: #f0f4ff;
  min-height: 100vh;
  font-family: "Outfit", system-ui, sans-serif;
  overflow-x: hidden;
}

/* Background */
.sr-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sr-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.sr-bg__orb--1 {
  width: 420px;
  height: 420px;
  background: rgba(61, 214, 200, 0.14);
  top: -8%;
  left: -5%;
  animation: sr-orb 20s ease-in-out infinite alternate;
}

.sr-bg__orb--2 {
  width: 380px;
  height: 380px;
  background: rgba(255, 107, 74, 0.1);
  bottom: 5%;
  right: -5%;
  animation: sr-orb 24s ease-in-out infinite alternate-reverse;
}

.sr-bg__orb--3 {
  width: 280px;
  height: 280px;
  background: rgba(155, 125, 255, 0.08);
  top: 45%;
  left: 35%;
  animation: sr-orb 18s ease-in-out infinite alternate;
}

@keyframes sr-orb {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 30px); }
}

/* Header */
.sr-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sr-header .lang-switch {
  background: var(--sr-surface);
  border-color: var(--sr-border);
}

.sr-header .lang-switch__btn.is-active {
  background: rgba(61, 214, 200, 0.18);
  color: var(--sr-teal);
}

.sr-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
}

.sr-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.sr-logo img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--sr-border);
}

.sr-logo__name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.sr-logo__sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--sr-teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1px;
}

.sr-nav {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--sr-surface);
  border: 1px solid var(--sr-border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.sr-nav a {
  padding: 8px 16px;
  color: rgba(240, 244, 255, 0.5);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.sr-nav a:hover {
  color: #f0f4ff;
}

.sr-nav a.active {
  background: rgba(61, 214, 200, 0.15);
  color: var(--sr-teal);
}

.sr-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--sr-surface);
  border: 1px solid var(--sr-border);
  border-radius: 999px;
  color: #f0f4ff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.sr-contact-btn:hover {
  background: rgba(61, 214, 200, 0.12);
  border-color: rgba(61, 214, 200, 0.35);
  transform: translateY(-1px);
}

/* Hero */
.sr-hero {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 24px;
  min-height: calc(100vh - 200px);
}

.sr-badge {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 20px;
  background: rgba(61, 214, 200, 0.1);
  border: 1px solid rgba(61, 214, 200, 0.25);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sr-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sr-title {
  margin-bottom: 14px;
}

.sr-title__line {
  display: block;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(1.95rem, 4.5vw, 2.85rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: #f4f6ff;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.12);
}

.sr-title__gradient {
  display: block;
  font-family: "Syne", "Outfit", system-ui, sans-serif;
  font-size: clamp(2.15rem, 5.2vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  background: linear-gradient(120deg, #ffe082 0%, #f5b942 35%, #ff8c42 70%, #ff6b4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sr-tagline {
  font-size: 1.05rem;
  color: rgba(200, 210, 230, 0.65);
  margin-bottom: 32px;
  font-weight: 500;
}

.sr-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.sr-stat {
  padding: 16px 14px;
  background: var(--sr-surface);
  border: 1px solid var(--sr-border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  border-top: 2px solid rgba(61, 214, 200, 0.4);
}

.sr-stat:nth-child(2) {
  border-top-color: rgba(255, 107, 74, 0.4);
}

.sr-stat:nth-child(3) {
  border-top-color: rgba(245, 185, 66, 0.4);
}

.sr-stat__num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--sr-teal), var(--sr-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sr-stat:nth-child(2) .sr-stat__num {
  background: linear-gradient(135deg, var(--sr-coral), var(--sr-amber));
  -webkit-background-clip: text;
  background-clip: text;
}

.sr-stat__label {
  display: block;
  font-size: 0.7rem;
  line-height: 1.4;
  color: rgba(200, 210, 230, 0.5);
}

.sr-cta {
  display: inline-flex;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--sr-teal), #2bb8ab);
  color: var(--sr-bg);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(61, 214, 200, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sr-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(61, 214, 200, 0.35);
}

/* Character */
.sr-hero__right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-character-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 12px;
  background: var(--sr-surface);
  border: 1px solid var(--sr-border);
  border-radius: 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.sr-character-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(61, 214, 200, 0.2) 0%, rgba(255, 107, 74, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  animation: sr-glow 5s ease-in-out infinite alternate;
}

@keyframes sr-glow {
  0% { opacity: 0.7; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.05); }
}

.sr-character {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  animation: sr-float 5s ease-in-out infinite;
}

@keyframes sr-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Ticker — seamless infinite loop */
.sr-ticker {
  position: relative;
  z-index: 10;
  overflow: hidden;
  margin-top: 16px;
  border-top: 1px solid var(--sr-border);
  border-bottom: 1px solid var(--sr-border);
  background: rgba(255, 255, 255, 0.02);
  width: 100%;
}

.sr-ticker__marquee {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: sr-ticker-scroll 35s linear infinite;
}

.sr-ticker__content {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.sr-ticker__content span {
  flex-shrink: 0;
  padding: 12px 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: rgba(61, 214, 200, 0.55);
  white-space: nowrap;
}

@keyframes sr-ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Main */
.sr-main {
  position: relative;
  z-index: 5;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.page-selfreg .logs-category {
  background: var(--sr-surface);
  border-color: var(--sr-border);
  border-radius: 20px;
}

.page-selfreg .logs-category-title {
  color: var(--sr-teal);
}

.page-selfreg .logs-item {
  border-color: rgba(61, 214, 200, 0.15);
}

.page-selfreg .logs-item:hover {
  background: rgba(61, 214, 200, 0.06);
  border-color: rgba(61, 214, 200, 0.35);
}

.page-selfreg .contact-links-title {
  color: rgba(200, 210, 230, 0.45);
}

.positions-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 24px;
  margin-bottom: 28px;
  padding: 22px 24px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(245, 185, 66, 0.22);
  border-radius: 18px;
}

.positions-banner__label {
  font-family: "Syne", "Outfit", system-ui, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--sr-amber);
  white-space: nowrap;
}

.positions-banner__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(240, 244, 255, 0.88);
  font-weight: 500;
}

.positions-banner__text a {
  color: var(--sr-teal);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(61, 214, 200, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.positions-banner__text a:hover {
  color: #7ae8df;
  border-color: rgba(122, 232, 223, 0.6);
}

.positions-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--sr-amber), #ffd06a);
  color: #1a1208;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(245, 185, 66, 0.2);
}

.positions-banner__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 185, 66, 0.32);
}

@media (max-width: 768px) {
  .positions-banner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }

  .positions-banner__btn {
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .sr-nav {
    display: none;
  }

  .sr-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }

  .sr-stats {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .sr-hero__right {
    order: -1;
  }

  .sr-character-frame {
    max-width: 340px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .sr-stats {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sr-bg__orb,
  .sr-character,
  .sr-character-glow,
  .sr-ticker__marquee {
    animation: none;
  }
}
