/* =========================================================
   TPLB HEADERTABELLE / HEADER-SLIDER
   ========================================================= */

.tplb-header-slider {
  --tplb-bg: var(--damocles-bg1, #f9f9f9);
  --tplb-border: var(--border, #dddddd);
  --tplb-dark-text: var(--damocles-dark-text, #555);
  --tplb-dark-rgb: var(--damocles-dark-rgb, 85, 85, 85);
  --tplb-font-sans: var(--damocles-font-sans, "Work Sans", sans-serif);
  --tplb-font-sans2: var(--damocles-font-sans2, "Poppins", sans-serif);
  --tplb-font-serif: var(--damocles-font-serif, "Cormorant Garamond", Georgia, serif);
  --tplb-title-font: var(--damocles-main-title-font, "Against", sans-serif);
  --tplb-font-medium: var(--damocles-font-medium, 500);
  --tplb-font-semibold: var(--damocles-font-semibold, 600);
  --tplb-gradient-text: var(--gradient-text, linear-gradient(to right, #b7ebfc, #f8c1e8, #fcf4d3));
  --tplb-gradient-soft-20: var(--damocles-gradient-soft-h-20, linear-gradient(102.8deg, rgba(183,235,252,0.2), rgba(248,193,232,0.2), rgba(252,244,211,0.2)));
  --tplb-gradient-soft-40: var(--damocles-gradient-soft-h-40, linear-gradient(102.8deg, rgba(183,235,252,0.4), rgba(248,193,232,0.4), rgba(252,244,211,0.4)));
  --tplb-gradient-soft-60: var(--damocles-gradient-soft-h-60, linear-gradient(102.8deg, rgba(183,235,252,0.6), rgba(248,193,232,0.6), rgba(252,244,211,0.6)));
  --tplb-gradient-soft-100: var(--damocles-gradient-soft-h-100, linear-gradient(102.8deg, rgba(183,235,252,1), rgba(248,193,232,1), rgba(252,244,211,1)));

  --tplb-slide-height: 520px;
  --tplb-side-arrow-space: 64px;

  position: relative;
  width: 100%;
  max-width: 2800px;
  margin: 30px auto 40px auto;
  padding: 0 var(--tplb-side-arrow-space);
  box-sizing: border-box;
  color: var(--tplb-dark-text);
}


/* =========================================================
   TPLB SLIDER: PFEILE LINKS / RECHTS
   ========================================================= */

.tplb-slider-controls {
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: var(--tplb-slide-height);
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  pointer-events: none;
}

.tplb-slider-arrow {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  pointer-events: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.72);
  background-image: none !important;

  color: rgba(var(--tplb-dark-rgb), 0.68);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);

  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  text-shadow: none;
  transition: 0.25s ease;
}

.tplb-slider-arrow i {
  font-size: 15px;
  line-height: 1;
}

.tplb-slider-arrow:hover {
  background-image: var(--tplb-gradient-soft-100) !important;
  border-color: transparent;
  color: var(--tplb-dark-text);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.tplb-slider-arrow:focus,
.tplb-slider-arrow:active {
  outline: none;
  background-image: var(--tplb-gradient-soft-100) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   TPLB SLIDER: TRACK / SLIDES
   ========================================================= */

.tplb-slider-track {
  display: flex;
  gap: 20px;
  height: var(--tplb-slide-height);
  min-height: var(--tplb-slide-height);
  max-height: var(--tplb-slide-height);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.tplb-slider-track::-webkit-scrollbar {
  display: none;
}

.tplb-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
  gap: 20px;
  height: var(--tplb-slide-height);
  min-height: var(--tplb-slide-height);
  max-height: var(--tplb-slide-height);
  box-sizing: border-box;
  align-items: stretch;
  overflow: hidden;
}

.tplb-slide-full {
  grid-template-columns: 1fr;
}


/* =========================================================
   TPLB PANELS / GRUNDBOXEN
   ========================================================= */

.tplb-panel,
.tplb-city-panel,
.tplb-calendar-panel {
  position: relative;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding: 38px 42px;
  box-sizing: border-box;
  background-color: var(--tplb-bg);
  border: 1px solid var(--tplb-border);
  border-radius: 8px;
  overflow: hidden;
}

.tplb-panel {
  display: flex;
  flex-direction: column;
}

.tplb-panel::before,
.tplb-city-panel::before,
.tplb-calendar-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--tplb-gradient-soft-40);
  opacity: 0.75;
  z-index: 0;
}

.tplb-calendar-panel::before {
  background-image: var(--tplb-gradient-soft-20);
  opacity: 0.9;
}

.tplb-panel::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  bottom: -260px;
  background-image: var(--tplb-gradient-soft-100);
  opacity: 0.55;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 0;
}

.tplb-panel > *,
.tplb-city-panel > *,
.tplb-calendar-panel > * {
  position: relative;
  z-index: 2;
}

.tplb-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  font-family: var(--tplb-font-sans2);
  font-size: 10px;
  font-weight: var(--tplb-font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(var(--tplb-dark-rgb), 0.7);
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 7px 11px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.tplb-panel-title,
.tplb-city-title,
.tplb-calendar-title {
  font-family: var(--tplb-title-font);
  font-size: clamp(42px, 5vw, 86px);
  line-height: 0.95;
  text-transform: uppercase;
  background-image: var(--tplb-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(1px 1px 1px rgba(255,255,255,0.55));
}

.tplb-city-title,
.tplb-calendar-title {
  font-size: clamp(42px, 5vw, 76px);
}

.tplb-calendar-title {
  margin-bottom: 20px;
}

.tplb-panel-text {
  max-width: 760px;
  margin-top: 20px;
  padding-right: 6px;
  font-family: var(--tplb-font-sans);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(var(--tplb-dark-rgb), 0.82);
  overflow-y: auto;
  overflow-x: hidden;
}


/* =========================================================
   TPLB QUICKLINKS
   ========================================================= */

.tplb-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  flex-shrink: 0;
}

.tplb-quicklinks a,
.tplb-quicklinks a:link,
.tplb-quicklinks a:visited,
.tplb-quicklinks a:hover,
.tplb-quicklinks a:active {
  font-family: var(--tplb-font-sans2);
  font-size: 10px;
  font-weight: var(--tplb-font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tplb-dark-text);
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 7px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.2s ease;
}

.tplb-quicklinks a:hover {
  background-image: var(--tplb-gradient-soft-60);
  border-color: transparent;
}


/* =========================================================
   TPLB KARTEN
   ========================================================= */

.tplb-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.tplb-card {
  min-height: 0;
  padding: 18px;
  box-sizing: border-box;
  background-color: var(--tplb-bg);
  border: 1px solid var(--tplb-border);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  text-align: left;
  transition: 0.2s ease;
  overflow: hidden;
}

.tplb-card:hover {
  background-image: var(--tplb-gradient-soft-20);
  border-color: transparent;
  transform: translateY(-2px);
}

.tplb-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background-image: var(--tplb-gradient-soft-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tplb-dark-text);
  font-size: 15px;
}

.tplb-card-title {
  font-family: var(--tplb-font-sans2);
  font-size: 11px;
  font-weight: var(--tplb-font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tplb-dark-text);
  margin-bottom: 6px;
  flex-shrink: 0;
}

.tplb-card-text,
.tplb-news-text {
  font-family: var(--tplb-font-sans);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(var(--tplb-dark-rgb), 0.75);
}

.tplb-card > div:last-child {
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tplb-card-text {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}


/* =========================================================
   TPLB SLIDE 1: AKTUELLES + GOSSIP GLEICH HOCH
   ========================================================= */

.tplb-start-side {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.tplb-slide-start > .tplb-panel,
.tplb-slide-start > .tplb-start-side {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.tplb-slide-start .tplb-news-card,
.tplb-slide-start .tplb-gossip-card {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.tplb-news-text {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}


/* =========================================================
   TPLB GOSSIP CONTAINER IM STARTSLIDE
   eigentliche Gossip-Optik liegt in gossip.css
   ========================================================= */

.tplb-gossip-wrap {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  padding-right: 0;
}


/* =========================================================
   TPLB SLIDE 2: ORTE / WETTER / PLOTS
   ========================================================= */

.tplb-city-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}

.tplb-city-subtitle {
  max-width: 620px;
  font-family: var(--tplb-font-sans);
  font-size: 12px;
  line-height: 1.7;
  color: rgba(var(--tplb-dark-rgb), 0.78);
  text-align: right;
}

.tplb-city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
}

.tplb-city-card {
  background-color: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 18px;
  box-sizing: border-box;
  min-height: 0;
  max-height: 310px;
  transition: 0.2s ease;
  overflow: hidden;
}

.tplb-city-card:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.8);
}

.tplb-city-name {
  font-family: var(--tplb-font-sans2);
  font-size: 13px;
  font-weight: var(--tplb-font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tplb-dark-text);
  margin-bottom: 10px;
}

.tplb-city-name::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 8px;
  background-image: var(--tplb-gradient-soft-100);
  border-radius: 999px;
}

.tplb-city-weather {
  font-family: var(--tplb-font-sans2);
  font-size: 10px;
  font-weight: var(--tplb-font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(var(--tplb-dark-rgb), 0.72);
  background-color: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  margin-bottom: 12px;
}

.tplb-city-plot {
  max-height: 185px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  font-family: var(--tplb-font-sans);
  font-size: 12px;
  line-height: 1.75;
  color: rgba(var(--tplb-dark-rgb), 0.78);
}

.tplb-city-plot strong {
  color: var(--tplb-dark-text);
  font-weight: var(--tplb-font-semibold);
}


/* =========================================================
   TPLB SLIDE 3 UND 4: INNEN SCROLLEN
   ========================================================= */

.tplb-calendar-wrap,
.tplb-teamheader-wrap {
  max-height: calc(var(--tplb-slide-height) - 210px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
}


/* =========================================================
   TPLB SCROLLBARS
   ========================================================= */

.tplb-panel-text::-webkit-scrollbar,
.tplb-news-text::-webkit-scrollbar,
.tplb-card-text::-webkit-scrollbar,
.tplb-city-plot::-webkit-scrollbar,
.tplb-calendar-wrap::-webkit-scrollbar,
.tplb-teamheader-wrap::-webkit-scrollbar {
  width: 6px;
}

.tplb-panel-text::-webkit-scrollbar-thumb,
.tplb-news-text::-webkit-scrollbar-thumb,
.tplb-card-text::-webkit-scrollbar-thumb,
.tplb-city-plot::-webkit-scrollbar-thumb,
.tplb-calendar-wrap::-webkit-scrollbar-thumb,
.tplb-teamheader-wrap::-webkit-scrollbar-thumb {
  background-image: var(--tplb-gradient-soft-100);
  border-radius: 999px;
}

.tplb-panel-text::-webkit-scrollbar-track,
.tplb-news-text::-webkit-scrollbar-track,
.tplb-card-text::-webkit-scrollbar-track,
.tplb-city-plot::-webkit-scrollbar-track,
.tplb-calendar-wrap::-webkit-scrollbar-track,
.tplb-teamheader-wrap::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}


/* =========================================================
   TPLB RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .tplb-header-slider {
    --tplb-side-arrow-space: 20px;
    padding-left: var(--tplb-side-arrow-space);
    padding-right: var(--tplb-side-arrow-space);
  }

  .tplb-slider-controls {
    position: static;
    height: auto;
    margin-bottom: 12px;
    justify-content: flex-end;
    pointer-events: auto;
  }

  .tplb-slider-track,
  .tplb-slide {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-y: visible;
  }

  .tplb-slide {
    grid-template-columns: 1fr;
  }

  .tplb-panel,
  .tplb-city-panel,
  .tplb-calendar-panel,
  .tplb-side,
  .tplb-start-side {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .tplb-slide-start .tplb-news-card,
  .tplb-slide-start .tplb-gossip-card {
    min-height: 180px;
    height: auto;
    max-height: none;
  }

  .tplb-calendar-wrap,
  .tplb-teamheader-wrap,
  .tplb-city-card,
  .tplb-city-plot {
    max-height: none;
    overflow: visible;
  }

  .tplb-city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tplb-city-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .tplb-city-subtitle {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .tplb-header-slider {
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 20px;
  }

  .tplb-panel,
  .tplb-city-panel,
  .tplb-calendar-panel {
    padding: 28px 24px;
  }

  .tplb-city-grid {
    grid-template-columns: 1fr;
  }

  .tplb-panel-title,
  .tplb-city-title,
  .tplb-calendar-title {
    font-size: clamp(36px, 12vw, 58px);
  }
}

@media (max-width: 480px) {
  .tplb-panel,
  .tplb-city-panel,
  .tplb-calendar-panel {
    padding: 24px 18px;
  }

  .tplb-card {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 14px;
  }

  .tplb-card-icon {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .tplb-panel-text,
  .tplb-city-plot {
    font-size: 12px;
  }

  .tplb-slider-arrow {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .tplb-slider-arrow i {
    font-size: 13px;
  }
}