/* DAS SIMONITSCH-PROTOKOLL — Retro-Stylesheet (1997-Ästhetik lt. Claude-Design-Handoff) */

body {
  margin: 0;
  background: #008080;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 18px);
  color: #000000;
  font-family: 'Times New Roman', Times, serif;
}
a { color: #0000EE; text-decoration: underline; }
a:visited { color: #551A8B; }
a:hover { color: #FF0000; background: #FFFF00; }
::selection { background: #000080; color: #FFFFFF; }

@keyframes spin360 { to { transform: rotate(360deg); } }
@keyframes crtBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes tickerMove { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.blink { animation: crtBlink 1.2s steps(1) infinite; }
.spin { display: inline-block; font-size: 34px; animation: spin360 4s linear infinite; }
.spin.rev { animation-direction: reverse; }

/* Seitenrahmen */
.frame {
  max-width: 860px; margin: 0 auto; background: #FFFFFF; color: #000000;
  border-left: 8px ridge #FF00FF; border-right: 8px ridge #FF00FF;
  padding: 0 14px 40px;
}
.fullbleed { margin-left: -14px; margin-right: -14px; }

.welcome {
  background: #FFFF00; color: #FF0000; padding: 6px 10px; text-align: center;
  font-size: 15px; font-weight: bold;
}
.masthead { text-align: center; background: #FF0000; padding: 24px 10px 18px; }
.masthead .row { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.masthead h1 {
  cursor: pointer; margin: 0; font-family: 'Comic Sans MS', 'Comic Sans', cursive; font-weight: bold;
  font-size: clamp(28px, 5.5vw, 54px); color: #FFFF00;
  text-shadow: 3px 3px 0 #000080, 6px 6px 0 rgba(0,0,0,.35); line-height: 1.05;
}
.masthead .claim { font-size: clamp(16px, 2.4vw, 20px); color: #FFFFFF; font-weight: bold; margin-top: 10px; }
.masthead .sub { margin-top: 10px; font-size: 15px; color: #FFFF00; font-weight: bold; }
.masthead .badges { margin-top: 10px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-block; font-weight: bold; padding: 2px 10px; }

.rainbow {
  height: 10px;
  background: linear-gradient(90deg, #FF0000, #FF9900, #FFFF00, #00CC00, #0066FF, #6600CC, #FF00FF);
}

.ticker { background: #000080; overflow: hidden; white-space: nowrap; padding: 6px 0; font-size: 17px; font-weight: bold; color: #FFFF00; }
.ticker .inner { display: inline-block; width: max-content; animation: tickerMove 38s linear infinite; }

/* Navigation */
.mainnav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 16px 0; border-bottom: 1px dashed #999999; }
.mainnav a {
  font-size: 16px; cursor: pointer; padding: 6px 16px; border: 3px outset #FFFFFF; font-weight: bold;
  font-family: 'Times New Roman', Times, serif; background: #C0C0C0; color: #000000; text-decoration: none;
}
.mainnav a:hover { background: #D8D8D8; color: #000000; }
.mainnav a:active { border-style: inset; }
.mainnav a.active { background: #FFFF00; color: #FF0000; }
.mainnav a.active:hover { background: #FFFF00; color: #FF0000; }

/* 95er-Bedienelemente */
.b95 {
  cursor: pointer; display: inline-block; border: 3px outset #FFFFFF; background: #C0C0C0; color: #000000;
  font-weight: bold; padding: 6px 14px; font-size: 14px; text-decoration: none;
  font-family: 'Times New Roman', Times, serif;
}
.b95:hover { background: #D8D8D8; color: #000000; }
.b95:active { border-style: inset; }
a.b95, a.b95:visited { color: #000000; }
.b95.blue { color: #000080; }
button.b95 { font-size: 14px; }

.win { border: 4px ridge #C0C0C0; background: #FFFFFF; }
.win-tb {
  background: linear-gradient(90deg, #000080, #1084d0); color: #FFFFFF; padding: 7px 12px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 15px; font-weight: bold;
}

.chip { background: #FFFFCC; border: 1px solid #999999; padding: 2px 8px; }
.chip.rot { background: #FFCCCC; color: #CC0000; }
.chiprow { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: bold; margin-bottom: 14px; }
.metarow { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: #555555; }
.metarow span { border: 1px solid #000000; padding: 3px 8px; }
.metarow .alarm { color: #FF0000; }

.comic { font-family: 'Comic Sans MS', 'Comic Sans', cursive; }
.pagehead { text-align: center; padding: 24px 0 8px; }
.pagehead h2 { font-family: 'Comic Sans MS', 'Comic Sans', cursive; font-weight: 400; font-size: 34px; color: #CC0000; margin: 0; }
.pagehead .unter { font-size: 16px; color: #555555; }

/* Archiv-Karten */
.akte-card { border: 4px ridge #C0C0C0; background: #FFFFFF; padding: 14px; display: flex; flex-wrap: wrap; gap: 16px; }
.akte-card .bild { flex: 0 0 260px; max-width: 100%; }
.akte-card .text { flex: 1; min-width: 250px; }
.akte-tag { background: #CC0000; color: #FFFF00; padding: 2px 10px; }
.aktelink {
  cursor: pointer; font-family: 'Comic Sans MS', 'Comic Sans', cursive; font-weight: bold; font-size: 25px;
  color: #0000EE; text-decoration: underline; margin: 8px 0 10px; display: block;
}
.aktelink:hover { color: #FF0000; background: #FFFF00; }
.evidence {
  cursor: zoom-in; width: 100%; height: 195px; border: 6px ridge #808080;
  filter: sepia(.3) contrast(1.08); display: block; overflow: hidden;
}
.evidence img, .evidence-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evidence-lg {
  cursor: zoom-in; max-width: 620px; height: 340px; border: 8px ridge #808080;
  filter: sepia(.25) contrast(1.05); margin: 0 auto; display: block; overflow: hidden;
}
.caption { font-size: 13px; color: #333333; margin-top: 5px; font-style: italic; line-height: 1.4; }
.caption b, .caption .link { color: #0000EE; font-weight: bold; }

/* Karten-Kasten (Bureau-„Karte“) */
.mapbox {
  position: relative; height: 170px; border: 2px solid #808080; background: #000066;
  background-image: repeating-linear-gradient(0deg, rgba(63,158,92,.22) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, rgba(63,158,92,.22) 0 1px, transparent 1px 20px);
}
.mapbox .x { position: absolute; color: #FF0000; font-size: 22px; animation: crtBlink 1.2s steps(1) infinite; }
.mapbox .titel { position: absolute; left: 6px; top: 4px; font-size: 13px; color: #FFFF00; }
.mapbox .coords { position: absolute; left: 6px; bottom: 4px; font-size: 13px; color: #00FF00; }

/* Zeitungsausriss */
.paper { background: #e8dfc8; color: #2a2318; padding: 12px 14px; border: 1px solid #b8ab8a; }
.paper .kopf {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive; font-size: 13px; border-bottom: 2px solid #2a2318;
  padding-bottom: 3px; display: flex; justify-content: space-between; gap: 8px;
}
.paper .schlagzeile { font-family: 'Comic Sans MS', 'Comic Sans', cursive; font-size: 21px; margin: 7px 0 4px; }
.paper p { font-family: 'Comic Sans MS', 'Comic Sans', cursive; font-size: 15px; margin: 0; line-height: 1.45; }

/* Polizeiakte */
.police { border: 1px solid #FF0000; padding: 12px 14px; position: relative; }
.police .kopf { font-size: 16px; color: #FF0000; margin-bottom: 6px; }
.police .inhalt { font-size: 16px; line-height: 1.7; }
.police .stempel {
  position: absolute; right: 10px; top: 10px; border: 2px solid #FF0000; color: #FF0000;
  padding: 2px 8px; font-size: 14px; transform: rotate(6deg);
}

/* Formulare */
input[type=text], textarea {
  font-size: 16px; padding: 4px 6px; border: 2px inset #808080;
  font-family: 'Times New Roman', Times, serif; background: #FFFFFF; color: #000000;
}
textarea { resize: vertical; }
.feldname { font-weight: bold; font-size: 15px; margin-bottom: 4px; }

/* Gästebuch */
.gb-eintrag { border: 4px ridge #C0C0C0; background: #FFFFFF; }
.gb-meta { font-size: 13px; color: #555555; padding: 6px 12px 0; }
.gb-text { padding: 8px 12px 12px; font-size: 17px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.gb-banner { border: 3px ridge #00CC00; background: #CCFFCC; color: #006600; font-weight: bold; padding: 8px 12px; margin: 14px 0 0; }
.gb-banner.rot { border-color: #FF0000; background: #FFCCCC; color: #CC0000; }

/* Popup (Fenster-Dialog) */
.popup-overlay {
  position: fixed; inset: 0; z-index: 99; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3);
}
.popup-overlay.offen { display: flex; }
.popup { width: 360px; max-width: 92%; background: #C0C0C0; border: 3px outset #FFFFFF; box-shadow: 5px 5px 0 rgba(0,0,0,.45); }
.popup .tb {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(90deg, #000080, #1084d0); color: #FFFFFF; font-weight: bold; padding: 3px 6px; font-size: 14px;
}
.popup .tb .x { cursor: pointer; background: #C0C0C0; color: #000000; border: 2px outset #FFFFFF; padding: 0 6px; font-size: 12px; }
.popup .inhalt { padding: 16px 14px; font-size: 15px; color: #000000; }
.popup .fuss { text-align: center; padding: 0 0 12px; }
.popup .ok { cursor: pointer; border: 3px outset #FFFFFF; background: #C0C0C0; padding: 3px 26px; font-size: 14px; font-weight: bold; }

/* Lightbox */
.lb-overlay {
  position: fixed; inset: 0; z-index: 98; background: rgba(0,0,32,.85); display: none;
  align-items: center; justify-content: center; cursor: zoom-out; padding: 20px;
}
.lb-overlay.offen { display: flex; }
.lb-rahmen { max-width: 94%; max-height: 92%; border: 10px ridge #C0C0C0; background: #000000; }
.lb-bild {
  width: min(80vw, 760px); height: 70vh; background-size: contain;
  background-position: center; background-repeat: no-repeat;
}
.lb-cap { background: #C0C0C0; color: #000000; font-size: 13px; font-weight: bold; text-align: center; padding: 5px 8px; }

/* Mitglieder-Leiste (Super Larry Club) */
.memberbar {
  background: #FFFFCC; border: 1px solid #999999; border-top: none;
  padding: 5px 10px; text-align: center; font-size: 14px; color: #333333;
}
.memberbar b { color: #CC0000; }

/* Larrocracy-Werbe-Popup */
.ad-logo {
  font-family: 'Comic Sans MS', 'Comic Sans', cursive; font-weight: bold; text-align: center;
  font-size: 34px; color: #FFFF00; background: #6600CC; padding: 8px 4px;
  text-shadow: 2px 2px 0 #000000; letter-spacing: 2px;
  border: 3px ridge #FF00FF;
}
.ad-claim { text-align: center; font-weight: bold; font-size: 16px; color: #CC0000; margin-top: 8px; animation: crtBlink 1.6s steps(1) infinite; }
.ad-quote { margin-top: 10px; border: 1px dashed #808080; background: #FFFFCC; padding: 8px 10px; font-size: 15px; font-style: italic; line-height: 1.45; }
.ad-quote .ad-wer { font-style: normal; font-weight: bold; color: #000080; font-size: 13px; }
.ad-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.ad-play { background: #FFFF00; color: #CC0000; }
.ad-fuss { margin-top: 10px; font-size: 11px; color: #555555; line-height: 1.4; }

/* Fußzeile */
footer { margin-top: 44px; border-top: 4px double #000000; padding-top: 16px; text-align: center; font-size: 15px; color: #333333; line-height: 1.9; }
.counter {
  cursor: pointer; background: #000000; border: 2px inset #808080; padding: 1px 8px;
  color: #00FF00; letter-spacing: 3px; font-family: monospace;
}
.baustelle { display: inline-block; border: 3px dashed #FF0000; color: #FF0000; font-weight: bold; padding: 3px 12px; animation: crtBlink 1.2s steps(1) infinite; }
.linklike { cursor: pointer; color: #0000EE; text-decoration: underline; background: none; border: none; font: inherit; padding: 0; }

/* 3D-Boxen */
.viewport3d { position: relative; border: 2px solid #808080; margin-top: 14px; overflow: hidden; }
.viewport3d canvas { display: block; }
.hud { position: absolute; pointer-events: none; }

@media (max-width: 540px) {
  .akte-card .bild { flex-basis: 100%; }
}
