@font-face {
  font-family: 'PT Sans';
  src: url('../../struktur/fonts/ptsansregular-webfont.woff2') format('woff2'),
    url('../../struktur/fonts/ptsansregular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'PT Sans';
  src: url('../../struktur/fonts/ptsansbold-webfont.woff2') format('woff2'),
    url('../../struktur/fonts/ptsansbold-webfont.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'PT Sans Narrow';
  src: url('../../struktur/fonts/ptsansnarrowregular-webfont.woff2') format('woff2'),
    url('../../struktur/fonts/ptsansnarrowregular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'PT Sans Narrow';
  src: url('../../struktur/fonts/ptsansnarrowbold-webfont.woff2') format('woff2'),
    url('../../struktur/fonts/ptsansnarrowbold-webfont.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'PT Sans', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background-color: white;
  overflow-x: hidden;
}

.hero {
  min-height: 100vh;
  width: 100%;
  background: url('../inhalt/psk-bg.png') center center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  position: relative;
  color: white;
}

/* Spacer for the top switcher area to help centering the logo */
.hero::before {
  content: "";
  display: block;
  height: 120px;
  /* Approximate height of switcher */
}

.center-logo {
  flex: 1;
  /* This centers the logo between the spacer and the nav */
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(320px, 90vw, 100vw) !important;
  min-width: 320px !important;
  max-width: none !important;
  height: auto !important;
  transform: none !important;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 60px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 90px rgba(0, 0, 0, 0.3));
}

.hero-nav {
  width: 100%;
  padding-bottom: 60px;
}

.hero-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

.hero-nav a {
  font-size: 1.95rem !important;
  font-weight: normal;
  color: white;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.3s;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 60px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 90px rgba(0, 0, 0, 0.3));
}

.hero-nav a:hover {
  opacity: 0.8;
}

.top-switcher {
  position: absolute;
  top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 100;
}

a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

/* Switcher Styles */
.switch-wrapper {
  position: relative;
  width: min(520px, 90vw);
  height: auto;
  aspect-ratio: 520 / 120;
  user-select: none;
}

.switch-base,
.switch-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.switch-inner {
  transition: none;
}

.switch-labels {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  height: 100%;
  pointer-events: none;
}

.left-label,
.right-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 100%;
}

.switch-logo {
  max-width: 80%;
  max-height: 60%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Logo der aktiven Seite schwarz färben */
.left-active .left-label .switch-logo {
  filter: brightness(0);
}

/* MAJ-Logo vertikal korrigieren */
.left-label .switch-logo {
  transform: translateY(2px);
}

/* PSK-Logo vertikal korrigieren */
.right-label .switch-logo {
  transform: translateY(1px);
}

.right-active .right-label .switch-logo {
  filter: brightness(0);
}

.click-area {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.content-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 0;
  color: #333;
}

#profil,
#datenschutz {
  background-color: #ffffff;
}

#impressum {
  background-color: rgb(232, 232, 232);
}

#datenschutz a {
  color: #555;
  text-decoration: underline;
}

.container {
  display: flex;
  gap: 60px;
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 60px;
  box-sizing: border-box;
}

.text-content {
  width: 390px;
  flex-shrink: 0;
}

.section-title {
  font-size: 72px;
  font-weight: bold;
  margin: -13px 0 30px -5px;
  padding: 0;
  /* Offset to align with the optical edge of the text below */
  color: #fff;
  text-shadow:
    -1px -1px 0 #ccc,
    1px -1px 0 #ccc,
    -1px 1px 0 #ccc,
    1px 1px 0 #ccc,
    4px 4px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 0;
  /* Removed negative letter-spacing to fix alignment */
  line-height: 1.1;
  text-align: left;
}

.text-body {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #333;
}

.text-small {
  font-size: 0.7rem;
  line-height: 1.4;
  opacity: 0.8;
}

.text-subheading {
  font-weight: bold;
  color: #555;
  font-size: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

/* Verkleinerte Überschrift vor kleinen Absätzen oder Listen */
.text-subheading:has(+ .text-small),
.text-subheading:has(+ .text-list) {
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

.text-small p {
  font-size: 0.7rem;
  margin-bottom: 0.65rem;
}

.text-list {
  font-size: 0.7rem;
  line-height: 1.4;
  opacity: 0.8;
  list-style-type: disc;
  margin: 0 0 0.65rem 1.5rem;
  padding: 0;
}

.text-body p+.text-list {
  margin-top: -1.35rem;
}

.text-list li {
  margin: 0;
  padding: 0;
}

.text-body p {
  margin-bottom: 1.35rem;
}

.image-grid {
  display: flex;
  gap: 30px;
}

.image-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.image-col img {
  display: block;
  object-fit: cover;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.img-300x240 {
  width: 300px;
  height: 240px;
}

.img-300x420 {
  width: 300px;
  height: 420px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 60px;
  color: #333;
  transition: transform 0.3s, color 0.3s;
  width: 100%;
}

.back-to-top:hover {
  color: #000;
  transform: translateY(-5px);
}

.back-to-top svg {
  width: 40px;
  height: 40px;
}

/* Center logo scaling handled via existing clamp and flex in hero */

/* Center logo scaling handled via existing clamp and flex in hero */

/* Tablet (601px - 1199px) */
@media (min-width: 601px) and (max-width: 1199px) {
  .content-section {
    padding: 90px 0;
  }

  .container {
    width: 600px;
    padding: 0 60px;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .text-content {
    width: 480px;
  }

  .section-title {
    text-align: left;
    width: 100%;
    font-size: 64px;
  }

  .image-grid {
    gap: 30px;
  }

  .image-col {
    gap: 30px;
  }

  .img-300x240 {
    width: 225px;
    height: 180px;
  }

  .img-300x420 {
    width: 225px;
    height: 315px;
  }
}

/* Mobile (<= 600px) */
@media (max-width: 600px) {
  .content-section {
    padding: 60px 0;
  }

  .container {
    width: 360px;
    padding: 0 30px;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .text-content {
    width: 300px;
  }

  .section-title {
    text-align: left;
    width: 100%;
    font-size: 52px;
  }

  .image-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .image-col {
    gap: 30px;
  }

  .img-300x240 {
    width: 300px;
    height: 240px;
  }

  .img-300x420 {
    width: 300px;
    height: 420px;
  }

  .content-section {
    padding-bottom: 60px;
  }
}

@media (min-width: 1200px) {
  .center-logo {
    width: clamp(320px, 60vw, 100vw) !important;
  }

  .switch-wrapper {
    width: min(520px, 90vw);
    height: auto;
    aspect-ratio: 520 / 100;
  }

  .switch-logo {
    max-width: 75%;
    max-height: 55%;
  }
}