@import url("regler.css");

@font-face {
  font-family: Outfit;
  src: url("schrift/outfit.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blau: #173e9b;
  --tinte: #11264d;
  --tief: #11264d;
  --eis: #e8f4fd;
  --linie: #92afdc;
  --serif: Georgia, "Times New Roman", serif;
  font: 16px/1.45 Outfit, Arial, sans-serif;
  color: var(--tinte);
}

* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { background: white; }
a { color: var(--blau); text-underline-offset: .15em; }
a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }
.page-width { width: min(94%, 1280px); margin-inline: auto; }

.masthead, .footer { background: var(--blau); color: white; }
.masthead a, .footer a { color: inherit; }
.masthead .page-width {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  padding-block: .45rem;
}
.wordmark {
  font: bold clamp(1.6rem, 3.2vw, 2.45rem)/1.1 var(--serif);
  text-decoration: none;
}
.masthead nav { display: flex; flex-wrap: wrap; gap: .2rem clamp(.8rem, 3vw, 2.5rem); }
.masthead nav a { text-decoration: none; font-weight: 600; }
.masthead nav a:hover, .footer a:hover { text-decoration: underline; }

.hero {
  position: relative;
  min-height: clamp(310px, 24vw, 400px);
  display: grid;
  align-items: center;
  background: var(--eis);
}
.hero img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  border-radius: 0 0 0 9% / 0 0 0 100%;
}
.hero-text {
  position: relative;
  width: 37%;
  padding: 2rem 1rem 2rem max(3%, calc((100% - 1280px) / 2));
}
.hero h1 {
  font: bold clamp(2.15rem, 3.8vw, 3.85rem)/1.03 var(--serif);
  letter-spacing: -.025em;
}
.hero-text a {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.75vw, 1.5rem);
  font-weight: 650;
}

.produkte {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: 1.2rem 2rem;
}
.produkte article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 clamp(1rem, 3vw, 3rem);
}
.produkte article + article { border-inline-start: 1px solid var(--linie); }
.produkte img {
  align-self: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1.17;
  object-fit: contain;
  margin-bottom: .65rem;
}
.produkte h2, .kurzfaq h2, .labor h2 {
  font-family: var(--serif);
  line-height: 1.13;
}
.produkte h2 { font-size: clamp(1.25rem, 2.1vw, 1.9rem); overflow-wrap: anywhere; }
.produkte p { margin: .45rem 0 1rem; color: #18253b; }
.button {
  margin-top: auto;
  background: var(--blau);
  color: white;
  padding: .6rem 1.15rem;
  border-radius: .65rem;
  font-weight: 650;
  text-decoration: none;
}
.button:hover { background: #102c76; text-decoration: underline; }

.testbereich { margin-block: 0 2.25rem; }
.labor {
  margin-top: 0;
  padding: clamp(1.1rem, 3.5vw, 3rem);
  border-radius: 1rem;
  background: var(--tief);
}
.labor::before { content: none; }
.labor h2, .kurzfaq h2 { font-size: clamp(1.85rem, 3.5vw, 3rem); }
.labor .kopfzeile p { margin-top: .5rem; }
.labor .fuss-zeile, .achse { color: #b6c8e6; }
.labor a { color: #d3e8ff; }
.kuevetten { margin-top: 1.5rem; }
.kuevette { border-radius: 1rem; padding: clamp(.8rem, 2vw, 1.6rem); gap: clamp(.85rem, 2.4vw, 1.8rem); }
.glas { width: clamp(46px, 7vw, 96px); height: clamp(108px, 15vw, 190px); }
[data-test="cl"] .glas { --f: #f3bbd6; }
.regler:disabled { opacity: .65; cursor: default; }
.messwert { font-size: clamp(2rem, 4vw, 3.6rem); }

.kurzfaq { background: var(--eis); border-top: 1px solid var(--linie); }
.kurzfaq .page-width {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr);
  gap: clamp(1rem, 4vw, 4rem);
  padding-block: 1.45rem;
}
.kurzfaq details { border-bottom: 1px solid var(--linie); }
.kurzfaq summary { cursor: pointer; padding: .55rem .25rem; }
.kurzfaq details p { padding: .15rem 1.1rem .85rem; max-width: 67ch; }
.alle-fragen { display: inline-block; margin-top: .75rem; font-weight: 650; }
.footer .page-width { display: flex; gap: 1.3rem; padding-block: .7rem; font-size: .9rem; }
.footer a { text-decoration: none; }

@media (max-width: 900px) {
  .hero-text { width: 44%; }
  .hero img { width: 63%; }
  .produkte article { padding-inline: .85rem; }
  .produkte h2 { font-size: 1.35rem; }
  .kuevette .urteil { padding-inline: .65rem; }
}

@media (max-width: 660px) {
  .hero { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .hero img { position: static; width: 100%; height: auto; aspect-ratio: 2 / 1; border-radius: 0; }
  .hero-text { width: auto; padding: 1.6rem 4%; }
  .desktop-umbruch { display: none; }
  .produkte, .kuevetten, .kurzfaq .page-width { grid-template-columns: 1fr; }
  .produkte article { padding: 1.25rem .35rem; }
  .produkte article + article { border-inline-start: 0; border-top: 1px solid var(--linie); }
  .produkte img { width: min(100%, 290px); }
}

@media (prefers-reduced-motion: reduce) {
  .glas, .glas::before, .glas b { animation: none; transition: none; }
}
