.visit-cards-section {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 5vh, 64px) var(--page-padding);
  overflow: clip;
  background: var(--visit-blue);
}

.visit-cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(calc((min(76vh, 660px) - 2 * var(--visit-card-grid-gap)) / 3), auto);
  gap: var(--visit-card-grid-gap);
  width: min(100%, 1180px);
  height: auto;
  margin: 0 auto;
  transform: translate3d(0, var(--card-parallax-y, 0px), 0);
  will-change: transform;
}

.visit-card {
  --visit-card-inset: clamp(12px, 1.2vh, 16px);
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  align-items: stretch;
  gap: var(--visit-card-inset);
  min-width: 0;
  min-height: 0;
  padding: var(--visit-card-inset);
  border-radius: clamp(18px, 1.7vw, 26px);
  color: var(--ink);
  background: var(--card-color, #a9e4cd);
}

.visit-card:nth-child(6n + 1) { --card-color: var(--card-mint); }
.visit-card:nth-child(6n + 2) { --card-color: var(--card-yellow); }
.visit-card:nth-child(6n + 3) { --card-color: var(--card-lilac); }
.visit-card:nth-child(6n + 4) { --card-color: var(--card-peach); }
.visit-card:nth-child(6n + 5) { --card-color: var(--card-sky); }
.visit-card:nth-child(6n + 6) { --card-color: var(--card-pink); }

.visit-card__image-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: clamp(10px, 1vw, 15px);
  background: rgb(0 0 0 / 8%);
}

.visit-card__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visit-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(8px, 1.1vh, 12px);
  min-width: 0;
  min-height: 0;
}

.visit-card__title {
  margin: 0;
  padding-top: clamp(4px, .7vh, 7px);
  color: var(--ink);
  font-size: clamp(16px, min(1.6vw, 3.2vh), 25px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

.visit-card__title span {
  padding: 0.04em 0.18em 0.07em;
  background: var(--white);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.visit-card__description {
  margin: 0;
  font-size: clamp(12px, min(1.08vw, 2.15vh), 16px);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 1000px) {
  .visit-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(148px, auto);
    max-width: 780px;
  }
}

@media (max-height: 520px) {
  .visit-cards { transform: none; will-change: auto; }
}


.visit-ending {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

#inhalt[data-pin-cards] {
  position: sticky;
  top: min(0px, calc(var(--visit-screen-height) - var(--visit-main-height)));
}

#inhalt[data-pin-cards] + .visit-ending {
  position: relative;
  z-index: 2;
  margin-top: clamp(72px, 14svh, 128px);
}

.visit-welcome-scene {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: clamp(30px, 5vh, 64px) var(--page-padding);
  color: var(--welcome-ink);
  background: var(--welcome-bg);
}

.visit-welcome-content {
  position: relative;
  width: min(100%, 1180px);
  text-align: center;
}

.welcome-mask { overflow: clip; }

.welcome-reveal {
  display: block;
  transform: translate3d(0, calc((1 - var(--text-reveal, 1)) * 115%), 0);
  opacity: calc(.2 + .8 * var(--text-reveal, 1));
  will-change: transform, opacity;
}

.welcome-title {
  margin: 0;
  font-size: clamp(46px, min(6.6vw, 11.5vh), 124px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.22;
}

.welcome-line { display: block; padding-block: .035em; }
.welcome-line + .welcome-line { margin-top: .06em; }


@media (max-width: 700px) and (orientation: portrait) {
  .welcome-title { font-size: clamp(38px, 9.5vw, 66px); }
}

@media (prefers-reduced-motion: reduce) {
  .visit-cards, .welcome-reveal {
    transform: none;
    opacity: 1;
    will-change: auto;
  }
}

.visit-inquiry-slot {
  justify-self: center;
  width: var(--inquiry-width);
  height: var(--inquiry-height);
  margin-top: clamp(14px, 4vw, 24px);
}

.visit-inquiry {
  position: fixed;
  z-index: 35;
  top: var(--visit-screen-height);
  left: 50%;
  display: grid;
  place-items: center;
  width: var(--inquiry-width);
  height: var(--inquiry-height);
  padding: var(--inquiry-padding);
  border: var(--inquiry-border, 1px) solid var(--ink);
  border-radius: 100px;
  color: var(--ink);
  background: var(--inquiry-bg);
  font-size: var(--inquiry-font-size);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  -webkit-text-fill-color: var(--ink);
  transform: translate(-50%, calc(-100% - max(var(--inquiry-bottom), var(--inquiry-footer-offset, 0px))));
}

.visit-inquiry:hover,
.visit-inquiry:focus-visible { background: var(--inquiry-hover); }

@font-face {
  font-family: "Figtree";
  src: url("fonts/Figtree-VariableFont_wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font: "Figtree", Arial, sans-serif;
  --visit-blue: #009bdd;
  --white: #ffffff;
  --ink: #123b50;
  --welcome-bg: #1b5e3c;
  --welcome-ink: #fff8eb;
  --footer-bg: #133e52;
  --footer-ink: #e8f7ff;
  --footer-rule: rgb(232 247 255 / 24%);
  --visit-markup: #fff8eb;
  --dialog-bg: #f4f7ef;
  --dialog-ink: #183f2c;
  --dialog-accent: #1b5e3c;
  --dialog-on-accent: #ffffff;
  --dialog-field: #ffffff;
  --dialog-border: #90a99b;
  --dialog-soft: #e0ecdf;
  --dialog-error: #a12929;
  --inquiry-bg: #ffe277;
  --inquiry-hover: #ffecaa;
  --card-mint: #9de7c1;
  --card-yellow: #ffe27a;
  --card-lilac: #c7b0f6;
  --card-peach: #ffa88d;
  --card-sky: #97dcef;
  --card-pink: #f5abc9;

  --page-max-width: 560px;
  --page-padding: clamp(28px, 4vw, 64px);
  --visit-card-grid-gap: clamp(18px, 5vw, 26px);
  --visit-screen-height: 100vh;
  --inquiry-width: min(320px, calc(100vw - 48px));
  --inquiry-height: 48px;
  --inquiry-bottom: max(24px, env(safe-area-inset-bottom));
  --inquiry-font-size: 18px;
  --inquiry-padding: 12px 24px;
}

@supports (height: 100svh) {
  :root { --visit-screen-height: 100svh; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

html {
  background: var(--visit-blue);
  -webkit-text-size-adjust: 100%;
}

.visit-scroll {
  position: fixed;
  inset: 0 0 auto;
  min-width: 320px;
  height: var(--visit-screen-height);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  scroll-timeline: --visit-scroll block;
}

.visit-scroll::-webkit-scrollbar {
  display: none;
}

body {
  min-width: 320px;
  color: var(--white);
  background: var(--visit-blue);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.fontm {
  font-family: var(--font);
  font-weight: 500;
  font-style: normal;
}

button,
a {
  touch-action: manipulation;
}

button {
  font: inherit;
}

img,
svg {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.brand-link {
  -webkit-touch-callout: none;
}

*,
*::before,
*::after,
:focus,
:focus-visible,
:active {
  outline: none !important;
  outline-offset: 0 !important;
}

:focus,
:focus-visible,
:active {
  box-shadow: none !important;
}

#inhalt:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

#page-brand {
  position: absolute;
  z-index: 10;
  top: max(28px, env(safe-area-inset-top));
  left: max(var(--page-padding), env(safe-area-inset-left));
  text-align: left;
}

.brand-link,
.project-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.brand-name strong,
.brand-name span {
  display: block;
  white-space: nowrap;
}

.brand-name strong {
  font-weight: 700;
}

.brand-name span {
  font-weight: 400;
}

#page-brand .brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-basis: 52px;
  width: 52px;
  height: 52px;
  overflow: clip;
}

#page-brand .brand-name {
  min-width: 0;
  font-size: 18px;
}

.visit-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: 100vh;
  height: 100svh;
}

.visit-hero__media {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: #193542;
  isolation: isolate;
}

.visit-hero__image {
  position: absolute;
  top: -30%;
  left: 0;
  display: block;
  width: 100%;
  height: 160%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

@supports (animation-timeline: --visit-scroll) and (animation-range: 0px 100px) {
  @media (prefers-reduced-motion: no-preference) {
    .visit-hero__image {
      animation: visit-hero-parallax auto linear both;
      animation-timeline: --visit-scroll;
      animation-range: 0px var(--visit-hero-height, var(--visit-screen-height));
    }
  }
}

@keyframes visit-hero-parallax {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 17.5%, 0); }
}

.visit-hero__media::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 30%) 0, rgb(0 0 0 / 10%) 120px, transparent 260px);
  content: "";
  pointer-events: none;
}

.visit-hero__content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 104px clamp(28px, 4.5vw, 96px);
  background: var(--visit-blue);
}

.visit-hero__copy {
  width: min(100%, 620px);
  container-type: inline-size;
}

.visit-hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1cqw;
  margin: 0;
  color: var(--ink);
  font-size: 9cqw;
  font-weight: 600;
  line-height: 1.055;
  letter-spacing: -0.015em;
  text-align: center;
}

.visit-hero__title span {
  display: block;
  width: fit-content;
  padding: 0.5cqw 1.6cqw 0.8cqw;
  background: var(--visit-markup);
  white-space: nowrap;
}

.project-footer {
  flex: none;
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 48px max(24px, calc((100% - var(--page-max-width)) / 2)) var(--inquiry-bottom);
  color: var(--footer-ink);
  background: var(--footer-bg);
}

.project-credit { margin-bottom: 24px; }

.project-credit-label {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding-top: 18px;
  border-top: 1px solid var(--footer-rule);
}

.project-brand .brand-name strong { white-space: normal; }

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.footer-links a:hover,
.footer-links a:active,
.footer-links a:focus-visible {
  text-decoration-line: underline;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--footer-ink) !important;
  outline-offset: 4px !important;
}

.lines,
.menucross {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  right: max(clamp(20px, 5.7vw, 72px), env(safe-area-inset-right));
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.lines[hidden] {
  display: none;
}

.lines {
  z-index: 40;
}

.lines--over-welcome { color: var(--welcome-ink); }

.line {
  position: relative;
  display: block;
  width: 28px;
  height: 2px;
}

.line::before,
.line::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 240ms ease, opacity 180ms ease;
}

.line::before {
  top: -5px;
}

.line::after {
  top: 5px;
}

.linefunc .line::before {
  opacity: 0;
}

.linefunc .line::after {
  opacity: 0;
}

.menu {
  position: fixed;
  inset: 0;
  display: none;
  width: 100%;
  height: var(--visit-screen-height);
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(clamp(68px, 12vh, 100px), calc(env(safe-area-inset-top) + 56px))
    max(clamp(20px, 5.7vw, 72px), env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(clamp(20px, 5.7vw, 72px), env(safe-area-inset-left));
  border: 0;
  overflow: auto;
  color: #f4f4f4;
  background: rgb(0 0 0 / 68%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 200ms ease;
  overscroll-behavior: contain;
}

.menu[open] {
  display: flex;
  flex-direction: column;
}

.menu::backdrop {
  background: transparent;
}

.menu.menuactive {
  opacity: 1;
}

.menucross {
  position: fixed;
  z-index: 1;
  color: inherit;
}

.menucross::before,
.menucross::after {
  position: absolute;
  top: 21px;
  left: 8px;
  width: 28px;
  height: 2px;
  border-radius: 60px;
  background: currentColor;
  content: "";
  transform: rotate(-45deg);
}

.menucross::after {
  transform: rotate(45deg);
}

.menuitems {
  display: grid;
  grid-template-columns: minmax(0, 460px);
  gap: clamp(0px, .4vw, 4px);
  padding-bottom: clamp(16px, 3vw, 28px);
  border-bottom: 1px solid rgb(255 255 255 / 25%);
}

.menuitems a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: clamp(24px, 5.8vw, 44px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.menuitems a:hover,
.menuitems a:focus-visible {
  text-decoration-line: underline;
}

html.menu-open .visit-scroll {
  overflow: hidden;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

@media (min-width: 960px) {
  :root { --inquiry-bottom: max(16px, env(safe-area-inset-bottom)); }

  .project-footer {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: clamp(12px, 2.5vw, 32px);
    padding-inline: max(clamp(32px, 6vw, 96px), calc((100% - 1120px) / 2));
  }

  .project-credit { margin-bottom: 0; }
  .footer-links { grid-area: 1 / 3; justify-content: flex-end; padding-top: 0; border-top: 0; }
  .visit-inquiry-slot { grid-area: 1 / 2; align-self: center; margin-top: 0; }
}

@media (max-height: 600px) and (orientation: landscape) {
  #page-brand {
    top: max(16px, env(safe-area-inset-top));
  }

  #page-brand .brand-logo {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  #page-brand .brand-name {
    font-size: 15px;
  }

  .visit-hero__content {
    padding-block: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .visit-hero__image {
    top: 0;
    height: 100%;
    transform: none;
    will-change: auto;
  }

  .menu,
  .line::before,
  .line::after,
  .menucross::before,
  .menucross::after {
    transition: none;
  }
}

@media (max-width: 700px) and (orientation: portrait) {
  :root { --page-padding: 20px; }

  #page-brand {
    top: 0;
    left: 50%;
    width: min(100%, var(--page-max-width));
    transform: translateX(-50%);
    container-type: inline-size;
    pointer-events: none;
  }

  #page-brand .brand-link {
    gap: 1.7cqw;
    padding-top: max(6.25cqw, env(safe-area-inset-top));
    padding-inline: 6.8cqw;
    pointer-events: auto;
  }

  #page-brand .brand-logo { flex-basis: 11cqw; width: 11cqw; height: 11cqw; }
  #page-brand .brand-name { font-size: 3.82cqw; }

  .visit-hero {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(43.2vh, auto) 56.8vh;
    grid-template-rows: minmax(43.2svh, auto) 56.8svh;
  }
  .visit-hero__content {
    grid-row: 1;
    padding: calc(max(min(6.25vw, 35px), env(safe-area-inset-top)) + min(11vw, 61.6px) + 12px) 0 14px;
  }
  .visit-hero__copy { width: min(100%, var(--page-max-width)); }
  .visit-hero__media { grid-row: 2; }

  .visit-cards-section {
    padding: 44px var(--page-padding) max(80px, calc(64px + env(safe-area-inset-bottom)));
  }
  .visit-cards { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; max-width: 480px; transform: none; will-change: auto; }
  .visit-card { min-height: 144px; grid-template-columns: clamp(72px, 22vw, 96px) minmax(0, 1fr); }
  .visit-card__title { font-size: clamp(18px, 5.15vw, 20px); }
  .visit-card__description { font-size: 15px; line-height: 1.4; }

  .visit-welcome-scene { padding-block: clamp(22px, 4.3vh, 42px); }
  .welcome-title { font-size: clamp(36px, 9.5vw, 64px); }
}

@media (max-width: 599px) and (orientation: portrait) {
  :root {
    --reference-unit: min(1vw, 5.6px);
    --inquiry-width: calc(85 * var(--reference-unit));
    --inquiry-height: max(44px, calc(9 * var(--reference-unit)));
    --inquiry-bottom: max(calc(5 * var(--reference-unit)), calc(env(safe-area-inset-bottom) + 2 * var(--reference-unit)));
    --inquiry-font-size: calc(4.45 * var(--reference-unit));
    --inquiry-padding: calc(1.2 * var(--reference-unit)) calc(4 * var(--reference-unit));
    --inquiry-border: max(1px, calc(.25 * var(--reference-unit)));
  }

  .project-footer {
    padding-block-start: calc(12 * var(--reference-unit));
    padding-inline: max(7.5vw, calc((100% - var(--inquiry-width)) / 2));
  }
  .project-credit { margin-bottom: calc(6 * var(--reference-unit)); }
  .project-credit-label { margin-bottom: calc(3 * var(--reference-unit)); }
  .project-credit-label, .footer-links a { font-size: calc(3.1 * var(--reference-unit)); }
  .project-brand { gap: calc(1.7 * var(--reference-unit)); }
  .project-brand .brand-logo {
    flex-basis: calc(11 * var(--reference-unit));
    width: calc(11 * var(--reference-unit));
    height: calc(11 * var(--reference-unit));
  }
  .project-brand .brand-name { font-size: calc(3.82 * var(--reference-unit)); }
  .footer-links {
    gap: calc(1.5 * var(--reference-unit)) calc(4 * var(--reference-unit));
    padding-top: calc(4.5 * var(--reference-unit));
  }
  .footer-links a { min-height: 44px; }
}

@media (max-height: 520px) {
  .visit-welcome-scene { padding-block: clamp(16px, 4vh, 24px); }
  .welcome-title { font-size: clamp(30px, min(8vw, 8.3vh), 44px); }
}

@media (min-width: 520px) and (max-height: 480px) and (orientation: landscape) {
  .project-footer { gap: 12px; padding: 12px 20px var(--inquiry-bottom); }
  .project-credit { margin-bottom: 0; }
  .project-credit-label { margin-bottom: 6px; font-size: 12px; }
  .project-brand { gap: 8px; }
  .project-brand .brand-logo { flex-basis: 32px; width: 32px; height: 32px; }
  .project-brand .brand-name { font-size: 13px; }
  .footer-links { gap: 0 12px; }
  .footer-links a { min-height: 32px; }
}

@media (min-width: 520px) and (max-width: 959px) and (max-height: 480px) and (orientation: landscape) {
  .project-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .footer-links { justify-content: flex-end; padding-top: 0; border-top: 0; }
  .visit-inquiry-slot { grid-column: 1 / -1; margin-top: 0; }
}


