/* Global base styles for Startseite, Projekt, Investment, Lage und Wohnungen. */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree/Figtree-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree/Figtree-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --c-terracotta: #c94e27;
  --c-light: #e3e4e1;
  --c-blue: #26333c;
  --c-sage: #7f9072;
  --header-height: 76px;
  --edge-gap: clamp(18px, 4vw, 72px);
  --hero-edge-gap: var(--edge-gap);
  --shell: min(1440px, calc(100% - clamp(28px, 4vw, 96px)));
  --space-2xs: clamp(8px, 0.45vw, 12px);
  --space-xs: clamp(12px, 0.75vw, 18px);
  --space-sm: clamp(18px, 1.1vw, 26px);
  --space-md: clamp(28px, 1.9vw, 44px);
  --space-lg: clamp(44px, 3vw, 74px);
  --space-xl: clamp(68px, 5vw, 130px);
  --title-xl: clamp(44px, 5vw, 92px);
  --title-lg: clamp(34px, 3.5vw, 60px);
  --title-md: clamp(26px, 2.2vw, 36px);
  --body: clamp(18px, 1.15vw, 22px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Figtree", sans-serif;
  color: var(--c-blue);
  background:
    radial-gradient(72% 88% at 0% -8%, rgba(201, 78, 39, 0.12), rgba(201, 78, 39, 0) 62%),
    radial-gradient(70% 76% at 100% -10%, rgba(127, 144, 114, 0.18), rgba(127, 144, 114, 0) 66%),
    var(--c-light);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 78, 39, 0.42);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--c-blue);
  letter-spacing: -0.02em;
}

/* Global, consistent spacing between section titles and first body text line. */
.section h1 + p,
.section h2 + p,
.section h3 + p,
.section h4 + p {
  margin-top: clamp(19.2px, 1.6vw, 28.8px);
}

h1 {
  font-size: var(--title-xl);
  line-height: 0.94;
}

h2 {
  font-size: var(--title-lg);
  line-height: 0.98;
}

h3 {
  font-size: var(--title-md);
  line-height: 1.06;
}

h4 {
  font-size: clamp(20px, 1.5vw, 26px);
  line-height: 1.1;
}

p {
  font-size: var(--body);
  color: rgba(38, 51, 60, 0.88);
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 9999;
  padding: 9px 12px;
  color: var(--c-light);
  background: var(--c-blue);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(10px);
  background: rgba(227, 228, 225, 0.9);
}

.header-inner {
  min-height: var(--header-height);
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--edge-gap);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  min-height: 52px;
}

.brand__logo {
  width: auto;
  height: clamp(38px, 3.7vw, 56px);
  max-width: min(320px, 38vw);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: 40px;
  padding: 0 12px;
  background: rgba(127, 144, 114, 0.24);
  color: var(--c-blue);
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

.nav-toggle:active,
.nav-toggle:focus-visible {
  background: transparent;
}

.nav-toggle__label {
  display: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 0;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.24s ease, top 0.24s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 0;
  opacity: 1;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: 0;
  opacity: 1;
  transform: rotate(-45deg);
}

.nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: clamp(10px, 1vw, 18px);
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  color: rgba(38, 51, 60, 0.86);
  background: transparent;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active {
  color: var(--c-terracotta);
  background: transparent;
}

main {
  padding-bottom: 0;
}

.section {
  padding: var(--space-xl) 0;
}

.section--plain {
  background: rgba(227, 228, 225, 0.76);
}

.section--soft {
  background: rgba(127, 144, 114, 0.2);
}

/* Prevent identical adjacent section backgrounds by brightening the second block. */
.section.section--plain + .section.section--plain {
  background: rgba(227, 228, 225, 0.86);
}

.section.section--soft + .section.section--soft {
  background: rgba(127, 144, 114, 0.12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-terracotta);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--c-terracotta);
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn--primary {
  color: var(--c-light);
  background: var(--c-blue);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--c-terracotta);
}

.btn--soft {
  color: var(--c-blue);
  background: rgba(127, 144, 114, 0.26);
}

.btn--soft:hover,
.btn--soft:focus-visible {
  background: rgba(127, 144, 114, 0.42);
}

.btn--download {
  color: var(--c-blue);
  background: #ffffff;
}

.btn--download:hover,
.btn--download:focus-visible {
  color: #ffffff;
  background: var(--c-terracotta);
}

.reveal-in {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 720ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 720ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
}

.reveal-in.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Keep hero headline size consistent across all main pages. */
.hero-copy h1,
.hero-copy h2,
.project-hero__copy h1,
.project-hero__copy h2,
.invest-hero__copy h1,
.invest-hero__copy h2,
.lage-hero__copy h1,
.lage-hero__copy h2,
.living-hero__copy h1,
.living-hero__copy h2,
.contact-hero__copy h1,
.contact-hero__copy h2 {
  font-size: var(--title-lg);
  line-height: 0.98;
}

/* Shared hero layout for Projekt, Investment, Lage, Wohnungen und Kontakt. */
.project-hero,
.invest-hero,
.lage-hero,
.living-hero,
.contact-hero {
  padding-top: 0;
  padding-bottom: 0;
}

.project-hero__grid,
.invest-hero__grid,
.lage-hero__grid,
.living-hero__grid,
.contact-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  min-height: calc(100svh - var(--header-height));
  height: calc(100svh - var(--header-height));
  max-height: calc(100svh - var(--header-height));
  overflow: hidden;
  background: rgba(227, 228, 225, 0.88);
}

.project-hero__copy,
.invest-hero__copy,
.lage-hero__copy,
.living-hero__copy,
.contact-hero__copy {
  padding-block: clamp(18px, 2.1vw, 34px);
  padding-inline: var(--edge-gap);
  display: grid;
  align-content: center;
  gap: clamp(19.2px, 1.6vw, 28.8px);
  background: rgba(227, 228, 225, 0.92);
  overflow: hidden;
}

.project-hero__lead,
.invest-hero__lead,
.lage-hero__lead,
.living-hero__lead,
.contact-hero__lead {
  max-width: 90%;
}

.project-hero__actions,
.invest-hero__actions,
.lage-hero__actions,
.living-hero__actions,
.contact-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.project-hero__media,
.invest-hero__media,
.lage-hero__media,
.living-hero__media,
.contact-hero__media {
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.project-hero__media img,
.invest-hero__media img,
.lage-hero__media img,
.living-hero__media img,
.contact-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Global hero fact cards: same divider, spacing, and typography across all hero sections. */
.hero-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: calc(var(--space-xs) * 2);
  gap: var(--space-xs);
}

.hero-fact {
  --hero-fact-gap: 19.2px;
  position: relative;
  padding-block: 9px;
  padding-inline-start: 20px;
  padding-inline-end: 14px;
  background: rgba(201, 78, 39, 0.14);
  display: grid;
  grid-template-columns: 24px 2px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: var(--hero-fact-gap);
  row-gap: 7px;
  align-items: center;
}

.hero-fact-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 24px;
  justify-self: stretch;
  align-self: stretch;
  color: var(--c-blue);
  line-height: 0;
}

.icon-mask {
  display: block;
  background: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.hero-fact-icon svg,
.hero-fact-icon .icon-mask {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
}

.hero-fact::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 0;
  border-left: 2px solid var(--c-light);
  box-sizing: border-box;
  justify-self: center;
  align-self: stretch;
  margin-block: 0;
}

.hero-fact strong {
  grid-column: 3;
  grid-row: 1;
  color: var(--c-blue);
  font-size: clamp(17px, 1.05vw, 20px);
  font-weight: 700;
  line-height: 1.16;
}

.hero-fact span {
  grid-column: 3;
  grid-row: 2;
  margin-top: 0;
  color: rgba(38, 51, 60, 0.82);
  font-size: clamp(14px, 0.9vw, 16px);
  line-height: 1.45;
}

.footer {
  background: rgba(227, 228, 225, 0.9);
  padding: clamp(44px, 4vw, 74px) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.footer-grid h4 {
  color: var(--c-blue);
  margin-bottom: var(--space-xs);
}

.footer-logo {
  display: block;
  width: 60%;
  height: auto;
  margin-bottom: var(--space-xs);
}

.footer-grid p,
.footer-grid a,
.footer-grid button {
  color: var(--c-blue);
  font-size: clamp(15px, 0.94vw, 18px);
  line-height: 1.52;
}

.footer-grid a,
.footer-grid button {
  transition: color 0.2s ease;
}

.footer-grid a:hover,
.footer-grid a:focus-visible,
.footer-grid button:hover,
.footer-grid button:focus-visible {
  color: var(--c-terracotta);
}

.footer-contact,
.footer-nav {
  display: grid;
  gap: 8px;
}

.footer-nav button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

body.cookie-modal-open {
  overflow: hidden;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 28px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.cookie-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 51, 60, 0.44);
  backdrop-filter: blur(3px);
}

.cookie-modal__panel {
  position: relative;
  width: min(620px, calc(100vw - 32px));
  padding: clamp(18px, 2.6vw, 28px);
  background: rgba(227, 228, 225, 0.98);
  box-shadow: 0 22px 48px rgba(9, 14, 19, 0.24);
  display: grid;
  gap: clamp(10px, 1.2vw, 16px);
}

.cookie-modal__panel h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 0.98;
}

.cookie-modal__panel p {
  font-size: clamp(14px, 1vw, 16px);
  color: rgba(38, 51, 60, 0.88);
}

.cookie-choices {
  display: grid;
  gap: 8px;
}

.cookie-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: rgba(127, 144, 114, 0.15);
}

.cookie-choice.is-locked {
  background: rgba(38, 51, 60, 0.08);
}

.cookie-choice__copy {
  display: grid;
  gap: 2px;
}

.cookie-choice__copy strong {
  color: var(--c-blue);
  font-size: 15px;
  letter-spacing: 0;
}

.cookie-choice__copy span {
  color: rgba(38, 51, 60, 0.82);
  font-size: 13px;
  line-height: 1.4;
}

.cookie-toggle {
  min-width: 58px;
  height: 34px;
  border: 0;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(38, 51, 60, 0.12);
  cursor: pointer;
}

.cookie-toggle.is-on {
  color: var(--c-light);
  background: var(--c-blue);
}

.cookie-toggle:disabled {
  cursor: default;
  opacity: 0.82;
}

.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cookie-modal__actions .btn {
  min-height: 40px;
  padding-inline: 14px;
}

.cookie-modal__legal {
  text-align: center;
}

.cookie-modal__legal a {
  color: var(--c-terracotta);
}

[data-cookie-embed="maps"] {
  position: relative;
}

.cookie-embed__placeholder {
  height: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(38, 51, 60, 0.18), rgba(38, 51, 60, 0.06)),
    rgba(227, 228, 225, 0.84);
  padding: 16px;
}

.cookie-embed__box {
  width: min(620px, 92%);
  background: rgba(227, 228, 225, 0.96);
  padding: clamp(14px, 2vw, 22px);
  display: grid;
  gap: 10px;
  text-align: center;
  box-shadow: 0 18px 34px rgba(38, 51, 60, 0.14);
}

.cookie-embed__box h3 {
  font-size: clamp(22px, 2.4vw, 28px);
}

.cookie-embed__box p {
  font-size: clamp(14px, 1vw, 16px);
}

.cookie-embed__box .btn {
  justify-self: center;
}

[data-cookie-embed="maps"].is-enabled .cookie-embed__placeholder {
  display: none;
}

@media (max-width: 1180px) {
  .project-hero__grid,
  .invest-hero__grid,
  .lage-hero__grid,
  .living-hero__grid,
  .contact-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    height: auto;
    max-height: none;
  }

  .project-hero__media,
  .invest-hero__media,
  .lage-hero__media,
  .living-hero__media,
  .contact-hero__media {
    order: 1;
  }

  .project-hero__copy,
  .invest-hero__copy,
  .lage-hero__copy,
  .living-hero__copy,
  .contact-hero__copy {
    order: 2;
  }

  .project-hero__media,
  .invest-hero__media,
  .lage-hero__media,
  .living-hero__media,
  .contact-hero__media {
    min-height: clamp(340px, 52vw, 560px);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .nav-toggle {
    display: inline-flex;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    color: rgba(38, 51, 60, 0.94);
    position: relative;
    z-index: 1100;
  }

  .nav-toggle__bars {
    position: relative;
  }

  .nav-toggle[aria-expanded="true"] {
    background: transparent;
    color: rgba(38, 51, 60, 0.98);
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  body.mobile-nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 190;
    background: rgba(38, 51, 60, 0.24);
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    height: calc(100svh - var(--header-height) - 22px);
    max-height: calc(100dvh - var(--header-height) - 22px);
    z-index: 1060;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(162deg, rgba(252, 252, 250, 0.99) 0%, rgba(242, 244, 240, 0.96) 100%);
    box-shadow: 0 22px 48px rgba(8, 13, 19, 0.15);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-18px) scale(0.985);
    transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav::before {
    content: "";
    display: block;
    width: min(480px, 82vw);
    height: 56px;
    margin: 2px 0 12px;
    background: url("/assets/images/logos/albrecht-logo.svg") no-repeat center center / contain;
    align-self: center;
    flex: 0 0 auto;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    min-height: 44px;
    height: auto;
    flex: 1 1 0;
    border-radius: 0;
    background: rgba(227, 228, 225, 0.56);
    color: var(--c-blue);
    font-family: "Figtree", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(17px, 5.4vw, 24px);
    line-height: 1.03;
    letter-spacing: -0.02em;
    text-transform: none;
    text-align: center;
  }

  .nav a.is-active {
    background: rgba(127, 144, 114, 0.24);
  }

  .cookie-modal__panel {
    width: min(560px, calc(100vw - 28px));
  }
}

@media (max-width: 720px) {
  .section {
    padding: clamp(48px, 8.5vw, 74px) 0;
  }

  .btn {
    min-height: 42px;
  }

  .project-hero .project-hero__copy,
  .invest-hero .invest-hero__copy,
  .lage-hero .lage-hero__copy,
  .living-hero .living-hero__copy,
  .contact-hero .contact-hero__copy {
    padding: clamp(20px, 6vw, 30px);
  }

  .project-hero .project-hero__grid,
  .invest-hero .invest-hero__grid,
  .lage-hero .lage-hero__grid,
  .living-hero .living-hero__grid,
  .contact-hero .contact-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: auto;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .project-hero .project-hero__media,
  .invest-hero .invest-hero__media,
  .lage-hero .lage-hero__media,
  .living-hero .living-hero__media,
  .contact-hero .contact-hero__media {
    min-height: 45vh;
    height: 45vh;
  }

  .project-hero .project-hero__copy,
  .invest-hero .invest-hero__copy,
  .lage-hero .lage-hero__copy,
  .living-hero .living-hero__copy,
  .contact-hero .contact-hero__copy {
    gap: clamp(9.6px, 0.8vw, 14.4px);
    overflow: visible;
  }

  .project-hero .project-hero__copy h1 + p,
  .project-hero .project-hero__copy h2 + p,
  .invest-hero .invest-hero__copy h1 + p,
  .invest-hero .invest-hero__copy h2 + p,
  .lage-hero .lage-hero__copy h1 + p,
  .lage-hero .lage-hero__copy h2 + p,
  .living-hero .living-hero__copy h1 + p,
  .living-hero .living-hero__copy h2 + p,
  .contact-hero .contact-hero__copy h1 + p,
  .contact-hero .contact-hero__copy h2 + p {
    margin-top: clamp(9.6px, 0.8vw, 14.4px);
  }

  .project-hero .project-hero__lead,
  .invest-hero .invest-hero__lead,
  .lage-hero .lage-hero__lead,
  .living-hero .living-hero__lead,
  .contact-hero .contact-hero__lead {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    text-align: center;
    justify-items: center;
  }

  .footer-logo {
    margin-inline: auto;
  }

  .footer-nav,
  .footer-contact {
    justify-items: center;
  }

  .footer-nav button,
  .footer-grid a {
    justify-self: center;
  }

  .cookie-modal {
    align-items: end;
    padding: 10px;
  }

  .cookie-modal__panel {
    width: min(520px, calc(100vw - 20px));
    max-height: min(86svh, 700px);
    overflow-y: auto;
  }

  .cookie-choice {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 10px;
  }

  .cookie-toggle {
    min-width: 66px;
  }

  .cookie-modal__actions {
    justify-content: stretch;
  }

  .cookie-modal__actions .btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .project-hero__media,
  .invest-hero__media,
  .lage-hero__media,
  .living-hero__media,
  .contact-hero__media {
    min-height: 0;
    height: auto;
  }

  .project-hero__media img,
  .invest-hero__media img,
  .lage-hero__media img,
  .living-hero__media img,
  .contact-hero__media img {
    height: auto;
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-in,
  .reveal-in.is-revealed {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 720px) {
  .footer-grid {
    text-align: center;
    justify-items: center;
  }

  .footer-logo {
    margin-inline: auto;
  }

  .footer-nav,
  .footer-contact {
    justify-items: center;
  }

  .footer-nav button,
  .footer-grid a {
    justify-self: center;
  }
}
