/* =========================================================
   ALLES GUTE RENÉ – Stylesheet
   Light Mode. Weiß + Neon. Absichtlich billig.
   ========================================================= */

   @keyframes neonwechsel {
    0%   { background-color: #ff00a8; }
    25%  { background-color: #00e5ff; }
    50%  { background-color: #ffee00; }
    75%  { background-color: #00ff5f; }
    100% { background-color: #ff00a8; }
  }
  
  @keyframes blinken {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0.1; }
  }
  
  @keyframes wackeln {
    0%   { transform: rotate(-2deg); }
    50%  { transform: rotate(2deg); }
    100% { transform: rotate(-2deg); }
  }
  
  @keyframes farbwechsel {
    0%   { color: #ff00a8; }
    25%  { color: #00b3ff; }
    50%  { color: #ff7b00; }
    75%  { color: #00cc44; }
    100% { color: #ff00a8; }
  }
  
  @keyframes huepfen {
    0%, 100% { transform: translateY(0) skewY(-3deg); }
    50%      { transform: translateY(-8px) skewY(-3deg); }
  }
  
  @keyframes fallen {
    to { transform: translateY(110vh) rotate(720deg); opacity: 0.2; }
  }
  
  * { box-sizing: border-box; }
  
  body {
    margin: 0;
    padding: 0 0 40px;
    font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive, sans-serif;
    background: #ffffff;
    background-image:
      repeating-linear-gradient(45deg,
        rgba(255, 0, 168, 0.07) 0 24px,
        rgba(0, 229, 255, 0.07) 24px 48px);
    color: #111111;
    text-align: center;
    overflow-x: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext y='24' font-size='24'%3E%E2%9C%A8%3C/text%3E%3C/svg%3E") 4 4, auto;
  }
  
  /* ---------- COOKIE-BANNER ---------- */
  #cookiebanner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9000;
    background: #ffee00;
    color: #000;
    border-top: 5px ridge #ff00a8;
    padding: 10px;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
  }
  #cookiebanner button {
    font-family: inherit;
    font-weight: bold;
    padding: 7px 12px;
    border: 4px outset #e8e8e8;
    background: #e8e8e8;
    color: #000;
    cursor: pointer;
  }
  #cookie-ok { animation: neonwechsel 1s infinite; }
  
  /* ---------- POPUPS ---------- */
  #popup-layer { position: fixed; inset: 0; z-index: 9500; pointer-events: none; }
  
  .popup {
    position: absolute;
    width: min(310px, 88vw);
    background: #f2f2f2;
    color: #000;
    border: 4px outset #ffffff;
    box-shadow: 6px 6px 0 rgba(255, 0, 168, 0.45);
    pointer-events: auto;
    text-align: left;
    font-size: 13px;
  }
  .popup-titel {
    background: linear-gradient(90deg, #ff00a8, #00b3ff);
    color: #fff;
    font-weight: bold;
    padding: 5px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-family: "Tahoma", "Verdana", sans-serif;
  }
  .popup-titel button {
    background: #e8e8e8;
    border: 2px outset #fff;
    font-weight: bold;
    width: 24px; height: 22px;
    line-height: 1;
    flex: 0 0 auto;
    cursor: pointer;
  }
  .popup-inhalt { padding: 12px; }
  .popup-inhalt p { margin: 0 0 10px; }
  .popup-inhalt button {
    font-family: inherit;
    border: 3px outset #fff;
    background: #e8e8e8;
    padding: 6px 10px;
    font-weight: bold;
    cursor: pointer;
  }
  .popup-blink { animation: blinken 0.7s infinite; }
  
  /* ---------- LAUFBÄNDER ---------- */
  .laufband {
    border-top: 4px dashed #ff00a8;
    border-bottom: 4px dashed #ff00a8;
    font-weight: bold;
    padding: 6px 0;
    overflow: hidden;
  }
  .laufband-oben {
    animation: neonwechsel 2s infinite;
    color: #000;
    font-size: clamp(13px, 3.4vw, 18px);
  }
  .laufband-mitte {
    margin: 26px 0;
    background: #ffee00;
    font-size: clamp(17px, 5vw, 30px);
    animation: farbwechsel 1.8s infinite;
  }
  
  /* ---------- HEADER ---------- */
  header {
    padding: 18px 10px 26px;
    border-bottom: 6px groove #00e5ff;
  }
  
  .sternchen {
    color: #ff00a8;
    letter-spacing: 2px;
    animation: blinken 1.3s infinite;
    word-break: break-all;
    font-size: clamp(12px, 3vw, 18px);
  }
  
  .wordart {
    font-size: clamp(38px, 13vw, 96px);
    line-height: 0.95;
    margin: 14px 0 6px;
    font-family: "Impact", "Haettenschweiler", "Arial Black", sans-serif;
    letter-spacing: 2px;
    background: linear-gradient(#ffee00 0%, #ff7b00 45%, #ff00a8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-stroke: 2px #000;
    paint-order: stroke fill;
    text-shadow:
       3px 3px 0 #00e5ff,
       6px 6px 0 #000;
    animation: huepfen 1.7s infinite;
  }
  
  .zahl {
    font-family: "Impact", "Arial Black", sans-serif;
    font-size: clamp(70px, 26vw, 190px);
    line-height: 1;
    color: #00e5ff;
    -webkit-text-stroke: 3px #ff00a8;
    text-shadow: 5px 5px 0 #ffee00;
    animation: wackeln 2.4s infinite;
  }
  
  .blink-band {
    display: inline-block;
    background: #ff00a8;
    color: #ffffff;
    font-weight: bold;
    font-size: clamp(15px, 4.5vw, 26px);
    padding: 8px 16px;
    margin-top: 12px;
    border: 4px double #000;
    animation: blinken 0.9s infinite;
  }
  
  /* ---------- BILDER ---------- */
  .foto {
    display: block;
    width: calc(100% - 24px);
    max-width: 620px;
    height: auto;
    margin: 24px auto;
    border: 8px ridge #00e5ff;
    background: #fff;
  }
  .foto-gross { max-width: 720px; }
  .foto:nth-of-type(even) { border-color: #ff00a8; transform: rotate(-1.2deg); }
  .foto:nth-of-type(odd)  { transform: rotate(1.2deg); }
  
  .fotos-zwei {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    max-width: 780px;
    margin: 24px auto;
    padding: 0 12px;
  }
  .fotos-zwei .foto { width: 100%; margin: 0; }
  
  /* ---------- BLÖCKE ---------- */
  .block {
    max-width: 640px;
    margin: 28px auto;
    padding: 16px 14px;
    border: 6px ridge #ffee00;
    background: #ffffff;
  }
  .block-neon { border-color: #00ff5f; }
  .block h2 {
    font-size: clamp(19px, 5vw, 28px);
    margin: 0 0 12px;
    color: #ff00a8;
    text-shadow: 2px 2px 0 #ffee00;
  }
  
  #countdown {
    font-family: "Courier New", monospace;
    font-size: clamp(19px, 6vw, 36px);
    font-weight: bold;
    color: #00a86b;
    background: #f4fff9;
    border: 4px inset #00ff5f;
    padding: 10px;
    word-break: break-word;
  }
  
  /* ---------- BAUSTELLE ---------- */
  .baustelle {
    background: repeating-linear-gradient(45deg, #ffee00 0 20px, #ff00a8 20px 40px);
    color: #ffffff;
    font-weight: bold;
    padding: 12px;
    font-size: clamp(14px, 4vw, 20px);
    text-shadow: 2px 2px 0 #000, -2px -2px 0 #000;
    margin: 26px 0;
  }
  
  /* ---------- BUTTONS ---------- */
  #gewinn-button, #musik-button {
    font-family: "Comic Sans MS", cursive, sans-serif;
    font-size: clamp(16px, 4.5vw, 20px);
    font-weight: bold;
    padding: 12px 20px;
    border: 6px outset #e8e8e8;
    background: #e8e8e8;
    color: #000;
    cursor: pointer;
    max-width: 100%;
  }
  #gewinn-button { animation: neonwechsel 1.4s infinite; }
  #gewinn-button:active, #musik-button:active { border-style: inset; }
  #gewinn-text {
    font-size: clamp(15px, 4vw, 18px);
    color: #ff00a8;
    min-height: 26px;
    margin-bottom: 0;
  }
  
  /* ---------- FOOTER ---------- */
  footer {
    margin-top: 34px;
    padding: 22px 12px 80px;
    border-top: 6px groove #ff00a8;
    font-size: 14px;
  }
  .besucher {
    font-family: "Courier New", monospace;
    font-size: clamp(16px, 4.5vw, 22px);
    color: #00a86b;
    background: #f4fff9;
    display: inline-block;
    padding: 6px 12px;
    border: 3px inset #00ff5f;
    letter-spacing: 3px;
  }
  .ki-zeile {
    max-width: 460px;
    margin: 16px auto;
    font-size: 14px;
    color: #ff00a8;
    font-weight: bold;
  }
  .badges { line-height: 2.4; }
  .badge {
    display: inline-block;
    background: #e8e8e8;
    color: #000;
    border: 3px outset #fff;
    padding: 3px 8px;
    margin: 3px;
    font-size: 11px;
    font-weight: bold;
    font-family: "Tahoma", sans-serif;
  }
  
  /* ---------- KONFETTI ---------- */
  .konfetti {
    position: fixed;
    top: -30px;
    font-size: 24px;
    z-index: 8000;
    pointer-events: none;
    animation: fallen linear forwards;
  }
  
  /* ---------- KLEINE SCREENS ---------- */
  @media (max-width: 480px) {
    .foto { border-width: 6px; }
    .block { margin: 20px 12px; }
    #cookiebanner { font-size: 12px; }
  }
  
  /* ---------- BARRIEREFREIHEIT ---------- */
  :focus-visible { outline: 4px solid #000; outline-offset: 3px; }
  
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation: none !important;
      transition: none !important;
    }
    .foto { transform: none !important; }
  }
