/* ==========================================================================
   Dr. Christiane Hoffmans – One-Page Website

   2026-10 v1

   Fluid values interpolate linearly between a 420px and a 1920px viewport:
   clamp(<mobile>, <intercept> + <slope>vw, <desktop>)
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  /* Colors (from the layout annotations) */
  --color-hero: #ddc1c2;
  --color-hero-mark: #e3a4a9;     /* large CH in the hero */
  --color-mauve: #c5afb9;         /* Coaching + Werdegang */
  --color-lavender: #dcdce6;      /* Kulturberatung / Journalismus */
  --color-rose: #ddc1c3;          /* Über mich */
  --color-footer: #e4e7f3;        /* Kontakt / Footer */
  --color-footer-mark: #dbcad4;   /* CH in the footer */
  --color-text: #000;
  --color-name: #655d5d;          /* name in the header */

  /* Typography – Raleway: Light 300, Regular 400, Bold 700, ExtraBold 800 */
  --font-base: "Raleway", "Helvetica Neue", Arial, sans-serif;

  /* h1 – name:            ExtraBold 28.6 → 72px */
  --fs-h1: clamp(1.7875rem, 1.028rem + 2.8933vw, 4.5rem);
  /* h2 – section titles + anchors: Light 28.6 → 69px, line 72px */
  --fs-h2: clamp(1.7875rem, 1.0805rem + 2.6933vw, 4.3125rem);
  --lh-h2: 1.0435;
  /* h3 – quote:           Light 22 → 48px, line 60px */
  --fs-h3: clamp(1.375rem, 0.92rem + 1.7333vw, 3rem);
  --lh-h3: 1.25;
  /* h4 – Impressum/Datenschutz: Bold 22 → 26px */
  --fs-h4: clamp(1.375rem, 1.305rem + 0.2667vw, 1.625rem);
  --lh-h4: 1.25;
  /* groß – greeting:      Regular 17.6 → 36px, line 45px */
  --fs-large: clamp(1.1rem, 0.778rem + 1.2267vw, 2.25rem);
  --lh-large: 1.25;
  /* normal – body:        Regular 17.6 → 21px, line 30px */
  --fs-body: clamp(1.1rem, 1.0405rem + 0.2267vw, 1.3125rem);
  --lh-body: 1.4286;
  /* klein – imprint, footer: Regular 15 → 18px, line 24px */
  --fs-small: clamp(0.9375rem, 0.8848rem + 0.2vw, 1.125rem);
  --lh-small: 1.3333;
  /* header links (to be fixed in the live session; measured 18–21px) */
  --fs-nav: clamp(1rem, 0.965rem + 0.1333vw, 1.125rem);

  /* Layout – at 1920px: left 120, right 200, columns 715 + 170 + 715 = 1600 */
  --margin-l: clamp(26px, 6.25vw, 120px);
  --margin-r: clamp(26px, 11.6vw - 22.72px, 200px);
  --col-gap: clamp(40px, 8.85vw, 170px);
  --content-max: 1600px;
  --header-top: clamp(26px, 5.1vw, 98px);
  --section-pad-top: clamp(52px, 35.76px + 3.867vw, 110px);
  --section-pad-bottom: clamp(42px, 14.56px + 6.533vw, 140px);
  --header-compact: 80px;         /* height of the scrolled header, for anchors */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-compact);
}

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

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-footer);
  -webkit-font-smoothing: antialiased;
}

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

/* Paragraph spacing = one blank line of the current text size */
p { margin: 0 0 calc(var(--lh-body) * 1em); margin-block-end: 1lh; }
p:last-child { margin-bottom: 0; }

/* Text links are underlined; anchor/nav links are not (set per component) */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}

a.link-plain { text-decoration: none; }
a.link-plain:hover { text-decoration: underline; }

figure,
blockquote { margin: 0; }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-text);
  color: #fff;
}

.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + 120px + 200px);
  margin-inline: auto;
  padding-left: var(--margin-l);
  padding-right: var(--margin-r);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem var(--col-gap);
}

@media (min-width: 56.25em) { /* 900px */
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.section--mauve { background: var(--color-mauve); }
.section--lavender { background: var(--color-lavender); }
.section--rose { background: var(--color-rose); }

.section-title {
  margin: 0 0 clamp(0px, 15px - 0.78vw, 12px);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: var(--lh-h2);
  text-transform: uppercase;
}

/* ---------- CH mark (logo used as mask so the color is set from CSS) ---------- */
.ch-mark {
  display: block;
  aspect-ratio: 2015 / 1122;
  background-color: currentColor;
  -webkit-mask: url("../img/ch-logo.svg") no-repeat center / contain;
          mask: url("../img/ch-logo.svg") no-repeat center / contain;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-hero);
  transition: box-shadow 0.3s ease;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 2rem;
  padding-top: var(--header-top);
  /* header + links extend to a 120px right margin, like the footer line */
  padding-right: var(--margin-l);
  transition: padding 0.3s ease;
}

.site-header__name {
  flex: 1 1 auto;
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1;
  color: var(--color-name);
  text-transform: uppercase;
  text-decoration: none;
  transition: font-size 0.3s ease;
}

.site-nav ul {
  display: flex;
  gap: 2.5rem;
}

.site-nav a {
  font-size: var(--fs-nav);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:hover { text-decoration: underline; }

/* Compact header after scrolling */
.site-header.is-scrolled { box-shadow: 0 1px 0 rgb(0 0 0 / 0.08); }

.site-header.is-scrolled .site-header__inner {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-header.is-scrolled .site-header__name { font-size: var(--fs-h4); }

/* Burger (mobile only) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

/* Two-line burger (as in the mobile layout); turns into an X when open */
.nav-toggle__bar {
  position: relative;
  display: block;
  width: 22px;
  height: 8px;
  margin-left: 10px;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease;
}

.nav-toggle__bar::before { top: 0; }
.nav-toggle__bar::after { bottom: 0; }

.is-menu-open .nav-toggle__bar::before { transform: translateY(3px) rotate(45deg); }
.is-menu-open .nav-toggle__bar::after { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 56.1875em) { /* below 900px */
  .site-header__inner {
    padding-bottom: 0.5rem;
    padding-right: var(--margin-r);
  }

  .site-header__name { flex-basis: 100%; }

  .nav-toggle { display: block; margin-top: 0.25rem; }

  .site-nav {
    display: none;
    flex-basis: 100%;
    padding-block: 0.5rem 1rem;
  }

  .is-menu-open .site-nav { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-header.is-scrolled .site-header__inner { padding-block: 0.75rem 0.25rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-hero);
  /* 1920px layout: hero (below the 160px header) is 1190px tall */
  min-height: 62vw;
  padding-bottom: var(--section-pad-bottom);
}

/* CH spans the page: at 1920px it is 2015px wide, starts at -185px, top 45px */
.hero__mark {
  position: absolute;
  z-index: 0;
  top: 2.35vw;
  left: -9.64vw;
  width: 104.95vw;
  color: var(--color-hero-mark);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(1.5rem, 2vw, 2.4rem);
}

.hero__anchors {
  grid-column: 1 / -1;
}

.hero__anchors a {
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: var(--lh-h2);
  text-transform: uppercase;
  text-decoration: none;
}

.hero__anchors a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.hero__welcome {
  font-size: var(--fs-large);
  line-height: var(--lh-large);
}

@media (min-width: 56.25em) {
  .hero__welcome {
    grid-column: 2;
    margin-top: clamp(2rem, 11.2vw, 215px);
  }
}

@media (max-width: 56.1875em) {
  .hero { min-height: 0; }

  /* Mobile: CH is larger, its H ends at the right edge of the screen */
  .hero__mark {
    top: 6vw;
    left: -18.6vw;
    width: 118.6vw;
  }

  .hero__inner { row-gap: 0; }
  .hero__welcome { margin-top: 6.5rem; }
}

/* ---------- Coaching ---------- */
.coaching { padding-bottom: 0; }

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

/* Cut-out photo fills the right column and sits on the section's bottom edge */
.coaching__image { align-self: end; }

@media (max-width: 56.1875em) {
  .coaching .grid-2 { row-gap: 1rem; }
  .coaching__text { padding-bottom: 0; }
  /* Mobile: smaller cut-out, pulled slightly into the left margin */
  .coaching__image { width: min(64vw, 30rem); margin-left: -4.4vw; }
}

/* ---------- Kulturberatung / Journalismus ---------- */
@media (min-width: 56.25em) {
  /* JOURNALISMUS starts 415px below KULTURBERATUNG at 1920px (to be confirmed) */
  .services__item--offset { padding-top: clamp(8rem, 21.6vw, 415px); }
}

/* ---------- Über mich ---------- */
@media (max-width: 56.1875em) {
  /* Mobile: photo is cropped to a landscape format */
  .about__image img {
    aspect-ratio: 500 / 445;
    object-fit: cover;
    object-position: center 30%;
  }
}

.about__quote {
  margin-top: clamp(3rem, 7.8vw, 150px);
  font-size: var(--fs-h3);
  font-weight: 300;
  line-height: var(--lh-h3);
}

@media (min-width: 56.25em) {
  /* title starts ~175px below the top of the photo at 1920px */
  .about__text { padding-top: clamp(3rem, 9.1vw, 175px); }
}

/* ---------- Werdegang (CV) ---------- */
.cv {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

.cv__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 35px;
}

@media (min-width: 56.25em) {
  .cv__columns {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cv__title {
  margin: 0;
  font-size: inherit;
  font-weight: 700;
}

.cv__list { margin-bottom: 2lh; }
.cv__list:last-child { margin-bottom: 0; }

@media (max-width: 56.1875em) {
  /* Mobile: CV runs in one column at body text size */
  .cv {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
  }

  .cv__columns { grid-template-columns: minmax(0, 1fr); gap: 1lh; }
  .cv__list { margin-bottom: 1lh; }
}

/* ---------- Kontakt & Footer ---------- */
.site-footer {
  background: var(--color-footer);
  padding-top: var(--section-pad-top);
  padding-bottom: var(--section-pad-bottom);
}

.contact address {
  position: relative;
  z-index: 1;
  font-style: normal;
}

/* Mobile only: CH sits between the title and the address */
.contact__mark {
  display: none;
  color: var(--color-footer-mark);
}

@media (max-width: 56.1875em) {
  .contact__mark {
    display: block;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: -17%;
  }
}

@media (min-width: 56.25em) {
  .contact { grid-column: 2; }
}

.legal {
  position: relative;
  margin-top: clamp(4rem, 7vw, 135px);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

/* Footer CH: at 1920px 975px wide, left edge 341px into the content */
.legal__mark {
  position: absolute;
  z-index: 0;
  top: -70px;
  left: 21.3%;
  width: 61%;
  color: var(--color-footer-mark);
}

.legal__block {
  position: relative;
  z-index: 1;
  max-width: 715px;
}

.legal__title {
  margin: 0 0 1lh;
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: var(--lh-h4);
  text-transform: uppercase;
}

.legal__block p { margin-block-end: 1lh; }

/* Datenschutz accordion */
.accordion { margin-top: 3lh; }

.accordion__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin: 0;
  cursor: pointer;
  list-style: none;
}

.accordion__summary::-webkit-details-marker { display: none; }

.accordion__icon {
  display: inline-block;
  font-weight: 300;
  transition: transform 0.25s ease;
}

.accordion[open] .accordion__icon { transform: rotate(90deg); }

.accordion__content { padding-top: 1lh; }

.site-footer__meta {
  position: relative;
  z-index: 1;
  margin: 3lh calc(var(--margin-l) - var(--margin-r)) 0 0;
  padding-top: 1lh;
  border-top: 1px solid var(--color-text);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

@media (max-width: 56.1875em) {
  .legal__mark { display: none; }
  .site-footer__meta { margin-right: 0; }
}
