/* ===== LOCAL FONTS ===== */
@font-face {
  font-family: 'Fredoka One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/FredokaOne-Regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/Nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/Nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --col-bg: #0d0d1a;
  --col-1: #ff2d78;
  --col-2: #ffdd00;
  --col-3: #00e5ff;
  --col-4: #a855f7;
  --col-5: #00ff88;
  --col-6: #ff6b00;
  --font-main: "Fredoka One", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --border-r: 1.5rem;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== RAINBOW BACKGROUND ANIMATION ===== */
@keyframes bgshift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(3deg); }
  66%       { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--col-1), 0 0 40px var(--col-4); }
  25%       { box-shadow: 0 0 20px var(--col-2), 0 0 40px var(--col-3); }
  50%       { box-shadow: 0 0 20px var(--col-3), 0 0 40px var(--col-5); }
  75%       { box-shadow: 0 0 20px var(--col-5), 0 0 40px var(--col-6); }
}

@keyframes btn-rainbow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  15%       { transform: rotate(-5deg) scale(1.05); }
  30%       { transform: rotate(4deg) scale(1.05); }
  45%       { transform: rotate(-3deg) scale(1.02); }
  60%       { transform: rotate(2deg) scale(1.02); }
  75%       { transform: rotate(-1deg) scale(1.01); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes ticker {
  from { transform: translateX(100vw); }
  to   { transform: translateX(-100%); }
}

/* ===== BASE ===== */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: linear-gradient(
    135deg,
    #1a0030, #002b4a, #004a1a, #4a1a00, #1a0030
  );
  background-size: 400% 400%;
  animation: bgshift 12s ease infinite;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ===== TICKER ===== */
.ticker-wrap {
  background: var(--col-1);
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-main);
  font-size: 1rem;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 10;
}
.ticker-content {
  display: inline-block;
  animation: ticker 28s linear infinite;
}
.ticker-sep {
  margin: 0 1.5rem;
  color: var(--col-2);
}

/* ===== HEADER ===== */
header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.site-logo-img {
  display: block;
  margin: 0 auto 1rem;
  width: clamp(70px, 12vw, 110px);
  height: clamp(70px, 12vw, 110px);
  animation: spin-slow 22s linear infinite;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.65))
          drop-shadow(0 0 6px rgba(255, 45, 120, 0.5));
}

.site-logo {
  font-family: var(--font-main);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1.1;
  background: linear-gradient(
    90deg,
    var(--col-1), var(--col-2), var(--col-3),
    var(--col-4), var(--col-5), var(--col-6), var(--col-1)
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: btn-rainbow 4s linear infinite;
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.3));
}

.site-tagline {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
}

.emoji-deco {
  display: inline-block;
  animation: float 3.5s ease-in-out infinite;
  font-size: 2rem;
  margin: 0 0.4rem;
}

/* ===== MAIN LAYOUT ===== */
main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* ===== AD BANNER TOP ===== */
.ad-banner {
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: var(--border-r);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ad-banner.leaderboard { min-height: 90px; }
.ad-banner.rectangle   { min-height: 250px; max-width: 300px; }
.ad-banner.wide        { min-height: 90px; }

/* ===== HERO CARD ===== */
.hero-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--border-r);
  padding: 3rem 2rem;
  text-align: center;
  animation: pulse-glow 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 120deg,
    rgba(255,45,120,0.08) 120deg 180deg,
    transparent 180deg 300deg,
    rgba(0,229,255,0.08) 300deg 360deg
  );
  animation: spin-slow 20s linear infinite;
}

.hero-card > * { position: relative; z-index: 1; }

.hero-title {
  font-family: var(--font-main);
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: var(--col-2);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.url-count-badge {
  display: inline-block;
  background: var(--col-4);
  color: #fff;
  font-family: var(--font-main);
  font-size: 1.1rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}

/* ===== BIG BUTTON ===== */
.btn-random {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-main);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(
    90deg,
    var(--col-1), var(--col-6), var(--col-2),
    var(--col-5), var(--col-3), var(--col-4), var(--col-1)
  );
  background-size: 300% auto;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  text-decoration: none;
  animation: btn-rainbow 2.5s linear infinite;
  transition: transform 0.15s ease, filter 0.15s ease;
  letter-spacing: 0.02em;
}

.btn-random:hover {
  transform: scale(1.07);
  filter: brightness(1.15);
}

.btn-random:active {
  transform: scale(0.96);
  animation-play-state: paused;
}

.btn-random.wobbling {
  animation: wobble 0.6s ease forwards, btn-rainbow 2.5s linear infinite;
}

.btn-icon {
  font-size: 1.8rem;
  display: inline-block;
}

/* ===== CONTENT + SIDEBAR GRID ===== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr 300px;
  }
}

/* ===== URL LIST CARD ===== */
.url-list-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: var(--border-r);
  padding: 2rem;
}

.card-title {
  font-family: var(--font-main);
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.url-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.8rem;
}

.url-chip {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 0.8rem;
  padding: 0.7rem 1rem;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.url-chip:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--col-3);
  transform: translateY(-2px);
}

.url-chip a {
  color: var(--col-3);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.25rem;
}

.url-chip a:hover { text-decoration: underline; }

.url-chip p {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  line-height: 1.4;
}

/* ===== SIDEBAR ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-ad {
  display: flex;
  justify-content: center;
}

/* ===== FOOTER ===== */
footer {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 2rem 1rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--col-2); }

.footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

/* ===== LEGAL PAGES ===== */
.legal-wrap {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem 4rem;
}

.legal-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: var(--border-r);
  padding: 2.5rem 2rem;
}

.legal-card h1 {
  font-family: var(--font-main);
  font-size: 2.2rem;
  color: var(--col-2);
  margin-bottom: 1.5rem;
}

.legal-card h2 {
  font-family: var(--font-main);
  font-size: 1.3rem;
  color: var(--col-3);
  margin: 2rem 0 0.5rem;
}

.legal-card p, .legal-card li {
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.legal-card ul {
  padding-left: 1.5rem;
}

.legal-card a {
  color: var(--col-3);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--col-2);
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  transition: gap 0.2s;
}
.back-link:hover { gap: 0.7rem; }

/* ===== HTTP-WARNUNG BADGE ===== */
.badge-insecure {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 180, 0, 0.15);
  border: 1px solid rgba(255, 180, 0, 0.45);
  border-radius: 0.4rem;
  color: #ffb400;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ===== BESTÄTIGUNGS-MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 1rem;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-r);
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.25);
  animation: modal-pop 0.2s ease;
}
@keyframes modal-pop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.modal-icon { font-size: 3rem; margin-bottom: 0.75rem; }

.modal-title {
  font-family: var(--font-main);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1rem;
}

.modal-text {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 3rem;
  font-family: var(--font-main);
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.modal-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

.modal-btn-confirm {
  background: linear-gradient(135deg, var(--col-1), var(--col-4));
  color: #fff;
}
.modal-btn-cancel {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.15);
}
