/*
 * Zentrales Stylesheet der Website. Änderungen direkt in dieser Datei pflegen.
 * Aufbau: Variablen, Schriften und Icons, Grundlagen, Layout, Navigation,
 * Titelbilder, Inhalte, Slider, Footer und seitenspezifische Details.
 * Responsive Regeln stehen jeweils bei der zugehörigen Komponente.
 */

/* ==========================================================================
   1. Designvariablen
   ========================================================================== */

:root {
  --primary: #cd0e2c;
  --primary-hover: #b40c27;
  --color-text: #1a1a1a;
  --color-surface: #fff;
  --color-muted: #f0f0f0;
  --color-control: #eee;
  --color-border: #aaa;
  --color-divider: #ebebeb;
  --layout-gap: clamp(1.5rem, 3vw, 3rem);
  --shadow-card: 0 0.35rem 1.25rem 0 rgb(30 35 45 / 9%);
  --nav-height: 5.5rem;
}

/* ==========================================================================
   2. Lokale Schriften und verwendete Icons
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url("/assets/fonts/inter-v12-latin-100.woff2") format("woff2"),
       url("/assets/fonts/inter-v12-latin-100.woff") format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("/assets/fonts/inter-v12-latin-200.woff2") format("woff2"),
       url("/assets/fonts/inter-v12-latin-200.woff") format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/inter-v12-latin-300.woff2") format("woff2"),
       url("/assets/fonts/inter-v12-latin-300.woff") format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-v12-latin-regular.woff2") format("woff2"),
       url("/assets/fonts/inter-v12-latin-regular.woff") format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-v12-latin-500.woff2") format("woff2"),
       url("/assets/fonts/inter-v12-latin-500.woff") format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-v12-latin-600.woff2") format("woff2"),
       url("/assets/fonts/inter-v12-latin-600.woff") format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/inter-v12-latin-700.woff2") format("woff2"),
       url("/assets/fonts/inter-v12-latin-700.woff") format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/inter-v12-latin-800.woff2") format("woff2"),
       url("/assets/fonts/inter-v12-latin-800.woff") format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/assets/fonts/inter-v12-latin-900.woff2") format("woff2"),
       url("/assets/fonts/inter-v12-latin-900.woff") format("woff");
}

/*
 * Verwendete Icons aus Font Awesome Free 6.2.1 by @fontawesome.
 * https://fontawesome.com - Copyright 2022 Fonticons, Inc.
 * Code: MIT, Fonts: SIL OFL 1.1. Lizenz: /assets/lib/fontawesome-free-6.2.1-web/LICENSE.txt
 * Neue Icons hier mit ihrer Klasse und ihrem Unicode-Zeichen ergänzen.
 */
@font-face {
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/assets/lib/fontawesome-free-6.2.1-web/webfonts/fa-brands-400.woff2") format("woff2"),
       url("/assets/lib/fontawesome-free-6.2.1-web/webfonts/fa-brands-400.ttf") format("truetype");
}

@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("/assets/lib/fontawesome-free-6.2.1-web/webfonts/fa-solid-900.woff2") format("woff2"),
       url("/assets/lib/fontawesome-free-6.2.1-web/webfonts/fa-solid-900.ttf") format("truetype");
}

.fa,
.fab {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  line-height: 1;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fa {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.fab {
  font-family: "Font Awesome 6 Brands";
  font-weight: 400;
}

.fa-envelope::before {
  content: "\f0e0";
}

.fa-facebook::before {
  content: "\f09a";
}

.fa-instagram::before {
  content: "\f16d";
}

.fa-whatsapp::before {
  content: "\f232";
}

/* ==========================================================================
   3. Grundlagen und gemeinsame Hilfsklassen
   ========================================================================== */

body {
  margin: 0;
  padding: 0;
  color: var(--color-text);
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.5;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

h1 {
  text-wrap: balance;
}

ul > li::marker {
  color: var(--primary);
}

main [id] {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

a {
  color: var(--color-text);
  text-underline-offset: 0.2em;
}

a:focus-visible,
button.button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

button.button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

a.button,
button.button {
  display: inline-block;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.5rem;
  background-color: var(--primary);
  color: var(--color-surface);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease;
}

@media (hover: hover) {
  a.button:hover,
  button.button:hover {
    background-color: var(--primary-hover);
  }

  main a:not(.button):hover,
  footer a:hover {
    color: var(--primary);
  }
}

.center {
  display: block;
  margin: auto;
  align-self: center;
  text-align: center;
}

.fgprimary {
  color: var(--primary);
}

.align-center {
  align-items: center;
}

.text-center {
  text-align: center;
}

.image-full {
  width: 100%;
}

.image-block {
  display: block;
}

.margin-auto {
  margin: auto;
}

.list-unstyled {
  list-style: none;
}

/* ==========================================================================
   4. Inhaltsbreiten und Raster
   ========================================================================== */

.content {
  max-width: 80rem;
  margin-inline: auto;
  padding: 4rem 10vw;
}

@media screen and (max-width: 1000px) {
  .content {
    padding: 3rem 5vw;
  }
}

.smallcontent {
  padding: 3rem 5vw;
  max-width: 1000px;
  margin: auto;
}

.content > h1,
.smallcontent > h1 {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Raster: drei, zwei und eine Spalte je nach verfügbarer Breite. */
.threecolumns,
.twocolumns {
  display: grid;
  gap: var(--layout-gap);
}

.threecolumns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.twocolumns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1350px) {
  .threecolumns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .threecolumns,
  .twocolumns {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   5. Navigation: Desktop und Mobil
   ========================================================================== */

.nav-shell {
  min-height: var(--nav-height);
}

.navspacer {
  display: none;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--nav-height);
  background-color: rgb(255 255 255 / 88%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgb(30 35 45 / 8%);
  box-shadow: 0 0.2rem 1.5rem rgb(30 35 45 / 4%);
  font-size: 0.9375rem;
  line-height: 1.4;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.site-nav.is-scrolled,
.site-nav.is-menu-open {
  background-color: rgb(255 255 255 / 94%);
  box-shadow: 0 0.35rem 1.5rem rgb(30 35 45 / 9%);
}

.nav-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  pointer-events: none;
}

.nav-progress span {
  display: block;
  height: 100%;
  background-color: var(--primary);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
}

.site-nav [hidden] {
  display: none !important;
}

.nav-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 4rem);
  box-sizing: border-box;
  width: 100%;
  min-height: calc(var(--nav-height) - 1px);
  padding-inline: clamp(1.5rem, 4vw, 5rem);
}

.nav-logo {
  display: block;
  justify-self: start;
  flex-shrink: 0;
  border-radius: 0.25rem;
}

.nav-logo img {
  display: block;
  width: auto;
  height: 3.75rem;
}

.nav-panel {
  display: contents;
}

.nav-links,
.nav-dropdown {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 0.75vw, 0.875rem);
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.75rem clamp(0.75rem, 1.25vw, 1.125rem);
  border: 0;
  border-radius: 0.625rem;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-link[aria-current="page"],
.nav-link.is-current,
.nav-submenu-toggle[aria-expanded="true"] {
  background-color: #fff0f3;
  color: var(--primary);
}

.nav-submenu {
  position: relative;
}

.nav-submenu-toggle svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.nav-submenu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.625rem);
  right: 0;
  z-index: 1;
  box-sizing: border-box;
  min-width: 12rem;
  padding: 0.5rem;
  border: 1px solid var(--color-divider);
  border-radius: 0.875rem;
  background-color: var(--color-surface);
  box-shadow: 0 0.75rem 2rem rgb(30 35 45 / 12%);
}

.nav-dropdown a {
  display: block;
  box-sizing: border-box;
  min-height: 2.75rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  color: var(--color-text);
  text-decoration: none;
}

.nav-dropdown a[aria-current="page"] {
  background-color: #fff0f3;
  color: var(--primary);
  font-weight: 600;
}

.nav-contact {
  display: grid;
  gap: 0.125rem;
  flex-shrink: 0;
  justify-self: end;
  padding-left: clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--color-divider);
}

.nav-contact-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: fit-content;
  min-height: 1.5rem;
  border-radius: 0.25rem;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-contact-link img {
  flex-shrink: 0;
}

.nav-phone {
  font-variant-numeric: tabular-nums;
}

.nav-availability {
  padding: 0.1875rem 0.375rem;
  border-radius: 0.375rem;
  background-color: #fff0f3;
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
}

.site-nav :is(a, button):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.nav-toggle,
.nav-mobile-call {
  display: none;
}

@media (hover: hover) {
  .nav-link:hover,
  .nav-dropdown a:hover {
    background-color: #f5f6f8;
    color: var(--primary);
  }

  .nav-contact-link:hover {
    color: var(--primary);
  }
}

@media (max-width: 1000px) {
  :root {
    --nav-height: 4.5rem;
  }

  .site-nav:not([data-enhanced]) {
    position: relative;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 1rem;
    padding-inline: clamp(1rem, 5vw, 2rem);
  }

  .nav-logo {
    justify-self: start;
  }

  .nav-logo img {
    max-width: 100%;
    height: 3rem;
  }

  .nav-toggle:not([hidden]) {
    position: relative;
    display: grid;
    place-content: center;
    gap: 0.3125rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid #dfe2e6;
    border-radius: 0.875rem;
    background: rgb(255 255 255 / 75%);
    color: var(--color-text);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 1.25rem;
    height: 2px;
    border-radius: 1px;
    background-color: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .nav-toggle[aria-expanded="true"] {
    background-color: #fff0f3;
    color: var(--primary);
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(calc(0.3125rem + 2px)) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(calc(-0.3125rem - 2px)) rotate(-45deg);
  }

  .nav-panel {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding-block: 0.75rem 1rem;
  }

  .site-nav[data-enhanced] .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    box-sizing: border-box;
    max-height: calc(100dvh - var(--nav-height) - 1rem);
    padding: 1rem clamp(1rem, 5vw, 2rem) 1.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--color-divider);
    border-radius: 0 0 1rem 1rem;
    background-color: rgb(255 255 255 / 97%);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 1rem 1.5rem rgb(30 35 45 / 10%);
  }

  .nav-links {
    display: grid;
    gap: 0.5rem;
    margin-inline: 0;
  }

  .nav-link {
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.875rem;
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    margin: 0.25rem 0 0.5rem 0.875rem;
    padding: 0 0 0 0.625rem;
    border: 0;
    border-left: 2px solid var(--color-divider);
    border-radius: 0;
    box-shadow: none;
  }

  .nav-contact {
    gap: 0.25rem;
    margin: 1.25rem 0 0;
    padding: 1rem 0.875rem 0;
    border: 0;
    border-top: 1px solid var(--color-divider);
  }

  .nav-contact-link {
    min-height: 2.75rem;
  }

  .nav-mobile-call {
    position: fixed;
    z-index: 19;
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    display: block;
    border-radius: 0.65rem;
    box-shadow: 0 0.25rem 1rem rgb(30 35 45 / 15%);
  }

  .nav-mobile-call img {
    display: block;
    height: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav,
  .site-nav .nav-link,
  .site-nav .nav-submenu-toggle svg,
  .site-nav .nav-toggle span {
    transition: none;
  }
}


/* ==========================================================================
   6. Titelbilder
   ========================================================================== */

.thumbnail {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-height));
}

.thumbnail picture,
.thumbnail img,
.thumbnail video {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail .textbox {
  position: absolute;
  box-sizing: border-box;
  max-width: 50rem;
  bottom: 7vw;
  right: 7vw;
  padding: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.7;
  background-color: rgb(255 255 255 / 90%);
  border-left: 0.5rem solid var(--primary);
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 2rem rgb(30 35 45 / 10%);
}

.thumbnail .textbox > :first-child {
  margin-top: 0;
}

.thumbnail .textbox > :last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 1000px) {
  .thumbnail {
    height: auto;
    padding-top: clamp(16rem, 40svh, 25rem);
  }

  .thumbnail .textbox {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: none;
    padding: 1.75rem 1.5rem;
    border-left: none;
    border-top: 0.5rem solid var(--primary);
    border-radius: 0;
    box-shadow: none;
    font-size: 1rem;
  }
}

/* ==========================================================================
   7. Karten und Textbereiche
   ========================================================================== */

.card {
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-divider);
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card img,
.card picture {
  display: block;
  margin: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card h2 {
  position: relative;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  margin-bottom: 0.5rem;
  overflow-wrap: anywhere;
}

.card a {
  text-decoration: none;
}

.card .flex-right {
  margin-top: auto;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  padding: 0 1.5rem 1.5rem;
  gap: 1rem;
}

@media (max-width: 900px) {
  .card .flex-right {
    flex-direction: column;
  }

  .card .flex-right > .button {
    width: 100%;
  }
}

.card .flex-right > .button {
  display: block;
}

.card .text {
  min-width: 0;
  padding: 1.5rem;
  overflow-wrap: anywhere;
}

.card .text > :first-child {
  margin-top: 0;
}

.card .text > :last-child {
  margin-bottom: 0;
}

.icontext {
  text-align: center;
  line-height: 1.75;
}

.icontext img {
  display: block;
  width: 30%;
  margin: auto;
  margin-bottom: 2rem;
}

.textpage {
  max-width: 72ch;
  margin-inline: auto;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.textpage-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.textpage-header h1 {
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
}

.textpage p {
  margin: 0 0 1.25rem;
}

.textpage-subtitle,
.textpage-updated {
  color: #555b63;
}

.textpage-subtitle {
  text-align: center;
}

.textpage-updated {
  font-size: 0.9375rem;
}

.textpage-section {
  margin-top: clamp(2.25rem, 4vw, 3rem);
}

.textpage-section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.4;
}

.textpage-section h3 {
  margin: 2rem 0 1rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.125rem);
  line-height: 1.5;
}

.textpage-section ul {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.textpage-section li + li {
  margin-top: 0.625rem;
}

.textpage-header > :last-child,
.textpage-section > :last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   8. Partner und Kontaktkennzeichnung
   ========================================================================== */

.partner {
  text-align: center;
}

.partner img {
  display: block;
  width: 45%;
  max-width: 12rem;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin: auto;
}

.partner a {
  text-decoration: none;
}

.partner h3 {
  margin-bottom: 0;
  margin-top: 0.5rem;
}

.tag {
  padding: 4px 6px;
  background-color: var(--color-control);
  color: var(--color-text);
  border-radius: 6px;
}

/* ==========================================================================
   9. Zahlen und Zähler
   ========================================================================== */

.number h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.number__value {
  display: inline-block;
}

/* ==========================================================================
   10. Slider: gemeinsame Interaktion, Kundenstimmen und Galerie
   ========================================================================== */

[data-slider] {
  --slides-per-page: 1;
}

@media (min-width: 1100px) {
  [data-slider="testimonials"] {
    --slides-per-page: 2;
  }
}

[data-slider-viewport] {
  min-width: 0;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.native-slider-track {
  display: flex;
  transition: transform 300ms ease-out;
  cursor: grab;
}

.native-slider-track.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.native-slider-item {
  flex: 0 0 calc(100% / var(--slides-per-page));
  min-width: 0;
  box-sizing: border-box;
}

[data-slider] button:disabled {
  opacity: 0.4;
  cursor: default;
}

[data-slider] button:focus-visible,
[data-slider-viewport]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.testimonials-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.testimonials-header h1 {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.slider {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.25rem 0.75rem;
}

.slider [data-slider-viewport] {
  grid-row: 1;
  grid-column: 1 / -1;
}

.slider [data-slider-prev] {
  grid-row: 2;
  grid-column: 2;
}

.slider [data-slider-next] {
  grid-row: 2;
  grid-column: 3;
}

.slider button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #dfe2e6;
  background-color: var(--color-surface);
  color: var(--color-text);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms ease, color 160ms ease;
}

.slider button svg,
.project-gallery .slider-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-slider="testimonials"] .native-slider-item {
  display: flex;
  padding: 0.25rem 0.75rem;
}

.slider .testimonial-card {
  -webkit-user-select: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 1px solid #e8e9ed;
  border-radius: 1.25rem;
  background-color: var(--color-surface);
  box-shadow: 0 2px 4px rgb(30 35 45 / 3%);
}

.testimonial-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  background-color: #fff0f3;
  color: var(--primary);
}

.testimonial-mark::before {
  content: "\201c";
  height: 2.25rem;
  font-family: Georgia, serif;
  font-size: 3.75rem;
  line-height: 1;
}

.slider .testimonial {
  flex: 1;
  margin: 0 0 1.5rem;
  color: #34383d;
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #eef0f2;
}

.testimonial-avatar {
  display: grid;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background-color: #f1f2f4;
  color: #4b5058;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.testimonial-avatar::before {
  content: attr(data-initials);
}

.testimonial-author cite {
  font-size: 0.9375rem;
  font-style: normal;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (min-width: 1100px) {
  .slider .testimonial {
    font-size: 1.0625rem;
  }
}

@media (max-width: 600px) {
  [data-slider="testimonials"] .native-slider-item {
    padding-inline: 0.125rem;
  }
}

.project-slider {
  overflow: hidden;
  border: 1px solid var(--color-divider);
  border-radius: 1rem;
  background-color: #f7f7f8;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin-top: 1.25rem;
}

.project-gallery .slider-btn {
  appearance: none;
  box-sizing: border-box;
  display: flex;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  padding: 0;
  justify-content: center;
  align-items: center;
  border: 1px solid #dfe2e6;
  border-radius: 0.875rem;
  background-color: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.project-gallery .slider-btn:focus-visible {
  outline-offset: 3px;
}

.project-gallery .slider-btn:active:not(:disabled) {
  transform: scale(0.95);
  border-color: var(--primary-hover);
  background-color: var(--primary-hover);
  color: var(--color-surface);
}

@media (hover: hover) {
  .slider button:hover:not(:disabled),
  .project-gallery .slider-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--color-surface);
  }
}

.project-slider img {
  display: block;
  width: 100%;
  height: 50vh;
  object-fit: contain;
}

.project-gallery .slider-counter {
  min-width: 7rem;
  text-align: center;
  color: #555b63;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.project-gallery [data-slider-current] {
  color: var(--color-text);
  font-weight: 600;
}

.rating {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.rating-stars {
  display: flex;
  gap: 0.2rem;
}

.rating-score {
  font-size: 1.5rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.rating-label {
  grid-column: 1 / -1;
  color: #34383d;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

.star {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}

@media (prefers-reduced-motion: reduce) {
  .native-slider-track,
  a.button,
  button.button,
  .slider button,
  .project-gallery .slider-btn {
    transition: none;
  }
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

footer {
  border-top: 1px solid var(--color-divider);
  background-color: #f8f9fb;
  color: #4b5058;
  font-size: 0.9375rem;
  line-height: 1.75;
}

footer a {
  text-decoration: none;
  color: inherit;
}

.footer-inner {
  max-width: 80rem;
  margin-inline: auto;
  padding: 2.5rem 10vw 1.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.footer-company address {
  font: inherit;
}

.footer-company strong,
.footer-grid h2 {
  color: var(--color-text);
  font-weight: 600;
}

.footer-grid h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0.75rem;
}

.footer-navigation a,
.footer-social > a {
  display: inline-flex;
  box-sizing: border-box;
  min-height: 2.25rem;
  align-items: center;
  padding-block: 0.25rem;
}

.footer-contact a {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 0.375rem;
  overflow-wrap: anywhere;
}

.footer-contact span {
  color: #555b63;
}

.footer-memberships {
  margin: 1rem 0 0;
  color: #555b63;
  font-size: 0.8125rem;
  line-height: 1.85;
}

.footer-memberships a {
  text-decoration: underline;
}

.footer-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-social > a {
  gap: 0.75rem;
}

.footer-social i {
  width: 1.25rem;
  color: var(--primary);
  font-size: 1.25rem;
  text-align: center;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-divider);
  color: #555b63;
  font-size: 0.8125rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1000px) {
  .footer-inner {
    padding: 2rem 5vw calc(4.5rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
  }

  .footer-company {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   12. Startseite
   ========================================================================== */

.home {
  --home-surface: #f7f8fa;
  --home-copy: #4b5058;
  --home-gap: clamp(1.5rem, 3vw, 2.5rem);
  --home-card-radius: 1.25rem;
  --home-card-padding: clamp(1.5rem, 3vw, 2rem);
  --home-section-space: clamp(3.5rem, 6vw, 6rem);
}

.home .content:not(.home-values) {
  box-sizing: border-box;
  width: 100%;
  max-width: 84rem;
  padding: var(--home-section-space) clamp(1.25rem, 5vw, 4rem);
}

.home .content:not(.home-values) > h1,
.home .testimonials-header h1 {
  margin-top: 0;
  font-size: clamp(1.75rem, 2.7vw, 2.4rem);
  text-align: center;
}

.home-services .threecolumns,
.home-stats .threecolumns,
.home .twocolumns {
  gap: var(--home-gap);
}

.home a.button {
  border-radius: 0.75rem;
  font-size: 0.9375rem;
}

/* Einzelne Karten greifen die leichte Gestaltung der Kundenstimmen auf. */
.home-services .threecolumns,
.home-stats .threecolumns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-services .card .text {
  padding: var(--home-card-padding);
  color: var(--home-copy);
  font-size: 1rem;
  line-height: 1.75;
}

.home-services .card {
  border-color: #e8e9ed;
  border-radius: var(--home-card-radius);
  box-shadow: 0 2px 4px rgb(30 35 45 / 3%);
}

.home-services .threecolumns {
  row-gap: clamp(2rem, 4vw, 3.5rem);
}

.home-services .card h2 {
  margin: 0 0 1rem;
  color: var(--color-text);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  font-weight: 600;
}

.home-services .card .flex-right {
  flex-direction: row;
  padding: 0 var(--home-card-padding) var(--home-card-padding);
}

.home-services a.button {
  width: 100%;
  padding: 1rem 0 0;
  border-top: 1px solid #eef0f2;
  border-radius: 0;
  background: none;
  color: var(--primary);
  text-align: left;
}

@media (hover: hover) {
  .home-services a.button:hover {
    background: none;
    color: var(--primary-hover);
    text-decoration: underline;
  }
}

.home-partnership .twocolumns,
.home-careers .twocolumns {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.home-partnership .partner {
  display: grid;
  box-sizing: border-box;
  min-height: 15rem;
  padding: 2rem;
  place-items: center;
  border-radius: var(--home-card-radius);
  background-color: var(--home-surface);
}

.home-partnership .partner img {
  width: 80%;
  max-width: 19rem;
  aspect-ratio: auto;
}

.home .feature-copy {
  max-width: 60ch;
  color: var(--home-copy);
  font-size: 1.0625rem;
  line-height: 1.85;
}

.home .feature-copy p {
  margin: 0 0 2rem;
}

.home .feature-copy .center {
  margin: 0;
  text-align: left;
}

.home-careers .image-full {
  aspect-ratio: 4 / 3;
  border-radius: var(--home-card-radius);
  object-fit: cover;
}

/* Die Kennzahlen stehen ohne gemeinsamen Rahmen im freien Weißraum. */
.home-stats .number {
  padding: 2rem clamp(1rem, 2.5vw, 2rem);
  color: var(--home-copy);
  font-size: 1rem;
  line-height: 1.6;
}

.home-stats .number + .number {
  border-left: 1px solid var(--color-divider);
}

.home-stats .stat-value {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 0.875rem;
  line-height: 1.1;
}

.home-stats .number__value {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.home-stats .stat-unit {
  color: var(--color-text);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0;
}

@media (max-width: 1099px) {
  .home-services .threecolumns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-partnership .twocolumns,
  .home-careers .twocolumns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .home-services .threecolumns,
  .home-stats .threecolumns {
    grid-template-columns: 1fr;
  }

  .home-stats .threecolumns {
    gap: 0;
  }

  .home-stats .number + .number {
    border-top: 1px solid var(--color-divider);
    border-left: 0;
  }
}

/* ==========================================================================
   13. Seitenspezifische Details
   ========================================================================== */

.gallery-title {
  margin-top: 3rem;
}

@media (max-width: 1000px) {
  .gallery-title {
    margin-top: 1rem;
  }
}

.credits-title {
  margin-bottom: 3rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.partner-card {
  min-width: 0;
  text-decoration: none;
  transition: border-color 160ms ease;
}

.partner-logo {
  display: grid;
  box-sizing: border-box;
  height: 10rem;
  padding: 1.75rem;
  place-items: center;
  border-bottom: 1px solid var(--color-divider);
  background-color: var(--color-surface);
}

.partner-logo img {
  width: 100%;
  max-width: 14rem;
  height: 100%;
  max-height: 6.5rem;
  aspect-ratio: auto;
  object-fit: contain;
}

.partner-copy {
  padding: 1.5rem 1.5rem 1.25rem;
}

.partner-card h2 {
  margin: 0 0 0.75rem;
  color: var(--color-text);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
}

.partner-copy p {
  margin: 0;
  color: #4b5058;
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.partner-visit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  margin-top: auto;
  padding: 0 1.5rem 1.5rem;
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 600;
}

.partner-visit svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.partner-card:focus-visible .partner-visit {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (hover: hover) {
  .partner-card:hover {
    border-color: #d0d3d8;
  }

  .partner-card:hover .partner-visit {
    color: var(--primary-hover);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

@media (max-width: 1099px) {
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 649px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .partner-card {
    transition: none;
  }
}

.contact {
  --contact-card-padding: clamp(1.5rem, 2.5vw, 2rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.contact .contact-card .text {
  padding: var(--contact-card-padding);
  color: #4b5058;
  font-size: 1rem;
  line-height: 1.75;
}

.contact-label {
  display: block;
  margin-bottom: 0.75rem;
  color: #555b63;
  font-size: 0.8125rem;
  font-weight: 500;
}

.contact-card h2 {
  margin: 0 0 1rem;
  color: var(--color-text);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.4;
}

.contact-card p {
  margin: 0;
}

.contact-card address {
  margin-bottom: 1.25rem;
  color: var(--color-text);
  font: inherit;
}

.contact-card .text p a {
  text-decoration: underline;
}

.contact .contact-card .flex-right {
  flex-direction: row;
  justify-content: flex-end;
  padding: 1.25rem var(--contact-card-padding);
  border-top: 1px solid var(--color-divider);
  background-color: #fafafb;
}

.contact .contact-card .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: auto;
  font-size: 0.9375rem;
}

.contact-card .button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact .contact-copy-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-copy-status {
  flex-basis: 100%;
  color: #555b63;
  font-size: 0.875rem;
  text-align: right;
}

.contact-copy-status:empty {
  display: none;
}

@media (max-width: 1099px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 650px) and (max-width: 1099px) {
  .contact-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .contact-card > img {
    grid-row: 1 / 3;
    height: 100%;
    aspect-ratio: auto;
  }

  .contact-card .text,
  .contact-card .flex-right {
    grid-column: 2;
  }

}

@media (max-width: 649px) {
  .contact-card > img {
    aspect-ratio: 2 / 1;
  }

  .contact .contact-card .button {
    width: 100%;
  }
}

.careers {
  --careers-panel-padding: clamp(1.5rem, 3vw, 2rem);
  --careers-section-gap: clamp(2rem, 4vw, 3rem);
}

.careers-intro > p {
  margin: 0;
  color: #4b5058;
  line-height: 1.8;
}

.careers-benefits {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: #4b5058;
  line-height: 1.8;
}

.careers-benefits li + li {
  margin-top: 0.5rem;
}

.application-info {
  margin-top: var(--careers-section-gap);
}

.careers-openings > h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600;
}

.careers .application-intro {
  margin: 0;
  color: #4b5058;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.application-privacy {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-divider);
  border-radius: 0.5rem;
  background-color: #f7f8fa;
  color: #555b63;
  font-size: 0.875rem;
  line-height: 1.75;
}

.careers-openings {
  margin-top: var(--careers-section-gap);
}

.careers-openings > h2 {
  margin-bottom: 1.5rem;
}

.careers .job-card + .job-card {
  margin-top: 1.5rem;
}

.careers .job-card .text {
  padding: var(--careers-panel-padding);
  color: #4b5058;
  line-height: 1.8;
}

.job-card h3 {
  margin: 0 0 1.25rem;
  color: var(--color-text);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 600;
  line-height: 1.35;
}

.job-card ul {
  padding-left: 1.25rem;
}

.job-card li + li {
  margin-top: 0.5rem;
}

.careers .job-card .flex-right {
  flex-direction: row;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem var(--careers-panel-padding);
  border-top: 1px solid var(--color-divider);
  background-color: #fafafb;
}

.careers .job-card a.button {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
}

.careers .job-card a.button[href^="https://wa.me/"] {
  border-color: #dfe2e6;
  background-color: var(--color-surface);
  color: var(--color-text);
}

@media (hover: hover) {
  .careers .job-card a.button[href^="https://wa.me/"]:hover {
    border-color: var(--primary);
    background-color: #fff0f3;
    color: var(--primary);
  }
}

@media (max-width: 700px) {
  .careers .job-card a.button {
    width: 100%;
  }
}

.imprint-logo {
  display: block;
  width: 12rem;
  margin-top: 3rem;
}
