* {
  box-sizing: border-box;
}

:root {
  --paper: #FBFBF6;
  --ink: #202327;
  --sand: #A99772;
  --white: #FFFFFF;
  --hairline: rgba(255,255,255,.20);
}

html {
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.brand-band {
  background: var(--paper);
  border-bottom: 1px solid rgba(169,151,114,.22);
}

.band-inner {
  min-height: 115px;
  display: flex;
  align-items: center;
}

.brand-mark {
  display: block;
  width: min(285px, 30vw);
  height: auto;
}

.hero {
  min-height: 520px;
  padding: 92px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 88px;
  align-items: start;
}

.hero-copy {
  padding-top: 8px;
}

h1, h2 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--white);
}

h1 {
  max-width: 610px;
  font-size: clamp(36px, 4.15vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.service-note {
  max-width: 520px;
  margin: 26px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
}

.service-accent {
  width: 69px;
  height: 1.5px;
  margin-top: 28px;
  background: var(--sand);
}


.profile {
  padding-left: 54px;
}

.profile h2 {
  font-size: clamp(30px, 2.7vw, 42px);
  line-height: 1.08;
  margin-bottom: 16px;
}

.qualification {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.contact {
  margin-top: 42px;
  padding-top: 0;
  display: grid;
  gap: 11px;
  font-size: 17px;
  line-height: 1.5;
}

.contact a {
  color: var(--white);
  text-decoration: none;
  width: fit-content;
}

.contact a:hover,
.contact a:focus-visible {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact a[href^="mailto:"]:hover,
.contact a[href^="mailto:"]:focus-visible {
  color: var(--sand);
}

.contact p {
  margin: 6px 0 0;
}

.footer {
  padding: 18px 0 34px;
}

.construction {
  margin: 0 0 14px;
  font-size: 13px;
  color: rgba(255,255,255,.68);
}

.legal {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.legal a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
}

.legal a:hover,
.legal a:focus-visible {
  color: rgba(255,255,255,.78);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 820px) {
  .wrap {
    width: min(100% - 38px, 680px);
  }

  .band-inner {
    min-height: 100px;
  }

  .brand-mark {
    width: min(250px, 72vw);
  }

  .hero {
    min-height: auto;
    padding: 58px 0 56px;
    grid-template-columns: 1fr;
    gap: 50px;
  }

  h1 {
    font-size: clamp(36px, 10vw, 52px);
  }

.profile {
    padding: 0;
  }

  .profile h2 {
    font-size: 38px;
  }

  .qualification {
    font-size: 17px;
  }

  .contact {
    margin-top: 34px;
    font-size: 16px;
  }

  .footer {
    padding-bottom: 26px;
  }
}

@media (max-width: 460px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .band-inner {
    min-height: 92px;
  }

  .brand-mark {
    width: min(235px, 74vw);
  }

  .hero {
    padding-top: 44px;
    gap: 42px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.1;
  }

  .profile h2 {
    font-size: 34px;
  }

  .construction,
  .legal {
    font-size: 12px;
  }
}

@media (min-width: 821px) {
  body {
    display: flex;
    flex-direction: column;
  }

  main.wrap {
    flex: 1 0 auto;
  }

  .footer {
    width: min(1180px, calc(100% - 64px));
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 36px;
    padding-top: 0;
  }

  .construction {
    margin: 0;
  }

  .legal {
    margin-left: auto;
    flex: 0 0 auto;
  }
}

@media (max-width: 820px) {
  .service-note {
    font-size: 17px;
    margin-top: 22px;
  }

  .service-accent {
    margin-top: 24px;
  }

  .footer {
    display: block;
  }

  .construction {
    margin-bottom: 14px;
  }

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

/* V5 optical alignment: compensate only for the fixed transparent/brand-background
   margin inside the approved brand-block image. Artwork itself remains unchanged. */
.brand-mark {
  margin-left: -22px;
}

@media (min-width: 821px) {
  .footer {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    column-gap: 88px;
    align-items: start;
    justify-content: initial;
    padding-bottom: 34px;
  }

  .footer .construction,
  .footer .legal {
    grid-column: 2;
    margin-left: 54px;
  }

  .footer .construction {
    margin-top: 0;
    margin-bottom: 10px;
  }

  .footer .legal {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .brand-mark {
    margin-left: -20px;
  }

  .footer .construction,
  .footer .legal {
    margin-left: 0;
  }
}

@media (max-width: 460px) {
  .brand-mark {
    margin-left: -18px;
  }
}

/* V6 footer correction: keep the extension note and legal links together
   and anchor the whole block to the contact-column axis. */
@media (min-width: 821px) {
  .footer {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    column-gap: 88px;
    align-items: start;
    padding-bottom: 34px;
  }

  .footer-meta {
    grid-column: 2;
    margin-left: 54px;
  }

  .footer-meta .construction {
    margin: 0 0 7px;
  }

  .footer-meta .legal {
    margin: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .footer-meta {
    margin-left: 0;
  }

  .footer-meta .construction {
    margin-bottom: 8px;
  }
}


/* V8: no block justification. Word spacing remains natural.
   The second slogan line is aligned responsively to the actual final h1 line. */
.slogan-line-2 {
  max-width: 100%;
}

/* V10: freeze the slogan to exactly two lines on desktop. */
@media (min-width: 821px) {
  .slogan-line-1,
  .slogan-line-2 {
    white-space: nowrap;
  }
}

/* V11: microscopic optical correction of slogan line 1 only.
   Slightly tighter tracking moves the final “t” in “Klarheit” left while
   preserving the fixed two-line structure and all other layout geometry. */
@media (min-width: 821px) {
  .slogan-line-1 {
    letter-spacing: -0.045px;
  }
}

/* V13: email address as the single contact accent in the established brand gold. */
.contact a[href^="mailto:"] {
  color: #A99772;
}


/* V20: legal pages and interaction states */
.contact a:visited {
  color: var(--white);
}
.contact a[href^="mailto:"],
.contact a[href^="mailto:"]:visited {
  color: var(--sand);
}

.legal-page {
  padding-top: 64px;
  padding-bottom: 80px;
  font-size: 16px;
  line-height: 1.65;
}

.legal-page h1 {
  font-size: 42px;
}

.legal-page h2 {
  font-size: 18px;
  margin-top: 30px;
}

.legal-page p {
  max-width: 850px;
}

.legal-page a,
.legal-page a:visited {
  color: var(--white);
  text-decoration: none;
}

.legal-page a:hover,
.legal-page a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-page a:focus-visible,
.contact a:focus-visible,
.legal a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.legal-back {
  margin-top: 42px;
}

/* Legal pages use the same left edge as the wordmark/header wrap. */
@media (max-width: 820px) {
  .legal-page {
    padding-top: 52px;
    padding-bottom: 64px;
  }
}

/* V21: mobile slogan only — preserve the approved two-line wording on phones. */
@media (max-width: 460px) {
  .service-note {
    font-size: 16px;
  }

  .slogan-line-1,
  .slogan-line-2 {
    white-space: nowrap;
  }

  .slogan-line-1 {
    letter-spacing: -0.045px;
  }
}
