:root {
  --brand-pink: #e5007d;
  --text: #111111;
  --muted: #6d6d6d;
  --line: #dedede;
  --surface: #ffffff;
  --page: #f5f5f3;
  --slider-height: 86px;
  --footer-height: 46px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* Startseite */
.home-page {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background: url("../images/background.jpg") center center / cover no-repeat;
}

.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.14));
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 42px 24px calc(var(--slider-height) + var(--footer-height) + 38px);
}

.brand {
  display: inline-block;
  text-decoration: none;
}

.brand-home {
  padding: 17px 24px 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
}

.brand-logo {
  width: 230px;
  height: auto;
}

.home-bottom {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -5px 22px rgba(0, 0, 0, 0.18);
}

.country-slider {
  position: relative;
  width: 100%;
  height: var(--slider-height);
  padding: 0 52px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.country-slider__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.country-slider__track {
  height: 100%;
  display: flex;
  align-items: stretch;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.country-slide {
  flex: 0 0 16.6666667%;
  min-width: 0;
  padding: 10px 5px;
}

.country-slide__link {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 14px;
  border: 1px solid #e2e2e2;
  background: #fff;
  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.country-slide__link:hover,
.country-slide__link:focus-visible {
  border-color: var(--brand-pink);
  color: var(--brand-pink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
  outline: none;
}

.country-slide__link:focus-visible {
  box-shadow: 0 0 0 3px rgba(229, 0, 125, 0.18), 0 4px 14px rgba(0, 0, 0, 0.10);
}

.country-slide__flag {
  width: 30px;
  height: 15px;
  flex: 0 0 30px;
  object-fit: cover;
}

.country-slider__control {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: var(--brand-pink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.country-slider__control:hover,
.country-slider__control:focus-visible {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
  outline: none;
}

.country-slider__control:focus-visible {
  box-shadow: 0 0 0 3px rgba(229, 0, 125, 0.20), 0 5px 14px rgba(0, 0, 0, 0.22);
}

.country-slider__control--prev {
  left: 10px;
}

.country-slider__control--next {
  right: 10px;
}

.country-slider__control svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  min-height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 10px 24px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer-home {
  border-top: 1px solid #ececec;
  background: #fff;
}

.site-footer a {
  color: #333;
  text-underline-offset: 3px;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brand-pink);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Impressum */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.legal-header {
  max-width: 920px;
  width: calc(100% - 48px);
  margin: 0 auto;
  padding: 34px 0 24px;
  border-bottom: 1px solid var(--line);
}

.brand-small {
  margin: 0;
}

.brand-small .brand-logo {
  width: 150px;
}

.legal-content {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 72px;
  line-height: 1.65;
}

.legal-content h1 {
  margin: 0 0 34px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
}

.legal-content p {
  max-width: 760px;
  margin: 0 0 24px;
}

.legal-content a {
  color: #191919;
  text-decoration-color: #b7b7b7;
  text-underline-offset: 3px;
}

.legal-content a:hover,
.legal-content a:focus-visible {
  color: var(--brand-pink);
  text-decoration-color: currentColor;
}

.site-footer-legal {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 1200px) {
  .country-slide {
    flex-basis: 25%;
  }
}

@media (max-width: 800px) {
  :root {
    --slider-height: 82px;
  }

  .site-shell {
    padding-top: 28px;
  }

  .brand-home {
    padding: 14px 20px 13px;
  }

  .brand-logo {
    width: 205px;
  }

  .country-slide {
    flex-basis: 50%;
  }
}

@media (max-width: 520px) {
  :root {
    --slider-height: 78px;
    --footer-height: 52px;
  }

  .home-page {
    background-position: center center;
  }

  .site-shell {
    align-items: flex-start;
    padding: 20px 14px calc(var(--slider-height) + var(--footer-height) + 24px);
  }

  .brand-home {
    padding: 12px 16px 11px;
  }

  .brand-logo {
    width: 176px;
  }

  .country-slider {
    padding: 0 42px;
  }

  .country-slide {
    flex-basis: 100%;
    padding: 8px 4px;
  }

  .country-slide__link {
    font-size: 15px;
  }

  .country-slider__control {
    width: 32px;
    height: 32px;
  }

  .country-slider__control--prev {
    left: 6px;
  }

  .country-slider__control--next {
    right: 6px;
  }

  .site-footer {
    min-height: var(--footer-height);
    gap: 14px;
    padding: 9px 14px;
    font-size: 12px;
  }

  .legal-header,
  .legal-content {
    width: calc(100% - 32px);
  }

  .legal-header {
    padding-top: 25px;
  }

  .legal-content {
    padding: 38px 0 54px;
  }

  .brand-small .brand-logo {
    width: 125px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
