* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) {
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button,
input,
select,
textarea {
  color: inherit;
}
a {
  color: inherit;
  text-underline-offset: 0.25em;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 5px;
}
::selection {
  color: var(--color-white);
  background: var(--color-ink);
}
[hidden] {
  display: none !important; /* Native hidden states must override component layout. */
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  text-wrap: balance;
}
h2 {
  font-size: var(--title-section);
  letter-spacing: -0.05em;
  line-height: 1.12;
}
h3 {
  font-size: clamp(1.625rem, 1.2rem + 1vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1.25;
}
img {
  display: block;
  max-width: 100%;
}
.container {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: var(--page-max);
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: var(--space-sm);
  transform: translateY(-200%);
  color: var(--color-white);
  background: var(--color-ink);
}
.skip-link:focus {
  transform: translateY(0);
}
.funding-bar {
  color: var(--color-white);
  background: var(--color-ink);
  font-size: var(--text-min);
}
.funding-bar__link {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.4em;
  padding-block: 0.55rem;
  color: inherit;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.funding-bar__short {
  display: none;
}
.funding-bar__deadline::before,
.funding-bar .deadline-days::before {
  content: "·" / "";
  margin-right: 0.4em;
}
.funding-bar .deadline-days {
  display: inline;
  color: var(--color-highlight);
}
.funding-bar__more {
  margin-left: 0.6em;
  font-weight: 500;
}
.funding-bar__more-label {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.funding-bar__link:hover .funding-bar__more-label {
  text-decoration-thickness: 2px;
}
.funding-bar__link:focus-visible {
  outline: 2px solid var(--color-highlight);
  outline-offset: -2px;
}
.site-header {
  position: relative;
  z-index: 5;
  background: var(--color-white);
}
.header-inner {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.brand {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  text-decoration: none;
}
/* Header: the RM50 lion emblem beside the wordmark (Qemal, 13.10.2026). */
.brand--mark {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}
.brand__mark {
  width: auto;
  height: 3.5rem;
}
.brand__text {
  display: flex;
  flex-direction: column;
}
.brand__name {
  font-size: 2.55rem;
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 1;
}
.brand__name span {
  font-weight: 400;
}
.brand__descriptor {
  margin-top: 0.4rem;
  font-size: var(--text-min);
  letter-spacing: 0.14em;
  line-height: 1.1;
}
.navigation {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.5rem);
}
.navigation > a {
  font-size: var(--text-min);
  font-weight: 500;
  text-decoration: none;
}
.navigation > a:hover {
  text-decoration: underline;
}
.menu-toggle {
  display: none;
}
.menu-toggle__open,
.navigation__brand,
.navigation__meta {
  display: none;
}
.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.5rem;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius);
  color: var(--color-white);
  background: var(--color-ink);
  font-size: var(--text-min);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background var(--duration), transform var(--duration);
}
.button:hover {
  transform: translateY(-2px);
  background: var(--color-text);
}
.button span[aria-hidden="true"],
.text-link span[aria-hidden="true"] {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
/* Line icons from build.py (ICON_ARROW, ICON_NEXT) in the text colour. */
.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.25em;
}
/* Every «Gespräch anfragen» in the gold of the phone menu, dark text at 7.1:1 (Qemal, 13.10.2026). */
.button[data-open-inquiry] {
  border-color: var(--color-cta);
  color: var(--color-cta-text);
  background: var(--color-cta);
}
.button[data-open-inquiry]:hover {
  border-color: var(--color-cta-hover);
  background: var(--color-cta-hover);
}
.button--small {
  min-height: 50px;
  padding-inline: 1.25rem;
}
.button--light {
  color: var(--color-ink);
  background: var(--color-white);
  border-color: var(--color-white);
}
.button--light:hover {
  background: var(--color-sage);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.5rem;
  padding-inline: 0;
  border: 0;
  background: transparent; /* the same look on a <button> (e.g. "Link teilen") as on a link */
  font-size: var(--text-min);
  font-weight: 600;
  text-decoration: underline;
}
.nowrap {
  white-space: nowrap;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-md);
  font-size: var(--text-min);
  font-weight: 600;
  letter-spacing: 0.065em;
  line-height: 1.4;
}
.eyebrow__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-accent);
}
.hero {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-xl);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
}
.hero__content {
  padding-block: var(--space-lg);
  text-align: center; /* Qemal 13.10.2026: headline and lead centred; eyebrow, actions and facts follow. */
}
/* Centred eyebrow: the dot runs inline before the first line instead of standing at the left edge. */
.hero__content .eyebrow {
  display: block;
  text-wrap: balance;
}
.hero__content .eyebrow__dot {
  display: inline-block;
  margin-right: 0.6rem;
  vertical-align: 0.1em;
}
.hero__actions,
.hero__facts {
  justify-content: center;
}
.hero h1 {
  max-width: 12ch;
  margin-inline: auto;
  font-size: var(--title-hero);
  letter-spacing: -0.065em;
  line-height: 1.055;
}
.hero h1 em {
  display: block;
  margin-top: 0.07em;
  color: var(--color-text);
  font-family: var(--font-accent);
  font-weight: 400;
  letter-spacing: -0.055em;
}
.hero__offer {
  display: block;
  margin-bottom: 0.5em;
  font-family: var(--font-body);
  font-size: 0.5em; /* half the headline, so «Aus der Miete ins» grows with it */
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.hero__lead {
  max-width: 38ch;
  margin-inline: auto;
  text-wrap: balance; /* No lone last word under the centred headline. */
  margin-top: var(--space-md);
  color: var(--color-text);
  font-size: var(--text-lead);
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin-top: var(--space-md);
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin: var(--space-md) 0 0;
}
.hero__facts div {
  display: flex;
  flex-direction: column-reverse;
}
.hero__facts dt {
  color: var(--color-text);
  font-size: var(--text-min);
}
.hero__facts dd {
  margin: 0;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.375rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.hero__figure {
  min-width: 0;
}
.hero__image {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 893;
  object-fit: cover;
  border-radius: 0.25rem 0.25rem 0.25rem 4.75rem;
}
.hero figcaption {
  padding-top: 0.8rem;
  color: var(--color-muted);
  font-size: var(--text-min);
}
.features {
  border-block: 1px solid var(--color-line);
  background: var(--color-paper);
}
.features__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  list-style: none;
}
.features__list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--space-md);
}
.features__list li + li {
  border-left: 1px solid var(--color-line);
}
.features__list strong {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
.features__list span {
  color: var(--color-text);
  font-size: var(--text-min);
}
.section {
  padding-block: var(--section-space);
}
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.section-intro > .eyebrow {
  padding-top: 0.4rem;
}
.section-intro h2 {
  max-width: 20ch;
}
.lead {
  max-width: 55ch;
  margin-top: var(--space-md);
  color: var(--color-text);
  font-size: var(--text-lead);
  line-height: 1.65;
}
