:root {
  color-scheme: dark;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --brand-navy: #171c38;
  --brand-navy-soft: rgba(23, 28, 56, 0.72);
  --see-button: #a66b72;
  --see-button-hover: #b87c82;
  --ober-button: #172040;
  --ober-button-hover: #202c54;
  --line: rgba(255, 255, 255, 0.88);
  --focus: #ffffff;
  --footer-height: 7.8rem;
  --see-overlay-opacity: 0.98;
  --see-shade-opacity: 1;
  --ober-overlay-opacity: 0.98;
  --ober-shade-opacity: 1;

  /* Bilddateien hier tauschen, wenn neue Motive geliefert werden. */
  --see-image: url("../img/seestueberl-hero.webp");
  --ober-image: url("../img/oberstueberl-hero.webp");
}

@font-face {
  font-family: "Slightwell";
  src: url("../fonts/Slightwell.otf") format("opentype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--brand-navy);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.landing {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #11162d;
}

.apartment {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

.apartment::before,
.apartment::after {
  position: absolute;
  inset: 0;
  content: "";
}

.apartment::before {
  z-index: 0;
  opacity: 0.98;
  transition: opacity 360ms ease;
}

.apartment::after {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.48) 74%),
    linear-gradient(180deg, rgba(10, 13, 26, 0.2), rgba(10, 13, 26, 0.46));
  transition: opacity 360ms ease;
}

.apartment--ober {
  z-index: 1;
  background-color: #111421;
  background-image: var(--ober-image);
  background-position: right center;
}

.apartment--ober::before {
  opacity: var(--ober-overlay-opacity);
  background:
    linear-gradient(90deg, rgba(12, 16, 28, 0.42), rgba(17, 22, 42, 0.32)),
    rgba(11, 13, 19, 0.1);
}

.apartment--ober::after {
  opacity: var(--ober-shade-opacity);
}

.apartment--see {
  z-index: 2;
  background-color: #32271c;
  background-image: var(--see-image);
  background-position: left center;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  will-change: clip-path;
}

.apartment--see::before {
  opacity: var(--see-overlay-opacity);
  background:
    linear-gradient(90deg, rgba(59, 39, 22, 0.24), rgba(120, 73, 52, 0.42)),
    rgba(68, 45, 29, 0.14);
}

.apartment--see::after {
  opacity: var(--see-shade-opacity);
}

@media (hover: hover) and (pointer: fine) {
  .apartment--see:hover,
  .apartment--see:focus-visible {
    --see-overlay-opacity: 0;
    --see-shade-opacity: 0;
  }

  .apartment--ober:hover,
  .apartment--ober:focus-visible {
    --ober-overlay-opacity: 0;
    --ober-shade-opacity: 0;
  }
}

.apartment:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -10px;
}

.apartment__content {
  position: absolute;
  z-index: 2;
  width: min(32rem, calc(50vw - 4rem));
  text-align: center;
  transform: translate(-50%, -50%);
}

.apartment__content--see {
  top: 52%;
  left: 25%;
}

.apartment__content--ober {
  top: 52%;
  left: 75%;
}

.apartment__eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.apartment h2 {
  margin: 0;
  font-size: 4.15rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 0.96;
  text-wrap: balance;
}

.apartment--see h2 {
  font-family: "Slightwell", "Snell Roundhand", "Apple Chancery", "Segoe Script", cursive;
  font-size: 5.25rem;
  font-weight: 400;
}

.apartment--ober h2 {
  font-weight: 760;
  text-transform: uppercase;
}

.apartment__copy {
  max-width: 22rem;
  margin: 1.25rem auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.06rem;
  line-height: 1.55;
}

.apartment__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.25rem;
  margin-top: 2rem;
  padding: 0.95rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: var(--see-button);
  box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.apartment__cta::after {
  content: "→";
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 0;
}

.apartment--ober .apartment__cta {
  background: var(--ober-button);
}

.apartment:hover .apartment__cta,
.apartment:focus-visible .apartment__cta {
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-2px);
}

.apartment--see:hover .apartment__cta,
.apartment--see:focus-visible .apartment__cta {
  background: var(--see-button-hover);
}

.apartment--ober:hover .apartment__cta,
.apartment--ober:focus-visible .apartment__cta {
  background: var(--ober-button-hover);
}

.brand {
  position: fixed;
  top: 1.55rem;
  left: 50%;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  width: min(13rem, calc(100vw - 2rem));
  transform: translateX(-50%);
  pointer-events: none;
}

.brand img {
  display: block;
  width: 7rem;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 1.4rem 3.5rem rgba(0, 0, 0, 0.32);
}

.brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.waterline {
  position: absolute;
  inset: -1px;
  z-index: 4;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  pointer-events: none;
}

.waterline__glow,
.waterline__stroke {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.waterline__glow {
  stroke: rgba(255, 255, 255, 0.26);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
}

.waterline__stroke {
  stroke: var(--line);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.motion-permission {
  position: absolute;
  right: 1rem;
  bottom: calc(var(--footer-height) + 1rem);
  z-index: 8;
  min-height: 2.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(15, 19, 37, 0.82);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.motion-permission:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 7;
  display: grid;
  gap: 0.55rem;
  min-height: var(--footer-height);
  padding: 1.05rem clamp(1rem, 5vw, 5rem) 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(21, 25, 52, 0.96), rgba(24, 30, 61, 0.94)),
    var(--brand-navy);
  box-shadow: 0 -1rem 3rem rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.footer-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: clamp(0.8rem, 3vw, 2.5rem);
}

.footer-value {
  display: grid;
  grid-template-columns: auto minmax(0, auto);
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.footer-value:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-value svg {
  width: 2.6rem;
  height: 1.65rem;
}

.footer-value path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.64);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.footer-value span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.legal-line {
  max-width: 82rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.34);
  font-size: 0.62rem;
  line-height: 1.25;
  text-align: center;
}

@media (max-width: 1100px) and (orientation: landscape) {
  .apartment h2 {
    font-size: 3.25rem;
  }

  .apartment--see h2 {
    font-size: 4.25rem;
  }

  .apartment__content {
    width: min(21rem, calc(50vw - 3rem));
  }
}

@media (orientation: portrait) {
  :root {
    --see-image: url("../img/seestueberl-hero-mobile.webp");
    --ober-image: url("../img/oberstueberl-hero-mobile.webp");
  }

  .apartment--see {
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
    background-position: center top;
    background-size: cover;
  }

  .apartment--ober {
    background-position: center bottom;
    background-size: cover;
  }

  .apartment__content {
    left: 50%;
    width: min(23rem, calc(100vw - 2.5rem));
    transform: translate(-50%, -50%);
  }

  .apartment__content--see {
    top: 28%;
  }

  .apartment__content--ober {
    top: 69%;
    right: auto;
  }

  .apartment__content--ober .apartment__copy {
    margin-left: auto;
    margin-right: auto;
  }

  .apartment__eyebrow {
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
  }

  .apartment h2 {
    font-size: 3rem;
  }

  .apartment--see h2 {
    font-size: 4rem;
  }

  .apartment__copy {
    max-width: 20rem;
    margin: 0.9rem auto 0;
    font-size: 0.98rem;
  }

  .apartment__cta {
    min-height: 3rem;
    margin-top: 1.35rem;
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
  }

  .brand {
    top: var(--brand-line-y, 50%);
    z-index: 6;
    transform: translate(-50%, -50%);
  }

  .brand img {
    width: 5rem;
  }

  .brand p {
    display: none;
  }

  .motion-permission {
    top: 0.8rem;
    right: 0.8rem;
    bottom: auto;
    min-height: 2.2rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.72rem;
  }

  .site-footer {
    gap: 0.35rem;
    min-height: var(--footer-height);
    padding: 0.68rem 0.8rem 0.52rem;
  }

  .footer-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
  }

  .footer-value {
    gap: 0.45rem;
    font-size: 0.59rem;
  }

  .footer-value:not(:last-child) {
    border-right: 0;
  }

  .footer-value svg {
    width: 2rem;
    height: 1.2rem;
  }

  .legal-line {
    font-size: 0.5rem;
    line-height: 1.18;
  }
}

@media (max-width: 420px) and (orientation: portrait) {
  :root {
    --footer-height: 8.7rem;
  }

  .apartment__content {
    width: min(21rem, calc(100vw - 2rem));
  }

  .apartment h2 {
    font-size: 2.35rem;
  }

  .apartment--see h2 {
    font-size: 3.25rem;
  }

  .brand img {
    width: 4.45rem;
  }

  .apartment__copy {
    font-size: 0.92rem;
  }

  .apartment__cta {
    margin-top: 1rem;
  }

  .footer-value {
    font-size: 0.54rem;
  }
}

@media (max-width: 420px) and (max-height: 700px) and (orientation: portrait) {
  :root {
    --footer-height: 8.15rem;
  }

  .apartment__content--see {
    top: 31%;
  }

  .apartment__content--ober {
    top: 68%;
  }

  .apartment__eyebrow {
    margin-bottom: 0.45rem;
    font-size: 0.64rem;
  }

  .apartment__content--ober .apartment__eyebrow {
    display: none;
  }

  .apartment h2 {
    font-size: 2.05rem;
  }

  .apartment--see h2 {
    font-size: 3rem;
  }

  .apartment__copy {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .apartment__cta {
    min-height: 2.55rem;
    margin-top: 0.75rem;
    padding: 0.72rem 0.9rem;
    font-size: 0.72rem;
  }

  .brand img {
    width: 4.15rem;
  }

  .motion-permission {
    top: 0.65rem;
    min-height: 2.1rem;
    padding: 0.48rem 0.65rem;
    font-size: 0.68rem;
  }

  .site-footer {
    gap: 0.24rem;
    padding: 0.5rem 0.62rem 0.4rem;
  }

  .footer-values {
    gap: 0.35rem 0.5rem;
  }

  .footer-value {
    font-size: 0.48rem;
  }

  .footer-value svg {
    width: 1.75rem;
    height: 1.05rem;
  }

  .legal-line {
    font-size: 0.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apartment--see {
    will-change: auto;
  }

  .apartment__cta {
    transition: none;
  }

  .motion-permission {
    display: none;
  }
}
