/* ==========================================================================
   XLQ.DE - RAW DIY PUNKROCK FANZINE THEME
   Fluorescent Neon Pink (#ff00bf) & Acid Neon Yellow (#d8ff00)
   Hand-cut irregular borders, Xerox texture, compact punchy header
   ========================================================================== */

:root {
  --paper-bg: #f5f2eb;
  --paper-card: #ffffff;
  --ink-black: #000000;
  --ink-dark: #141414;
  --ink-muted: #444444;
  --neon-pink: #ff00bf;   /* Super knalliges, leuchtendes Hot-Pink */
  --neon-yellow: #d8ff00; /* Grelle, giftige Textmarker-Neon-Gelb */
  --tape-color: rgba(240, 235, 195, 0.82);
  --shadow-hard: 5px 5px 0px #000000;
  --shadow-hard-lg: 7px 7px 0px #000000;
  --font-punk: "Impact", "Arial Black", "Trebuchet MS", sans-serif;
  --font-typewriter: "Courier New", Courier, "Lucida Console", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --max-width: 740px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--paper-bg);
  color: var(--ink-black);
  line-height: 1.45;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper-bg);
  /* Photocopy halftone dot grid */
  background-image: 
    radial-gradient(circle, #cecabf 1.2px, transparent 1.2px),
    radial-gradient(circle, #dfdbd0 1.2px, transparent 1.2px);
  background-size: 16px 16px, 32px 32px;
  background-position: 0 0, 8px 8px;
  padding: 16px 12px 40px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================================
   COMPACT & RAW HEADER (No duplicates, tight layout)
   ========================================================================== */

.header-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
  padding: 8px 6px;
}

/* Small taped photo */
.photo-tape-wrap {
  position: relative;
  display: inline-block;
}

.tape-strip {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 65px;
  height: 18px;
  background: var(--tape-color);
  border-left: 1px dashed rgba(0,0,0,0.25);
  border-right: 1px dashed rgba(0,0,0,0.25);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  z-index: 10;
}

.xerox-frame {
  background: #ffffff;
  border: 3px solid #000;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 4px 4px 0px #000;
  padding: 4px 4px 8px;
  transform: rotate(-2deg);
  transition: transform 0.15s ease;
}

.xerox-frame:hover {
  transform: rotate(0deg) scale(1.03);
}

.xerox-img {
  width: 92px;
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(185%) brightness(95%);
  border: 1px solid #000;
}

/* Original AK.GIF Logo on vibrant Acid-Yellow jagged sticker */
.ak-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--neon-yellow);
  border: 3.5px solid #000;
  border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
  box-shadow: 5px 5px 0px #000;
  padding: 6px 14px;
  transform: rotate(1.5deg);
  max-width: 320px;
  width: auto;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ak-logo-badge:hover {
  transform: rotate(-1deg) scale(1.03);
  background: var(--neon-pink);
}

.ak-logo-badge:hover .ak-img {
  filter: invert(1);
}

.ak-img {
  width: 100%;
  max-width: 280px;
  max-height: 64px;
  height: auto;
  object-fit: contain;
  display: block;
  transition: filter 0.15s ease;
}

/* ==========================================================================
   IRREGULAR / HAND-CUT FANZINE CARDS
   ========================================================================== */

.fanzine-card {
  background: var(--paper-card);
  border: 3.5px solid var(--ink-black);
  border-radius: 255px 25px 225px 20px / 20px 225px 20px 255px;
  box-shadow: var(--shadow-hard);
  padding: 20px 18px;
  position: relative;
}

.card-tape-corner {
  position: absolute;
  top: -8px;
  right: 20px;
  width: 55px;
  height: 16px;
  background: var(--tape-color);
  transform: rotate(4deg);
  z-index: 5;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.fanzine-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 2px dashed #000;
  padding-bottom: 8px;
}

.cutout-badge {
  display: inline-block;
  font-family: var(--font-punk);
  font-size: 1rem;
  font-weight: 900;
  padding: 3px 8px;
  border: 2px solid #000;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 2px 2px 0 #000;
  text-transform: uppercase;
}

.cutout-badge.pink {
  background: var(--neon-pink);
  color: #fff;
  transform: rotate(-2deg);
}

.cutout-badge.yellow {
  background: var(--neon-yellow);
  color: #000;
  transform: rotate(2deg);
}

.fanzine-title {
  font-family: var(--font-punk);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-black);
}

/* ==========================================================================
   VIDEO PLAYER (IN-PLACE & XEROX)
   ========================================================================== */

.video-container-fanzine {
  position: relative;
  border: 3.5px solid #000;
  border-radius: 200px 15px 210px 12px / 12px 210px 12px 200px;
  box-shadow: var(--shadow-hard);
  background: #000;
  margin-bottom: 16px;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-container-fanzine iframe,
.video-container-fanzine video,
.video-container-fanzine .video-poster-diy {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster-diy {
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(90%) contrast(140%);
  transition: filter 0.2s ease;
}

.video-poster-diy:hover {
  filter: grayscale(0%) contrast(110%);
}

.play-sticker {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--neon-pink);
  color: #fff;
  border: 3px solid #000;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  padding: 8px 16px;
  box-shadow: 4px 4px 0 #000;
  font-family: var(--font-punk);
  font-size: 1.05rem;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.video-poster-diy:hover .play-sticker {
  transform: rotate(1deg) scale(1.1);
  background: var(--neon-yellow);
  color: #000;
}

.play-sticker svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ==========================================================================
   ORIGINAL GRUSSKARTEN BOX (ACID-YELLOW HIGHLIGHTER)
   ========================================================================== */

.greeting-card-box {
  background: var(--neon-yellow);
  border: 3.5px solid #000;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: var(--shadow-hard);
  padding: 16px 18px;
  margin-top: 8px;
  transform: rotate(-0.6deg);
}

.greeting-head {
  font-family: var(--font-punk);
  font-size: 1.25rem;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.greeting-text {
  font-family: var(--font-typewriter);
  font-size: 0.92rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 14px;
  line-height: 1.35;
}

.share-btn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

/* ==========================================================================
   BRUTALIST DIY BUTTONS (Hand-cut feel)
   ========================================================================== */

.btn-fanzine {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  font-family: var(--font-punk);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2.5px solid #000;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  outline: none;
}

.btn-fanzine:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
}

.btn-fanzine:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

.btn-fanzine svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-fanzine.pink {
  background: var(--neon-pink);
  color: #ffffff;
}

.btn-fanzine.yellow {
  background: var(--neon-yellow);
  color: #000000;
}

.btn-fanzine.white {
  background: #ffffff;
  color: #000000;
}

.btn-fanzine.black {
  background: #000000;
  color: #ffffff;
}

/* ==========================================================================
   KEMPER PROFILES (CASSETTE / FANZINE SECTION)
   ========================================================================== */

.kemper-grid-diy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.kemper-box {
  background: #ffffff;
  border: 2.5px solid #000;
  border-radius: 225px 15px 255px 15px / 15px 255px 15px 225px;
  box-shadow: 4px 4px 0 #000;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.kemper-tag {
  font-family: var(--font-typewriter);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--neon-yellow);
  border: 1px solid #000;
  padding: 2px 6px;
  display: inline-block;
  margin-bottom: 6px;
}

.kemper-tag.pink {
  background: var(--neon-pink);
  color: #fff;
}

.kemper-name {
  font-family: var(--font-punk);
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 4px;
}

.kemper-desc {
  font-family: var(--font-typewriter);
  font-size: 0.82rem;
  color: var(--ink-dark);
  line-height: 1.4;
}

/* ==========================================================================
   LINKS SECTION (STICKER BADGES)
   ========================================================================== */

.links-grid-diy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.link-sticker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 4px 4px 0 #000;
  text-decoration: none;
  color: #000;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.link-sticker:hover {
  transform: translate(-3px, -3px) rotate(1deg);
  box-shadow: 6px 6px 0 #000;
  background: var(--neon-yellow);
}

.link-sticker.pink-hover:hover {
  background: var(--neon-pink);
  color: #fff;
}

.link-icon-box {
  width: 38px;
  height: 38px;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-sticker:hover .link-icon-box {
  background: #fff;
  color: #000;
}

.link-icon-box svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.link-text-wrap h4 {
  font-family: var(--font-punk);
  font-size: 1.1rem;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 2px;
}

.link-text-wrap p {
  font-family: var(--font-typewriter);
  font-size: 0.76rem;
  font-weight: 700;
}

/* ==========================================================================
   FOOTER & IMPRESSUM MODAL
   ========================================================================== */

.footer {
  text-align: center;
  padding: 20px 10px 10px;
  font-family: var(--font-typewriter);
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.footer a {
  color: var(--ink-black);
  font-weight: 700;
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--neon-yellow);
  color: #000;
  border: 3px solid #000;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  padding: 10px 22px;
  font-family: var(--font-punk);
  font-size: 1rem;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 #000;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
  z-index: 9999;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10000;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--paper-bg);
  border: 4px solid #000;
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 8px 8px 0 #000;
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--neon-pink);
  color: #fff;
  border: 2px solid #000;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  font-family: var(--font-punk);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0 #000;
}

.modal-close:hover {
  background: var(--neon-yellow);
  color: #000;
}

.legal-content h2 {
  font-family: var(--font-punk);
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-family: var(--font-punk);
  font-size: 1rem;
  background: var(--neon-yellow);
  border: 1px solid #000;
  padding: 2px 6px;
  display: inline-block;
  margin: 14px 0 6px;
}

.legal-content p {
  font-family: var(--font-typewriter);
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 12px 6px 30px;
  }
  .fanzine-card {
    padding: 16px 12px;
  }
  .header-compact {
    gap: 12px;
  }
  .share-btn-grid {
    grid-template-columns: 1fr;
  }
  .kemper-grid-diy {
    grid-template-columns: 1fr;
  }
  .links-grid-diy {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ANIMATED FANZINE BACKGROUND (Canvas & Photocopier Scanbeam)
   ========================================================================== */

#fanzineBgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

/* Moving Photocopier Light Sweep Beam */
.scanner-light-beam {
  position: fixed;
  top: -100px;
  left: 0;
  width: 100vw;
  height: 12px;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(216, 255, 0, 0.45) 20%, 
    rgba(255, 0, 191, 0.6) 50%, 
    rgba(216, 255, 0, 0.45) 80%, 
    transparent 100%
  );
  box-shadow: 0 0 25px rgba(255, 0, 191, 0.4), 0 0 15px rgba(216, 255, 0, 0.4);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  animation: scanSweep 9s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scanSweep {
  0% {
    top: -80px;
    opacity: 0;
  }
  5% {
    opacity: 0.75;
  }
  50% {
    top: 105vh;
    opacity: 0.75;
  }
  51% {
    opacity: 0;
  }
  100% {
    top: 105vh;
    opacity: 0;
  }
}

.container {
  position: relative;
  z-index: 2; /* Content above background animation */
}

.email-rtl {
  unicode-bidi: bidi-override;
  direction: rtl;
  color: var(--neon-pink);
  font-weight: 700;
}
