/* /anmelden – Vollbild-Anmeldung (src/auth/anmeldeseite.js, Effekte in js/anmelden.js) */
body.is-bare { background: #0c0909; overflow-x: hidden; }
.an { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; align-items: center; padding: 96px clamp(18px, 6vw, 96px) 40px; isolation: isolate; overflow: hidden; --mx: 50%; --my: 40%; --px: 0; --py: 0; }

/* Hintergrund: Bild mit Parallaxe, Regen, Laterne, Nebel, Vignette */
.an-bg { position: absolute; inset: 0; z-index: -1; }
.an-bild { position: absolute; inset: -4%; transform: translate3d(calc(var(--px) * -18px), calc(var(--py) * -12px), 0) scale(1.06); transition: transform 0.6s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.an-bild picture, .an-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; display: block; filter: saturate(0.85) contrast(1.05) brightness(0.72); }
.an-regen { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; mix-blend-mode: screen; pointer-events: none; }
.an-lampe { position: absolute; width: 46vmax; height: 46vmax; left: 54%; top: -14vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 190, 110, 0.22), rgba(255, 150, 70, 0.07) 40%, transparent 70%); animation: an-lampe 7s ease-in-out infinite; }
@keyframes an-lampe { 0%, 100% { opacity: 0.9; } 46% { opacity: 1; } 48% { opacity: 0.55; } 50% { opacity: 0.95; } 73% { opacity: 0.8; } }
.an-nebel { position: absolute; left: -10%; right: -10%; bottom: -8%; height: 45%; pointer-events: none; opacity: 0.5;
  background: radial-gradient(40% 70% at 25% 90%, rgba(230, 220, 210, 0.16), transparent 70%), radial-gradient(45% 60% at 75% 95%, rgba(230, 220, 210, 0.12), transparent 70%);
  animation: an-nebel 30s ease-in-out infinite alternate; }
@keyframes an-nebel { from { transform: translateX(-3%); } to { transform: translateX(4%); } }
.an-vignette { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(12, 9, 9, 0.92) 0%, rgba(12, 9, 9, 0.72) 34%, rgba(12, 9, 9, 0.12) 62%, rgba(12, 9, 9, 0.35) 100%),
  linear-gradient(180deg, rgba(12, 9, 9, 0.55), transparent 22%, transparent 70%, rgba(12, 9, 9, 0.9)); }

/* Marke oben links */
.an-marke { position: absolute; top: 22px; left: clamp(18px, 6vw, 96px); display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; z-index: 2; }
.an-marke img { width: 52px; height: 52px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); transition: transform 0.4s cubic-bezier(.2, .8, .2, 1); }
.an-marke:hover img { transform: rotate(-6deg) scale(1.06); }
.an-marke b { display: block; font-family: var(--f-display); font-size: 1.25rem; letter-spacing: 0.04em; }
.an-marke small { display: block; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: #c9a45c; }

/* Karte */
.an-karte { position: relative; width: 100%; min-width: 0; max-width: 640px; padding: clamp(26px, 4vw, 44px); border-radius: 18px; transform-style: preserve-3d;
  transform: perspective(1100px) rotateY(calc(var(--px) * 3deg)) rotateX(calc(var(--py) * -3deg));
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), box-shadow 0.4s;
  background: linear-gradient(160deg, rgba(26, 18, 17, 0.62), rgba(12, 9, 9, 0.45)); border: 1px solid rgba(201, 164, 92, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04); backdrop-filter: blur(3px); }
.an-licht { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(201, 164, 92, 0.16), transparent 60%); }
.an-karte:hover .an-licht { opacity: 1; }
.an-karte:hover { box-shadow: 0 36px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 164, 92, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05); }

.an-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-label); font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: #c9a45c; }
.an-kicker::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.an h1 { margin: 14px 0 0; font-family: var(--f-display); font-size: clamp(1.9rem, 3.9vw, 3.2rem); line-height: 1.02; text-transform: uppercase; letter-spacing: 0.01em; color: #f4efe6; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }
.an h1 span { display: block; animation: an-zeile 0.9s cubic-bezier(.2, .8, .2, 1) both; }
.an h1 span:nth-child(2) { animation-delay: 0.12s; }
.an h1 span:nth-child(3) { animation-delay: 0.24s; }
@keyframes an-zeile { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.an h1 em { font-style: normal; color: #d0303a; position: relative; text-shadow: 0 0 26px rgba(208, 48, 58, 0.45), 0 4px 30px rgba(0, 0, 0, 0.6); animation: an-glut 4.5s ease-in-out infinite; }
@keyframes an-glut { 0%, 100% { text-shadow: 0 0 22px rgba(208, 48, 58, 0.35), 0 4px 30px rgba(0, 0, 0, 0.6); } 50% { text-shadow: 0 0 36px rgba(208, 48, 58, 0.65), 0 4px 30px rgba(0, 0, 0, 0.6); } }
.an-sub { margin: 18px 0 0; max-width: 520px; color: var(--ink-2); font-size: 1.05rem; }

/* Knöpfe */
.an-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.an-btn { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 10px; overflow: hidden; text-decoration: none;
  font-family: var(--f-label); font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase; color: #fff;
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s, background 0.25s; transform: translate3d(var(--bx, 0), var(--by, 0), 0); }
.an-btn::after { content: ''; position: absolute; top: -50%; bottom: -50%; left: -60%; width: 40%; transform: skewX(-22deg) translateX(0); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); transition: transform 0.75s cubic-bezier(.2, .8, .2, 1); }
.an-btn:hover::after { transform: skewX(-22deg) translateX(420%); }
.an-btn .icon:last-child { transition: transform 0.25s; }
.an-btn:hover .icon:last-child { transform: translateX(5px); }
.an-btn:active { transform: translate3d(var(--bx, 0), calc(var(--by, 0px) + 2px), 0) scale(0.98); }
.an-btn.is-discord { background: linear-gradient(180deg, #6b77f3, #5865f2 55%, #4752c4); box-shadow: 0 10px 30px rgba(88, 101, 242, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.an-btn.is-discord:hover { box-shadow: 0 14px 40px rgba(88, 101, 242, 0.55), 0 0 0 2px rgba(201, 164, 92, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.an-btn.is-steam { background: linear-gradient(180deg, #2a475e, #1b2838); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.an-btn.is-steam:hover { box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(201, 164, 92, 0.45); }
.an-btn.is-zweit { background: rgba(20, 15, 14, 0.7); border: 1px solid rgba(255, 255, 255, 0.14); padding: 15px 22px; font-size: 0.82rem; }
.an-btn.is-zweit:hover { background: linear-gradient(180deg, #2a475e, #1b2838); }

.an-hinweis { margin: 26px 0 0; max-width: 560px; font-size: 0.86rem; line-height: 1.55; color: var(--ink-3); }
.an-hinweis b { color: var(--ink); }
.an-hinweis a { color: #e0545c; }

.an-fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(201, 164, 92, 0.15); font-size: 0.84rem; color: var(--ink-3); }
.an-status { display: inline-flex; align-items: center; gap: 7px; }
.an-status b { color: var(--ink); }
.an-links { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.an-links a { color: var(--ink-3); text-decoration: none; transition: color 0.2s; }
.an-links a:hover { color: #e2c27c; }

@media (max-width: 720px) {
  .an { padding-top: 110px; align-items: start; }
  .an-vignette { background: linear-gradient(180deg, rgba(12, 9, 9, 0.6), rgba(12, 9, 9, 0.75) 40%, rgba(12, 9, 9, 0.95)); }
  .an-karte { transform: none; }
  .an-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .an-bild, .an-karte, .an-btn { transform: none !important; transition: none; }
  .an h1 span, .an h1 em, .an-lampe, .an-nebel { animation: none; }
  .an-regen { display: none; }
}

/* Guckloch der Hintertür: gleitet auf, sobald jemand vor der Tür steht (Maus auf der Karte) */
.an-karte { padding-top: clamp(64px, 7vw, 80px); }
.an-guckloch { position: absolute; top: 18px; left: clamp(26px, 4vw, 44px); width: 150px; height: 30px; border-radius: 4px; overflow: hidden;
  background: #050303; box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.9), 0 0 0 3px #4a3526, 0 0 0 4px rgba(201, 164, 92, 0.45); }
.an-augen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 26px; opacity: 0; transition: opacity 0.4s 0.25s; }
.an-augen i { width: 16px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #1b0b08 0 2px, #e7d7b4 3px 6px, transparent 7px); box-shadow: 0 0 10px rgba(255, 200, 120, 0.35); animation: an-blinzeln 5s infinite 1s; }
@keyframes an-blinzeln { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.an-schieber { position: absolute; inset: 0; z-index: 1; border-radius: 3px; transition: transform 0.6s cubic-bezier(.7, 0, .2, 1);
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0 2px, transparent 2px 8px), linear-gradient(180deg, #a88444, #6e5426); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.an-schieber::after { content: ''; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f0dca0, #8c6a2c); }
.an-karte:hover .an-schieber, .an-karte:focus-within .an-schieber { transform: translateX(-112%); }
.an-karte:hover .an-augen, .an-karte:focus-within .an-augen { opacity: 1; }
.an h1 span:nth-child(3) em { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .an-schieber { transition: none; } .an-augen i { animation: none; } }
