/* ----------------------------------------------------------------
   Reset
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg-dark:    #0a0b0e;
  --bg-darker:  #050506;
  --text-light: #f5f5f7;
  --text-muted: #9a9ba0;

  --accent:       #4bea97;
  --accent-light: rgba(75, 186, 151, 0.03);
  --accent-hover: #3acf84;

  --sin-color:     #4bea97;
  --cos-color:     #3f8bec;
  --negsin-color:  #d658bf;
  --negcos-color:  #f0a23e;
  --halfsin-color: #3ddbf0;

  --menu-blur: 8px;

  --font-sans: 'Inter', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

body.dashboard-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.dashboard-page main {
  flex: 1;
}

body.dashboard-page footer {
  margin-top: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(100% - 2rem, 1200px);
  margin: 0 auto;
}

/* ----------------------------------------------------------------
   Navigation (Logo links, Links absolut zentriert, Aktionen rechts)
   ---------------------------------------------------------------- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.nav__logo {
  font-size: 1.5rem;
  font-weight: 700;
}

/*
   1. Wir nehmen nav__links aus dem Flex-Flow:
      position: absolute + left:50% + transform: translateX(-50%) =>
      sorgt dafür, dass die UL-Mitte immer genau mittig ist.
   2. display: flex + gap: 2rem => Menüpunkte nebeneinander mit Abstand.
*/
.nav__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  list-style: none;
  z-index: 11;
}

.nav__links li a {
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links li a:hover {
  color: var(--accent);
}


.nav__actions {
  position: relative;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav__login {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav__user {
  color: var(--text-light);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.nav__avatar {
  width: 2.4rem;
  height: 2.4rem;
  margin-right: 0.3rem;
  border-radius: 50%;
}

.nav__login:hover {
  color: var(--accent);
}

.nav__cta {
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: var(--bg-darker);
  font-weight: 600;
  border-radius: 0.4rem;
  transition: background 0.2s;
}

.nav__cta:hover {
  background: var(--accent-hover);
}

/* Dropdown menu for the logged in user */
.user-menu {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  min-width: 12rem;
  padding: 0.75rem 1.25rem;
  background: rgba(30, 30, 30, 0.60);
  backdrop-filter: blur(var(--menu-blur)) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.6rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-0.5rem) scale(0.95);
  pointer-events: none;
  transition:
    opacity   150ms ease,
    transform 150ms ease;
  z-index: 20;
}

.user-menu::before {
  content: '';
  position: absolute;
  top: -0.9rem;
  right: 1.5rem;
  width: 0;
  height: 0;
  border-left: 0.45rem solid transparent;
  border-right: 0.45rem solid transparent;
  border-bottom: 0.9rem solid inherit;
  box-shadow: 0 -1px 0 rgba(100,255,100,0.08) inset;
}

.user-menu.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.user-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition:
    color     120ms ease,
    transform 120ms ease;
}

.user-menu a:hover,
.user-menu a:focus-visible {
  color: var(--accent);
  transform: translateX(2px);
}

.user-menu a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ----------------------------------------------------------------
   HERO, Background-Linien, Buttons, Section-Titel, Features, usw.
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-darker);
}

/* Gitter-/Raster-Hintergrund */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to right,
      var(--accent-light) 0,
      var(--accent-light) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      to bottom,
      var(--accent-light) 0,
      var(--accent-light) 1px,
      transparent 1px,
      transparent 40px
    );
}

/* SHINE- & GLOW-Keyframes */
@keyframes shine {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1;   }
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 4px var(--glow));
  }
  50% {
    filter: drop-shadow(0 0 16px var(--glow));
  }
}

/* Liniencontainer */
.hero__lines {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 800px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
  visibility: hidden; /* ausgeblendet, bis JS die Pfade setzt */
}

.hero__lines svg {
  width: 100%;
  height: 100%;
}

/* Grundstil für alle Pfade mit Animationen */
.hero__lines .line {
  fill: none;
  stroke-width: 4;
  opacity: 0.5;
  animation:
    shine 4s ease-in-out infinite,
    glow 6s ease-in-out infinite;
  /* WICHTIG: sorgt dafür, dass auch während der Verzögerung (oder bei
     negativen Delays) der Keyframe-Zustand angezeigt wird */
  animation-fill-mode: both;
}

/* Farbanpassungen + negative Delays, damit alle Linien sofort im
   mittleren Animationszustand starten */
.hero__lines .sin {
  stroke: var(--sin-color);
  --glow: var(--sin-color);
  animation-delay: -0s;
}

.hero__lines .cos {
  stroke: var(--cos-color);
  --glow: var(--cos-color);
  animation-delay: -0.8s;
}

.hero__lines .negsin {
  stroke: var(--negsin-color);
  --glow: var(--negsin-color);
  animation-delay: -1.6s;
}

.hero__lines .negcos {
  stroke: var(--negcos-color);
  --glow: var(--negcos-color);
  animation-delay: -2.4s;
}

.hero__lines .halfsin {
  stroke: var(--halfsin-color);
  --glow: var(--halfsin-color);
  animation-delay: -3.2s;
}


/* ----------------------------------------------------------------
   Section-Titel
   ---------------------------------------------------------------- */
.section__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

/* ----------------------------------------------------------------
   Features
   ---------------------------------------------------------------- */
.features {
  padding: 4rem 0;
  background: var(--bg-darker);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #111216;
  border-radius: 0.6rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------
   Statistiken (Charts)
   ---------------------------------------------------------------- */
.stats {
  padding: 4rem 0;
}

.charts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.chart-card {
  background: #111216;
  border-radius: 0.6rem;
  padding: 1.5rem;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Keep charts at a reasonable aspect ratio */
.chart-card canvas,
.chart-card > div {
  width: 100% !important;
  /* Höhe manuell setzen statt Aspect-Ratio */
  height: 500px !important;
  aspect-ratio: unset !important;
}


/* Grid layout for the logged in dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  justify-items: stretch;
  justify-content: flex-start;
}

/* Layout for dashboard with sidebar */
.dashboard-wrapper {
  display: flex;
  gap: 2rem;
}

.dashboard-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.dashboard-menu {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-menu button {
  padding: 0.6rem 1rem;
  background: #1f2025;
  border: none;
  border-radius: 0.4rem;
  color: var(--text-light);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}

.dashboard-menu button.active {
  background: var(--accent);
  color: var(--bg-darker);
}

.category {
  display: none;
}

.category.active {
  display: grid;
}

/* Dashboard tabs and fullscreen charts */
.chart-tabs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.chart-tabs button {
  padding: 0.5rem 1rem;
  background: #1f2025;
  border: none;
  border-radius: 0.4rem;
  color: var(--text-light);
  cursor: pointer;
  transition: background 0.2s;
}

.chart-tabs button.active {
  background: var(--accent);
  color: var(--bg-darker);
}

.dash-chart {
  display: none;
  position: relative;
  margin: 0 auto;
}

.dash-chart.active {
  display: block;
}

.fullscreen-toggle {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
}

.dash-chart.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: #111216;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.dash-chart.fullscreen .plotly-graph-div {
  width: 100% !important;
  height: 100% !important;
}

body.fullscreen-active::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

@media (max-width: 800px) {
  .charts__grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------------------------------------------------------
   "Wie funktioniert's?"-Sektion
   ---------------------------------------------------------------- */
.how-it-works {
  padding: 4rem 0;
  background: var(--bg-dark);
}

.how__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.how-card {
  background: #111216;
  border-radius: 0.6rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s;
}

.how-card:hover {
  transform: translateY(-5px);
}

.how-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.how-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.how-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.how-card__desc a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

/* ----------------------------------------------------------------
   FAQ-Sektion
   ---------------------------------------------------------------- */
.faq {
  padding: 4rem 0;
  background: var(--bg-dark);
}

.faq__item {
  margin-bottom: 30.5rem;        /* noch mehr Abstand zwischen den Fragen */
}

/* kompaktere FAQ-Boxen */
.faq__item.text-block {
  padding: 1.5rem 2rem;
}

.faq__item .faq__question {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;          /* startet direkt am oberen Rand */
}

.faq__answer {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Keine grünen Punkte vor FAQ-Überschriften */
.faq__item h3::before {
  display: none;
}

/* ----------------------------------------------------------------
   Support-Section
   ---------------------------------------------------------------- */
.support {
  padding: 4rem 0;
  background: var(--bg-dark);
}

.support__text {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.support__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.support__list li a {
  color: var(--accent);
  font-weight: 500;
  transition: color 0.2s;
}

.support__list li a:hover {
  color: var(--accent-hover);
}

/* Kontaktformular */
.support__form {
  max-width: 600px;
  margin: 0 auto;
}

/* kompaktere Abstände im Formular-Container */
.support__form.text-block {
  padding: 1.5rem 2rem;
}
.support__form label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}
.support__form input,
.support__form select,
.support__form textarea {
  width: 100%;
  padding: 0.6rem;
  background: #111216;
  border: 1px solid #333;
  border-radius: 0.3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.support__form .form__submit {
  background: var(--accent);
  color: var(--bg-darker);
  font-weight: 600;
  border: none;
  border-radius: 0.4rem;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
}
.support__form .form__submit:hover {
  background: var(--accent-hover);
}

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.footer {
  background: var(--bg-darker);
  padding: 4rem 0;
  text-align: center;
}

.footer__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.footer__button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: var(--bg-darker);
  font-weight: 600;
  border-radius: 0.4rem;
  transition: background 0.2s;
}

.footer__button:hover {
  background: var(--accent-hover);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__small {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

/* ----------------------------------------------------------------
   Back-to-Top
   ---------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  background: var(--accent);
  color: var(--bg-darker);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ----------------------------------------------------------------
   Hero-Link „Mehr zum Bot erfahren“ (optional)
   ---------------------------------------------------------------- */
.hero__link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: underline;
}

.hero__link:hover {
  color: var(--accent-hover);
}

/* ----------------------------------------------------------------
   Login Modal
   ---------------------------------------------------------------- */
.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal__content {
  background: var(--bg-darker);
  padding: 2rem;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.modal__content label {
  display: block;
  margin-bottom: 0.5rem;
}

.modal__content input {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 0.3rem;
}

.modal__content button {
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: var(--bg-darker);
  font-weight: 600;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
}

.modal__content button:hover {
  background: var(--accent-hover);
}

.modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.8rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}
/* -----------------------------------------
   TEAM-CARD  – Overlay-Bio auf Hover / Tap
   ----------------------------------------- */
.team-card {
  position: relative;     /* Bezugsrahmen fürs Overlay */
  overflow: hidden;       /* verhindert „Überlauf“ */
}

    .team {
      padding: 4rem 0;
    }
    .team__grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 3rem;
      margin-top: 2.5rem;
    }

    .team-card {
      width: 100%;
      min-width: 0;
      box-sizing: border-box;

      position: relative;      /* ▼ neu: Overlay positionieren */
      overflow: hidden;

      text-align: center;
      background: #111216;
      padding: 2.5rem;
      border-radius: 8px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.1);
      transition: transform 0.3s;
    }
        /* ----------------------------------------------
       TEAM-GRID (bestehendes Styling, mit Hover-Bio)
       ---------------------------------------------- */

    .team-card:hover      { transform: translateY(-5px); }
    .team-card__img       { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; margin-bottom: 1.25rem; }
    .team-card__title     { margin: 0.5rem 0 0.25rem; font-size: 1.3rem; font-weight: 600; }
    .team-card__desc      { margin: 0; color: #aaa; font-size: 1.1rem; }
    .team-card__extra     { margin-top: 1rem; color: #777; font-size: 1rem; }

    /* -------- Hover-Overlay -------- */
    .team-card__bio {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 1rem;

      padding: 2rem 1.5rem;
      background: rgba(17,18,22,0.96);
      backdrop-filter: blur(6px);

      text-align: center;
      line-height: 1.6;
      font-size: 1rem;
      color: #ddd;

      opacity: 0;
      visibility: hidden;
      transform: translateY(15px);
      transition: opacity 0.3s, transform 0.3s;
      border-radius: 8px;
      z-index: 2;
    }
    .team-card:hover .team-card__bio {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    /* ----------------------------------------------
       TEXT-SEKTIONEN („Über“, „Mission“, „Historie“)
       ---------------------------------------------- */
    .text-section { padding: 4rem 0; }

    .text-block {
      max-width: 800px;
      margin: 0 auto;
      background: #111216;
      padding: 2.5rem 2rem;
      border-radius: 0.6rem;
      box-shadow: 0 2px 12px rgba(0,0,0,0.3);
      line-height: 1.7;
      transition: transform 0.3s;
    }
    .text-block:hover { transform: translateY(-5px); }

    /* Timeline-Einträge sollen sich nicht verschieben */
    .history .text-block:hover { transform: none; }

    /* Breitere Textbox im "Über Spectra" Abschnitt */
    #about .text-block { max-width: 1200px; }
    body.terms-page .text-block { max-width: 1000px; }
    body.terms-page .text-block h3::before { display: none; }
    #index-plot { max-width: 1000px; }

    /* ----------------------------------------------
       Stylishe Timeline für „Historie & Meilensteine“
       ---------------------------------------------- */
    .history .text-block           { background: transparent; box-shadow: none; padding: 0; border-left: none; }
    .history ul                    { list-style: none; margin: 0; padding: 0; position: relative; }
    .history ul::before            {
      content: '';
      position: absolute;
      left: 50%;
      top: 0;
      transform: translateX(-50%);
      width: 3px;
      height: 100%;
      background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
      opacity: 0.4;
    }
    .history li                    {
      position: relative;
      width: 50%;
      padding: 1rem 2.5rem;
      box-sizing: border-box;
      font-size: 1.1rem;
      line-height: 1.6;
      opacity: 0;
      transform: translateY(30px);
      animation: slideIn 0.6s forwards;
    }
    .history li:nth-child(1) { animation-delay: 0.1s; }
    .history li:nth-child(2) { animation-delay: 0.2s; }
    .history li:nth-child(3) { animation-delay: 0.3s; }
    .history li:nth-child(4) { animation-delay: 0.4s; }
    .history li:nth-child(5) { animation-delay: 0.5s; }
    .history li:nth-child(6) { animation-delay: 0.6s; }
    .history li:nth-child(7) { animation-delay: 0.7s; }
    .history li:nth-child(8) { animation-delay: 0.8s; }
    .history li:nth-child(9) { animation-delay: 0.9s; }

    .history li:nth-child(odd)  { left: 0;  text-align: right; }
    .history li:nth-child(even) { left: 50%; text-align: left; }

    .history li::before           {
      content: '';
      position: absolute;
      top: 1rem;
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 0 4px rgba(255,255,255,0.08), 0 0 12px var(--accent);
      transition: transform 0.3s;
    }
    .history li:nth-child(odd)::before  { right: -7px; }
    .history li:nth-child(even)::before { left:  -7px; }
    .history li:hover::before { transform: scale(1.2); }
    .history li strong        { color: var(--accent); }

    @keyframes slideIn { to { opacity: 1; transform: translateY(0); } }

    /* === Hero-Section: Content-Box und Button === */
.hero__content {
  padding: 2rem 2rem;        /* weniger Abstand oben/unten */
  background: rgba(10, 11, 14, 0.85);
  border-radius: 0.6rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  position: relative;       /* überlagert Linien */
  z-index: 1;
  max-width: 800px;         /* Box nicht zu breit */
  width: calc(100% - 2rem);
  margin: 0 auto;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  line-height: 1.2;
}


.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;  /* geringerer Abstand zum Button */
}

.hero__button {
  display: inline-block;
  margin-top: 0.5rem;      /* Button näher am Text */
  padding: 0.75rem 2rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  border-radius: 0.4rem;
  transition: background 0.2s, color 0.2s;
}
.hero__button:hover {
  background: var(--accent-hover);
  color: var(--bg-darker);
}

/* === Server-Karte =================================================== */
.server-card {
  display: flex;
  align-items: center;    /* Bild und Text vertikal auf gleicher Hoehe */
  gap: 2rem;
  flex-wrap: wrap;        /* bricht sauber um, falls Bildschirm schmal ist */
  text-decoration: none;
  color: inherit;
}

/* etwas kompaktere Boxen */
.server-card.text-block {
  padding: 1.5rem 2rem;
}

.server-card__logo {
  width: 120px;
  height: 120px;
  object-fit: cover;      /* füllt den Kreis ohne Verzerren */
  border-radius: 50%;     /* macht das Bild wirklich rund */
  box-shadow: 0 0 12px rgba(0,0,0,.4);
}

.server-card__info {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Text vertikal mittig zum Logo */
  min-height: 120px;       /* gleiche Hoehe wie das Logo */
}

.server-card .server-card__info h3 {
  margin: 0 0 .5rem; /* override text-block default */
  font-size: 1.4rem;
  color: var(--accent);
}

/* kein gruener Punkt vor Ueberschrift in Server-Boxen */
.server-card__info h3::before {
  display: none;
}

.server-card__info p {               /* einheitliche Abstände */
  margin: .25rem 0;
}

/* Raster und Logos für Partner-Sektion */
.partners__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.partner-card .server-card__logo {
  width: 100px;
  height: 100px;
}
/* gleiche Breite fuer beide Partnerkarten */
.partner-card {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* etwas Abstand vor dem Footer */
.partners {
  margin-bottom: 2rem;
}

/* Text neben Logo im "Über Spectra" Abschnitt */
#about .server-card {
  flex-wrap: nowrap;
}
/* === Kartenraster für Top 3 + Stats ================================== */
.features .grid{                                /* Raster für die 3 Karten */
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:2rem;
}

/* breite Stats-Karte nimmt ganze Zeile im Raster ein */
.features .stats-card{
  grid-column:1/-1;             /* spannt über alle Spalten */
  background:#111216;
  padding:2rem 1.5rem;
  border-radius:8px;
  box-shadow:0 2px 12px rgba(0,0,0,.2);
  text-align:center;            /* Inhalte zentrieren */
}

.features .stats-card ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:1.5rem;
  justify-content:center;       /* Elemente mittig anordnen */
}

.features .stats-card li{
  flex:1 1 220px;               /* responsive Zweispalter auf Mobile */
  font-size:1rem;
  text-align:center;
}

.features .stats-card strong{color:var(--accent);}

/* === Nutzerrezensionen ============================================== */
.reviews {
  padding: 4rem 0;
  background: var(--bg-dark);
}

.review-card {
  background: #111216;
  border-radius: 0.6rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.review-card .stars {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.review-card .author {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Reviews use full container width similar to feature grid */
.reviews .text-block {
  max-width: none;
  width: 100%;              /* gleiche Breite wie Feature-Grid */
}

/* ────────────────────────────────────────────────────────────────── */
/* DATENSCHUTZ-SPECIFIC STYLING                                      */
/* ────────────────────────────────────────────────────────────────── */

.text-block {
  border-left: 3px solid var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  padding: 2.5rem;
}

.text-block .section__title::after {
  content: '';
  display: block;
  width: 6rem;
  height: 3px;
  background: var(--accent);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.text-block h3 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
  position: relative;
}

.text-block h3::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 0.6rem;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--accent);
  border-radius: 50%;
}

.text-block h4 {
  margin-top: 1.75rem;
  font-size: 1.125rem;
  color: var(--accent);
}

.text-block code {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
}

.toc {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.toc li a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.toc li a:hover {
  text-decoration: underline;
}