/* Kloss GmbH – Design-System (Nachbau der WordPress-Seite, Farben wie bisher, behutsam modernisiert) */
:root {
  --navy: #31567f;
  --navy-dunkel: #24405f;
  --akzent: #15779b;
  --logo-blau: #034ea2;
  --text: #4a525c;
  --text-hell: #6b737d;
  --grau-titel: #8a8f96;
  --linie: #e3e7ec;
  --hell: #f4f6f9;
  --weiss: #ffffff;
  --schrift: "Lato", "Helvetica Neue", Arial, sans-serif;
  --logo-schrift: "Tinos", "Times New Roman", Times, serif;
  --radius: 6px;
  --schatten: 0 8px 28px rgba(36, 64, 95, 0.1);
  --breite: 1180px;
  --kopfhoehe: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopfhoehe) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--schrift);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--weiss);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--akzent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--navy);
}
:focus-visible {
  outline: 3px solid var(--akzent);
  outline-offset: 3px;
}
h1,
h2,
h3,
h4 {
  font-family: var(--schrift);
  color: var(--navy);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem);
}
h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
p {
  margin: 0 0 1em;
}
strong {
  color: #39414a;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 24px;
}
.container.schmal {
  max-width: 860px;
}
.abschnitt {
  padding: clamp(3.5rem, 2rem + 4vw, 6rem) 0;
}
.abschnitt-hell {
  background: var(--hell);
}
.abschnitt-dunkel {
  background: var(--navy);
  color: #e8eef5;
}
.abschnitt-dunkel h2,
.abschnitt-dunkel h3 {
  color: var(--weiss);
}
.abschnitt-kopf {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.75rem;
}
.abschnitt-kopf h2 {
  margin-bottom: 0.2em;
}
.unterzeile {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--akzent);
  margin-bottom: 1rem;
}
.ueberzeile {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.ueberzeile a {
  color: var(--akzent);
  text-decoration: none;
}

/* Knoepfe */
.knopf {
  display: inline-block;
  background: var(--navy);
  color: var(--weiss);
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--navy);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.knopf:hover {
  background: var(--akzent);
  border-color: var(--akzent);
  color: var(--weiss);
  transform: translateY(-1px);
}
.knopf-rand {
  background: transparent;
  color: var(--navy);
}
.knopf-hell {
  background: var(--weiss);
  color: var(--navy);
  border-color: var(--weiss);
}
.knopf-hell:hover {
  background: transparent;
  color: var(--weiss);
  border-color: var(--weiss);
}
.knopf-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--kopfhoehe);
}
.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}
.logo-name {
  font-family: var(--logo-schrift);
  color: var(--logo-blau);
  font-size: 2rem;
  letter-spacing: 0;
}
.logo-zusatz {
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: #333333;
  font-size: 0.72rem;
  line-height: 1.25;
  margin-top: 0.25rem;
}
.navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}
.navigation a {
  display: block;
  padding: 0.55rem 0.75rem;
  color: #414141;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
}
.navigation a:hover,
.navigation a[aria-current="page"] {
  color: var(--navy);
  background: var(--hell);
}
.menue-knopf {
  display: none;
  background: none;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
  color: var(--navy);
}
.menue-knopf span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: transform 0.2s, opacity 0.2s;
}
@media (max-width: 1020px) {
  .menue-knopf {
    display: block;
  }
  .navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--weiss);
    border-bottom: 1px solid var(--linie);
    box-shadow: var(--schatten);
    display: none;
  }
  .kopf.offen .navigation {
    display: block;
  }
  .navigation ul {
    flex-direction: column;
    padding: 0.75rem 24px 1.25rem;
  }
  .navigation a {
    padding: 0.8rem 0.5rem;
    font-size: 0.95rem;
  }
  .kopf.offen .menue-knopf span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .kopf.offen .menue-knopf span:nth-child(2) {
    opacity: 0;
  }
  .kopf.offen .menue-knopf span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

/* Bilder-Slider (ohne Plugin: sanftes Ueberblenden per CSS) */
.slider {
  position: relative;
  overflow: hidden;
  background: var(--hell);
}
.slider-buehne {
  position: relative;
  aspect-ratio: 2560 / 1100;
  max-height: 78vh;
  width: 100%;
}
.slider-buehne img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: blende 36s infinite;
}
.slider-buehne img:nth-child(1) {
  animation-delay: 0s;
}
.slider-buehne img:nth-child(2) {
  animation-delay: 6s;
}
.slider-buehne img:nth-child(3) {
  animation-delay: 12s;
}
.slider-buehne img:nth-child(4) {
  animation-delay: 18s;
}
.slider-buehne img:nth-child(5) {
  animation-delay: 24s;
}
.slider-buehne img:nth-child(6) {
  animation-delay: 30s;
}
.slider-buehne.drei img {
  animation-duration: 18s;
}
@keyframes blende {
  0% {
    opacity: 0;
  }
  3% {
    opacity: 1;
  }
  17% {
    opacity: 1;
  }
  20% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.slider-buehne.drei img:nth-child(2) {
  animation-delay: 6s;
}
.slider-buehne.drei img:nth-child(3) {
  animation-delay: 12s;
}
.slider-buehne.drei {
  aspect-ratio: 1920 / 500;
}
.slider-buehne.drei img {
  animation-name: blende-drei;
}
@keyframes blende-drei {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  33% {
    opacity: 1;
  }
  38% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.slider-buehne img:first-child {
  opacity: 1;
}
.slider-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem 0 2.25rem;
  background: linear-gradient(180deg, rgba(36, 64, 95, 0) 0%, rgba(36, 64, 95, 0.72) 100%);
}
.slider-text h1 {
  color: var(--weiss);
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
@media (prefers-reduced-motion: reduce) {
  .slider-buehne img {
    animation: none;
    opacity: 0;
  }
  .slider-buehne img:first-child {
    opacity: 1;
  }
  html {
    scroll-behavior: auto;
  }
}
@media (max-width: 640px) {
  .slider-buehne {
    aspect-ratio: 4 / 3;
  }
  .slider-buehne.drei {
    aspect-ratio: 1920 / 500;
  }
  .slider-text {
    padding: 2rem 0 1.25rem;
  }
}

/* Willkommen */
.willkommen {
  text-align: center;
}
.willkommen .einleitung {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  color: var(--navy);
  line-height: 1.6;
  letter-spacing: 0.02em;
  max-width: 820px;
  margin: 0 auto;
}

/* Leistungen */
.leistungs-raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.leistung {
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.leistung h3 {
  margin: 0;
  background: var(--navy);
  color: var(--weiss);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
  padding: 0.95rem 1.25rem;
}
.leistung .haken-liste {
  padding: 1.25rem 1.25rem 1.5rem;
}
.abschnitt-text-zentriert {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}
.haken-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}
.haken-liste li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.55rem;
  line-height: 1.55;
}
.haken-liste li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 3px;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/0.8rem no-repeat;
}
@media (max-width: 900px) {
  .leistungs-raster {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* Team */
.team-raster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}
.person {
  text-align: center;
}
.person img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.person:hover img {
  transform: scale(1.02);
}
.person-name {
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.98rem;
  margin: 0 0 0.2rem;
  font-weight: 700;
}
.person-rolle {
  color: var(--grau-titel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  line-height: 1.5;
  margin: 0;
}
.team-extern {
  text-align: center;
  margin: 3rem 0 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.06em;
}
.team-raster.einzeln {
  grid-template-columns: minmax(0, 260px);
  justify-content: center;
}
@media (max-width: 1000px) {
  .team-raster {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .team-raster {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
}

/* Kontakt */
.kontakt-raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.kontakt-kachel {
  background: var(--weiss);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  padding: 1.75rem 1.5rem;
}
.kontakt-kachel h3 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1rem;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}
.kontakt-kachel p {
  margin-bottom: 0.6rem;
}
@media (max-width: 900px) {
  .kontakt-raster {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }
}

/* Kacheln (Service-Uebersicht, Stellen) */
.kachel-raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.kachel {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.kachel:hover {
  box-shadow: var(--schatten);
  transform: translateY(-2px);
  border-color: transparent;
}
.kachel h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}
.kachel .kachel-zusatz {
  color: var(--text-hell);
  margin: 0;
}
.kachel .kachel-link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.kachel .kachel-link::after {
  content: " →";
}
@media (max-width: 900px) {
  .kachel-raster {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .kachel-raster {
    grid-template-columns: 1fr;
  }
}

/* Zwei Spalten Text + Bild */
.zweispaltig {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.zweispaltig.umgekehrt {
  grid-template-columns: 0.85fr 1.15fr;
}
.zweispaltig.umgekehrt > :first-child {
  order: 2;
}
.bild-mit-text figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-hell);
  font-style: italic;
}
.bild-mit-text img {
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}
@media (max-width: 860px) {
  .zweispaltig,
  .zweispaltig.umgekehrt {
    grid-template-columns: 1fr;
  }
  .zweispaltig.umgekehrt > :first-child {
    order: 0;
  }
}
figure {
  margin: 0;
}

/* Galerie */
.galerie {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.galerie img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 900px) {
  .galerie {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 560px) {
  .galerie {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Vorteile */
.vorteil-raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.vorteil {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 3px solid var(--navy);
  box-shadow: 0 2px 10px rgba(36, 64, 95, 0.06);
}
.vorteil h3 {
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
}
.vorteil p {
  margin: 0;
}
@media (max-width: 900px) {
  .vorteil-raster {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .vorteil-raster {
    grid-template-columns: 1fr;
  }
}

/* Stimmen */
.stimmen {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.stimme {
  margin: 0;
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 2px 10px rgba(36, 64, 95, 0.06);
  position: relative;
}
.stimme blockquote {
  margin: 0 0 1rem;
  font-style: italic;
}
.stimme figcaption {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
}
@media (max-width: 800px) {
  .stimmen {
    grid-template-columns: 1fr;
  }
}

/* Stellenanzeigen */
.seitenkopf-bild img {
  width: 100%;
  aspect-ratio: 1920 / 500;
  object-fit: cover;
}
.stelle-einleitung-titel {
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 700;
}
.stelle-titel {
  margin-bottom: 0.3rem;
}
.stelle-umfang {
  color: var(--text-hell);
  font-size: 1.05rem;
}
.stelle-raster {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  margin-top: 2.5rem;
  align-items: start;
}
.stelle-gruppe {
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 10px rgba(36, 64, 95, 0.06);
}
.stelle-gruppe h2 {
  font-size: 1.35rem;
}
.stelle-gruppe h3 {
  font-size: 1rem;
  color: var(--akzent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 1.25rem 0 0.75rem;
}
.stelle-gruppe h2 + h3 {
  margin-top: 0.25rem;
}
.kontaktkarte {
  position: sticky;
  top: calc(var(--kopfhoehe) + 1.5rem);
  background: var(--weiss);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--schatten);
  text-align: center;
}
.kontaktkarte img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
}
.kontaktkarte-titel {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--navy);
}
.aufruf {
  text-align: center;
}
@media (max-width: 900px) {
  .stelle-raster {
    grid-template-columns: 1fr;
  }
  .kontaktkarte {
    position: static;
  }
}

/* Service */
.service-logo {
  max-width: 220px;
  margin-top: 1.5rem;
}
.hinweis-box {
  background: var(--hell);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
details.aufklapper {
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  margin: 1rem 0 1.5rem;
  background: var(--weiss);
}
details.aufklapper summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
details.aufklapper summary::-webkit-details-marker {
  display: none;
}
details.aufklapper summary::before {
  content: "+";
  display: inline-block;
  width: 1.25rem;
  font-weight: 700;
}
details.aufklapper[open] summary::before {
  content: "–";
}
details.aufklapper .aufklapper-inhalt {
  padding: 0 1.25rem 1.25rem;
}
.person-klein {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.person-klein img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
}
.person-klein p {
  margin: 0;
  font-style: italic;
  color: var(--text-hell);
}

/* Rechtstexte */
.rechtstext h1,
.rechtstext h2 {
  margin-top: 0;
}
.rechtstext p {
  overflow-wrap: anywhere;
}

/* Fuss */
.fuss {
  background: var(--navy-dunkel);
  color: #c9d5e2;
  padding: 2.25rem 0;
  font-size: 0.92rem;
}
.fuss-innen {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.fuss a {
  color: var(--weiss);
  text-decoration: none;
}
.fuss a:hover {
  text-decoration: underline;
}
.fuss-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Einblenden beim Scrollen (nur mit JavaScript; ohne bleibt alles sichtbar) */
.js .einblenden {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .einblenden.sichtbar {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .einblenden {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
