:root {
  --paper: #fbfaf7;
  --ink: #1f2421;
  --muted: #6c706b;
  --line: #d9d4c8;
  --accent: #24594c;
  --soft: #eef1ec;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 1rem max(1.25rem, calc((100vw - 1120px) / 2));
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
}

.wordmark span {
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.wordmark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav a,
.footer a,
.contact-grid a {
  border-bottom: 1px solid rgba(36, 89, 76, 0.35);
}

.intro,
.split-section,
.notice-band,
.contact-section {
  width: min(1120px, calc(100vw - 2.5rem));
  margin: 0 auto;
}

.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: 4rem;
  align-items: end;
  width: 100%;
  min-height: min(820px, calc(100dvh - 64px));
  padding: 8rem max(1.25rem, calc((100vw - 1120px) / 2)) 6rem;
  overflow: hidden;
  color: var(--paper);
  background-color: #384139;
  background-image: url("assets/images/raum-stephan-1920.jpg");
  background-image: -webkit-image-set(
    url("assets/images/raum-stephan-1600.webp") 1x,
    url("assets/images/raum-stephan-2400.webp") 2x
  );
  background-image: image-set(
    url("assets/images/raum-stephan-1600.webp") 1x,
    url("assets/images/raum-stephan-2400.webp") 2x
  );
  background-attachment: fixed;
  /*background-position: center bottom;*/
  background-size: cover;
  border-bottom: 0;
  background-repeat: no-repeat;
}

.intro::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(20, 26, 23, 0.42);
}

.intro > * {
  position: relative;
  z-index: 1;
}

.intro-copy {
  max-width: 780px;
}

.intro .kicker {
  color: rgba(251, 250, 247, 0.92);
}

.intro h1 {
  color: var(--paper);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.22);
}

.kicker {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.3rem;
  font-size: 4.75rem;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.65rem;
}

h3 {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 1rem;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.2rem;
  text-wrap: pretty;
}

.intro .lead {
  color: rgba(251, 250, 247, 0.88);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.22);
}

.updated {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.quick-info {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ink);
}

.quick-info p {
  margin: 0;
  padding: 1rem 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.intro .quick-info {
  border-top-color: rgba(251, 250, 247, 0.72);
}

.intro .quick-info p {
  color: rgba(251, 250, 247, 0.88);
  border-bottom-color: rgba(251, 250, 247, 0.34);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.2);
}

@media (min-width: 1800px) and (min-aspect-ratio: 16 / 9) {
  .intro {
    background-color: #d8d7cf;
    background-position: center center;
    background-size: min(1920px, 100vw) auto;
  }
}

.split-section {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 4rem;
  padding: 5.5rem 0;
}

.line-top {
  border-top: 1px solid var(--line);
}

.section-heading p {
  max-width: 430px;
  color: var(--muted);
  text-wrap: pretty;
}

.people {
  display: grid;
  gap: 1rem;
}

.person {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.person p {
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.photo-slot {
  display: block;
  width: 180px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
}

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

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-list article {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.service-list span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  opacity: 0.65;
}

.service-list h3 {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.5;
}

.notice-band {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 4rem;
  padding: 2rem;
  background: var(--soft);
  border: 1px solid var(--line);
}

.notice-band h2 {
  margin-bottom: 0;
}

.notice-band p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  text-wrap: pretty;
}

.answer-section,
.faq-section {
  width: min(1120px, calc(100vw - 2.5rem));
  margin: 0 auto;
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

.answer-section {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 4rem;
}

.answer-grid {
  display: grid;
  gap: 1rem;
}

.answer-grid article {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.answer-grid p,
.faq-section p {
  max-width: 680px;
  color: var(--muted);
  text-wrap: pretty;
}

.faq-section h2 {
  max-width: 680px;
}

.faq-section details {
  max-width: 780px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.faq-section summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.faq-section p {
  margin: 0.8rem 0 0;
}

.map-section {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 4rem;
  width: min(1120px, calc(100vw - 2.5rem));
  margin: 0 auto;
  padding: 5.5rem 0;
  border-top: 1px solid var(--line);
}

.map-consent {
  display: grid;
  min-height: 380px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.map-consent-copy {
  align-self: center;
  max-width: 520px;
  padding: 2rem;
}

.map-consent-copy p {
  color: var(--muted);
  text-wrap: pretty;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
}

.map-actions a {
  color: var(--muted);
  border-bottom: 1px solid rgba(36, 89, 76, 0.35);
}

.map-load-button {
  min-height: 2.9rem;
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--accent);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: opacity 160ms ease, transform 160ms ease;
}

.map-load-button:hover,
.map-load-button:focus-visible {
  opacity: 0.88;
  transform: translateY(-1px);
}

.map-load-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.map-consent iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.map-consent.is-loaded {
  min-height: 420px;
  background: transparent;
}

.contact-section {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 4rem;
  padding: 5.5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-grid article {
  min-height: 150px;
  padding: 1.35rem;
  background: var(--paper);
}

.contact-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.map-link {
  grid-column: 2;
  justify-self: start;
  padding: 0.8rem 1rem;
  color: var(--paper);
  background: var(--accent);
  font-weight: 700;
  transition: opacity 160ms ease, transform 160ms ease;
}

.map-link:hover,
.map-link:focus-visible {
  opacity: 0.88;
  transform: translateY(-1px);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  padding: 2rem 1.25rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

.footer p {
  margin: 0;
}

.legal-main {
  width: min(1120px, calc(100vw - 2.5rem));
  margin: 0 auto;
  padding: 6rem 0;
}

.legal-panel {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--ink);
}

.legal-panel > .kicker {
  grid-column: 1;
}

.legal-panel > h1 {
  grid-column: 1 / -1;
  margin-top: -3.6rem;
  margin-left: 330px;
}

.legal-grid,
.legal-stack {
  grid-column: 2;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

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

.legal-grid article,
.legal-stack article {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.legal-grid article:nth-child(odd) {
  padding-right: 1.5rem;
}

.legal-grid article:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}

.legal-panel h2 {
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.legal-panel p {
  margin-bottom: 0;
  color: var(--muted);
  text-wrap: pretty;
}

.legal-panel a {
  border-bottom: 1px solid rgba(36, 89, 76, 0.35);
}

.map-section-full {
  width: calc(100% - 80px - 80px);
  left: 0;
  margin-left: 80px;
  min-width: initial;
  height: 366px;
}

@media (max-width: 840px) {
  .topbar,
  .intro,
  .split-section,
  .notice-band,
  .answer-section,
  .map-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .topbar {
    gap: 0.75rem;
  }

  .nav {
    justify-content: flex-start;
  }

  .intro {
    min-height: auto;
    gap: 2.5rem;
    padding: 5rem 1.25rem;
    background-attachment: scroll;
    background-position: 58% bottom;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .split-section,
  .answer-section,
  .map-section,
  .contact-section {
    gap: 2rem;
    padding: 4rem 0;
  }

  .notice-band {
    gap: 1rem;
  }

  .map-link {
    grid-column: auto;
  }

  .legal-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .legal-panel > .kicker,
  .legal-panel > h1,
  .legal-grid,
  .legal-stack {
    grid-column: 1;
  }

  .legal-panel > h1 {
    margin-top: 0;
    margin-left: 0;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .legal-grid article:nth-child(odd),
  .legal-grid article:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .map-section-full {
    width: calc(100% - 80px - 80px);
    left: 0;
    margin-left: 80px;
    min-width: initial;
    height: 366px;
  }
}

@media (max-width: 540px) {
  .intro,
  .split-section,
  .notice-band,
  .answer-section,
  .faq-section,
  .map-section,
  .contact-section {
    width: min(100% - 2rem, 358px);
    margin-right: auto;
    margin-left: 1rem;
  }

  .legal-main {
    width: min(100% - 2rem, 358px);
    margin-right: auto;
    margin-left: 1rem;
    padding: 4rem 0;
  }

  .topbar {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .nav {
    gap: 0.15rem 0.65rem;
    font-size: 0.8rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  .intro {
    width: 100%;
    min-height: 640px;
    margin-right: 0;
    margin-left: 0;
    padding: 4.5rem 1rem;
  }

  .intro-copy,
  .intro .quick-info {
    max-width: 358px;
  }

  .intro h1 {
    font-size: 2.6rem;
  }

  .intro .lead {
    max-width: 358px;
    font-size: 1.05rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .person,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .photo-slot {
    width: min(210px, 100%);
  }

  .notice-band {
    padding: 1.25rem;
  }

  .map-consent {
    min-height: 340px;
  }

  .map-consent-copy {
    padding: 1.25rem;
  }

  .map-consent iframe,
  .map-consent.is-loaded {
    min-height: 340px;
  }

  .map-section-full {
    width: calc(100% - 80px - 80px);
    left: 0;
    margin-left: 80px;
    min-width: initial;
    height: 366px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
