/* ---------- Fonts ---------- */
@font-face {
  font-family: "Meboria";
  src: url("../assets/fonts/Meboria.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue LT Std";
  src: url("../assets/fonts/HelveticaNeueLTStd-Lt.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue LT Std";
  src: url("../assets/fonts/HelveticaNeueLTStd-Roman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  hyphens: auto;
  overflow-wrap: break-word;
}

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

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

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

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

.section--tint {
  background: var(--color-pink);
}

.stack > * + * {
  margin-top: clamp(1rem, 2.5vw, 2rem);
}

/* ---------- Typography ---------- */
.eyebrow {
  color: var(--color-red);
  font-size: var(--fs-lead);
  line-height: 1.3;
}

.display,
.heading {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-text);
}

.display {
  font-size: var(--fs-display);
  color: var(--color-black);
}

.heading {
  font-size: var(--fs-h2);
}

.heading--light {
  color: var(--color-white);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  max-width: 48rem;
}

.lead--black {
  color: var(--color-black);
}

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

/* ---------- Header ---------- */
.site-header {
  background: var(--color-grey-header);
  padding-block: clamp(1.5rem, 4vw, 2.875rem);
}

.site-header__logo {
  width: min(100%, 479px);
  height: auto;
}

/* ---------- Hero ---------- */
.hero__text {
  max-width: 58rem;
}

/* ---------- Location / move band ---------- */
.move-band {
  background: var(--color-red);
  color: var(--color-white);
  margin-block: clamp(2.5rem, 6vw, 5rem);
  padding-block: clamp(2rem, 5vw, 4rem);
}

.move {
  width: min(100% - 2 * var(--gutter), 56rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(3rem, 1fr) auto;
  grid-template-areas:
    "from-label . to-label"
    "from-no arrow to-no";
  column-gap: clamp(1rem, 4vw, 3rem);
  align-items: end;
}

.move__label {
  font-size: var(--fs-lead);
  line-height: 1.3;
}

.move__label--from { grid-area: from-label; }
.move__label--to   { grid-area: to-label; }
.move__number--from { grid-area: from-no; }
.move__number--to   { grid-area: to-no; }

.move__number {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: 1.1;
}

/* CSS arrow: scales cleanly, flips to vertical on narrow screens */
.move__arrow {
  grid-area: arrow;
  position: relative;
  height: 2px;
  margin-bottom: calc(var(--fs-display) * 0.55);
  background: currentColor;
}

.move__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center;
}

@media (max-width: 40rem) {
  .move {
    grid-template-columns: 1fr;
    grid-template-areas:
      "from-label"
      "from-no"
      "arrow"
      "to-label"
      "to-no";
    justify-items: center;
    text-align: center;
    row-gap: 0.25rem;
  }

  .move__arrow {
    width: 2px;
    height: 3.5rem;
    margin: 1rem 0 1.5rem;
  }

  .move__arrow::after {
    right: auto;
    top: auto;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) rotate(135deg);
  }
}

/* ---------- Notice ---------- */
.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.notice__text {
  flex: 1 1 24rem;
  max-width: 45rem;
  font-family: var(--font-sans);
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.45;
}

.button {
  display: inline-block;
  padding: 0.85rem 2.75rem;
  border-radius: 2.5rem;
  background: var(--color-red);
  color: var(--color-white);
  font-size: var(--fs-lead);
  line-height: 1.1;
  white-space: nowrap;
}

.button:hover,
.button:focus-visible {
  background: var(--color-red-dark);
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-top: clamp(0.5rem, 2vw, 1.5rem);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 2.5rem;
}

.card--highlight {
  border-color: var(--color-red-border);
}

.card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "chip  mark"
    "title mark";
  align-items: start;
  column-gap: 1rem;
  row-gap: clamp(1rem, 3vw, 2.25rem);
}

.card__titles {
  display: contents;
}

.card__titles .chip {
  grid-area: chip;
  justify-self: start;
  max-width: 100%;
}

.card__title {
  grid-area: title;
}

.card__mark {
  grid-area: mark;
  width: clamp(4.5rem, 12vw, 8.25rem);
  height: auto;
}

.chip {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 2.5rem;
  background: var(--color-grey-chip);
  color: #1d1d1d;
  font-size: 1rem;
  line-height: 1.6;
}

.card--highlight .chip {
  background: var(--color-red-deep);
  color: var(--color-white);
}

.card__title {
  color: #201f1f;
  font-size: var(--fs-subtitle);
  font-weight: 300;
  line-height: 1.2;
}

.card--highlight .card__title {
  color: #e73442;
}

.card__text {
  color: #050505;
  font-size: 1rem;
  line-height: 1.6;
}

.card__box {
  margin-top: auto;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--color-grey-chip);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
}

.card--highlight .card__box {
  background: var(--color-pink);
  border: 1px solid var(--color-red-deep);
  color: #191c1c;
}

/* ---------- Team photos ---------- */
.team__photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.avatar {
  flex: 0 1 26.3rem;
  min-width: 0;
  width: 100%;
  max-width: 26.3rem;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.quote {
  max-width: 62.5rem;
  margin-inline: auto;
  padding-top: clamp(1rem, 4vw, 3rem);
  color: var(--color-red-dark);
  font-family: var(--font-sans);
  font-size: var(--fs-quote);
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

/* ---------- Info ---------- */
.info__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: clamp(1rem, 3vw, 2.5rem);
}

.info__title {
  color: var(--color-red-dark);
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.info__phone,
.info__mail {
  font-size: var(--fs-subtitle);
  line-height: 1.4;
  overflow-wrap: anywhere;
  hyphens: none;
}

.info__phone {
  margin-top: clamp(1.25rem, 3vw, 2.5rem);
}

.info__mail {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 6vw, 2rem);
}

.info__mail strong {
  font-family: var(--font-sans);
  font-weight: 400;
}

.info__mail a:hover,
.info__mail a:focus-visible {
  color: var(--color-red-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.info__access {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.info__subtitle {
  color: var(--color-black);
  font-family: var(--font-sans);
  font-size: var(--fs-subtitle);
  font-weight: 400;
  line-height: 1.2;
}

.info__text {
  margin-top: 0.75rem;
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-red-dark);
  color: var(--color-white);
  padding-block: var(--section-pad) clamp(1.5rem, 3vw, 2rem);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 4rem);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
}

.site-footer__practice {
  font-size: var(--fs-lead);
  line-height: 1.4;
}

.site-footer__contact {
  margin-top: 1rem;
  font-size: var(--fs-small);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
}

.site-footer__logo {
  width: min(100%, 359px);
  height: auto;
}

.site-footer__legal {
  display: flex;
  gap: 2rem;
  font-size: var(--fs-small);
}

.site-footer__legal a:hover,
.site-footer__legal a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* ---------- Breakpoints ---------- */
@media (max-width: 56.25rem) {
  .cards,
  .info__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 40rem) {
  .notice {
    flex-direction: column;
    align-items: stretch;
  }

  .notice__text {
    flex: none;
  }

  .button {
    align-self: center;
    padding-inline: 2rem;
  }

  .card__head {
    grid-template-areas:
      "chip chip"
      "title mark";
  }

  .chip {
    padding: 0.5rem 1.1rem;
    font-size: clamp(0.8125rem, 3.8vw, 0.9375rem);
    white-space: nowrap;
  }
}

/* Footer stacks as soon as address + logo no longer fit side by side
   (also covers phones in landscape and small tablets). */
@media (max-width: 72rem) {
  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  .site-footer__address {
    align-self: stretch;
  }

  .site-footer__brand {
    align-items: center;
    gap: 2rem;
  }
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal__content {
  max-width: 48rem;
}

.legal__content > * + * {
  margin-top: 1rem;
}

.legal__content .heading {
  margin-top: 0.5rem;
  overflow-wrap: break-word;
}

.legal__content h2 {
  margin-top: 2.25rem;
  color: var(--color-red-dark);
  font-size: var(--fs-subtitle);
  font-weight: 400;
  line-height: 1.25;
}

.legal__content p,
.legal__content li {
  font-size: var(--fs-small);
  line-height: 1.7;
}

.legal__content ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal__content a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal__content a:hover,
.legal__content a:focus-visible {
  color: var(--color-red-dark);
}

.legal__back {
  display: inline-block;
  margin-top: 1.5rem;
}

.site-footer--compact {
  padding-block: clamp(2rem, 5vw, 3rem);
}

.site-footer--compact .site-footer__bottom {
  align-items: center;
}

.site-footer__legal a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
