:root { color-scheme: dark; }

html { scrollbar-gutter: stable; }
html, body { height: 100%; }

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Courier New", Courier, monospace;
}

.wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

header {
  padding: 60px 16px 40px 16px;
  text-align: center;
}

.ascii {
  margin: 0 auto;
  display: inline-block;
  text-align: left;
  font-family: "Cascadia Mono", "Consolas", "Courier New", monospace;
  font-size: 16px;
  line-height: 1.15;
  white-space: pre;
  overflow-x: auto;
  max-width: 100%;
  padding: 20px 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.claim {
  margin: 20px 0 0 0;
  font-size: 18px;
  opacity: 0.9;
}

.intro {
  margin: 10px 0 0 0;
  font-size: 16px;
  opacity: 0.75;
}

main {
  flex: 1;
  padding: 40px 16px 60px 16px;
  max-width: 900px;
  margin: 0 auto;
}

.card {
  text-align: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 22px 16px;
  background: rgba(255,255,255,0.02);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(255,255,255,0.22);
}

h1 {
  font-size: 22px;
  margin-bottom: 25px;
}

h2 {
  font-size: 16px;
  margin-top: 40px;
  margin-bottom: 10px;
  opacity: 0.8;
}

p {
  line-height: 1.6;
  margin: 6px 0;
  opacity: 0.9;
}

a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}

a:hover {
  border-bottom-color: #fff;
}

main hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.5);
}

footer {
  padding: 30px 16px;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

.footer-links {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-col[lang="en"] p:last-of-type {
  margin-top: 20px;
}

/* cats */
.cats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.cat {
  margin: 0;
  text-align: center;
}

.cat img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.cat figcaption {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.85;
}

.cat-year {
  display: block;
  font-size: 13px;
  opacity: 0.5;
  margin-top: 2px;
}

.timeline {
  position: relative;
  margin: 30px auto 0 auto;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 60px;
  row-gap: 14px;
  align-items: start;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255,255,255,0.4);
}

.t-year {
  text-align: right;
  opacity: 0.8;
  line-height: 1.6;
}

.t-text {
  opacity: 0.9;
  line-height: 1.6;
}

.legal-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.legal-col + .legal-col {
  border-left: 1px solid rgba(255,255,255,0.5);
  padding-left: 40px;
}

.hero {
  text-align: center;
  margin-top: 20px;
}

.cat-link {
  display: block;
  width: 200px;
  flex: 0 0 auto;

  text-align: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 22px 16px;
  background: rgba(255,255,255,0.02);
  box-sizing: border-box;

  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);

  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cat-link:hover {
  border-color: rgba(255,255,255,0.22);
}

.cat-link img {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cat-link:hover img {
  transform: scale(1.02);
  opacity: 0.95;
}

/* ========================= */
/* GLIMPSES LAYOUT – FINAL  */
/* ========================= */

.glimpse-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  margin: 60px auto 0 auto;
}

/* Zentrale Linie exakt an der Spaltengrenze */
.glimpse-layout::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-0.5px);
  width: 1px;
  background: rgba(255,255,255,0.4);
}

/* Linke Bildspalte */
.glimpse-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 40px;
}

.glimpse-image img {
  width: 280px;
  height: auto;
  border-radius: 12px;
}

/* Rechte Textspalte */
.glimpse-log {
  list-style: none;
  margin: 0;
  padding: 0 0 0 40px;
}

.glimpse-log li {
  position: relative;
  padding: 6px 0;
  line-height: 1.6;
  opacity: 0.9;
}

.glimpse-log li::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  background: #000;
}

/* feine horizontale Trennlinie */
.glimpse-log li + li {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.glimpse-character {
  margin-top: 28px;
  text-align: center;
}

.glimpse-character p {
  margin: 0;
}

.glimpse-character ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.glimpse-character li {
  margin: 0.6rem 0;
  font-weight: 700;
  color: #ffffff;
}

.year-portraits {
  width: 280px;
  display: grid;
  gap: 14px;
}

.year-portrait {
  margin: 0;
}

.year-label {
  display: block;
  text-align: center;
  margin: 0 0 10px 0;
  font-size: 13px;
  letter-spacing: 2px;
  color: #ffffff;
  opacity: 1;
}

.year-portrait img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.back-link {
  text-align: center;
  margin: 60px 0 40px 0;
}

.back-link a {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.back-link a:hover {
  border-color: rgba(255,255,255,0.22);
}

.cat-name {
  margin-top: 8px;
  display: inline-block;
  font-size: 15px; font-weight: 600;
}

.top-character {
  text-align: center;
  margin: 10px 0 40px 0;
}

.top-character ul {
  display: inline-block;
}

.top-character li {
  margin: 0.6rem 0;
  font-weight: 700;
}

.hero-portrait {
  text-align: center;
  margin: 20px 0 20px 0;
}

.hero-portrait img {
  width: 320px;
  max-width: 90%;
  height: auto;
  border-radius: 12px;
}

.card a {
  border-bottom: none;
}

.card-link {
  text-decoration: none;
  border-bottom: none;
  display: block;
  width: 120px;
  margin: 0 auto;
}

.card-link + .card-link {
  margin-top: 24px;
}

.photo-viewer {
  position: relative;
  display: inline-block;
  padding: 0 32px;
}

.photo-viewer img {
  width: 280px;
  height: auto;
  border-radius: 12px;
}

.photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.photo-nav.prev {
  left: -32px;
}

.photo-nav.next {
  right: -32px;
}

.photo-nav:hover {
  border-color: rgba(255,255,255,0.5);
}

.photo-frame {
  margin: 0;
  text-align: center;
}

.photo-frame figcaption {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.6;
}

@media (max-width: 768px) {

  .glimpse-layout {
    display: block;
  }

  .glimpse-layout::before {
    display: none;
  }

  .glimpse-image img {
    max-width: 100%;
    height: auto;
  }

  .glimpse-character {
    margin-bottom: 40px;
  }

}

@media (max-width: 820px) {
  .legal-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-col + .legal-col {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255,255,255,0.5);
    padding-top: 28px;
  }
}

@media (max-width: 520px) {
  body {
    overflow-x: hidden;
  }

  .ascii {
    font-size: 7.6px;
    line-height: 1.05;
    padding: 6px 0;
    border: none;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
}

@media (max-width: 768px) {

  .photo-nav.prev {
    left: -12px;
  }

  .photo-nav.next {
    right: -12px;
  }

}

.quote-box {
  margin-top: 60px;
  text-align: center;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

#cat-quote {
  color: #cfcfcf;
  font-style: italic;
}

.quote-author {
  display: block;
  margin-top: 8px;
  opacity: 0.6;
  font-size: 13px;
}

.logo-link {
  text-decoration: none;
  border-bottom: none;
  display: inline-block;
}

.logo-link:hover .ascii {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.05);
}

.cat-archetype {
  text-align: center;
  margin-top: 4px;
  margin-bottom: 28px;
  font-size: 13px;
  letter-spacing: 1.5px;
  opacity: 0.6;
}