/* ==========================================================================
   Mondsilber – Stylesheet
   Basis: 18px = 1rem (wie bisherige Website)
   ========================================================================== */

/* Schriften
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Klavika";
  src: url("../font/KlavikaWebBasic_WOFF/KlavikaWebBasicLight.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Klavika";
  src: url("../font/KlavikaWebBasic_WOFF/KlavikaWebBasicLightItalic.woff") format("woff");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Klavika";
  src: url("../font/KlavikaWebBasic_WOFF/KlavikaWebBasicRegular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Klavika";
  src: url("../font/KlavikaWebBasic_WOFF/KlavikaWebBasicRegularItalic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Klavika";
  src: url("../font/KlavikaWebBasic_WOFF/KlavikaWebBasicMedium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Klavika";
  src: url("../font/KlavikaWebBasic_WOFF/KlavikaWebBasicMediumItalic.woff") format("woff");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Klavika";
  src: url("../font/KlavikaWebBasic_WOFF/KlavikaWebBasicBold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Variablen
   -------------------------------------------------------------------------- */
:root {
  --black: #000;
  --line: #1c1c1c;
  --white: #fff;
  --yellow: #ffd300;

  --content-max: 1640px;
  --outer: clamp(20px, 7.3vw, 140px);
  --gap: 0.667rem;

  --fs-display: clamp(2.222rem, 4.69vw, 5rem);
  --fs-text: 1.222rem;
  --lh-text: 1.5556;

  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Tablet (iPad hoch und quer): einheitliche Überschriftengröße */
@media (min-width: 768px) and (max-width: 1169.98px) {
  :root {
    --fs-display: 2.667rem;
  }
}

@media (max-width: 543.98px) {
  :root {
    --fs-text: 1.111rem;
    --lh-text: 1.4444;
  }
}

/* Grundlagen
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "Klavika", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: var(--fs-text);
  line-height: var(--lh-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
address {
  margin: 0;
}

a {
  color: inherit;
}

a:hover {
  font-style: italic;
}

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  box-sizing: content-box;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--outer);
}

.display {
  font-size: var(--fs-display);
  line-height: 1;
  font-weight: 300;
  text-transform: uppercase;
  hyphens: manual;
}

/* Seitenrahmen mit Seifenblasen oben
   -------------------------------------------------------------------------- */
.page {
  background: url("../images/h_header.png") no-repeat 50% 0;
}

.site-header {
  position: relative;
}

.logo {
  position: absolute;
  top: 1.389rem;
  left: var(--outer);
  width: 4.444rem;
}

.logo img {
  width: 100%;
  height: auto;
}

@media (max-width: 1169.98px) {
  .logo { width: 3.889rem; }
}
@media (max-width: 991.98px) {
  .logo { width: 3.333rem; }
}
@media (max-width: 543.98px) {
  .logo { width: 3.056rem; }
}

/* Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 7.222rem;
  padding-bottom: 3.889rem;
}

/* Desktop (breiter als iPad Pro quer mit 1366px):
   .container ist content-box: 7,222 + 21,111 + 5 = 33,333rem bis zur Slideshow */
@media (min-width: 1367px) {
  .hero {
    min-height: 21.111rem;
    padding-bottom: 5rem;
  }
}

.hero__title {
  display: block;
}

.hero__title strong {
  display: block;
  font-weight: 700;
}

.hero__title span {
  display: block;
}

/* Blinkender Schreib-Cursor hinter dem getippten Text */
.js .hero__typed::after {
  content: "";
  margin-left: 0.05em;
  border-right: 0.05em solid currentColor;
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    border-color: transparent;
  }
}

@media (max-width: 543.98px) {
  .hero {
    padding-top: 6.111rem;
    padding-bottom: 2.778rem;
  }
}

/* Slideshow
   -------------------------------------------------------------------------- */
.slideshow {
  position: relative;
  aspect-ratio: 5 / 3;
  max-width: 100%;
  overflow: hidden;
  background: #f2f2f2;
  touch-action: pan-y;
}

.slideshow__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(100%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.slideshow__slide.is-active {
  transform: translateX(0);
}

.slideshow__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.slideshow__nav--prev { left: 0; }
.slideshow__nav--next { right: 0; }

/* Pfeil nur bei Tastaturbedienung sichtbar – Mausnutzer sehen den Cursor-Pfeil */
.slideshow__nav-icon {
  position: absolute;
  top: 50%;
  width: 3.556rem;
  height: 3.556rem;
  padding: 1.1rem;
  border-radius: 50%;
  background: var(--black);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.2s;
}

.slideshow__nav--prev .slideshow__nav-icon { left: 1.5rem; }
.slideshow__nav--next .slideshow__nav-icon { right: 1.5rem; transform: translateY(-50%) scaleX(-1); }

.slideshow__nav:focus-visible {
  outline: none;
}

.slideshow__nav:focus-visible .slideshow__nav-icon {
  opacity: 1;
}

.no-js .slideshow__nav {
  display: none;
}

/* Kund:innen
   -------------------------------------------------------------------------- */
.clients {
  padding-top: 5.556rem;
}

.clients__heading {
  padding-bottom: 3.556rem;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.clients__col {
  grid-column: span 5;
  padding-right: 2.778rem;
}

.clients__group {
  margin-bottom: 1.111rem;
  padding-bottom: 1.111rem;
  border-bottom: 1px solid var(--line);
}

.clients__title {
  font-size: inherit;
  line-height: inherit;
  font-weight: 500;
  text-transform: uppercase;
}

.clients__list {
  padding: 0;
  list-style: none;
}

.clients__more {
  padding-top: 0.5rem;
}

@media (max-width: 1169.98px) {
  .clients__col { grid-column: span 6; }
}

@media (max-width: 767.98px) {
  .clients { padding-top: 3.556rem; }
  .clients__col {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 543.98px) {
  .clients__heading { padding-bottom: 2.222rem; }
}

/* Kontakt / Footer
   -------------------------------------------------------------------------- */
.contact {
  padding-top: 5.556rem;
  padding-bottom: 6.667rem;
  background: url("../images/h_footer.png") no-repeat 50% 100%;
}

.contact__heading {
  padding-bottom: 4.444rem;
}

.contact__row {
  display: grid;
  grid-template-columns: 5fr 6fr;
  column-gap: var(--gap);
  align-items: start;
  width: calc(100% * 11 / 12);
  margin-inline: auto;
}

.contact__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.556rem;
}

@media (min-width: 992px) {
  .contact__buttons {
    justify-self: end;
    width: 100%;
    max-width: 26.667rem;
  }
}

.contact__address {
  padding-left: 15%;
  font-style: normal;
}

.button {
  display: block;
  padding: 0.722rem 2.778rem;
  border: 0.111rem solid var(--black);
  border-radius: 2.222rem;
  font-size: 1.444rem;
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.7s var(--ease-out-expo),
    border-color 0.7s var(--ease-out-expo),
    color 0.7s var(--ease-out-expo);
}

.button--solid {
  background: var(--black);
  color: var(--white);
}

.button--outline {
  background: transparent;
  color: var(--black);
}

.button:hover,
.button:focus-visible {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

.button--inline {
  display: inline-block;
  padding-inline: 2.5rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3.333rem;
}

.footer-meta__line {
  width: calc(100% * 2 / 12 - 4.444rem);
  min-width: 6rem;
  height: 0.111rem;
  background: var(--black);
}

.footer-meta__link {
  padding-top: 1.389rem;
  text-decoration: none;
}

.footer-meta__logo {
  width: 2.778rem;
  height: auto;
  margin-top: 1.389rem;
}

@media (max-width: 1169.98px) {
  .button { padding-inline: 1.111rem; }
}

@media (max-width: 991.98px) {
  .contact__row {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .contact__address { padding-left: 10%; }
  .button { font-size: 1.222rem; }
  .footer-meta__line { width: calc(100% * 4 / 12 - 4.444rem); }
}

@media (max-width: 767.98px) {
  .contact__heading { padding-bottom: 3.333rem; }
  .contact__row {
    grid-template-columns: 1fr;
    row-gap: 3.333rem;
  }
  .contact__address { padding-left: 0; }
}

@media (max-width: 543.98px) {
  .contact {
    padding-top: 2.778rem;
    background-size: 160% auto;
  }
  .contact__row { row-gap: 2.222rem; }
  .footer-meta__logo { width: 2.222rem; }
}

/* Impressum & Datenschutz
   -------------------------------------------------------------------------- */
.legal {
  padding-bottom: 7.778rem;
}

.legal__title {
  padding-top: 7.222rem;
  padding-bottom: 5.111rem;
  overflow-wrap: break-word;
}

.legal__body {
  max-width: calc((100% - 11 * var(--gap)) * 8 / 12 + 7 * var(--gap));
}

.legal__body h2 {
  margin-bottom: 1.778rem;
  font-size: 1.778rem;
  line-height: 2rem;
  font-weight: 300;
}

.legal__body h3 {
  margin-top: 2.222rem;
  margin-bottom: 1.667rem;
  font-size: 1.333rem;
  line-height: 1.778rem;
  font-weight: 500;
}

.legal__body h2 + h3 {
  margin-top: 0;
}

.legal__body h4 {
  margin-bottom: 1.667rem;
  font-size: var(--fs-text);
  line-height: var(--lh-text);
  font-weight: 500;
}

.legal__body p,
.legal__body ul {
  margin-bottom: 1.556rem;
}

.legal__body strong {
  font-weight: 500;
}

.legal__body ul {
  padding-left: 1.2em;
}

.legal__body li + li {
  margin-top: 0.5rem;
}

.legal__rule {
  width: 27.222rem;
  max-width: 100%;
  height: 0.111rem;
  margin: 3.278rem 0;
  border: 0;
  background: var(--black);
}

.legal__back {
  padding-top: 2.778rem;
}

@media (max-width: 991.98px) {
  .legal__body { max-width: none; }
}

@media (max-width: 543.98px) {
  .legal__title {
    padding-top: 6.111rem;
    padding-bottom: 2.778rem;
  }
  .legal__body h2 {
    font-size: 1.444rem;
    line-height: 1.778rem;
  }
  .legal__body h3 {
    font-size: 1.222rem;
    line-height: 1.667rem;
  }
  .legal { padding-bottom: 4.444rem; }
}

/* Eigener Cursor (nur Geräte mit Maus)
   -------------------------------------------------------------------------- */
.has-custom-cursor,
.has-custom-cursor * {
  cursor: none !important;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor__inner {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--black);
  transform: translate(-50%, -50%);
  transition:
    width 0.4s var(--ease-out-expo),
    height 0.4s var(--ease-out-expo),
    background-color 0.2s;
}

.cursor[data-state="link"] .cursor__inner {
  width: 45px;
  height: 45px;
  background: var(--yellow);
}

.cursor__arrow {
  width: 40%;
  height: auto;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor[data-state="prev"] .cursor__inner,
.cursor[data-state="next"] .cursor__inner {
  width: 64px;
  height: 64px;
}

.cursor[data-state="prev"] .cursor__arrow,
.cursor[data-state="next"] .cursor__arrow {
  opacity: 1;
}

.cursor[data-state="next"] .cursor__arrow {
  transform: scaleX(-1);
}

/* Reduzierte Bewegung
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .slideshow__slide,
  .button,
  .cursor__inner {
    transition: none;
  }
  .js .hero__typed::after {
    animation: none;
  }
}
