/* === Root & Body ================================================== */

:root {
  --bg-deep: #050507;
  --bg-soft: #111015;
  --bg-card: #111016;
  --bg-card-soft: #f5f3f0;

  --text-main: #f9f8f7;
  --text-sub: #9d9790;
  --text-dark: #111015;

  --accent: #e03232;
  --accent-strong: #ff2b4f; /* an Startseite angepasst */
  --accent-soft: rgba(224, 50, 50, 0.16);

  --border-soft: rgba(245, 242, 238, 0.6);
  --border-dark: rgba(70, 64, 76, 0.9);

  --radius-lg: 10px;
  --radius-md: 6px;

  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.75);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.04), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.03), transparent 60%),
    #050507;
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body.theme-dark {
  background-color: #000000;
  color: #f4f0f4;
}

/* === Grain / Noise Overlay ======================================== */

.grain-layer {
  pointer-events: none;
  position: fixed;
  inset: -20px;
  z-index: 1;
  opacity: 0.13;
  mix-blend-mode: soft-light;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.25) 0px,
      rgba(0, 0, 0, 0.25) 1px,
      transparent 1px,
      transparent 2px
    );
}

/* Cursor Glow – generisch, Landing verfeinert in index.css */

.cursor-glow {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 40% 20%, rgba(224, 50, 50, 0.5), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.25), transparent 70%);
  filter: blur(14px);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease-out;
}

/* === Layout ======================================================= */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.3rem;
}

/* === Header & Navigation (global) ================================= */

.site-header {
  position: static; /* Landing bekommt fixed in index.css */
  margin-top: 1.6rem;
  text-align: center;
  z-index: 4;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo wie Startseite */

.logo {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.2rem;
  text-decoration: none;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 1.3rem;
  white-space: nowrap;
  color: #ffffff;
}

.logo-text,
.logo-mark {
  display: inline-block;
}

.logo-text {
  font-weight: 500;
  color: #ffffff;
}

.logo-mark {
  font-weight: 700;
  color: var(--accent-strong);
}

/* Horizontale Navigation unter dem Logo */

.top-nav {
  position: relative;
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
}

.top-nav a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  padding-bottom: 2px;
  transition: color 0.2s ease;
  padding-bottom: 4px;       /* WICHTIG: Platz für die Linie */
  line-height: 1.4;          /* verhindert Überlappung */
  display: inline-block;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 0%;
  height: 2px;
  background: var(--accent-strong);
  transition: width 0.25s ease;
}

/* Hover UND aktive Seite: gleicher roter Underline-Effekt */
.top-nav a:hover::after,
.top-nav a.nav-active::after {
  width: 100%;
}

/* Roter Punkt zwischen den Links */
.top-nav .dot {
  color: var(--accent-strong);
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
}


/* === Sections (Issues, Authors, About) ============================ */

.section {
  position: relative;
  z-index: 2;
  padding: 3rem 0 2.8rem;
}

.section-issues {
  background: #070709;
}

.section-authors {
  background: #070709;
}

.section-about {
  background: #f5f3f0;
  color: var(--text-dark);
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-intro {
  margin: 0 0 1.8rem;
  max-width: 38rem;
  font-size: 0.95rem;
  color: var(--text-sub);
}

.section-about .section-intro {
  color: #6b625c;
}

/* Issues-Layout */

.issues-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
  gap: 1.5rem;
}

.issue-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  padding: 1.25rem 1.3rem 1.4rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.76);
}

.issue-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-sub);
}

.issue-card h3 {
  margin: 0.1rem 0 0.4rem;
  font-size: 1.02rem;
}

.issue-text {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.issue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ghost-card {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(30, 30, 34, 1) 0,
      rgba(30, 30, 34, 1) 6px,
      rgba(18, 18, 22, 1) 6px,
      rgba(18, 18, 22, 1) 12px
    );
  border-style: dashed;
  border-color: rgba(224, 50, 50, 0.8);
}

/* Authors-Panel */

.authors-panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(171, 162, 200, 0.9);
  background: #111016;
  padding: 1.4rem 1.5rem 1.6rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.78);
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 1.4rem;
}

.authors-note p {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.authors-placeholder {
  border-radius: 8px;
  border: 1px dashed rgba(189, 178, 230, 0.9);
  background: #050507;
  padding: 0.9rem 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.placeholder-label {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(198, 189, 220, 0.9);
}

.placeholder-text {
  font-size: 1.06rem;
  font-weight: 500;
}

/* About-Layout */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr);
  gap: 1.8rem;
}

.about-column h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.about-column p {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: #5c534d;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0.6rem;
}

.about-list li {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

/* === Buttons (global) ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn.primary {
  background: var(--accent-strong);
  color: #070506;
  border-color: var(--accent-strong);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(210, 205, 210, 0.9);
  color: var(--text-main);
}

.btn.ghost:hover {
  background: rgba(250, 250, 250, 0.06);
}

.btn.soft {
  background: rgba(250, 250, 250, 0.09);
  border-color: rgba(230, 224, 224, 0.8);
  color: var(--text-main);
}

.btn.small,
.btn.btn-small {
  padding: 0.42rem 0.9rem;
  font-size: 0.8rem;
}

/* === Suche (Such-/Textseiten) ===================================== */

.search-panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(171, 162, 200, 0.9);
  background: #111016;
  padding: 1.4rem 1.5rem 1.6rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.78);
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.search-input {
  flex: 1 1 220px;
  min-width: 0;
  border-radius: 999px;
  border: 1px solid rgba(189, 178, 230, 0.9);
  padding: 0.5rem 0.8rem;
  background: #050507;
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}

.search-input::placeholder {
  color: rgba(184, 177, 170, 0.7);
}

.search-input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(224, 50, 50, 0.7);
}

.search-hint {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin: 0 0 0.8rem;
}

.search-results {
  margin-top: 0.4rem;
}

.search-placeholder {
  font-size: 0.86rem;
  color: var(--text-sub);
}

.search-result-item {
  border-radius: 8px;
  border: 1px solid rgba(189, 178, 230, 0.9);
  background: #050507;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.search-result-title {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}

.search-result-meta {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 0.4rem;
}

.search-result-meta span + span::before {
  content: "·";
  margin: 0 0.35rem;
}

.search-result-tags {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 0.4rem;
}

.search-result-tags strong {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.search-result-excerpt {
  font-size: 0.86rem;
  color: var(--text-main);
  margin: 0 0 0.5rem;
}

.search-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.search-result-actions a {
  text-decoration: none;
}

/* Grid für erweiterte Suchfelder */

.search-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.search-field label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.search-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

/* === Footer (global) ============================================== */

.site-footer {
  padding: 1.2rem 0 1.1rem;
  font-size: 0.8rem;
  color: #b5aebf;
  background: transparent;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  color: #ffffff;
  opacity: 0.95;
  text-decoration: none;
  display: flex;
  gap: 0.8rem;
}

.footer-links a {
  color: #b5aebf;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

.footer-links a:hover {
  opacity: 1;
}

/* === Responsive (global) ========================================== */

@media (max-width: 900px) {
  .issues-layout {
    grid-template-columns: 1fr;
  }

  .authors-panel {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .site-footer {
    text-align: center;
    padding: 1.6rem 0;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
  }

  .footer-links {
    justify-content: center;
  }

  .top-nav {
    margin-top: 1rem;
    flex-direction: column;
    gap: 0.4rem;
  }

  .top-nav .dot {
    display: none;
  }
}

@media (max-width: 680px) {
  .cursor-glow {
    display: none;
  }
}

