:root {
  --terracotta: #b65f47;
  --ink: #0a2334;
  --body: #183a54;
  --accent: #c95540;
  --off-white: #f3f0e9;
  --page-max: 60rem;
  --copy-max: 42rem;
  --side-pad: clamp(1.5rem, 6vw, 5rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--off-white);
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--body);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.13rem, 1rem + 0.65vw, 1.75rem);
  line-height: 1.46;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { overflow: hidden; }

.hero {
  background: var(--terracotta);
  color: var(--ink);
}

.hero__inner {
  position: relative;
  width: min(100%, var(--page-max));
  height: clamp(28rem, 57vw, 32.2rem);
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 2.8rem) var(--side-pad) 0;
  overflow: hidden;
}

.hero__name {
  position: relative;
  z-index: 3;
  font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.hero__copy {
  position: relative;
  z-index: 3;
  width: 64%;
  padding-top: clamp(2.6rem, 6.4vw, 4.2rem);
}

h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(3rem, 6.5vw, 4.65rem);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.04em;
}

.hero__subline {
  margin: clamp(1.35rem, 3vw, 2rem) 0 0;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem);
  line-height: 1.42;
  letter-spacing: -0.018em;
}

.hero__subline span {
  white-space: nowrap;
}

.hero__portrait {
  position: absolute;
  z-index: 2;
  right: -1.5rem;
  bottom: -0.2rem;
  height: 88%;
  width: auto;
  max-width: 48%;
  object-fit: contain;
  object-position: right bottom;
}

.text-section,
.contact {
  background: var(--off-white);
}

.text-section {
  padding: clamp(3.5rem, 7vw, 5.2rem) var(--side-pad);
}

.copy,
.contact-form {
  width: min(100%, var(--copy-max));
  margin: 0 auto;
}

.copy p {
  margin: 0 0 clamp(2rem, 4vw, 2.65rem);
}

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

.copy .emphasis {
  font-weight: 600;
  letter-spacing: -0.026em;
  margin-bottom: clamp(2.15rem, 4.4vw, 2.85rem);
}

strong {
  font-weight: 600;
  letter-spacing: -0.026em;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.12em;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 0.11em;
}

.color-break {
  width: 100%;
  height: clamp(5rem, 12vw, 6.9rem);
  background: var(--terracotta);
}

.text-section--second {
  padding-top: clamp(3.4rem, 7vw, 4.8rem);
  padding-bottom: clamp(3.5rem, 7vw, 5rem);
}

.contact {
  padding: 0 var(--side-pad) clamp(4rem, 8vw, 6rem);
}

.contact-form {
  border-top: 0.16rem solid var(--terracotta);
  padding-top: clamp(2.2rem, 4vw, 3rem);
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0.1rem solid var(--body);
  border-radius: 0;
  background: transparent;
  color: var(--body);
  font: inherit;
  letter-spacing: inherit;
  padding: 0.7rem 0.85rem;
  outline: 0;
}

.contact-form input { min-height: 3.4rem; }

.contact-form textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.08rem var(--accent);
}

.contact-form button {
  width: 10.6rem;
  height: 3.45rem;
  margin-top: 0.3rem;
  border: 0;
  border-radius: 0;
  background: var(--terracotta);
  cursor: pointer;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Narrow phones: keep the V6 composition but make the portrait subordinate. */
@media (max-width: 38rem) {
  :root { --side-pad: clamp(1.25rem, 6vw, 2rem); }

  body {
    font-size: clamp(1.08rem, 4.8vw, 1.28rem);
    line-height: 1.48;
  }

  .hero__inner {
    height: clamp(25.5rem, 112vw, 28.8rem);
    padding-top: 1.65rem;
  }

  .hero__name { font-size: clamp(1.45rem, 6vw, 1.75rem); }

  .hero__copy {
    width: 100%;
    padding-top: 2.7rem;
  }

  h1 {
    font-size: clamp(2.55rem, 11.6vw, 3.45rem);
    line-height: 0.98;
  }

  .hero__subline {
    width: 76%;
    margin-top: 1.25rem;
    font-size: clamp(1.05rem, 4.5vw, 1.25rem);
    line-height: 1.42;
  }

  .hero__portrait {
    right: -1.6rem;
    bottom: -0.15rem;
    height: 49.5%;
    max-width: 55%;
  }

  .text-section { padding-top: 3.15rem; padding-bottom: 3.35rem; }
  .color-break { height: 4.9rem; }
  .copy p { margin-bottom: 2rem; }
  .copy .emphasis { margin-bottom: 2.25rem; }
}

/* Very small screens: preserve readable headline width without overlap. */
@media (max-width: 22rem) {
  h1 { font-size: 2.35rem; }
  .hero__subline { width: 80%; font-size: 0.98rem; }
  .hero__portrait { height: 45%; right: -2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


.site-footer {
  background: var(--off-white);
  padding: 0 var(--side-pad) clamp(3.2rem, 7vw, 5rem);
}

.imprint {
  width: min(100%, var(--copy-max));
  margin: 0 auto;
  padding-top: clamp(2.4rem, 5vw, 3.5rem);
  font-size: 0.72em;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.imprint__title {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.imprint address {
  margin: 0;
  font-style: normal;
}

.imprint a {
  color: inherit;
  text-decoration-thickness: 0.06em;
}


/* Desktop refinement: tighter typography and a more coherent header/copy width. */
@media (min-width: 48.01rem) {
  :root {
    --page-max: 54rem;
    --copy-max: 39rem;
    --side-pad: clamp(2.5rem, 5vw, 4rem);
  }

  body {
    font-size: clamp(1.08rem, 0.98rem + 0.28vw, 1.22rem);
    line-height: 1.5;
    letter-spacing: -0.024em;
  }

  .hero__inner {
    height: clamp(25.5rem, 42vw, 29rem);
  }

  .hero__name {
    font-size: clamp(1.45rem, 1.15rem + 0.65vw, 1.9rem);
  }

  .hero__copy {
    width: 58%;
    padding-top: clamp(2.25rem, 4.2vw, 3.25rem);
  }

  h1 {
    font-size: clamp(2.9rem, 4.7vw, 3.75rem);
    line-height: 0.98;
  }

  .hero__subline {
    margin-top: 1.45rem;
    font-size: clamp(1.06rem, 0.96rem + 0.35vw, 1.3rem);
  }

  .hero__portrait {
    right: 1.8rem;
    bottom: -0.1rem;
    height: 80%;
    max-width: 39%;
    object-fit: contain;
    object-position: right bottom;
  }

  .text-section {
    padding-top: clamp(3rem, 5vw, 4.15rem);
    padding-bottom: clamp(3.15rem, 5vw, 4.3rem);
  }

  .copy p {
    margin-bottom: clamp(1.65rem, 2.5vw, 2.1rem);
  }

  .copy .emphasis {
    margin-bottom: clamp(1.9rem, 2.7vw, 2.25rem);
  }

  .color-break {
    height: clamp(4.4rem, 7vw, 5.5rem);
  }
}


/* Functional contact form */
.form-field {
  display: grid;
  gap: 0.45rem;
}

.contact-form label {
  font-size: 0.78em;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.16);
}

.contact-form button {
  width: auto;
  min-width: 10.6rem;
  padding: 0 1.25rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.form-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-status {
  min-height: 1.55em;
  margin: 0.25rem 0 0;
  font-size: 0.78em;
  line-height: 1.45;
}


/* v4.1 footer: v3 design retained unchanged; only footer/imprint + LinkedIn added. */
.footer-meta {
  width: min(100%, var(--copy-max));
  margin: 0 auto;
  padding-top: clamp(2.6rem, 5vw, 3.7rem);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.imprint-details {
  min-width: 0;
  flex: 1 1 auto;
}

.imprint-details > summary {
  list-style: none;
  cursor: pointer;
  color: var(--body);
  font-weight: 600;
  letter-spacing: -0.022em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.imprint-details > summary::-webkit-details-marker {
  display: none;
}

.imprint-details > summary::after {
  content: "+";
  display: inline-block;
  color: var(--accent);
  font-weight: 400;
  transform: translateY(-0.02em);
}

.imprint-details[open] > summary::after {
  content: "–";
}

.imprint-panel {
  padding-top: 0.95rem;
  font-size: 0.72em;
  line-height: 1.58;
  letter-spacing: -0.015em;
}

.imprint-panel address {
  margin: 0;
  font-style: normal;
}

.imprint-panel a {
  color: inherit;
  text-decoration-thickness: 0.06em;
}

.imprint-note {
  margin: 0.65rem 0 0;
}

.footer-linkedin {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  color: var(--body);
  text-decoration: none;
}

.footer-linkedin img {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-linkedin:hover,
.footer-linkedin:focus-visible {
  opacity: 0.82;
}

@media (max-width: 38rem) {
  .footer-meta {
    align-items: center;
  }
}


/* v5 legal footer: v4.1 remains unchanged outside this footer. */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.4rem;
  min-width: 0;
  flex: 1 1 auto;
}

.legal-details {
  min-width: 0;
}

.legal-details > summary {
  list-style: none;
  cursor: pointer;
  color: var(--body);
  font-weight: 600;
  letter-spacing: -0.022em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.legal-details > summary::-webkit-details-marker {
  display: none;
}

.legal-details > summary::after {
  content: "+";
  display: inline-block;
  color: var(--accent);
  font-weight: 400;
}

.legal-details[open] > summary::after {
  content: "–";
}

.legal-panel {
  padding-top: 0.95rem;
  font-size: 0.72em;
  line-height: 1.58;
  letter-spacing: -0.015em;
}

.legal-panel address {
  margin: 0;
  font-style: normal;
}

.legal-panel a {
  color: inherit;
  text-decoration-thickness: 0.06em;
}

.privacy-panel {
  max-width: 39rem;
}

.privacy-panel p {
  margin: 0 0 1.15rem;
}

.privacy-panel p:last-child {
  margin-bottom: 0;
}

@media (max-width: 38rem) {
  .footer-legal {
    flex-direction: column;
    gap: 0.8rem;
  }

  .legal-details {
    width: 100%;
  }

  .footer-linkedin {
    align-self: flex-start;
  }
}
