/* medien-makler.com – Schibsted Grotesk, Neutralweiß, Tinte, ein Bordeaux-Akzent */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-wght-italic.woff2") format("woff2");
}

:root {
  --bg: #f4f4f0;
  --bg-alt: #e9e9e3;
  --ink: #0b0c0e;
  --ink-soft: #2b2d31;
  --muted: #5a5d63;
  --rule: #d8d8d0;
  --accent: #7a2433;
  --accent-on-dark: #d98a96;
  --on-accent-muted: #ecd3d6;
  --on-dark: #f4f4f0;
  --on-dark-muted: #a7aab0;
  --line-dark: #4a4e57;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html {
  /* Sprungziele nicht unter der festen Kopfzeile verstecken */
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p,
dd {
  margin: 0 0 1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

/* Lange Komposita in schmalen Spalten trennen */
dd {
  hyphens: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--on-dark);
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.eyebrow {
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

/* Markierung für fehlende Inhalte im Entwurf */
.offen {
  display: inline-block;
  padding: 0.15em 0.6em;
  border: 1px dashed currentColor;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Kopfzeile (bleibt beim Scrollen oben) */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgb(244 244 240 / 0.94);
    backdrop-filter: saturate(1.4) blur(12px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 0.7rem;
}

.wordmark {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  color: var(--accent);
}

.site-header nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-header nav a:not(.button) {
  display: inline-block;
  padding-block: 0.35rem;
  text-decoration: none;
  color: var(--ink-soft);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 200ms var(--ease-out);
}

.button.button-small {
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Auf schmalen Bildschirmen nur Wortmarke und Termin-Button */
@media (max-width: 719px) {
  .site-header nav li:not(.nav-booking) {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .site-header nav a:not(.button):hover {
    background-size: 100% 1px;
  }
}

/* Einstieg */

.hero {
  padding-block: clamp(3.5rem, 10vw, 9rem) clamp(4rem, 9vw, 8rem);
}

.hero h1 {
  max-width: 12.5ch;
  font-size: clamp(2.25rem, 10.2vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.hero-lead {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin-top: clamp(2.25rem, 5vw, 4rem);
}

.hero-lead p {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

.button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 1.6rem;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}

.button svg {
  transition: transform 200ms var(--ease-out);
}

.button:active {
  transform: scale(0.97);
}

/* Varianten: hell auf dunklem Grund, Akzent, Kontur */
.button-light {
  background: var(--on-dark);
  color: var(--ink);
}

.button-accent {
  background: var(--accent);
  color: #fff;
}

.button-outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    background: var(--accent);
    color: #fff;
  }

  .button-accent:hover {
    background: var(--ink);
  }

  .button:hover svg {
    transform: translateX(3px);
  }
}

@media (min-width: 900px) {
  .hero-lead {
    grid-template-columns: 1fr auto;
  }

  .hero-lead .button {
    justify-self: end;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero h1,
  .hero-lead {
    animation: rise 600ms var(--ease-out) both;
  }

  .hero h1 {
    animation-delay: 60ms;
  }

  .hero-lead {
    animation-delay: 140ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow,
  .hero h1,
  .hero-lead {
    animation: fade 300ms ease both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

/* Brücke: Ressorts und Markt */

.bridge {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: var(--section);
}

.bridge-intro {
  display: grid;
  gap: 2.5rem;
}

.bridge h2 {
  max-width: 16ch;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
}

.bridge-text p {
  max-width: 36rem;
  color: var(--on-dark-muted);
  font-size: 1.0625rem;
}

.bridge-text p:first-child {
  color: var(--on-dark);
  font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
  line-height: 1.5;
}

@media (min-width: 900px) {
  .bridge-intro {
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

/* Makler-Diagramm */

.broker {
  --stub: 2.5rem;
  --link: 3.5rem;
  --row: 4.25rem;
  display: grid;
  grid-template-areas:
    "tc"
    "client"
    "hub"
    "tm"
    "market"
    "cap";
  justify-items: center;
  margin: clamp(4rem, 9vw, 7rem) 0 0;
  text-align: center;
}

.broker-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.broker-title-client {
  grid-area: tc;
}

.broker-title-market {
  grid-area: tm;
}

.broker-client {
  grid-area: client;
}

.broker-market {
  grid-area: market;
}

.broker-side li {
  padding-block: 0.3rem;
  font-size: clamp(1.125rem, 1.7vw, 1.5rem);
  font-weight: 550;
  letter-spacing: -0.015em;
}

.broker-hub {
  grid-area: hub;
  position: relative;
  margin-block: 2.5rem;
  padding: 1.25rem 2rem;
  background: var(--accent);
  color: #fff;
  font-size: clamp(1.625rem, 2.6vw, 2.375rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.broker-hub::before,
.broker-hub::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 2.5rem;
  background: var(--line-dark);
}

.broker-hub::before {
  bottom: 100%;
}

.broker-hub::after {
  top: 100%;
}

.broker figcaption {
  grid-area: cap;
  margin-top: 3rem;
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
}

@media (min-width: 900px) {
  .broker {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
      "tc . tm"
      "client hub market"
      "cap cap cap";
    align-items: center;
    justify-items: stretch;
  }

  .broker-title-client {
    text-align: right;
    padding-right: calc(var(--stub) + 1rem);
  }

  .broker-title-market {
    text-align: left;
    padding-left: calc(var(--stub) + 1rem);
  }

  .broker-side {
    position: relative;
  }

  .broker-side li {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--row);
    padding: 0;
  }

  .broker-client li {
    justify-content: flex-end;
    text-align: right;
  }

  .broker-market li {
    justify-content: flex-start;
    text-align: left;
  }

  /* Verbindungslinien zu den Sammelleitungen */
  .broker-client li::after,
  .broker-market li::before {
    content: "";
    flex: none;
    width: var(--stub);
    height: 1px;
    background: var(--line-dark);
    transform-origin: left;
  }

  /* Senkrechte Sammelleitungen links und rechts */
  .broker-side::after {
    content: "";
    position: absolute;
    top: calc(var(--row) / 2);
    bottom: calc(var(--row) / 2);
    width: 1px;
    background: var(--line-dark);
  }

  .broker-client::after {
    right: 0;
  }

  .broker-market::after {
    left: 0;
  }

  .broker-hub {
    margin: 0 var(--link);
    padding: 1.75rem 2.5rem;
    text-align: center;
  }

  .broker-hub::before,
  .broker-hub::after {
    top: 50%;
    bottom: auto;
    left: auto;
    width: var(--link);
    height: 1px;
    background: var(--accent-on-dark);
    transform-origin: left;
  }

  .broker-hub::before {
    right: 100%;
  }

  .broker-hub::after {
    left: 100%;
  }

  .broker figcaption {
    text-align: center;
  }

  /* Einmaliges Aufzeichnen, Richtung: Ihr Haus → Makler → Markt */
  @media (prefers-reduced-motion: no-preference) {
    .js .broker li::after,
    .js .broker li::before,
    .js .broker-hub::before,
    .js .broker-hub::after {
      transform: scaleX(0);
      transition: transform 400ms var(--ease-out) var(--d, 0ms);
    }

    .js .broker-side::after {
      transform: scaleY(0);
      transition: transform 400ms var(--ease-out) var(--d, 0ms);
    }

    .js .broker-hub {
      opacity: 0;
      transform: scale(0.96);
      transition: opacity 400ms var(--ease-out) 480ms, transform 400ms var(--ease-out) 480ms;
    }

    .js .broker-market li {
      opacity: 0;
      transition: opacity 400ms var(--ease-out) var(--d, 0ms);
    }

    .broker-client li:nth-child(2) { --d: 60ms; }
    .broker-client li:nth-child(3) { --d: 120ms; }
    .broker-client::after { --d: 260ms; }
    .broker-hub::before { --d: 380ms; }
    .broker-hub::after { --d: 640ms; }
    .broker-market::after { --d: 760ms; }
    .broker-market li:nth-child(1) { --d: 880ms; }
    .broker-market li:nth-child(2) { --d: 940ms; }
    .broker-market li:nth-child(3) { --d: 1000ms; }

    .js .broker.is-visible li::after,
    .js .broker.is-visible li::before,
    .js .broker.is-visible .broker-hub::before,
    .js .broker.is-visible .broker-hub::after,
    .js .broker.is-visible .broker-side::after {
      transform: none;
    }

    .js .broker.is-visible .broker-hub {
      opacity: 1;
      transform: none;
    }

    .js .broker.is-visible .broker-market li {
      opacity: 1;
    }
  }
}

/* Abschnittsköpfe */

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
}

/* Leistungen */

.services {
  padding-block: var(--section);
}

.service-list {
  counter-reset: service;
  border-top: 1px solid var(--ink);
}

.service {
  counter-increment: service;
  display: grid;
  gap: 1rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
}

.service h3 {
  display: flex;
  gap: 1rem;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
}

.service h3::before {
  content: counter(service, decimal-leading-zero);
  flex: none;
  padding-top: 0.5em;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.service dl {
  display: grid;
  gap: 0.25rem 2rem;
  margin: 0;
}

.service dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.service dd {
  margin: 0 0 0.9rem;
}

.service dd:last-child {
  margin-bottom: 0;
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 3rem;
    padding-block: 2.5rem;
  }

  .service dl {
    grid-template-columns: 1.3fr 1fr;
    grid-auto-flow: column;
    grid-template-rows: auto auto;
  }

  .service dd {
    margin: 0;
  }
}

/* Schwerpunkt Jungmakler */

.focus {
  background: var(--accent);
  color: #fff;
  padding-block: var(--section);
}

.focus .eyebrow {
  color: var(--on-accent-muted);
}

.focus-inner {
  display: grid;
  gap: 2.5rem;
}

.focus h2 {
  max-width: 13ch;
  font-size: clamp(2rem, 8.6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.focus-lead {
  max-width: 34rem;
  font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
  line-height: 1.5;
}

.focus-list {
  display: grid;
  gap: 2rem;
  margin-top: 1rem;
}

.focus-list li {
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.35);
}

.focus-list h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.focus-list p {
  color: var(--on-accent-muted);
}

.focus :focus-visible {
  outline-color: #fff;
}

@media (min-width: 900px) {
  .focus-inner {
    grid-template-columns: 5fr 7fr;
    gap: 3rem 4rem;
    align-items: end;
  }

  .focus-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
  }
}

/* Makler-Prinzip */

.principle {
  background: var(--bg-alt);
  padding-block: var(--section);
}

.principle-list {
  display: grid;
  gap: 2.5rem;
  counter-reset: principle;
}

.principle-list li {
  counter-increment: principle;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
}

.principle-list h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.principle-list h3::before {
  content: counter(principle, decimal-leading-zero);
  display: block;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.principle-list p {
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .principle-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

/* Ablauf */

.process {
  padding-block: var(--section);
}

.steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  column-gap: 1rem;
  align-content: start;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  font-size: 1.375rem;
  margin-bottom: 0.35rem;
  align-self: center;
}

.steps p {
  color: var(--muted);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .steps {
    position: relative;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }

  .steps::before {
    content: "";
    position: absolute;
    top: 1.375rem;
    left: 2.75rem;
    right: 0;
    border-top: 1px solid var(--rule);
  }

  .steps li {
    position: relative;
    grid-template-columns: 1fr;
    row-gap: 1.25rem;
  }

  .steps li::before {
    grid-row: auto;
    background: var(--bg);
  }

  .steps h3 {
    align-self: start;
  }
}

/* Person */

.person {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
}

.person-inner {
  display: grid;
  gap: 2.5rem;
}

.portrait {
  margin: 0;
  width: min(100%, 18rem);
}

@media (min-width: 900px) {
  .portrait {
    width: min(100%, 24rem);
  }
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--bg-alt);
}

.person-text h2 {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
}

.person-lead {
  margin-top: 0.75rem;
  font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
  font-weight: 500;
  color: var(--accent);
}

.person-text p:not(.eyebrow, .person-lead) {
  max-width: 36rem;
  color: var(--ink-soft);
}

.text-link {
  font-weight: 600;
  color: var(--accent);
  text-decoration-thickness: 1px;
}

.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block: 1.75rem;
}

.roles li {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}

@media (min-width: 900px) {
  .person-inner {
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
    align-items: center;
  }
}

/* Kontakt */

.contact {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: var(--section);
}

.contact-inner {
  display: grid;
  gap: 2rem;
}

.contact h2 {
  max-width: 11ch;
  font-size: clamp(2.5rem, 6.4vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.contact p {
  max-width: 32rem;
  color: var(--on-dark-muted);
  font-size: 1.125rem;
}

.contact :focus-visible {
  outline-color: var(--accent-on-dark);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
}

.contact-mail {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--on-dark);
  text-decoration-color: var(--accent-on-dark);
}

@media (min-width: 900px) {
  .contact-inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: end;
    gap: 4rem;
  }
}

/* Fußzeile */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem;
  border-top: 1px solid #2a2c31;
}

.footer-inner ul {
  display: flex;
  gap: 1.5rem;
}

.site-footer :focus-visible {
  outline-color: var(--accent-on-dark);
}

@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover {
    color: var(--on-dark);
  }
}

/* Rechtsseiten */

.legal {
  padding-block: clamp(3rem, 8vw, 6rem) var(--section);
}

.legal h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
}

.legal h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal ul {
  max-width: 42rem;
}

.legal ul {
  margin: 0 0 1em;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal li {
  margin-bottom: 0.35rem;
}

.legal-date {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Terminbuchung im Overlay (Cal.com wird erst beim Öffnen geladen) */

html:has(.booking[open]) {
  overflow: hidden;
}

.booking {
  width: min(100% - 2rem, 64rem);
  height: min(100dvh - 2rem, 48rem);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(11 12 14 / 0.35);
  opacity: 1;
  transform: none;
  transition:
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    overlay 220ms allow-discrete,
    display 220ms allow-discrete;
}

/* Layout im inneren Container, damit es auch während der Ausblendung erhalten bleibt */
.booking-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Schließen schneller als Öffnen */
.booking:not([open]) {
  opacity: 0;
  transform: scale(0.97);
  transition-duration: 150ms;
}

@starting-style {
  .booking[open] {
    opacity: 0;
    transform: scale(0.97);
  }
}

.booking::backdrop {
  background: rgb(11 12 14 / 0.6);
  opacity: 1;
  transition:
    opacity 220ms ease,
    overlay 220ms allow-discrete,
    display 220ms allow-discrete;
}

.booking:not([open])::backdrop {
  opacity: 0;
  transition-duration: 150ms;
}

@starting-style {
  .booking[open]::backdrop {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking,
  .booking:not([open]) {
    transform: none;
  }

  @starting-style {
    .booking[open] {
      transform: none;
    }
  }
}

.booking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.75rem 0.75rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.booking-head p {
  margin: 0;
  font-weight: 600;
}

.booking-close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 150ms ease, transform 160ms var(--ease-out);
}

.booking-close:active {
  transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
  .booking-close:hover {
    background: var(--bg-alt);
  }
}

.booking iframe {
  flex: 1;
  width: 100%;
  border: 0;
}

@media (max-width: 599px) {
  .booking {
    width: 100%;
    height: 100dvh;
    margin: 0;
  }
}

/* Digitale Visitenkarte */

.card-page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.card {
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 6vw, 3.5rem) var(--gutter) 2rem;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.card-top .wordmark {
  font-size: 1.125rem;
}

.card-photo {
  display: block;
  width: 7rem;
  height: 7rem;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--bg-alt);
}

.card-role {
  margin: 1.75rem 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.card h1 {
  font-size: clamp(2.25rem, 11vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.card-claim {
  margin-top: 0.85rem;
  color: var(--ink-soft);
}

.card-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.card-actions .button {
  justify-self: stretch;
  justify-content: center;
  padding-block: 1.1rem;
}

.card-links {
  margin-top: 2rem;
  border-top: 1px solid var(--ink);
}

.card-links a {
  display: grid;
  gap: 0.1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 500;
}

.card-links span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .card-links a:hover {
    color: var(--accent);
  }
}

.card-footer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem var(--gutter) 2rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .card > * {
    animation: rise 500ms var(--ease-out) both;
  }

  .card > :nth-child(2) { animation-delay: 40ms; }
  .card > :nth-child(3) { animation-delay: 80ms; }
  .card > :nth-child(4) { animation-delay: 120ms; }
  .card > :nth-child(5) { animation-delay: 160ms; }
  .card > :nth-child(6) { animation-delay: 200ms; }
  .card > :nth-child(7) { animation-delay: 240ms; }
}
