/* Colors */
:root {
  --bg-color: #fff4eb;
  --bg_sec-color: #dfb1b1;
  --prim-color: #72422f;
  --sec-color: white;
  --acent-color: #eda08a;
  --link-color: #c96e57;
  --link-hover: #72422f;
  --accent-sec-color: rgba(237, 160, 138, 0.7);
}

body,
html {
  background-color: var(--bg-color);
  overflow-x: none;
  overflow-x: hidden;
}

:target {
  scroll-margin-top: 9lvh; /* Höhe der Navbar anpassen */
}

.spacer-1 {
  height: 6.33lvh;
}

a {
  text-decoration: none;
}

hr {
  color: var(--prim-color);
}

.hero {
  user-select: none;
}

.break-word {
  overflow-wrap: break-word;
  white-space: normal;
  word-break: break-all;
}

.wave-section {
  position: relative;
  overflow: hidden;
}

.wave-section > *:not(.wave) {
  position: relative;
  z-index: 1;
}

.wave {
  position: absolute;
  left: 0;
  bottom: -10vw;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1080;

  background-size: 100% 100%;

  background-image: url("/gfx/image/wave/wave_bg_top.png");
  background-repeat: no-repeat;
  background-position: bottom center;

  z-index: 0;
  pointer-events: none;
}
#werte {
  position: relative;
  --wave-overlap: clamp(3vw, 53vw, 106vw);
}
.space-wave {
  position: relative;
  --wave-overlap: clamp(34vw, 51vw, 56vw);
}
.wave-bottom {
  position: absolute;
  left: 0;
  top: calc(-1 * var(--wave-overlap));
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 1080;
  background-size: 100% 100%;
  background-image: url("/gfx/image/wave/wave_bg_bottom_light.png");
  background-repeat: no-repeat;
  background-position: bottom center;
  z-index: 0;
  pointer-events: none;
}

/* =========================================================
   THEMENÜBERSICHT / LEISTUNGSÜBERSICHT
========================================================= */

.topic-card {
  height: 100%;
}

.topic-card__link-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: inherit !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.18) 100%
  );
  border: 1px solid rgba(114, 66, 47, 0.1);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(114, 66, 47, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  min-height: 100%;
}

.topic-card__link-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(114, 66, 47, 0.12);
  border-color: rgba(114, 66, 47, 0.16);
}

.topic-card__media {
  position: relative;
  min-height: 240px;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}

.paedagogisch .topic-card__media {
  background-position: center !important;
}

.topic-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 244, 235, 0.1) 55%,
    rgba(255, 244, 235, 0.24) 100%
  );
}

.topic-card__image-source {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--prim-color);
  background: rgba(255, 255, 255, 0.55);
  padding: 4px 7px;
  border-radius: 4px;
  font-family: 'Comica';
}

.topic-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.2rem 1.2rem;
}

.topic-card__kicker {
  margin-bottom: 0.7rem;
}

.topic-card__title {
  margin-bottom: 0.75rem;
  color: var(--prim-color);
}

.topic-card__text {
  margin-bottom: 1rem;
  color: var(--prim-color);
  opacity: 0.95;
  max-width: 34ch;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.topic-card__footer {
  margin-top: auto;
  padding-top: 0.5rem;
}

.topic-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "BadComic";
  font-weight: bold;
  font-size: 1rem;
  color: var(--link-color, var(--prim-color));
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(201, 110, 87, 0.35);
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease,
    gap 0.2s ease;
}

.topic-card__cta i {
  font-size: 0.85em;
  transition: transform 0.2s ease;
}

.topic-card__link-wrap:hover .topic-card__cta {
  color: var(--prim-color);
  text-decoration-color: rgba(201, 110, 87, 0.7);
  gap: 0.6rem;
}

.topic-card__link-wrap:hover .topic-card__cta i {
  transform: translateX(2px);
}

#showcase-portfolio {
  background: #fff;
}

.back-section a {
  z-index: 99999;
}

.neo-btn,
ul li.in-view,
.container .row {
  z-index: 2;
}

.row.topic-grid .col {
  z-index: 10;
}

.modal-dialog{
  justify-content: center!important;
}
.modal-content {
  width: fit-content !important;

}
