@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 400;
  src: url("./assets/fonts/static/Quicksand-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 700;
  src: url("./assets/fonts/static/Quicksand-Bold.ttf") format("truetype");
}

:root {
  --ink: #041a22;
  --deep: #003f50;
  --deep-2: #0f566d;
  --footer-blue: #003449;
  --aqua: #78ccd3;
  --cyan: #10cae8;
  --pale: #c9f5f7;
  --pale-2: #e7f6f8;
  --orange: #ffa60a;
  --pink: #ff1974;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(0, 33, 43, 0.2);
  --content: min(760px, calc(100vw - 48px));
  --wide: min(1320px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--deep);
  font-family: "Quicksand", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.45;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

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

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(22px, 3.6vw, 44px);
  color: var(--deep);
  background: var(--aqua);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: clamp(74px, 8vw, 96px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 7vw, 100px);
  font-weight: 700;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
}

.nav-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--ink);
}

.main-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--deep);
}

.section {
  position: relative;
  overflow-x: hidden;
}

.section-aqua {
  background: var(--aqua);
}

.section-home {
  min-height: calc(100vh - 76px);
  padding: clamp(56px, 8vw, 104px) 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.82), transparent 32%),
    linear-gradient(135deg, #1ab9ca 0%, #bdf4f2 100%);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  width: var(--wide);
  margin: 0 auto;
}

.home-copy {
  max-width: 660px;
}

.home-copy h1,
.page-title,
.section h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: 0;
}

.home-copy p,
.section-narrow p {
  margin: 22px 0 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.home-visual img {
  width: min(760px, 100%);
  margin-left: auto;
}

.section-narrow {
  width: var(--content);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) 0 clamp(38px, 6vw, 70px);
}

.section-kicker {
  margin: 0 0 26px;
  color: var(--deep);
  font-weight: 700;
}

.icon-label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.icon-label img,
.svg-icon {
  display: block;
  width: 1.1em;
  height: 1.1em;
  object-fit: contain;
}

.section h2 {
  font-size: clamp(32px, 4vw, 48px);
}

.section h3 {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.15;
}

.page-title {
  font-size: clamp(32px, 4vw, 52px);
}

.offer-copy h2,
.info-card h2 {
  margin: 0 0 20px;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.15;
}

.photo-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: var(--wide);
  margin: 8px auto clamp(52px, 7vw, 90px);
}

.photo-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.photo-strip.is-changing img {
  opacity: 0.76;
  transform: scale(0.995);
}

.photo-strip img:nth-of-type(n + 4) {
  display: none;
}

.photo-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(0, 33, 43, 0.16);
  transform: translateY(-50%);
  cursor: pointer;
}

.photo-arrow:hover,
.photo-arrow:focus-visible {
  background: var(--white);
}

.photo-arrow-left {
  left: 12px;
}

.photo-arrow-right {
  right: 12px;
}

.home-teasers {
  padding: clamp(72px, 9vw, 120px) 0;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: var(--wide);
  margin: 0 auto;
}

.teaser-card {
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 280px;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 8px;
  color: var(--ink);
  background: var(--pale);
  text-decoration: none;
  box-shadow: 0 16px 42px rgba(0, 64, 80, 0.12);
}

.teaser-card:hover,
.teaser-card:focus-visible {
  transform: translateY(-2px);
}

.teaser-card h2 {
  font-size: clamp(26px, 3vw, 36px);
}

/* Isolated Home redesign preview. This page is intentionally not wired to /. */
body[data-page="home-preview"] {
  background: var(--deep);
}

body[data-page="home-preview"] .app-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    backdrop-filter 180ms ease;
}

body[data-page="home-preview"] .app-header.is-scrolled {
  background: rgba(120, 204, 211, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0, 52, 73, 0.1);
}

.preview-home-hero {
  overflow: visible;
  padding: 0;
  background:
    radial-gradient(circle at 66% 12%, rgba(255, 255, 255, 0.82), transparent 29%),
    var(--aqua);
}

.preview-hero-visual {
  width: min(1280px, calc(100vw - 24px));
  margin: -155px auto 0;
  transform: translateX(clamp(36px, 7vw, 108px));
}

.preview-hero-visual img {
  width: 100%;
  height: auto;
}

.preview-teaser-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(1160px, calc(100vw - 40px));
  margin: -118px auto -76px;
}

.preview-teaser {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  min-height: 200px;
  padding: 20px 24px 24px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(0, 63, 80, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.preview-teaser:hover,
.preview-teaser:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(0, 63, 80, 0.24);
}

.preview-teaser:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.preview-teaser--school {
  background: #11c8e1;
}

.preview-teaser--measurements {
  background: #22a7b5;
}

.preview-teaser img {
  width: min(310px, 88%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 6px;
  object-fit: cover;
}

.preview-home-content {
  padding: clamp(148px, 14vw, 190px) 0 clamp(110px, 14vw, 190px);
  color: var(--white);
  background: var(--deep-2);
}

.preview-intro {
  width: min(760px, calc(100vw - 48px));
  margin: 0 auto clamp(64px, 8vw, 104px);
}

.preview-intro h1 {
  margin: 0 0 28px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
}

.preview-intro p {
  margin: 0;
  color: var(--pale);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.42;
}

.preview-home-gallery {
  margin-bottom: clamp(100px, 11vw, 150px);
}

.preview-events {
  width: min(720px, calc(100vw - 48px));
  margin: 0 auto;
}

.preview-events-intro,
.preview-events-list {
  border-radius: 8px;
  color: var(--ink);
}

.preview-events-intro {
  padding: clamp(30px, 4vw, 46px);
  background: var(--orange);
}

.preview-events-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-weight: 700;
}

.preview-calendar-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 17px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.preview-calendar-icon::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 0;
  left: 0;
  border-top: 2px solid currentColor;
}

.preview-calendar-icon::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 3px;
  width: 7px;
  height: 4px;
  border-right: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.preview-events-intro h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 3vw, 36px);
}

.preview-events-intro > p:last-child {
  margin: 0;
  line-height: 1.4;
}

.preview-events-list {
  display: grid;
  gap: 54px;
  margin-top: 28px;
  padding: clamp(30px, 4vw, 46px);
  background: var(--pale);
}

.preview-events-list section {
  display: grid;
  gap: 22px;
}

.preview-events-list h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 17px;
}

.preview-events-list ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-events-list li {
  display: grid;
  grid-template-columns: 110px 30px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.preview-events-list a {
  text-underline-offset: 3px;
}

.preview-event-empty {
  margin: 0;
}

.app-footer {
  position: relative;
  min-height: 0;
  padding: clamp(84px, 7vw, 108px) max(28px, calc((100vw - 1180px) / 2)) 42px;
  color: var(--white);
  background-color: var(--footer-blue);
}

.app-footer::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: calc(100% - 1px);
  left: 0;
  height: clamp(28px, 2.4vw, 42px);
  background-image: url("./assets/shapes/waves.svg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: max(100%, 860px) auto;
  pointer-events: none;
}

.app-footer-content {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "intro intro intro intro nav nav nav nav contact contact contact contact"
    "partners partners partners partners partners partners partners partners partners partners partners partners"
    "legal legal legal legal legal legal legal legal legal legal legal legal";
  gap: clamp(42px, 4.5vw, 60px) 30px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.app-footer-intro {
  display: grid;
  grid-area: intro;
  gap: 20px;
  align-content: start;
}

.app-footer-intro p {
  max-width: 280px;
  margin: 0;
  font-weight: 700;
}

.app-footer-brand {
  align-self: start;
}

.app-footer-brand img {
  width: 126px;
  filter: brightness(0) saturate(100%) invert(77%) sepia(69%) saturate(2078%) hue-rotate(139deg) brightness(93%) contrast(91%);
}

.app-footer-nav {
  display: grid;
  grid-area: nav;
  gap: 10px;
  align-content: start;
}

.app-footer-heading {
  margin-bottom: 4px;
  font-size: 15px;
}

.app-footer a {
  width: fit-content;
  color: inherit;
  text-underline-offset: 4px;
}

.app-footer-nav a {
  text-decoration: none;
}

.app-footer-nav a:hover,
.app-footer-nav a:focus-visible,
.app-footer-contact a:hover,
.app-footer-contact a:focus-visible,
.app-footer-legal a:hover,
.app-footer-legal a:focus-visible {
  text-decoration: underline;
}

.app-footer-contact {
  display: grid;
  grid-area: contact;
  align-content: start;
  gap: 6px;
  font-size: 15px;
  font-style: normal;
}

.app-footer-contact strong {
  margin-bottom: 10px;
}

.app-footer-contact a {
  text-decoration: none;
}

.app-footer-partners {
  display: grid;
  grid-area: partners;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14px;
}

.app-footer-partners > div {
  display: grid;
  gap: 14px;
  align-content: start;
}

.app-footer-partners > div > span {
  min-height: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.app-footer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  align-items: center;
}

.app-footer-logos img,
.app-footer-supporter img {
  width: auto;
  height: 52px;
  max-width: 142px;
  object-fit: contain;
}

.app-footer-logos a:first-child img {
  height: 62px;
}

.app-footer-logos a:nth-child(3) img {
  height: 50px;
  max-width: 150px;
}

.app-footer-supporter img {
  height: 68px;
  max-width: 116px;
}

.app-footer-supporter {
  display: flex;
  align-items: center;
  min-height: 68px;
}

.app-footer-legal {
  display: flex;
  grid-area: legal;
  flex-wrap: wrap;
  gap: 9px 16px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.app-footer-legal span:last-child {
  margin-left: auto;
}

.app-footer-legal a {
  text-decoration: none;
}

.app-footer-legal [aria-disabled="true"] {
  opacity: 0.72;
}

.measurement-info > p a {
  font-weight: 700;
  text-underline-offset: 3px;
}

.offer-copy {
  padding-top: 0;
  padding-bottom: clamp(76px, 8vw, 120px);
}

body[data-page="schulangebot"] .section-aqua > .section-narrow:first-child {
  width: min(760px, calc(100vw - 48px));
  padding-top: clamp(58px, 8vw, 88px);
  padding-bottom: clamp(54px, 6vw, 76px);
}

body[data-page="schulangebot"] .section-aqua > .section-narrow:first-child .section-kicker {
  margin-bottom: clamp(26px, 4vw, 42px);
  font-size: clamp(15px, 1.2vw, 18px);
}

body[data-page="schulangebot"] .section-aqua > .section-narrow:first-child .page-title {
  margin-bottom: clamp(22px, 3vw, 30px);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

body[data-page="schulangebot"] .section-aqua > .section-narrow:first-child p:not(.section-kicker),
body[data-page="schulangebot"] .offer-copy {
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.25;
}

body[data-page="schulangebot"] .callout-card .button {
  justify-self: center;
  min-width: min(220px, 100%);
}

body[data-page="schulangebot"] .dark-band {
  padding-bottom: clamp(110px, 13vw, 180px);
  background: #134a65;
}

.offer-copy ul {
  margin: 0 0 30px;
  padding-left: 24px;
}

.wave-divider {
  height: clamp(38px, 4vw, 54px);
  margin-bottom: -1px;
  background-color: var(--aqua);
  background-image: url("./assets/shapes/waves-light.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
}

.dark-band {
  padding: clamp(74px, 10vw, 130px) 0 clamp(110px, 14vw, 190px);
  color: var(--pale);
  background: var(--deep-2);
}

.callout-card,
.info-card {
  width: var(--content);
  margin: 0 auto;
  border-radius: 8px;
}

.callout-card {
  display: grid;
  gap: 28px;
  padding: clamp(28px, 4vw, 44px);
  color: var(--ink);
  background: var(--orange);
}

.callout-card p {
  max-width: 620px;
  margin: 0;
  font-weight: 700;
}

.info-card {
  margin-top: clamp(56px, 7vw, 86px);
  padding: clamp(30px, 4vw, 46px);
  color: var(--ink);
  background: var(--pale);
}

.info-card h2:not(:first-child),
.info-card h3:not(:first-child) {
  margin-top: 42px;
}

.icon-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-icon {
  position: relative;
  flex: 0 0 auto;
  width: 1.2em;
  height: 1.2em;
  color: currentColor;
}

.app-icon::before,
.app-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.app-icon-info {
  border: 3px solid currentColor;
  border-radius: 50%;
}

.app-icon-info::before {
  left: 50%;
  top: 42%;
  width: 3px;
  height: 34%;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.app-icon-info::after {
  left: 50%;
  top: 22%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.app-icon-download::before {
  left: 50%;
  top: 3%;
  width: 3px;
  height: 52%;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.app-icon-download::after {
  left: 50%;
  top: 36%;
  width: 42%;
  height: 42%;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.app-icon-download {
  border-bottom: 3px solid currentColor;
}

.app-icon-download {
  box-shadow:
    inset 3px -3px 0 -1px currentColor,
    inset -3px -3px 0 -1px currentColor;
}

.app-icon-file {
  border: 3px solid currentColor;
  border-radius: 3px;
}

.app-icon-file::before {
  right: -3px;
  top: -3px;
  width: 42%;
  height: 42%;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  background: var(--pale);
  transform: rotate(0deg);
}

.info-card p {
  margin: 0 0 28px;
}

.info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-card dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
}

.info-card dt {
  font-weight: 700;
}

.info-card dd {
  margin: 0;
}

.download-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.download-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  border-radius: 4px;
  text-decoration: none;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition:
    color 150ms ease,
    text-decoration-color 150ms ease,
    transform 150ms ease;
}

.download-list a:hover,
.download-list a:focus-visible {
  color: var(--deep-2);
  text-decoration-color: currentColor;
  transform: translateX(4px);
}

.download-list a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--deep);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #002d3a;
}

.button-secondary {
  color: var(--deep);
  border-color: var(--deep);
  background: transparent;
}

.library-section .section-narrow {
  padding-bottom: 0;
}

.library-section > .section-narrow {
  width: min(760px, calc(100vw - 48px));
  padding-top: clamp(58px, 8vw, 88px);
}

.library-section > .section-narrow .section-kicker {
  margin-bottom: clamp(26px, 4vw, 42px);
  font-size: clamp(15px, 1.2vw, 18px);
}

.library-section > .section-narrow .page-title {
  margin-bottom: clamp(22px, 3vw, 30px);
  font-size: clamp(28px, 3vw, 42px);
}

.library-section > .section-narrow p:not(.section-kicker) {
  max-width: 760px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.25;
}

.water-cycle-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2516 / 3838;
  margin: 0 auto;
  line-height: 0;
  background: var(--aqua);
  overflow: hidden;
}

.water-cycle-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 18px;
  background: var(--aqua);
  pointer-events: none;
}

.library-section > .section-narrow {
  position: relative;
  z-index: 1;
}

.water-cycle-picture,
.water-cycle-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2516 / 3838;
  max-width: none;
  border: 0;
}

.library-hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hotspot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
  cursor: pointer;
}

.hotspot-persona {
  width: clamp(54px, 7.2vw, 124px);
  height: clamp(54px, 7.2vw, 124px);
  padding: 4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 8px 18px rgba(0, 64, 80, 0.28);
}

.hotspot-persona img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hotspot-detail {
  width: clamp(24px, 2.6vw, 48px);
  height: clamp(24px, 2.6vw, 48px);
  border: clamp(4px, 0.5vw, 8px) solid var(--cyan);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 5px 14px rgba(0, 64, 80, 0.24);
}

.hotspot:hover,
.hotspot:focus-visible {
  outline: 0;
  transform: translate(-50%, -50%) scale(1.13);
}

.hotspot-persona:hover,
.hotspot-persona:focus-visible {
  box-shadow: 0 14px 28px rgba(0, 64, 80, 0.34);
  filter: saturate(1.05);
}

.hotspot-detail:hover,
.hotspot-detail:focus-visible {
  transform: translate(-50%, -50%) scale(1.22);
}

.hotspot-detail--inactive {
  cursor: default;
  opacity: 0.72;
}

.hotspot-detail--inactive:hover {
  transform: translate(-50%, -50%);
}

.overview {
  padding-top: 0;
  padding-bottom: 0;
  width: min(760px, calc(100vw - 48px));
  max-width: 760px;
}

.overview h2 {
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(28px, 3vw, 40px);
}

.overview p {
  max-width: 760px;
  color: var(--pale);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.25;
}

.persona-grid,
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 42px 50px;
  margin-top: 46px;
}

.persona-button,
.shortcut-button {
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border: 1.5px solid var(--pale);
  border-radius: 8px;
  color: var(--pale);
  background: transparent;
  cursor: pointer;
}

.persona-button {
  gap: 18px;
  min-height: auto;
  padding: 0;
  border: 0;
}

.persona-button img {
  width: clamp(70px, 6.4vw, 94px);
  height: clamp(70px, 6.4vw, 94px);
  object-fit: contain;
  margin-top: 0;
  filter: drop-shadow(0 8px 8px rgba(0, 42, 54, 0.22));
  transition: transform 180ms ease;
}

.persona-button span,
.shortcut-button {
  font-weight: 700;
}

.shortcut-button {
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.persona-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 158px);
  min-height: 30px;
  padding: 5px 14px;
  border: 1.5px solid var(--pale);
  border-radius: 8px;
  color: var(--pale);
  font-size: clamp(12px, 0.9vw, 14px);
  transition:
    color 150ms ease,
    background-color 150ms ease;
}

.persona-button img:hover,
.persona-button:focus-visible img {
  transform: scale(1.12);
}

.persona-button span:hover,
.persona-button:focus-visible span,
.shortcut-button:hover,
.shortcut-button:focus-visible {
  color: var(--deep-2);
  background: var(--white);
}

.persona-button:focus-visible,
.shortcut-button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 5px;
}

.library-downloads {
  max-width: 720px;
  margin-top: clamp(100px, 11vw, 150px);
  padding: clamp(34px, 4vw, 46px) clamp(36px, 5vw, 52px);
}

.library-downloads p {
  max-width: 620px;
  margin: clamp(44px, 4.5vw, 56px) 0 clamp(46px, 5vw, 58px);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.25;
}

.library-downloads .icon-heading {
  align-items: center;
  margin-bottom: 0;
}

.library-downloads .svg-icon {
  width: 20px;
  height: 20px;
}

.library-downloads .download-heading {
  margin-top: 0;
  margin-bottom: clamp(28px, 3vw, 36px);
}

.library-downloads .download-list {
  gap: 10px;
}

.library-downloads .download-list a {
  gap: 14px;
}

.library-section .dark-band {
  padding-bottom: clamp(110px, 13vw, 180px);
  background: #0d4765;
}

.measurements-section {
  background: var(--aqua);
}

.measurements-section > .section-narrow {
  width: min(620px, calc(100vw - 48px));
  padding-top: clamp(58px, 8vw, 88px);
  padding-bottom: clamp(54px, 6vw, 76px);
}

.measurements-section > .section-narrow .section-kicker {
  margin-bottom: clamp(26px, 4vw, 38px);
  font-size: clamp(15px, 1.2vw, 18px);
}

.measurements-section > .section-narrow .page-title {
  margin-bottom: clamp(22px, 3vw, 30px);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}

.measurements-section > .section-narrow p:not(.section-kicker) {
  max-width: 620px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.25;
}

.measurements-section .wave-divider {
  position: relative;
  height: clamp(112px, 8vw, 150px);
  margin: 0 0 -1px;
  overflow: hidden;
  background-color: var(--aqua);
  background-image: url("./assets/shapes/waves-light.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  transform: none;
}

.measurements-section .wave-divider::before {
  content: none;
}

.measurement-deep {
  padding: clamp(72px, 9vw, 116px) 0 clamp(110px, 13vw, 180px);
  color: var(--pale);
  background: #134a65;
}

.map-shell {
  position: relative;
  width: var(--wide);
  margin: 0 auto;
  border: 2px solid rgba(0, 63, 80, 0.28);
  border-radius: 18px;
  overflow: hidden;
  background: var(--pale);
  box-shadow: var(--shadow);
}

.map {
  width: 100%;
  height: clamp(520px, 58vw, 780px);
}

.map-toolbar {
  position: absolute;
  top: clamp(22px, 3vw, 42px);
  left: clamp(28px, 5vw, 76px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  max-width: calc(100% - 120px);
}

.map-add-button {
  width: clamp(62px, 5.4vw, 82px);
  height: clamp(62px, 5.4vw, 82px);
  border: 0;
  border-radius: 50%;
  color: var(--deep);
  background: var(--orange);
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 41, 52, 0.22);
}

.map-add-button.is-active {
  color: var(--white);
  background: var(--pink);
}

.map-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(220px, 21vw, 380px);
  min-height: 48px;
  padding: 10px clamp(24px, 4vw, 58px);
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--orange);
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 41, 52, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.map-status:hover,
.map-status:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 13px 26px rgba(0, 41, 52, 0.22);
}

.maplibregl-ctrl-top-right {
  top: clamp(22px, 3vw, 42px);
  right: clamp(18px, 2.8vw, 42px);
}

.maplibregl-ctrl-top-right .maplibregl-ctrl {
  margin: 0 0 14px;
}

.maplibregl-ctrl-group {
  display: grid;
  gap: 14px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.maplibregl-ctrl-group:not(:empty) {
  box-shadow: none;
}

.maplibregl-ctrl-group button,
.maplibregl-ctrl-group button + button {
  width: clamp(44px, 4vw, 58px);
  height: clamp(44px, 4vw, 58px);
  border: 0;
  border-radius: 50%;
  background-color: rgba(201, 245, 247, 0.92);
  box-shadow: 0 8px 18px rgba(0, 41, 52, 0.16);
}

.maplibregl-ctrl-group button:hover {
  background-color: var(--pale);
}

.map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
  background: var(--pale);
}

.map-credit {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 4;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--deep-2);
  background: rgba(231, 246, 248, 0.94);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 41, 52, 0.12);
}

.map-marker {
  position: relative;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.map-marker::before {
  position: absolute;
  inset: 0;
  border: 5px solid var(--cyan);
  border-radius: inherit;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 41, 52, 0.24);
  content: "";
  transition: transform 180ms ease;
}

.map-marker:hover::before,
.map-marker:focus-visible::before {
  transform: scale(1.28);
}

.map-marker:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 5px;
}

.map-marker.is-pending::before {
  border-color: var(--orange);
  background: var(--pink);
}

.average-shortcuts {
  width: min(560px, calc(100vw - 48px));
  margin: clamp(80px, 9vw, 132px) auto 0;
  color: var(--white);
  text-align: center;
}

.average-shortcuts h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.15;
  text-align: left;
}

.shortcut-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 30px;
  margin-top: 40px;
}

.average-shortcuts .shortcut-button {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.2;
}

.measurement-info {
  margin-top: clamp(80px, 9vw, 132px);
}

.measurement-info .svg-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.measurement-info .download-list a {
  gap: 14px;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.modal-root.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 19, 26, 0.45);
}

.modal-panel {
  position: absolute;
  inset: clamp(20px, 3.4vw, 72px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(1390px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  margin: auto;
  border-radius: 16px;
  color: var(--ink);
  background: #eef0f0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.modal-panel:focus {
  outline: 0;
}

.modal-scroll {
  overflow: auto;
  padding: clamp(28px, 3.4vw, 56px);
}

.modal-close {
  position: absolute;
  top: clamp(18px, 2.5vw, 34px);
  right: clamp(18px, 2.5vw, 34px);
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 36px;
  line-height: 0.8;
  cursor: pointer;
}

.modal-title {
  margin: 0 56px 28px 0;
  font-size: clamp(24px, 2.35vw, 36px);
  line-height: 1.08;
}

.detail-modal-root .modal-backdrop {
  background: transparent;
}

.detail-modal-panel {
  inset: 50% clamp(28px, 8vw, 150px) auto auto;
  width: min(438px, calc(100vw - 56px));
  max-height: calc(100dvh - 130px);
  margin: 0;
  border-radius: 18px;
  background: var(--pale);
  box-shadow: 12px 18px 28px rgba(0, 19, 26, 0.3);
  transform: translateY(-50%);
}

.detail-modal-panel .modal-scroll {
  padding: 0;
  border-radius: inherit;
  background: var(--pale);
}

.detail-modal-panel .modal-close {
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 41, 52, 0.16);
  font-size: 30px;
}

.detail-modal-card {
  min-height: 100%;
  background: var(--pale);
}

.detail-modal-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #d9dada;
}

.detail-modal-copy {
  min-height: 250px;
  padding: 24px 28px 36px;
  background: var(--pale);
}

.detail-modal-copy h2 {
  margin: 0 0 24px;
  font-size: 19px;
  line-height: 1.25;
}

.detail-modal-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.38;
}

.modal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.96fr) minmax(340px, 1.04fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.persona-card-image {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 8px;
}

.persona-modal-panel {
  inset: 50% auto auto 50%;
  width: min(1120px, calc(100vw - 56px));
  max-height: calc(100dvh - 56px);
  margin: 0;
  border-radius: 18px;
  transform: translate(-50%, -50%);
}

.persona-modal-panel .modal-scroll {
  padding: clamp(34px, 4vw, 52px);
}

.persona-modal-panel .modal-close {
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 14px rgba(0, 41, 52, 0.12);
  font-size: 32px;
}

.persona-modal-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(36px, 4.5vw, 58px);
  align-items: start;
  min-height: 0;
}

.persona-visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.persona-modal-grid .persona-card-image,
.persona-card-placeholder {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  min-height: 0;
  aspect-ratio: 874 / 1240;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 41, 52, 0.13);
}

.persona-modal-grid .persona-card-image {
  object-fit: cover;
  object-position: center;
}

.persona-card-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(155deg, var(--pale) 0%, var(--aqua) 100%);
}

.persona-card-placeholder img {
  width: min(58%, 190px);
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(0, 41, 52, 0.2));
}

.persona-header {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}

.persona-header img {
  width: clamp(66px, 5.5vw, 96px);
  height: clamp(66px, 5.5vw, 96px);
  object-fit: contain;
}

.persona-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 4px 8px 0 0;
}

.persona-modal-header {
  gap: 22px;
  margin-bottom: 30px;
  padding-right: 50px;
}

.persona-modal-header img {
  width: clamp(64px, 5.5vw, 78px);
  height: clamp(64px, 5.5vw, 78px);
}

.persona-modal-header .modal-title {
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.08;
}

.persona-copy {
  max-width: 700px;
  font-size: clamp(17px, 1.28vw, 22px);
  line-height: 1.38;
}

.persona-content .persona-copy {
  max-width: 640px;
  margin: 0;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.42;
}

.persona-content--long .persona-copy {
  max-width: 640px;
  font-size: clamp(15px, 1.03vw, 17px);
  line-height: 1.38;
}

.persona-content--long .persona-modal-header {
  margin-bottom: 24px;
}

.persona-content--long .persona-average-button {
  margin-top: 26px;
}

.persona-content--long .persona-related {
  padding-top: 30px;
}

.persona-content--long .persona-related h3 {
  margin-bottom: 18px;
}

.persona-modal-grid--abwasser .persona-copy {
  font-size: clamp(14px, 0.96vw, 16px);
  line-height: 1.34;
}

.persona-average-button {
  display: flex;
  width: fit-content;
  min-width: min(300px, 100%);
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 32px 0 0;
  padding-inline: 26px;
  font-size: 16px;
}

.persona-related {
  margin-top: 0;
  padding-top: 38px;
}

.persona-related h3 {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.15;
}

.related-row,
.type-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.type-chip {
  min-width: 150px;
  min-height: 40px;
  padding: 7px 18px;
  border: 2px solid var(--deep-2);
  border-radius: 8px;
  color: var(--deep-2);
  background: transparent;
  cursor: pointer;
}

.type-chip.is-active {
  color: var(--white);
  background: var(--deep-2);
}

.persona-related-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 0;
}

.persona-related-row .type-chip {
  min-width: 0;
  min-height: 38px;
  padding: 6px 14px;
  font-size: 15px;
}

.form-grid,
.measurement-grid,
.average-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 20px clamp(28px, 4vw, 52px);
}

.field {
  display: grid;
  gap: 10px;
}

.field label,
.metric-label {
  color: var(--deep-2);
  font-size: clamp(16px, 1.15vw, 20px);
}

.metric-label-row {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.metric-info {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--deep-2);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.metric-info-popover {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  z-index: 8;
  display: none;
  width: min(280px, calc(100vw - 72px));
  padding: 11px 13px;
  border-radius: 9px;
  color: var(--white);
  background: var(--footer-blue);
  box-shadow: 0 8px 22px rgba(0, 41, 52, 0.22);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  transform: translateX(-50%);
}

.reference-range-note {
  max-width: 620px;
  margin: -6px 0 2px;
  color: color-mix(in srgb, var(--deep-2) 78%, transparent);
  font-size: 13px;
  line-height: 1.4;
}

.average-reference-range-note {
  grid-column: 1 / -1;
  align-self: end;
  margin: 0;
}

.metric-info:hover .metric-info-popover,
.metric-info:focus-visible .metric-info-popover,
.metric-info.is-open .metric-info-popover {
  display: block;
}

.field input,
.field select,
.field textarea,
.readonly-value {
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border: 2px solid #d6d6d6;
  border-radius: 8px;
  background: var(--white);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field-full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 34px;
}

.offer-signup-modal-root .modal-backdrop {
  background: rgba(0, 41, 52, 0.64);
  backdrop-filter: blur(4px);
}

.offer-signup-modal-panel {
  inset: 50% auto auto 50%;
  width: min(760px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  margin: 0;
  border-radius: 22px;
  background: var(--pale);
  transform: translate(-50%, -50%);
}

.offer-signup-modal-panel .modal-scroll {
  padding: clamp(34px, 5vw, 56px);
}

.offer-signup-modal-panel .modal-close {
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 5px 18px rgba(0, 41, 52, 0.12);
  font-size: 32px;
}

.offer-signup-intro {
  max-width: 610px;
  padding-right: 46px;
}

.offer-signup-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--deep-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-signup-intro .modal-title,
.offer-signup-success .modal-title {
  margin-bottom: 14px;
}

.offer-signup-intro p,
.offer-signup-success p {
  margin: 0;
  line-height: 1.48;
}

.offer-signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
  margin-top: 34px;
}

.offer-signup-form .field {
  gap: 8px;
}

.offer-signup-form .field label {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.offer-signup-form .field label span {
  color: var(--deep-2);
  font-weight: 500;
}

.offer-signup-form input,
.offer-signup-form textarea {
  border-color: rgba(20, 81, 103, 0.2);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.offer-signup-form input:focus,
.offer-signup-form textarea:focus {
  border-color: var(--cyan);
  outline: 3px solid rgba(16, 202, 232, 0.16);
}

.offer-signup-form input::placeholder,
.offer-signup-form textarea::placeholder {
  color: #65757b;
}

.offer-signup-message,
.offer-signup-school,
.offer-signup-privacy,
.offer-signup-status,
.offer-signup-actions {
  grid-column: 1 / -1;
}

.offer-signup-message textarea {
  min-height: 104px;
}

.offer-signup-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.offer-signup-privacy,
.offer-signup-status {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.offer-signup-privacy {
  color: #405c66;
}

.offer-signup-status {
  min-height: 20px;
  color: var(--deep-2);
  font-weight: 700;
}

.offer-signup-status:empty {
  display: none;
}

.offer-signup-status.is-error {
  color: #9b2c2c;
}

.offer-signup-actions {
  margin-top: 2px;
}

.offer-signup-actions .button {
  min-width: 170px;
}

.offer-signup-success {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 570px;
  margin: auto;
}

.offer-signup-success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--deep-2);
  font-size: 34px;
  font-weight: 700;
}

.offer-signup-success .button {
  min-width: 180px;
  margin-top: 32px;
}

.measurement-data-modal-panel {
  inset: 50% auto auto 50%;
  width: min(1380px, calc(100vw - 32px));
  height: calc(100dvh - 16px);
  max-height: calc(100dvh - 16px);
  margin: 0;
  border-radius: 20px;
  background: #f3f3f3;
  transform: translate(-50%, -50%);
}

.measurement-data-modal-panel .modal-scroll {
  min-height: 0;
  flex: 1;
  padding: clamp(30px, 3vw, 46px) clamp(38px, 6vw, 118px);
}

.measurement-data-modal-panel .modal-close {
  top: 22px;
  right: clamp(24px, 6vw, 104px);
  width: 40px;
  height: 40px;
  font-size: 34px;
}

.measurement-data-modal-panel .modal-title {
  margin-bottom: 28px;
  font-size: clamp(22px, 1.8vw, 28px);
}

.measurement-entry-form,
.measurement-view-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(42px, 5vw, 82px);
}

.measurement-entry-column,
.measurement-view-column,
.measurement-metric-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.measurement-entry-column {
  gap: 24px;
}

.measurement-entry-form .field {
  gap: 8px;
}

.measurement-entry-form .field label,
.measurement-view-layout .metric-label,
.average-modal-metrics .metric-label {
  color: var(--deep-2);
  font-size: 16px;
}

.measurement-entry-form .field input,
.measurement-entry-form .field select,
.measurement-entry-form .field textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
}

.measurement-entry-form input[type="date"] {
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.measurement-entry-form .field textarea {
  min-height: 80px;
}

.measurement-submit-button {
  width: min(280px, 100%);
  min-height: 42px;
  margin-top: auto;
  border: 0;
  color: var(--ink);
  background: var(--orange);
}

.measurement-submit-button:hover,
.measurement-submit-button:focus-visible {
  filter: brightness(1.05);
}

.measurement-submit-status {
  min-height: 20px;
  margin: -12px 0 0;
  color: #9b2c2c;
  font-size: 14px;
  font-weight: 700;
}

.measurement-submit-status:empty {
  display: none;
}

.measurement-view-layout {
  align-items: start;
}

.measurement-view-column {
  gap: 16px;
}

.measurement-view-overview {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 50px;
  align-items: center;
}

.measurement-view-icon,
.average-modal-icon {
  width: 126px;
  height: 126px;
  object-fit: contain;
}

.measurement-view-meta {
  display: grid;
  gap: 24px;
}

.measurement-view-sensorics {
  margin-top: 4px;
}

.measurement-view-layout .readonly-value,
.average-modal-metrics .readonly-value {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
}

.measurement-view-layout .readonly-value.is-empty,
.average-modal-metrics .readonly-value.is-empty {
  color: #b9b9b9;
}

.measurement-view-layout .legend {
  margin: 8px 0 0;
}

.measurement-metric-column {
  gap: 8px;
}

.measurement-metric-card,
.average-metric-card {
  grid-template-columns: minmax(180px, 0.78fr) minmax(230px, 1.22fr);
  gap: 28px;
}

.measurement-view-observations {
  margin-top: 0;
}

.readonly-textarea {
  min-height: 80px !important;
}

.measurement-edit-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.measurement-edit-actions .button {
  width: min(320px, 100%);
}

.measurement-edit-note {
  max-width: 480px;
  margin: 0;
  color: var(--deep-2);
  font-size: 13px;
  line-height: 1.4;
}

.average-modal-panel .modal-scroll {
  padding-inline: clamp(38px, 6vw, 118px);
}

.average-modal-layout {
  display: grid;
  min-height: calc(100% - 58px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  gap: 24px clamp(42px, 5vw, 72px);
}

.average-modal-top {
  display: grid;
  grid-column: 1;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.average-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 0;
}

.average-type-grid .type-chip {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 4px 10px;
  border-width: 1px;
  border-radius: 8px;
  font-size: 13px;
}

.average-modal-metrics {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px clamp(42px, 5vw, 72px);
}

.average-metric-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.average-metric-column--left {
  grid-column: 1;
}

.average-metric-column--right {
  grid-column: 2;
  grid-row: 1;
}

.average-sensorics-card {
  grid-column: 1;
}

.average-metric-card--left {
  grid-column: auto;
}

.average-metric-card--right {
  grid-column: auto;
}

.average-persona-button {
  grid-column: 2;
  grid-row: 3;
  width: min(330px, 100%);
  min-height: 42px;
  align-self: start;
  justify-self: start;
  margin-top: 0;
}

.average-data-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--deep-2);
  font-size: 13px;
}

.measurement-data-modal-panel .range {
  min-width: 0;
}

.measurement-data-modal-panel .range-scale {
  height: 46px;
}

.measurement-data-modal-panel .range-line {
  top: 18px;
  height: 2px;
}

.measurement-data-modal-panel .range-end {
  position: absolute;
  top: -4px;
  width: 1px;
  height: 10px;
  background: #d7d7d7;
}

.measurement-data-modal-panel .range-end--start {
  left: 0;
}

.measurement-data-modal-panel .range-end--end {
  right: 0;
}

.measurement-data-modal-panel .range-band {
  top: 12px;
  height: 14px;
  border-width: 1px;
}

.measurement-data-modal-panel .range-labels {
  font-size: 14px;
}

.measurement-data-modal-panel .range-pointer {
  top: 0;
  width: 22px;
  height: 46px;
  background: transparent;
  transform: translateX(-11px);
}

.measurement-data-modal-panel .range-pointer-arrow,
.measurement-data-modal-panel .range-pointer-tick {
  position: absolute;
  display: block;
}

.measurement-data-modal-panel .range-pointer-arrow {
  max-width: none;
  pointer-events: none;
}

.measurement-data-modal-panel .range-pointer-tick {
  top: 12px;
  left: 10px;
  z-index: 1;
  width: 2px;
  height: 14px;
  border-radius: 1px;
  background: var(--pink);
}

.measurement-data-modal-panel .range-pointer--measurement .range-pointer-arrow {
  top: -4px;
  left: 1.5px;
  width: 19px;
  height: 20px;
}

.measurement-data-modal-panel .range-pointer--average .range-pointer-arrow {
  top: 21px;
  left: 0;
  width: 22px;
  height: 24px;
}

.measurement-data-modal-panel .range-pointer--average .range-pointer-tick {
  background: var(--cyan);
}

.metric-card {
  display: grid;
  grid-template-columns: minmax(150px, 240px) 1fr;
  gap: 18px;
  align-items: center;
}

.metric-card.metric-text {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
}

.range {
  display: grid;
  gap: 8px;
}

.range-scale {
  position: relative;
  height: 42px;
}

.range-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 3px;
  background: #d7d7d7;
}

.range-band {
  position: absolute;
  top: 16px;
  height: 14px;
  background: rgba(16, 202, 232, 0.16);
  border-left: 3px solid var(--cyan);
  border-right: 3px solid var(--cyan);
}

.range-pointer {
  position: absolute;
  top: 0;
  width: 3px;
  height: 34px;
  background: var(--pink);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--deep-2);
  font-weight: 700;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 10px 0 34px;
  color: var(--deep-2);
  font-weight: 700;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.legend-band {
  width: 74px;
  height: 16px;
  background: rgba(16, 202, 232, 0.16);
  border-left: 3px solid var(--cyan);
  border-right: 3px solid var(--cyan);
}

.legend-pointer {
  width: 19px;
  height: 20px;
  object-fit: contain;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 140;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--deep);
  box-shadow: var(--shadow);
}

@media (min-width: 981px) {
  .library-section {
    position: relative;
  }

  .library-section > .section-narrow {
    position: absolute;
    inset: 0 auto auto 50%;
    z-index: 3;
    padding-top: 42px;
    transform: translateX(-50%);
  }

  .water-cycle-wrap {
    margin-top: 80px;
  }
}

@media (max-width: 980px) {
  :root {
    --content: min(720px, calc(100vw - 40px));
    --wide: min(100%, calc(100vw - 32px));
  }

  body {
    font-size: 17px;
  }

  .app-header {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    inset: 66px 0 auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 14px 22px 24px;
    background: var(--aqua);
    box-shadow: 0 18px 32px rgba(0, 41, 52, 0.12);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 14px 0;
  }

  .home-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .persona-modal-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: 0;
  }

  .persona-modal-panel {
    inset: 50% auto auto 50%;
    width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .persona-modal-panel .modal-scroll {
    padding: 34px;
  }

  .persona-visual {
    justify-content: flex-start;
  }

  .persona-modal-grid .persona-card-image,
  .persona-card-placeholder {
    max-width: 320px;
    height: auto;
    min-height: 0;
    aspect-ratio: 874 / 1240;
  }

  .persona-content {
    min-height: 0;
    padding-right: 0;
  }

  .persona-related {
    margin-top: 0;
    padding-top: 34px;
  }

  .section-home {
    min-height: auto;
  }

  .home-visual {
    order: -1;
  }

  .photo-strip {
    display: block;
  }

  .photo-strip img {
    display: none;
  }

  .photo-strip img:first-of-type {
    display: block;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .preview-hero-visual {
    width: min(680px, calc(100vw - 40px));
    margin-top: -44px;
    transform: none;
  }

  .preview-teaser-grid {
    width: min(880px, calc(100vw - 40px));
    margin-top: -42px;
  }

  .water-cycle-wrap {
    margin-top: clamp(20px, 6vw, 32px);
  }

  .app-footer {
    padding-inline: 32px;
  }

  .app-footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "intro nav"
      "contact contact"
      "partners partners"
      "legal legal";
  }

  .app-footer-contact {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .app-footer-partners {
    grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr);
  }

  .persona-grid,
  .shortcut-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .persona-grid {
    gap: 38px 30px;
  }

  .form-grid,
  .measurement-grid,
  .average-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    grid-template-columns: 1fr;
  }

  .measurement-data-modal-panel {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }

  .measurement-data-modal-panel .modal-scroll {
    padding-inline: 36px;
  }

  .measurement-data-modal-panel .modal-close {
    right: 24px;
  }

  .measurement-metric-card,
  .average-metric-card {
    grid-template-columns: minmax(150px, 0.72fr) minmax(180px, 1.28fr);
  }

  .measurement-view-overview {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 30px;
  }

  .measurement-view-icon,
  .average-modal-icon {
    width: 108px;
    height: 108px;
  }
}

@media (max-width: 640px) {
  :root {
    --content: calc(100vw - 36px);
    --wide: calc(100vw - 24px);
  }

  body {
    font-size: 16px;
  }

  .metric-info-popover {
    width: min(220px, calc(100vw - 56px));
  }

  .section-narrow {
    padding-top: 68px;
  }

  .home-actions,
  .form-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .preview-home-hero {
    padding-top: 0;
  }

  .hotspot-detail[data-detail="7"] {
    top: 64.2% !important;
  }

  /* Keep the annotated detail points fixed while giving these two persona
     buttons enough room on narrow screens. Percentage offsets continue to
     scale with the illustration at every mobile width. */
  .hotspot-persona[data-persona="seewasser"] {
    left: 68% !important;
  }

  .hotspot-persona[data-persona="abwasser"] {
    left: 19.2% !important;
  }

  .hotspot-persona[data-persona="regenwasser"] {
    left: 52.5% !important;
  }

  .measurements-section .wave-divider {
    height: 58px;
    background-color: #134a65;
    background-image: none;
    -webkit-mask-image: url("./assets/shapes/waves-light.png");
    mask-image: url("./assets/shapes/waves-light.png");
    -webkit-mask-position: top center;
    mask-position: top center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% auto;
    mask-size: 100% auto;
  }

  .measurement-deep {
    padding-top: 36px;
    box-shadow: none;
  }

  .preview-hero-visual {
    width: calc(100vw - 16px);
    margin-top: -8px;
  }

  .preview-teaser-grid {
    grid-template-columns: 1fr;
    width: calc(100vw - 32px);
    margin-top: -24px;
    margin-bottom: -64px;
  }

  .preview-teaser {
    min-height: 164px;
    padding: 18px 20px 20px;
    font-size: 15px;
  }

  .preview-teaser img {
    width: min(270px, 86%);
  }

  .preview-home-content {
    padding-top: 118px;
  }

  .preview-intro,
  .preview-events {
    width: calc(100vw - 36px);
  }

  .preview-intro {
    margin-bottom: 64px;
  }

  .preview-home-gallery {
    margin-bottom: 86px;
  }

  .preview-events-intro,
  .preview-events-list {
    padding: 26px 22px;
  }

  .preview-events-list {
    gap: 42px;
  }

  .preview-events-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .preview-events-list li > span {
    display: none;
  }

  .app-footer {
    min-height: 0;
    padding: 76px 28px 42px;
  }

  .app-footer-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "nav"
      "contact"
      "partners"
      "legal";
    gap: 34px;
  }

  .app-footer-contact {
    padding-top: 28px;
  }

  .app-footer-partners {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 28px;
  }

  .app-footer-legal {
    display: flex;
    gap: 10px 16px;
    padding-top: 22px;
  }

  .app-footer-legal span:last-child {
    width: 100%;
    margin-left: 0;
    padding-top: 4px;
  }

  .dark-band {
    padding-bottom: 92px;
  }

  .info-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .persona-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }

  .shortcut-grid {
    grid-template-columns: 1fr;
  }

  .average-shortcuts .shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .library-section > .section-narrow .section-kicker {
    margin-bottom: 28px;
    font-size: 18px;
  }

  .library-section > .section-narrow .page-title {
    margin-bottom: 22px;
  }

  .library-section > .section-narrow p:not(.section-kicker) {
    font-size: 17px;
    line-height: 1.3;
  }

  .overview {
    max-width: var(--content);
  }

  .persona-grid {
    gap: 34px;
  }

  .persona-button img {
    width: 94px;
    height: 94px;
  }

  .library-downloads {
    padding: 34px 28px 42px;
  }

  .library-downloads p {
    margin: 36px 0 44px;
  }

  .map-toolbar {
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
    max-width: calc(100% - 32px);
  }

  .map-status {
    min-width: min(280px, 100%);
    justify-content: center;
  }

  .map {
    height: 560px;
  }

  .map-credit {
    left: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
  }

  .modal-panel {
    inset: 8px;
    width: auto;
    max-height: none;
    margin: 0;
    border-radius: 14px;
  }

  .modal-scroll {
    padding: 28px 18px;
  }

  .modal-close {
    width: 44px;
    height: 44px;
    font-size: 42px;
  }

  .detail-modal-panel {
    inset: 50% 12px auto;
    width: auto;
    height: auto;
    max-height: calc(100dvh - 90px);
    margin: 0;
    border-radius: 16px;
    transform: translateY(-50%);
  }

  .detail-modal-panel .modal-scroll {
    padding: 0;
  }

  .detail-modal-root .modal-backdrop {
    background: rgba(0, 41, 52, 0.24);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }

  .detail-modal-panel .modal-close {
    width: 40px;
    height: 40px;
    font-size: 34px;
  }

  .persona-modal-panel {
    inset: 50% auto auto 50%;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
    transform: translate(-50%, -50%);
  }

  .persona-modal-panel .modal-scroll {
    padding: 24px 18px 30px;
  }

  .offer-signup-modal-panel {
    inset: 8px;
    width: auto;
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
    transform: none;
  }

  .offer-signup-modal-panel .modal-scroll {
    padding: 30px 20px 24px;
  }

  .offer-signup-modal-panel .modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
  }

  .offer-signup-intro {
    padding-right: 34px;
  }

  .offer-signup-intro .modal-title,
  .offer-signup-success .modal-title {
    margin-right: 0;
    font-size: 28px;
  }

  .offer-signup-form {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 28px;
  }

  .offer-signup-message,
  .offer-signup-school,
  .offer-signup-privacy,
  .offer-signup-status,
  .offer-signup-actions {
    grid-column: auto;
  }

  .offer-signup-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .offer-signup-actions .button {
    min-width: 0;
  }

  .offer-signup-actions .button-primary {
    order: -1;
  }

  .offer-signup-success {
    min-height: calc(100dvh - 120px);
  }

  .measurement-data-modal-panel {
    inset: 8px;
    width: auto;
    height: auto;
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
    transform: none;
  }

  .measurement-data-modal-panel .modal-scroll {
    padding: 28px 20px 34px;
  }

  .measurement-data-modal-panel .modal-close {
    top: 10px;
    right: 10px;
  }

  .measurement-data-modal-panel .modal-title {
    max-width: calc(100% - 44px);
    margin-bottom: 28px;
    font-size: 24px;
  }

  .measurement-entry-form,
  .measurement-view-layout,
  .average-modal-layout,
  .average-modal-metrics {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .average-modal-layout {
    min-height: 0;
    grid-template-rows: none;
  }

  .measurement-entry-column,
  .measurement-view-column,
  .measurement-metric-column {
    gap: 20px;
  }

  .measurement-submit-button,
  .average-persona-button,
  .measurement-edit-actions .button {
    width: 100%;
  }

  .measurement-view-overview {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
  }

  .measurement-view-icon,
  .average-modal-icon {
    width: 78px;
    height: 78px;
  }

  .measurement-view-layout .legend {
    gap: 18px;
    margin-top: 8px;
    font-size: 14px;
  }

  .measurement-metric-card,
  .average-metric-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .average-modal-top {
    grid-column: auto;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 16px;
  }

  .average-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .average-sensorics-card,
  .average-metric-column--left,
  .average-metric-column--right,
  .average-metric-card--left,
  .average-metric-card--right,
  .average-persona-button {
    grid-column: auto;
  }

  .average-metric-column--right {
    grid-row: auto;
  }

  .average-persona-button {
    grid-row: auto;
    margin-top: 0;
  }

  .persona-modal-grid .persona-visual {
    width: calc(100% + 36px);
    margin: -24px -18px 0;
  }

  .persona-modal-grid .persona-card-image,
  .persona-modal-grid .persona-card-placeholder {
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }

  .persona-modal-panel .modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 32px;
  }

  .persona-modal-grid {
    gap: 28px;
  }

  .persona-visual {
    justify-content: center;
  }

  .persona-modal-grid .persona-card-image,
  .persona-modal-grid .persona-card-placeholder {
    max-width: none;
  }

  .detail-modal-copy {
    min-height: 0;
    padding: 24px 22px 34px;
  }

  .detail-modal-card {
    min-height: 0;
  }

  .detail-modal-copy h2 {
    margin-bottom: 20px;
    font-size: 18px;
  }

  .detail-modal-copy p {
    font-size: 16px;
  }

  .persona-header {
    gap: 16px;
  }

  .persona-modal-header {
    align-items: center;
    margin-bottom: 24px;
    padding-right: 42px;
  }

  .persona-modal-header img {
    width: 62px;
    height: 62px;
  }

  .persona-modal-header .modal-title {
    font-size: clamp(26px, 8vw, 32px);
  }

  .persona-content .persona-copy {
    font-size: 16px;
    line-height: 1.42;
  }

  .persona-average-button {
    width: 100%;
    min-width: 0;
    margin-top: 28px;
    padding-inline: 18px;
    font-size: 15px;
  }

  .persona-related-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .persona-copy {
    font-size: 17px;
  }

  .type-chip {
    width: 100%;
  }
}

@media (max-width: 359px) {
  .persona-grid {
    grid-template-columns: 1fr;
  }
}
