/* Knauseder Immobilien: site styles. Phone first; breakpoints 40rem and 64rem. */

/* ---------- Fonts ---------- */
/* Headings: TeX Gyre Pagella, a Palatino-style serif (GUST Font License, Fonts/Pagella/LICENSE.txt), Latin subset;
   the font qualis.cc falls back to, which Knauseder likes (2026-11-03). Text: the system's Helvetica or Arial. */
@font-face {
  font-family: "Pagella Web";
  src: url("../Fonts/Pagella/pagella-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pagella Web";
  src: url("../Fonts/Pagella/pagella-latin-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --c-accent: #ffb500;
  --c-accent-soft: #fff3d6;
  --c-ink: #1a1a1a;
  --c-ink-soft: #555;
  --c-line: #d6cfc2;
  /* The warm off-white of the qualis page; the bands a shade darker (1.16:1), text on both 5.7:1 or more */
  --c-bg: #f3f1ec;
  --c-bg-soft: #e6e1d6;
  --c-dark: #151515;
  --c-dark-soft: #c8c8c8;
  --c-error: #b00020;
  --c-success: #1b5e20;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Pagella Web", "TeX Gyre Pagella", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: clamp(3rem, 8vw, 5.5rem);
  --radius: 4px;
  --tap: 48px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
/* No smooth scrolling: on a long page it kept a link reached by the Tab key out of sight for a second (2026-11-03) */
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
}
img,
video,
svg {
  max-width: 100%;
  height: auto;
}
img {
  display: block;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
}
h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.25rem);
}
h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
}
h4 {
  font-size: 1.125rem;
}
p,
ul,
ol,
dl,
figure {
  margin: 0 0 var(--space-2);
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-color: var(--c-accent);
  text-decoration-thickness: 3px;
}
strong,
b {
  font-weight: 600;
}
:focus-visible {
  outline: 3px solid var(--c-ink);
  outline-offset: 3px;
}
.section--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--c-accent);
}
main:focus {
  outline: none;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--c-ink);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
}
/* Shown for keyboard focus only (2026-11-04): site.js puts the focus on it when the cookie banner closes, and after a
   click or a tap it stayed over the logo; with the keyboard it is still the first Tab stop and shows */
.skip-link:focus-visible {
  top: var(--space-2);
}
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: calc(48rem + 2 * var(--gutter));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  text-decoration: none;
}
.btn--primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-ink);
}
.btn--primary:hover {
  background: #e6a300;
  border-color: #e6a300;
}
.btn--secondary {
  background: transparent;
  border-color: var(--c-ink);
  color: var(--c-ink);
}
.btn--secondary:hover {
  background: var(--c-ink);
  color: #fff;
}
.btn--light {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn--light:hover {
  background: #fff;
  color: var(--c-ink);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  align-items: center;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-weight: 600;
}
.link-arrow::after {
  content: "→";
  margin-left: 0.4em;
}
.link-arrow--back::after {
  content: none;
}
.link-arrow--back::before {
  content: "←";
  margin-right: 0.4em;
}

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--header-h);
}
.site-logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}
.site-logo img {
  width: auto;
  height: 46px;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0 0.9rem;
  border: 2px solid var(--c-ink);
  border-radius: var(--radius);
  background: var(--c-bg);
  color: var(--c-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}
.nav-toggle__icon {
  position: relative;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__icon::before {
  top: -6px;
}
.nav-toggle__icon::after {
  top: 6px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}
.site-nav {
  display: none;
}
.site-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.site-nav__list,
.site-nav__sub {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list {
  padding: var(--space-1) var(--gutter) var(--space-3);
}
.site-nav__link {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.5rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav__item {
  border-bottom: 1px solid var(--c-line);
}
.site-nav__item:last-child {
  border-bottom: 0;
}
.site-nav__sub {
  padding: 0 0 var(--space-1) var(--space-2);
}
.site-nav__sub .site-nav__link {
  font-size: 1rem;
  font-weight: 400;
}
.site-nav__link[aria-current="page"],
.site-nav__item.is-active > .site-nav__link {
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-decoration-thickness: 3px;
}

@media (min-width: 64rem) {
  :root {
    --header-h: 88px;
  }
  .site-logo img {
    height: 58px;
  }
  .nav-toggle {
    display: none;
  }
  .site-nav,
  .site-nav.is-open {
    display: block;
    position: static;
    max-height: none;
    overflow: visible;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .site-nav__list {
    display: flex;
    gap: 0.25rem;
    padding: 0;
  }
  .site-nav__item {
    position: relative;
    border: 0;
  }
  .site-nav__link {
    padding: 0.5rem 0.85rem;
    font-size: 1.0625rem;
  }
  .site-nav__sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 15rem;
    padding: var(--space-1) 0;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-top: 3px solid var(--c-accent);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .site-nav__sub .site-nav__link {
    padding: 0.5rem 1rem;
  }
  .site-nav__item:hover > .site-nav__sub,
  .site-nav__item:focus-within > .site-nav__sub {
    display: block;
  }
}

/* ---------- Breadcrumb and page header ---------- */
.breadcrumb {
  padding-top: var(--space-2);
  font-size: 0.9375rem;
  color: var(--c-ink-soft);
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin: 0 0.5rem;
  color: var(--c-ink-soft);
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.page-header {
  padding-block: var(--space-4) var(--space-3);
}
.page-header__kicker {
  margin-bottom: var(--space-1);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
.page-header h1 {
  max-width: 22ch;
}
.page-header h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 5px;
  margin-top: var(--space-2);
  background: var(--c-accent);
}
.lead {
  max-width: 44rem;
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  line-height: 1.5;
  color: var(--c-ink-soft);
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space-5);
}
/* Two white bands in a row share one gap, and so do two grey ones; a band that changes the colour keeps its padding */
.section:not(.section--soft, .section--dark) + .section:not(.section--soft, .section--dark),
.section--soft + .section--soft {
  padding-top: 0;
}
.section--soft {
  background: var(--c-bg-soft);
}
.section--dark {
  background: var(--c-dark);
  color: #fff;
}
.section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  margin-bottom: var(--space-3);
}
.section__header h2 {
  margin: 0;
}
.section__intro {
  max-width: 44rem;
  color: var(--c-ink-soft);
}

/* ---------- Rich text ---------- */
.prose {
  max-width: 44rem;
}
.prose h2,
.prose h3 {
  margin-top: var(--space-4);
}
.prose > :first-child {
  margin-top: 0;
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
}
.prose li + li {
  margin-top: 0.35rem;
}
.prose a {
  font-weight: 500;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-3);
}
.prose th,
.prose td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  vertical-align: top;
  /* long words and the mail address wrap on phones instead of pushing the page sideways (Impressum) */
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* ---------- Home: opening ---------- */
/* A builder's opening with photos of built projects (Fabian, 2026-10-27), in two designs chosen by the site setting
   knauseder.home.heroDesign: A "photo" (.hero--photo), B "split" (.hero--split). Both keep "Aktuelle Projekte" and
   the top of its cards on the first screen of a 1440 x 900 display. */
/* The name as the headline's first, smaller line in the same serif, one h1 (Knauseder, 2026-11-04: "Knauseder Immobilien"
   and "Werte mit Bestand." as one); the short yellow bar of the line it replaces stays above it */
.h1-kicker {
  display: block;
  margin-bottom: 0.3em;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: 0;
}
.h1-kicker::before {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-bottom: var(--space-2);
  background: var(--c-accent);
}
.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 6.2vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero .lead {
  max-width: 34rem;
  margin-bottom: var(--space-2);
}
.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-2);
  margin: 0;
}
@media (min-width: 40rem) {
  .hero__links {
    column-gap: var(--space-4);
  }
}

/* A: one photo across the full width. The text sits on at least 86 % dark, so white keeps 4.5:1 or more on any photo
   (a white pixel under 86 % black: 4.9:1); on phones the photo shows above the text, on wide screens beside it */
.hero--photo {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  padding-block: 9rem var(--space-4);
  background: var(--c-dark);
}
.hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(12 12 12 / 0) 0, rgb(12 12 12 / 0.35) 4rem, rgb(12 12 12 / 0.86) 8.5rem, rgb(12 12 12 / 0.88) 100%);
}
.hero--photo > .container {
  width: 100%;
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
@media (min-width: 64rem) {
  /* the wide crop keeps the roof and the mountains */
  .hero__photo {
    object-position: 50% 28%;
  }
}
.hero--photo h1,
.hero--photo .lead,
.hero--photo .link-arrow {
  color: #fff;
}
.hero--photo .link-arrow:focus-visible {
  outline-color: var(--c-accent);
}
.hero--plain {
  min-height: 0;
  padding-block: var(--space-4) var(--space-3);
  background: var(--c-dark);
}
@media (min-width: 64rem) {
  .hero--photo {
    align-items: center;
    min-height: clamp(28rem, 55vh, 32rem);
    padding-block: var(--space-5);
  }
  .hero--photo::before {
    /* dark up to the end of the text column (container edge + gutter + 34rem, plus 2rem), then the photo */
    --text-end: calc(max(0px, (100% - 76rem) / 2) + 38rem);
    background: linear-gradient(90deg, rgb(12 12 12 / 0.88) 0, rgb(12 12 12 / 0.86) var(--text-end), rgb(12 12 12 / 0.35) calc(var(--text-end) + 10rem), rgb(12 12 12 / 0) calc(var(--text-end) + 22rem));
  }
}

/* C (chosen): A's text on the grey band, beside a slideshow of the projects (script: site.js, "Slideshow"). Knauseder's
   opening text (2026-11-03) is long: it runs at the text size across a wider column, the headline on one line, so
   "Aktuelle Projekte" and the cards' tops stay on the first screen of a 1440 x 900 display */
.hero--slides {
  padding-block: var(--space-4);
  background: var(--c-bg-soft);
}
.hero--slides h1 {
  max-width: none;
}
.hero--slides .lead {
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.slides__frame {
  position: relative;
}
.slides__viewport {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-line);
}
.slides__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.slides__slide.is-current {
  z-index: 1;
  opacity: 1;
}
/* A further slide waits, so its picture is not loaded, until the script gets it ready */
.slides__slide.is-waiting {
  display: none;
}
.slides__link {
  display: block;
  height: 100%;
  color: #fff;
  text-decoration: none;
}
.slides__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slides__link:focus-visible {
  outline: 3px solid var(--c-ink);
  outline-offset: -3px;
  box-shadow: inset 0 0 0 6px var(--c-accent);
}
.slides__caption {
  position: absolute;
  bottom: var(--space-2);
  left: var(--space-2);
  max-width: calc(100% - 2 * var(--space-2));
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  background: var(--c-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}
.slides__link:hover .slides__caption {
  text-decoration: underline;
}
/* Arrows on the picture: a white chevron on a 72 % dark circle reads on any photo (8:1 or more, even over white) */
.slides__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(12 12 12 / 0.72);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}
.slides__arrow[hidden] {
  display: none;
}
.slides__arrow--prev {
  left: var(--space-1);
}
.slides__arrow--next {
  right: var(--space-1);
}
.slides__arrow:hover {
  background: rgb(12 12 12 / 0.88);
}
.slides__arrow:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 0;
  box-shadow: 0 0 0 6px var(--c-ink);
}
.slides__arrow svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}
/* A picture's caption, as under the project page's title picture; none at present (the zuchna credit went, 2026-11-04) */
.slides__credit {
  position: absolute;
  top: var(--space-1);
  right: var(--space-1);
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius);
  background: rgb(12 12 12 / 0.8);
  color: #fff;
  font-size: 0.8125rem;
}
@media (min-width: 64rem) {
  .hero--slides {
    padding-block: var(--space-4);
  }
  .hero--slides .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .slides__slide {
    transition: none;
  }
}

/* B: the text beside up to three photos, with the line of steps (Grundstück, Planung, Bau, Schlüsselübergabe) */
.hero--split {
  padding-block: var(--space-4);
  background: var(--c-bg-soft);
}
.hero__grid {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}
.hero__steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  margin: 0 0 var(--space-2);
  padding: 0;
  list-style: none;
  counter-reset: step;
  font-weight: 600;
}
.hero__steps li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  counter-increment: step;
}
.hero__steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-ink);
  font-size: 0.875rem;
}
.hero__mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--space-1);
  height: clamp(9rem, 40vw, 16rem);
}
.hero__tile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero__mosaic .hero__tile:first-child {
  grid-row: 1 / -1;
}
.hero__mosaic--1 {
  grid-template-columns: 1fr;
}
.hero__mosaic--2 .hero__tile:last-child {
  grid-row: 1 / -1;
}
@media (min-width: 64rem) {
  .hero--split {
    padding-block: var(--space-5);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-5);
  }
  .hero__mosaic {
    height: clamp(22rem, 46vh, 26rem);
  }
}

/* ---------- Project page: start and completion, two small facts above the text ---------- */
.project-dates {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--c-line);
}
.project-dates dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
}
.project-dates dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.375rem;
}

/* ---------- Text with picture ---------- */
.textmedia {
  display: grid;
  gap: var(--space-3);
  align-items: center;
}
.textmedia__media img {
  width: 100%;
  border-radius: var(--radius);
}
@media (min-width: 64rem) {
  .textmedia {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
  .textmedia--media-left .textmedia__media {
    order: -1;
  }
}
/* The four seals "… geprüft", a bit smaller (Knauseder, 2026-11-03) */
.image-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: var(--space-3);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.image-row img {
  width: 100%;
  max-width: 9.5rem;
  margin-inline: auto;
}
.image-row figcaption {
  margin-top: var(--space-1);
  font-size: 0.9375rem;
  text-align: center;
  color: var(--c-ink-soft);
}

/* ---------- Project cards ---------- */
.project-grid {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64rem) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .project-grid--compact {
    grid-template-columns: repeat(5, 1fr);
  }
}
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.section--soft .project-card {
  border-color: transparent;
}
.project-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--c-bg-soft);
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.35rem;
  padding: var(--space-2) var(--space-2) var(--space-3);
}
.project-card__title {
  margin: 0;
  font-size: 1.3rem;
}
.project-card__title a {
  text-decoration: none;
}
.project-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.project-card {
  position: relative;
}
.project-card__title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-decoration-thickness: 3px;
}
.project-card__place {
  margin: 0;
  color: var(--c-ink-soft);
}
.project-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.project-card__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-3);
  margin-top: auto;
  padding-top: var(--space-2);
}
.project-card--compact .project-card__body {
  padding-bottom: var(--space-2);
}
.project-card--compact .project-card__title {
  font-size: 1.15rem;
}
.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.project-card__badges {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}
/* "Projekt ansehen" and "Vormerken lassen" on a card: two quiet text links (Knauseder, 2026-11-03), the project comes
   first; the whole card is the link anyway */
.project-card__more,
.project-card__vormerken {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--c-ink-soft);
}
.project-card__more:hover,
.project-card__vormerken:hover {
  color: var(--c-ink);
}
.badge--dark {
  background: var(--c-ink);
  color: #fff;
}

/* ---------- Project page ---------- */
.project-hero {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-3) var(--space-4);
}
.project-hero__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
.project-hero__subtitle {
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  color: var(--c-ink-soft);
}
@media (min-width: 64rem) {
  .project-hero {
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: var(--space-5);
  }
  .project-hero__media {
    order: 2;
  }
}
.project-layout {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 64rem) {
  .project-layout {
    grid-template-columns: 7fr 5fr;
    align-items: start;
    gap: var(--space-5);
  }
  .project-layout__aside {
    position: sticky;
    top: calc(var(--header-h) + var(--space-2));
  }
}
.factbox {
  padding: var(--space-3);
  background: var(--c-bg-soft);
  border-top: 5px solid var(--c-accent);
  border-radius: var(--radius);
}
.factbox h2 {
  font-size: 1.35rem;
}
.factbox dl {
  display: grid;
  /* the terms take at most 40 % of the width; a long one ("Gesamtenergieeffizienzklasse") wraps */
  grid-template-columns: fit-content(40%) minmax(0, 1fr);
  gap: 0.6rem 1rem;
  margin: 0 0 var(--space-3);
}
.factbox dt {
  font-weight: 600;
  /* only at the soft hyphens the facts set (Gesamt-|energie-|effizienz-|klasse), not inside a word part */
  overflow-wrap: break-word;
  hyphens: manual;
}
.factbox dd {
  margin: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.factbox__note {
  font-size: 0.9375rem;
  color: var(--c-ink-soft);
}
.file-list {
  margin: 0 0 var(--space-3);
  padding: 0;
  list-style: none;
}
.file-list li + li {
  margin-top: 0.25rem;
}
.file-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--tap);
  font-weight: 500;
}
.file-list a::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.35rem;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: linear-gradient(var(--c-accent), var(--c-accent)) center 60% / 55% 2px no-repeat;
}
.file-list small {
  color: var(--c-ink-soft);
}

/* ---------- Gallery and lightbox ---------- */
/* The project page's "Bilder", "Grundrisse" and "Video" stand apart from the text above them */
.project-layout__main > h2 {
  margin-top: var(--space-5);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery figure {
  margin: 0;
}
.credit {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--c-ink-soft);
}
.gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-bg-soft);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lightbox {
  width: min(96vw, 80rem);
  max-height: 96vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}
.lightbox__figure {
  margin: 0;
  text-align: center;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 80vh;
  margin-inline: auto;
  object-fit: contain;
}
.lightbox__figure figcaption {
  margin-top: var(--space-1);
}
.lightbox__bar {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-2);
}
.lightbox .btn {
  min-width: var(--tap);
}
.lightbox :focus-visible {
  outline-color: var(--c-accent);
}

/* ---------- Two paths ---------- */
.paths {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 40rem) {
  .paths {
    grid-template-columns: repeat(2, 1fr);
  }
  .paths--3 {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }
}
.path {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-4) var(--space-3);
  background: #fff;
  border: 1px solid var(--c-line);
  border-top: 5px solid var(--c-accent);
  border-radius: var(--radius);
}
.section--soft .path {
  border-color: transparent;
  border-top-color: var(--c-accent);
}
.path :is(h2, h3) a {
  text-decoration: none;
}
.path :is(h2, h3) a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.path :is(h2, h3) a:focus-visible {
  outline: none;
}
.path:has(a:focus-visible) {
  outline: 3px solid var(--c-ink);
  outline-offset: 3px;
}
.path:hover .link-arrow {
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-decoration-thickness: 3px;
}
.path p {
  color: var(--c-ink-soft);
}
.path .link-arrow {
  margin-top: auto;
}

/* ---------- Steps ---------- */
.steps {
  max-width: 48rem;
  counter-reset: step;
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 4rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-ink);
  font-weight: 700;
  font-size: 1.2rem;
}
.steps h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}
.steps p {
  margin: 0;
  color: var(--c-ink-soft);
}

/* ---------- Questions ---------- */
.faq {
  max-width: 48rem;
  border-top: 1px solid var(--c-line);
}
.faq details {
  border-bottom: 1px solid var(--c-line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--tap);
  padding: var(--space-2) 0;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--c-accent);
  font-size: 1.4rem;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq__answer {
  padding: 0 0 var(--space-3);
}
.faq__answer > :last-child {
  margin-bottom: 0;
}

/* ---------- Call to action band ---------- */
.cta {
  display: grid;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius);
  background: var(--c-accent);
  color: var(--c-ink);
}
.cta h2 {
  margin: 0;
}
.cta p {
  margin: var(--space-1) 0 0;
}
.cta .btn--secondary:hover {
  background: var(--c-ink);
  color: var(--c-accent);
}
@media (min-width: 64rem) {
  .cta {
    grid-template-columns: 1fr auto;
    padding: var(--space-5);
  }
}

/* ---------- Contact ---------- */
.contact-box {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 64rem) {
  .contact-box {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: var(--space-5);
  }
}
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  padding: 0.35rem 0;
}
.contact-list__label {
  min-width: 5rem;
  font-weight: 600;
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-block: -0.6rem;
}
address {
  font-style: normal;
}

/* ---------- Forms ---------- */
.form-wrap {
  max-width: 44rem;
}
.form-wrap h2 {
  margin-bottom: var(--space-2);
}
/* After sending, the thank-you stands alone: the line asking for the contact details goes */
.form-wrap:has([data-form-sent]) .form-wrap__intro {
  display: none;
}
.form-notice {
  margin-bottom: var(--space-3);
  padding: var(--space-2);
  border-left: 5px solid var(--c-accent);
  background: var(--c-accent-soft);
}
.form-notice--error {
  border-left-color: var(--c-error);
  background: #fdecee;
}
.form-group,
.form fieldset {
  margin: 0 0 var(--space-3);
}
.form fieldset {
  padding: 0;
  border: 0;
}
.form legend,
.form-label {
  display: block;
  margin-bottom: 0.35rem;
  padding: 0;
  font-weight: 600;
}
.form-required {
  color: var(--c-error);
  font-weight: 600;
  margin-left: 0.15rem;
}
.form-optional {
  font-weight: 400;
  color: var(--c-ink-soft);
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form input[type="url"],
.form select,
.form textarea {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: 0.65rem 0.8rem;
  border: 2px solid #8a8a8a;
  border-radius: var(--radius);
  background: #fff;
  color: var(--c-ink);
  font: inherit;
}
.form textarea {
  min-height: 9rem;
  resize: vertical;
}
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  border-color: var(--c-ink);
  outline: 3px solid var(--c-ink);
  outline-offset: 2px;
}
.form-notice:focus {
  outline: 3px solid var(--c-ink);
  outline-offset: 2px;
}
.form-hint {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: var(--c-ink-soft);
}
.form-error {
  margin: 0.35rem 0 0;
  color: var(--c-error);
  font-weight: 600;
}
.has-error input,
.has-error select,
.has-error textarea {
  border-color: var(--c-error);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: var(--tap);
  padding-block: 0.35rem;
}
.form-check input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.1rem 0 0;
  accent-color: var(--c-ink);
}
.form-check label {
  font-weight: 400;
}
.form-actions {
  margin-top: var(--space-3);
}
.form-noscript {
  padding: var(--space-2);
  border-left: 5px solid var(--c-error);
  background: #fdecee;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--space-5) var(--space-3);
  background: var(--c-dark);
  color: #fff;
}
.site-footer a {
  color: #fff;
}
.site-footer__grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 40rem) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64rem) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.site-footer__logo img {
  width: 220px;
  margin-bottom: var(--space-3);
}
.site-footer h2 {
  margin-bottom: var(--space-1);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li a,
.site-footer .footer-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-button {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid #333;
  font-size: 0.9375rem;
  color: var(--c-dark-soft);
}
.site-footer__bottom p {
  margin: 0;
}
.site-footer__bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-3);
}

/* ---------- Error page ---------- */
.error-page {
  padding-block: var(--space-6);
}
.error-page__code {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--c-accent);
}

/* ---------- Additions: buttons, in-page navigation, tables ---------- */
main > .container + .section {
  padding-top: var(--space-2);
}
.btn--dark {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
}
.btn--dark:hover {
  background: #000;
  color: var(--c-accent);
}
.h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
}
.page-nav {
  margin-top: var(--space-3);
}
.page-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--c-ink);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}
.page-nav a:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
}
.project-layout--single {
  grid-template-columns: minmax(0, 1fr);
}
.project-video {
  width: 100%;
  height: auto;
  margin-bottom: var(--space-4);
  border-radius: var(--radius);
  background: #000;
}
.table-scroll {
  overflow-x: auto;
  margin-bottom: var(--space-3);
}
.flats {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.flats th,
.flats td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid var(--c-line);
  text-align: left;
  white-space: nowrap;
}
.textmedia figure {
  margin: 0 0 var(--space-2);
}
.textmedia figure img {
  width: 100%;
  border-radius: var(--radius);
}
.textmedia figcaption {
  margin-top: var(--space-1);
  font-size: 0.9375rem;
  color: var(--c-ink-soft);
}
.ce-form_formframework .container > * {
  max-width: 44rem;
}

/* ---------- Forms (class names of EXT:form) ---------- */
.form .form-element {
  margin: 0 0 var(--space-3);
}
.form .form-label,
.form legend {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.form ::placeholder {
  color: #6b6b6b;
  opacity: 1;
}
.form .form-check-wrapping-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: var(--tap);
  padding-block: 0.35rem;
}
.form .form-check-input {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.1rem 0 0;
  accent-color: var(--c-ink);
}
.form .form-check-label a {
  font-weight: 600;
}
.form .is-invalid input,
.form .is-invalid select,
.form .is-invalid textarea,
.form input.is-invalid,
.form select.is-invalid,
.form textarea.is-invalid {
  border-color: var(--c-error);
}
.form .form-hint {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: var(--c-ink-soft);
}
.form .form-error {
  display: block;
  margin: 0.35rem 0 0;
  color: var(--c-error);
  font-weight: 600;
}
.form .form-required {
  margin-left: 0.15rem;
  color: var(--c-error);
}
.form-element-hidden {
  display: none;
}
.form .form-actions {
  margin-top: var(--space-3);
}

/* ---------- Cookie banner (dp_cookieconsent) ---------- */
.cc-window,
.cc-window .cc-btn {
  font-family: var(--font) !important;
}
.cc-window {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}
.cc-window .cc-btn {
  min-height: var(--tap);
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius);
}
.cc-window .cc-deny,
.cc-window .cc-allow {
  color: #fff !important;
  text-decoration: underline;
}
.cc-window a,
.cc-window .cc-link {
  color: #fff !important;
  opacity: 1 !important;
}
.cc-window :focus-visible {
  outline: 3px solid var(--c-accent) !important;
  outline-offset: 2px;
}
.cc-window .dp--cookie-check label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-right: 1rem;
}
.cc-window .powered-by {
  display: none !important;
}
/* One left edge for text, choices and buttons, on the page's gutter; the legal links below, readable */
.cc-window .cc-body {
  display: grid;
  gap: var(--space-2) var(--space-4);
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--space-3) var(--gutter) var(--space-1);
}
.cc-window .cc-message {
  padding: 0;
}
.cc-window .cc-compliance {
  min-width: 0;
  padding: 0;
  gap: var(--space-1);
}
.cc-window .cc-legal-links {
  padding: 0;
  font-size: 0.9375rem;
  text-align: left;
  opacity: 1;
}
.cc-window .cc-legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (min-width: 48rem) {
  .cc-window .cc-body {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    align-items: center;
  }
  .cc-window .cc-legal-links {
    grid-column: 1 / -1;
  }
}

/* ---------- Intro (about 4.7 s; switched on by intro.js, ended by site.js when the cover has faded) ---------- */
/* Knauseder's words (2026-11-03): "Werte mit Bestand." rises word by word and stands (hold 1), leaves; "Mensch im
   Mittelpunkt. Qualität im Fundament." the same (hold 2); the yellow box sweeps across and leaves "Knauseder Immobilien
   GmbH" with the white logo in the centre, which stand (hold 3) until the cover fades and the page rises in.
   The beats live here: a "bit shorter or longer" is a change of one of the three holds; the whole stays within 5 s. */
:root {
  --intro-hold-1: 0.5s;
  --intro-hold-2: 0.6s;
  --intro-hold-3: 0.4s;
  --intro-out-1: calc(0.7s + var(--intro-hold-1));
  --intro-in-2: calc(var(--intro-out-1) + 0.25s);
  --intro-out-2: calc(var(--intro-in-2) + 0.9s + var(--intro-hold-2));
  --intro-sweep: calc(var(--intro-out-2) + 0.25s);
  --intro-name-in: calc(var(--intro-sweep) + 0.3s);
  --intro-end: calc(var(--intro-sweep) + 0.6s + var(--intro-hold-3));
}
.intro {
  display: none;
}
.intro-run .intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: #000;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  animation: intro-cover-out 0.5s ease var(--intro-end) forwards;
}
.intro__words,
.intro__brand {
  grid-area: 1 / 1;
  margin: 0;
}
.intro__words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.3em;
}
.intro__words--second {
  flex-direction: column;
  align-items: center;
}
.intro__line {
  display: flex;
  gap: 0 0.3em;
}
.intro__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: intro-word-in 0.3s ease-out calc(0.1s + var(--i) * 0.15s) forwards, intro-word-out 0.25s ease-in var(--intro-out-1) forwards;
}
.intro__words--second .intro__word {
  animation-delay: calc(var(--intro-in-2) + var(--i) * 0.12s), var(--intro-out-2);
}
.intro__brand {
  display: grid;
  justify-items: center;
  gap: var(--space-3);
}
.intro__name {
  position: relative;
  margin: 0;
  padding: 0.15em 0.5em;
}
.intro__box {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 0;
  background: var(--c-accent);
  animation: intro-box 0.6s ease-in-out var(--intro-sweep) forwards;
}
.intro__label {
  display: inline-block;
}
.intro__label,
.intro__logo {
  opacity: 0;
  animation: intro-name-in 0.2s ease var(--intro-name-in) forwards;
}
.intro__logo img {
  width: min(16rem, 60vw);
  height: auto;
}
.intro-run .site-header,
.intro-run main,
.intro-run .site-footer {
  animation: intro-page-in 0.5s ease-out var(--intro-end) both;
}
@keyframes intro-word-in {
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes intro-word-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-30px);
  }
}
@keyframes intro-box {
  0% {
    left: 0;
    width: 0;
  }
  50% {
    left: 0;
    width: 100%;
  }
  100% {
    left: 100%;
    width: 0;
  }
}
@keyframes intro-name-in {
  to {
    opacity: 1;
  }
}
@keyframes intro-cover-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
/* The page only moves, it does not fade: it is painted under the cover from the start (first paint, largest
   picture), and the cover's own fade reveals it */
@keyframes intro-page-in {
  from {
    transform: translateY(24px);
  }
  to {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .intro-run .intro {
    display: none;
  }
  .intro-run .site-header,
  .intro-run main,
  .intro-run .site-footer {
    animation: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .project-card__actions,
  .form-wrap {
    display: none !important;
  }
}
