@import url(/assets/fonts/fontawesome/css/all.min.css);
@import url(/assets/fonts/google/googlefonts.css);
@import url(/assets/css_reset.css);

:root {
  --nav-bg: #000000;
  --nav-text: #ffffff;
  --nav-accent: #ff5800;
  --link-link: #fff;
  --container-max-width: 960px;
  --nav-height: 120px;
  --mobile-breakpoint: 800px;
}
/* --- Basis Setup --- */
html,
body {
  background: #000;
  font-family: "Lato", sans-serif;
  color: #fff;
  margin: 0;
  padding: 0;
}

body {
  overflow-y: scroll;
}

/* Der Wrapper für den eigentlichen Seiteninhalt */
.wrapper {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Sticky Header --- */
header {
  position: -webkit-sticky; /* Support für Safari */
  position: sticky;
  top: 0;
  padding: 1rem 0 2rem 0;
  width: 100%;
  background-color: var(--nav-bg);
  z-index: 10000;
}

/* --- Navigation Layout --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: var(--container-max-width);
  margin: 0;
  background-color: var(--nav-bg);
  position: relative;
}

.logo img {
  max-height: var(--nav-height);
  max-width: 250px;
  display: block;
  height: auto;
}

.menu-wrapper {
  display: flex;
  align-items: flex-end;
}

.menu ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.menu ul li a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu ul li a:hover,
.menu ul li a.rex-current {
  color: var(--nav-accent);
}

/* Mobile Toggle */
.on-off {
  display: none;
}

.on-off a {
  font-size: 3rem;
  color: var(--nav-text);
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
}

/* --- Content & Extras --- */

a {
  color: var(--link-link);
}
a:hover {
  color: var(--nav-accent);
  transition: color 0.3s ease;
}

h1 {
  font:
    normal 1.8em/1.1em "Lato",
    sans-serif;
  text-wrap: balance;
  margin-bottom: 1rem;
}
h2 {
  font:
    400 1.2em/1.1em "Lato",
    sans-serif;
  margin-bottom: 1rem;
}

p {
  font:
    400 1.125em/1.35em "Lato",
    sans-serif;
  padding: 0;
  margin: 0 0 1rem 0;
}

.content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1rem;
}
.content ul li {
  font:
    400 1.125rem/1.35em "Lato",
    sans-serif;
  margin-bottom: 5px;
}
/* Den vom CK5 generierten Absatz im Listenpunkt neutralisieren */
.content ul li p {
  display: inline; /* Macht den Absatz unschädlich, er verhält sich wie Text */
  font-size: inherit; /* Erbt die 1.125rem vom li */
  line-height: inherit;
  margin: 0; /* Entfernt das margin-left:0px vom Editor */
  padding: 0;
}

/* Scroller / Ticker */
.scroll-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: #000;
  margin: 10px 0;
}

.scroll-text {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 30s linear infinite;
  padding: 10px 0;
}

@keyframes ticker {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-100%, 0);
  }
}

.scroll-container:hover .scroll-text {
  animation-play-state: paused;
}

/* --- Tabellen Styling --- */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #000;
  color: #fff;
}

thead th {
  text-align: left;
  padding: 1rem;
  background-color: #111;
  color: var(--nav-text);
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: bold;
  /* border-bottom: 2px solid var(--nav-accent); */
}

tbody td {
  padding: 12px 15px;
  border-bottom: 1px solid #222;
  vertical-align: middle;
}

tbody tr:hover {
  background-color: #111;
}

table td a {
  color: #fff;
  transition: color 0.3s;
}

table td a:hover {
  color: var(--nav-accent);
}

/* --- Responsive Rules (Mobile) --- */
@media screen and (max-width: 800px) {
  nav {
    align-items: flex-start;
    height: auto;
  }

  .logo img {
    max-height: 60px;
  }

  .on-off {
    display: block;
    margin-top: -10px;
  }

  .menu-wrapper {
    padding-bottom: 0;
    align-self: flex-start;
  }

  .menu {
    /* display: none; ENTFERNEN - Verhindert die Animation */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    z-index: 9999;

    /* Animation-Setup */
    overflow: hidden;
    visibility: hidden; /* Element ist für Screenreader/Maus weg */
    max-height: 0; /* Startwert für Höhe */
    opacity: 0; /* Startwert für Sichtbarkeit */

    transition:
      max-height 0.4s ease-in-out,
      opacity 0.3s ease,
      visibility 0.4s;
  }

  /* Diese Klasse wird per JS getoggled */
  .menu.is-open {
    /* display: block; NICHT NÖTIG */
    visibility: visible;
    max-height: 600px; /* Muss höher sein als der Inhalt */
    opacity: 1;
  }

  .menu ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1rem 0;
  }

  .menu ul li {
    width: 100%;
    text-align: center;
  }

  .menu ul li a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #111;
  }

  h1 {
    font-size: 1.5em;
  }
  p,
  ul {
    font-size: 1em;
  }
}

/* --- Responsive Tabelle --- */
@media screen and (max-width: 600px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none; /* Kopfzeile verstecken */
  }

  tr {
    margin-bottom: 1.5rem;
    border: 1px solid #333;
    background: #080808;
  }

  td {
    border: none;
    border-bottom: 1px solid #111;
    position: relative;
    padding: 12px 15px 12px 40%; /* Padding links für Label Platz */
    text-align: left; /* Text linksbündig für bessere Lesbarkeit */
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  td:last-child {
    border-bottom: none;
  }

  /* Label-Generierung */
  td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: 35%;
    font-weight: bold;
    color: var(--nav-accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

.gt-universal-grid {
  width: 100%;
  clear: both;
}
.gt-wrapper {
  display: block;
}
.gt-column {
  width: 100%;
  margin-bottom: 30px;
}

/* Bild-Fix: Zwingt Bilder in die Spalte */
.gt-column img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}
.gt-column figure {
  width: 100% !important;
  margin: 0 !important;
}

@media (min-width: 461px) {
  .gt-wrapper {
    display: grid !important;
    gap: 40px;
    margin-bottom: 0;
  }
  .gt-column {
    margin-bottom: 0;
    min-width: 0;
  }

  .gt-1 .gt-wrapper {
    grid-template-columns: 1fr !important;
  }
  .gt-2 .gt-wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .gt-3 .gt-wrapper {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .gt-4 .gt-wrapper {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .gt-5 .gt-wrapper {
    grid-template-columns: repeat(5, 1fr) !important;
  }
  .gt-6 .gt-wrapper {
    grid-template-columns: repeat(6, 1fr) !important;
  }
  .gt-7 .gt-wrapper {
    grid-template-columns: 80% 1fr !important;
  }
  .gt-8 .gt-wrapper {
    grid-template-columns: 20% 1fr !important;
  }
  .gt-9 .gt-wrapper {
    grid-template-columns: 70% 1fr !important;
  }
  .gt-10 .gt-wrapper {
    grid-template-columns: 30% 1fr !important;
  }
  .gt-11 .gt-wrapper {
    grid-template-columns: 60% 1fr !important;
  }
  .gt-12 .gt-wrapper {
    grid-template-columns: 40% 1fr !important;
  }
  .gt-13 .gt-wrapper {
    grid-template-columns: 25% 1fr 25% !important;
  }
  .gt-14 .gt-wrapper {
    grid-template-columns: 1fr 25% 25% !important;
  }
  .gt-15 .gt-wrapper {
    grid-template-columns: 25% 25% 1fr !important;
  }
  .gt-16 .gt-wrapper {
    grid-template-columns: 16.66% 1fr 16.66% !important;
  }
  .gt-17 .gt-wrapper {
    grid-template-columns: 1fr 16.66% 16.66% !important;
  }
  .gt-18 .gt-wrapper {
    grid-template-columns: 16.66% 16.66% 1fr !important;
  }
}
