* { box-sizing: border-box; }

:root{
  --bg: #070a16;
  --text: #ffffff;
  --muted: #cbd5e1;

  --ice: #0077ff;
  --cardBg: rgba(255,255,255,0.05);
  --cardBorder: rgba(0,119,255,0.20);
  --shadow: 0 0 28px rgba(0,119,255,0.35);
}

html{
  scroll-behavior: smooth;
}

/* Anker nicht unter sticky Header verstecken */
#home, #links, #minecraft, #ets2, #hilfe, #rechtliches{
  scroll-margin-top: 92px;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Hintergrundbild für Ice-Seite (liegt in assets/, daher url("bg.webp")) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.35), rgba(0,0,0,0.88)),
    url("bg.webp") left center / cover no-repeat;
  z-index: -1;
}

.container{
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.siteHeader{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(7,10,22,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.headerInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brandBadge{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 0 18px rgba(0,119,255,0.20);
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.04);
}

.brandBadge img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.brandText{
  font-weight: 800;
  letter-spacing: .5px;
}

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a{
  position: relative; /* wichtig für ::after */
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: #9ecfff;
  text-decoration:none;
  font-size: 14px;
  transition: 0.2s;
}

.nav a:hover{
  color:#fff;
  border-color: rgba(0,119,255,0.45);
  box-shadow: 0 0 0 4px rgba(0,119,255,0.10);
}

.navSep{
  opacity: .45;
  margin: 0 2px;
}

/* Active-Menüpunkt (Glow + Unterstrich) */
.nav a.isActive{
  color: #ffffff;
  border-color: rgba(0,119,255,0.75);
  box-shadow: 0 0 0 4px rgba(0,119,255,0.12);
}

.nav a.isActive::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:4px;
  height:2px;
  border-radius:99px;
  background: rgba(0,119,255,0.85);
}

/* Hero */
.hero{
  text-align: center;
  padding: 46px 0 22px;
}

.heroLogo{
  width: 140px;
  height: 140px;
  border-radius: 50%;
  box-shadow: 0 0 44px rgba(0,119,255,0.45);
  margin-bottom: 16px;
}

.hero h1{
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(0,119,255,0.35);
}

.hero p{
  margin: 10px auto 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 18px;
}

/* Social Cards */
.links{
  margin: 26px auto 36px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card{
  grid-column: span 6;
  text-decoration: none;
  color: var(--text);
  background: var(--cardBg);
  border: 1px solid var(--cardBorder);
  border-radius: 16px;
  padding: 16px 18px;
  transition: 0.25s ease;
  backdrop-filter: blur(6px);
}

.card:hover{
  transform: translateY(-4px);
  border-color: var(--ice);
  box-shadow: var(--shadow);
}

.cardTitle{
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
}

.cardSub{
  font-size: 14px;
  color: #9ecfff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sektionen */
.sectionTitle{
  margin: 34px 0 12px; /* mehr Luft zwischen Sektionen statt <br> */
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .9px;
  color: #e2e8f0;
  text-transform: uppercase;
}

/* Banner */
.banners{
  display: grid;
  gap: 16px;
  margin-bottom: 34px; /* mehr Abstand nach unten */
}

.bannerCard{
  display:block;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--cardBorder);
  background: rgba(255,255,255,0.03);
  transition: 0.25s ease;
}

.bannerCard:hover{
  transform: translateY(-4px);
  border-color: var(--ice);
  box-shadow: var(--shadow);
}

.bannerCard img{
  width: 100%;
  height: auto;
  display: block;
}

.bannerCardLight{
  background: rgba(0,0,0,0.25);
}

/* KIK kleiner */
.kikCard{
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 14px;
}

.kikCard img{
  width: 40%;
  max-width: 520px;
  height: auto;
}

@media (max-width: 760px){
  .kikCard img{ width: 82%; }
}

/* NameMC Embed: Ice-Glow + Click-to-load */
.serverEmbed{
  border-radius: 18px;
  border: 1px solid rgba(0,119,255,0.25);
  background: rgba(0,119,255,0.08);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: 0.25s ease;
  box-shadow: 0 0 0 rgba(0,119,255,0);
  padding: 20px 0; /* volle Breitenfläche mit Luft */
}

.serverEmbed:hover{
  border-color: rgba(0,119,255,0.65);
  box-shadow: 0 0 28px rgba(0,119,255,0.35);
  transform: translateY(-2px);
}

/* Pending: Text links, Button rechts */
.serverEmbed--pending .serverEmbedInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 16px;
}

.serverEmbedText{
  display:flex;
  flex-direction:column;
  gap: 4px;
}

.serverEmbedText strong{
  font-weight: 900;
  letter-spacing: .2px;
}

.serverEmbedText span{
  color: #cbd5e1;
  font-size: 14px;
}

.serverEmbedBtn{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,119,255,0.45);
  background: rgba(0,119,255,0.10);
  color: #ffffff;
  font-weight: 800;
  cursor:pointer;
  white-space: nowrap;
}

.serverEmbedBtn:hover{
  box-shadow: 0 0 0 4px rgba(0,119,255,0.12);
}

/* Loaded: Widget zentriert */
.serverEmbed--loaded .serverEmbedInner{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  padding: 0;
}

.serverEmbed iframe{
  width: 100%;
  max-width: 728px;
  height: 90px;
  border: none;
  display:block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

/* Footer */
.footer{
  text-align: center;
  padding: 22px 0 34px;
  color: #94a3b8;
  font-size: 14px;
}

.footer a{
  color: #9ecfff;
  text-decoration: none;
}

.footer a:hover{ color: #fff; }

@media (max-width: 760px){
  .container{ width: min(980px, calc(100% - 28px)); }
  .card{ grid-column: span 12; }
}

.cardContent{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}

.cardText{
  display:flex;
  flex-direction:column;
}

.cardLogo{
  width:44px;
  height:44px;
  object-fit:contain;
  flex-shrink:0;

  /* Entsättigt im Normalzustand */
  filter: grayscale(40%) saturate(70%) brightness(0.9);
  opacity:0.85;

  transition: 0.3s ease;
}

/* Hover: volle Farbe */
.card:hover .cardLogo{
  filter: none;
  transform: scale(1.12);
  opacity:1;
}

/* Plattform-spezifischer Border-Accent */

.card{
  border-color: rgba(255,255,255,0.08);
}

.card.twitch:hover{
  border-color: #9146FF;
}

.card.youtube:hover{
  border-color: #FF0000;
}

.card.instagram:hover{
  border-color: #E1306C;
}

.card.kick:hover{
  border-color: #53FC18;
}

.card.tiktok:hover{
  border-color: #FF0050;
}

.card.mastodon:hover{
  border-color: #6364FF;
}

.card.support:hover{
  border-color: #E74C3C;
}

/* ===== Legal Links besser sichtbar ===== */

body.legal a {
  color: #6ec1ff;          /* helles Ice-Blau */
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.legal a:hover {
  color: #ffffff;
  text-decoration-thickness: 2px;
}
