/*
  Regine Helbling Website
  Clean CSS based on version 25
  Desktop master layout: 772 × 578 px
*/

/* =========================================================
   01 Tokens and base
   ========================================================= */
:root {
  --stage-w: 772;
  --stage-h: 578;
  --s: calc(100vw / var(--stage-w));

  --accent: rgb(134, 38, 51);
  --accent-hover: rgb(166, 68, 80);
  --text: #2e3033;
  --muted: #626469;

  --x-logo: 40;
  --x-menu-1: 209;
  --x-menu-2: 529;
  --x-copy: 209;
  --x-title: 204;

  --desktop-hero-title-y: 105;
  --desktop-image-y: 161;
  --desktop-lower-title-y: 385;
  --desktop-copy-y: 388;
  --desktop-copy-after-title-y: 439;
  --desktop-side-y: 391;
  --desktop-impressum-y: 115;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Lato, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

.u {
  position: relative;
  top: -0.17em;
  display: inline-block;
}

/* =========================================================
   02 Desktop stage
   ========================================================= */
.stage {
  position: relative;
  width: 100vw;
  min-height: max(calc(var(--stage-h) * var(--s)), 100vh);
  overflow: visible;
  background: #fff;
}

/* =========================================================
   03 Logo and service links
   ========================================================= */
.brand {
  position: absolute;
  left: calc(var(--x-logo) * var(--s));
  top: calc(25 * var(--s));
  z-index: 20;
  display: block;
  color: #2f3033;
}

.brand:hover .brand-name {
  color: var(--accent);
}

.brand-name {
  display: block;
  font-size: calc(19 * var(--s));
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: #2f3033;
  transition: color 0.25s ease;
}

.brand-services {
  position: absolute;
  left: calc(var(--x-logo) * var(--s));
  top: calc(61 * var(--s));
  z-index: 20;
  display: block;
  font-size: calc(16 * var(--s));
  font-weight: 300;
  line-height: 0.78;
  letter-spacing: -0.035em;
  color: var(--accent);
}

.brand-services a,
.brand-services span {
  display: block;
  height: calc(12.4 * var(--s));
  color: var(--accent);
  transition: color 0.25s ease;
}

.brand-services a.active,
.brand-services span.active,
.brand-services a:hover {
  color: var(--accent-hover);
}

/* =========================================================
   04 Desktop top navigation
   ========================================================= */
.nav-top {
  position: absolute;
  top: calc(25 * var(--s));
  left: 0;
  z-index: 22;
  height: calc(12 * var(--s));
  font-size: calc(10 * var(--s));
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.012em;
  color: var(--muted);
  white-space: nowrap;
  text-transform: uppercase;
}

.nav-top a,
.nav-top span {
  position: absolute;
  display: block;
}

.nav-top a.active,
.nav-top span.active,
.nav-top a:hover {
  color: var(--accent);
}

.nav-beratung { left: calc(209 * var(--s)); }
.nav-coaching { left: calc(287 * var(--s)); }
.nav-mediation { left: calc(365 * var(--s)); }
.nav-ueber { left: calc(529 * var(--s)); }
.nav-kontakt { left: calc(604 * var(--s)); }
.nav-impressum { left: calc(672 * var(--s)); }

/* =========================================================
   05 Desktop image and headlines
   ========================================================= */
.hero-title,
.headline-below {
  position: absolute;
  left: calc(var(--x-title) * var(--s));
  z-index: 2;
  margin: 0;
  font-size: calc(56 * var(--s));
  font-weight: 100;
  line-height: 0.82;
  letter-spacing: -0.052em;
  color: #333;
  white-space: nowrap;
}

.hero-title {
  top: calc(var(--desktop-hero-title-y) * var(--s));
}

.headline-below {
  top: calc(var(--desktop-lower-title-y) * var(--s));
}

.hero {
  position: absolute;
  left: 0;
  top: calc(var(--desktop-image-y) * var(--s));
  width: 100vw;
  height: calc(220 * var(--s));
  overflow: hidden;
  margin: 0;
  background: #f6f6f6;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* =========================================================
   06 Desktop copy blocks
   ========================================================= */
.body-copy {
  position: absolute;
  left: calc(var(--x-copy) * var(--s));
  top: calc(var(--desktop-copy-y) * var(--s));
  width: calc(362 * var(--s));
  font-size: calc(10 * var(--s));
  font-weight: 400;
  line-height: 1.36;
  letter-spacing: -0.01em;
  color: #27292c;
  hyphens: manual;
  overflow-wrap: normal;
}

.body-copy p {
  margin: 0 0 calc(12 * var(--s));
}

.stage:has(.headline-below) .body-copy:not(.impressum-copy):not(.about-copy) {
  top: calc(var(--desktop-copy-after-title-y) * var(--s));
}

.no-hero-title .body-copy:not(.impressum-copy):not(.about-copy),
.topic-copy {
  top: calc(var(--desktop-copy-y) * var(--s));
}

.wide-copy,
.topic-copy,
.about-copy {
  width: calc(520 * var(--s));
}

.contact-block {
  margin-top: calc(18 * var(--s));
}

.contact-title {
  display: block;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

/* =========================================================
   07 Desktop side navigation
   ========================================================= */
.side-nav {
  position: absolute;
  left: calc(var(--x-logo) * var(--s));
  top: calc(var(--desktop-side-y) * var(--s));
  z-index: 18;
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--s));
  font-size: calc(8 * var(--s));
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.006em;
  color: var(--muted);
  text-transform: uppercase;
}

.side-nav a,
.side-nav span {
  display: block;
}

.side-nav a.active,
.side-nav span.active,
.side-nav a:hover {
  color: var(--accent);
}

/* =========================================================
   08 Desktop about page
   ========================================================= */
.about-page .hero {
  display: none;
}

.about-portrait {
  position: absolute;
  left: calc(40 * var(--s));
  top: calc(160 * var(--s));
  width: calc(303 * var(--s));
  height: calc(392 * var(--s));
  overflow: hidden;
  margin: 0;
  background: #f6f6f6;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.about-page .about-copy {
  left: calc(367 * var(--s));
  top: calc(160 * var(--s));
  width: calc(360 * var(--s));
}

.about-copy h1 {
  position: relative;
  top: calc(-2 * var(--s));
  margin: 0 0 calc(13 * var(--s));
  font-size: calc(10 * var(--s));
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.about-copy p {
  margin: 0 0 calc(10 * var(--s));
  font-size: calc(10 * var(--s));
  line-height: 1.28;
}

.about-copy a {
  color: inherit;
}

.about-copy a:hover {
  color: var(--accent);
}

/* =========================================================
   09 Desktop topic image slider
   ========================================================= */
.hero-slider img {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: fadeHero 55s infinite ease-in-out;
}

.hero-slider img:nth-child(2) { animation-delay: 11s; }
.hero-slider img:nth-child(3) { animation-delay: 22s; }
.hero-slider img:nth-child(4) { animation-delay: 33s; }
.hero-slider img:nth-child(5) { animation-delay: 44s; }

@keyframes fadeHero {
  0%, 16% { opacity: 1; }
  22%, 100% { opacity: 0; }
}

/* =========================================================
   10 Desktop impressum
   ========================================================= */
.impressum-copy {
  top: calc(var(--desktop-impressum-y) * var(--s));
  width: calc(362 * var(--s));
}

.impressum-copy strong {
  font-weight: 400;
  letter-spacing: 0.01em;
}

.impressum-copy.impressum-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  column-gap: calc(16 * var(--s));
  align-items: start;
  width: calc(362 * var(--s));
  max-width: calc(362 * var(--s));
}

.impressum-grid .impressum-col,
.impressum-grid .privacy-col {
  min-width: 0;
  max-width: 100%;
}

.impressum-grid p {
  margin: 0 0 calc(10 * var(--s));
}

/* =========================================================
   11 Mobile layout
   ========================================================= */
.mobile-menu,
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 640px) {
  :root {
    --s: 1;
  }

  body {
    overflow-x: hidden;
  }

  .stage {
    width: 100%;
    min-height: 100svh;
    overflow: visible;
    padding: 25px 24px 48px;
  }

  .brand {
    left: 24px;
    top: 25px;
  }

  .brand-name {
    font-size: 19px;
    line-height: 0.86;
    letter-spacing: -0.03em;
  }

  .brand-services {
    display: block;
    position: absolute;
    left: 24px;
    top: 61px;
    z-index: 20;
    font-size: 16px;
    font-weight: 300;
    line-height: 0.78;
    letter-spacing: -0.035em;
    color: var(--accent);
  }

  .brand-services a {
    display: block;
    height: 12.4px;
    color: var(--accent);
  }

  .brand-services a:hover {
    color: var(--accent-hover);
  }

  .nav-top,
  .side-nav {
    display: none;
  }

  /* Mobile hamburger menu */
  .mobile-menu {
    display: block;
    position: absolute;
    top: 19px;
    right: 18px;
    z-index: 40;
    color: var(--muted);
  }

  .mobile-menu summary {
    list-style: none;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: var(--accent);
    padding: 4px 6px;
    text-align: right;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary::before {
    content: "☰";
  }

  .mobile-menu[open] summary::before {
    content: "×";
  }

  .mobile-menu-panel {
    position: absolute;
    right: 0;
    top: 42px;
    min-width: 245px;
    background: rgba(255, 255, 255, 0.97);
    padding: 18px 20px 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.012em;
    text-align: left;
    text-transform: uppercase;
  }

  .mobile-menu-panel a,
  .mobile-menu-panel span {
    display: block;
    white-space: nowrap;
  }

  .mobile-menu-panel .mobile-topic {
    padding-left: 18px;
    margin-top: 0;
    font-size: 12px;
    line-height: 1.85;
  }

  .mobile-menu-panel a.active,
  .mobile-menu-panel .active,
  .mobile-menu-panel a:hover {
    color: var(--accent);
  }

  .mobile-menu-panel .active {
    display: block;
    white-space: nowrap;
  }

  /* Mobile headlines and image */
  .hero-title {
    position: relative;
    left: auto;
    top: auto;
    margin: 103px 0 13px 16px;
    font-size: clamp(44px, 14vw, 56px);
    line-height: 0.85;
    letter-spacing: -0.052em;
    white-space: normal;
  }

  .hero {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% + 48px);
    height: 56vw;
    min-height: 210px;
    margin: 0 -24px;
    overflow: hidden;
  }

  .no-hero-title .hero {
    margin-top: 95px;
  }

  .hero img,
  .hero-slider img {
    width: 120%;
    max-width: none;
    height: 100%;
    transform: translateX(-10%);
    object-fit: cover;
    object-position: center center;
  }

  .headline-below {
    position: relative;
    left: auto;
    top: auto;
    margin: 9px 0 0 16px;
    font-size: clamp(44px, 14vw, 56px);
    line-height: 0.85;
    letter-spacing: -0.052em;
    white-space: normal;
  }

  /* Mobile copy */
  .body-copy,
  .topic-copy,
  .wide-copy,
  .about-copy,
  .impressum-copy {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    margin: 12px 16px 0 21px;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: -0.01em;
  }

  .body-copy p {
    margin: 0 0 16px;
  }

  .about-copy h1,
  .about-copy p {
    font-size: 16px;
    line-height: 1.45;
  }

  .about-copy h1 {
    top: auto;
    margin: 0 0 13px;
  }

  .stage:has(.headline-below) .body-copy,
  .no-hero-title .body-copy,
  .topic-copy,
  .wide-copy,
  .about-copy {
    top: auto;
    margin-top: 12px;
  }

  .stage .body-copy.impressum-copy.impressum-grid,
  .stage.no-hero-title .body-copy.impressum-copy.impressum-grid {
    display: block;
    left: auto;
    top: auto;
    width: auto;
    max-width: none;
    margin-top: 103px;
  }

  /* Mobile about portrait, never distorted */
  .about-page .hero {
    display: none;
  }

  .about-portrait {
    position: relative;
    left: auto;
    top: auto;
    width: calc(100% + 48px);
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 103px -24px 0;
    overflow: hidden;
  }

  .about-portrait img {
    display: block;
    position: static;
    left: auto;
    width: 100%;
    height: auto;
    min-width: 0;
    max-width: none;
    transform: none;
    object-fit: contain;
    object-position: center center;
  }

  .about-page .about-copy {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    margin: 12px 16px 0 21px;
  }

  /* Mobile bottom navigation */
  .mobile-bottom-nav {
    display: block;
    margin: 44px 16px 0 21px;
    padding-top: 18px;
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.012em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .mobile-bottom-nav .bottom-row {
    display: block;
    white-space: normal;
    margin: 0;
  }

  .mobile-bottom-nav .bottom-main-row,
  .mobile-bottom-nav .bottom-meta-row {
    white-space: nowrap;
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav .active,
  .mobile-bottom-nav .mobile-topic {
    display: inline-block;
    padding-left: 0;
    margin-top: 0;
    margin-right: 18px;
    color: var(--muted);
    font-size: inherit;
    line-height: inherit;
    vertical-align: baseline;
  }

  .mobile-bottom-nav .mobile-topic {
    margin-right: 0;
    font-size: 12px;
    line-height: 1.85;
  }

  .mobile-bottom-nav a.active,
  .mobile-bottom-nav .active,
  .mobile-bottom-nav a:hover {
    color: var(--accent);
  }
}


.mobile-bottom-nav .mobile-topic .u,
.mobile-menu-panel .mobile-topic .u,
.side-nav .u {
  white-space: nowrap;
}


/* =========================================================
   13 Hard navigation underscore protection
   Prevents the underscore marker from moving to its own line.
   ========================================================= */
.nav-top a,
.nav-top span,
.side-nav a,
.side-nav span,
.mobile-menu-panel a,
.mobile-menu-panel span,
.mobile-bottom-nav a,
.mobile-bottom-nav span,
.mobile-bottom-nav .mobile-topic,
.mobile-bottom-nav .bottom-topic-line {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: manual;
}

.nav-top .u,
.side-nav .u,
.mobile-menu-panel .u,
.mobile-bottom-nav .u {
  white-space: nowrap;
  display: inline-block;
}
