:root {
  --bg: #07142f;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #d6def5;
  --text-soft: #aab7d9;
  --headline: #ffffff;
  --accent: #5b8cff;
  --accent-hover: #7aa2ff;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(91, 140, 255, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(85, 98, 246, 0.18), transparent 25%),
    linear-gradient(180deg, #051022 0%, #07142f 100%);
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
  padding: 32px 20px 60px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 10px 16px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.lang-switch img {
  display: block;
  border-radius: 50%;
}

.hero,
.section,
.links-section,
.impressum-box {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 32px;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--headline);
}

.hero p,
.subtitle {
  margin: 0;
  color: var(--text-soft);
  max-width: 700px;
}

.section,
.links-section,
.impressum-box {
  padding: 28px;
  margin-bottom: 22px;
}

.section h2,
.section h3,
.links-section h3,
.impressum-box h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.35rem;
  color: var(--headline);
}

.section p,
.impressum-box p {
  margin: 0 0 1rem;
}

.section p:last-child,
.impressum-box p:last-child {
  margin-bottom: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 22px;
  align-items: start;
}

.avatar {
  width: 125px;
  height: 125px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.links-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: stretch;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.96rem;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.link-btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  color: #ffffff;
}

.link-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.link-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.link-icon img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.twitch { background: #5c16c5; }
.mastodon { background: #5742d3; }
.bluesky { background: #1e76b2; }
.discord { background: #5662f6; }
.project { background: #4654da; }

.footer {
  margin-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.78;
}

.footer a {
  color: var(--text-soft);
}

.footer a:hover {
  color: var(--accent-hover);
}

.language-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.language-toggle button {
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.language-toggle button:hover {
  transform: translateY(-1px);
}

.language-toggle button.active {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
}

.lang-section {
  display: none;
  animation: fadeIn 0.25s ease-in;
}

.lang-section.active {
  display: block;
}

.section-divider {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-divider:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

strong {
  color: var(--headline);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .links-grid {
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 17px;
    padding: 20px 14px 40px;
  }

  .hero,
  .section,
  .links-section,
  .impressum-box {
    padding: 22px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .avatar {
    width: 110px;
    height: 110px;
  }

  .links-grid {
    flex-direction: column;
  }

  .link-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar {
    justify-content: flex-start;
  }
}