/* =========================================================
   Components — one block per part of the page, in page order.
   Naming: .block, .block__part, .block--variant
   ========================================================= */

/* ---------- Colour variants (used by many components) ----------
   Add one of these classes and the component picks up --accent / --accent-light. */
.accent--teal     { --accent: var(--teal);     --accent-light: var(--teal-light); }
.accent--marigold { --accent: var(--marigold); --accent-light: var(--marigold-light); }
.accent--rose     { --accent: var(--rose);     --accent-light: var(--rose-light); }
.accent--cobalt   { --accent: var(--cobalt);   --accent-light: var(--cobalt-light); }


/* ---------- Shapes (small decorative forms in the accent colour) ---------- */
.shape {
  display: block;
  width: 3.5rem;
  aspect-ratio: 1;
  background: var(--accent);
  border-radius: var(--pebble);
}
.shape--leaf   { border-radius: 50% 50% 50% 10%; }
.shape--square { border-radius: 28%; transform: rotate(12deg); }


/* ---------- Layout safety ----------
   Grid columns may shrink below their longest word, so nothing runs
   off the screen at 400 % zoom or with larger text spacing. */
.hero__inner > *,
.teaser__inner > *,
.intro__inner > *,
.cta__inner > *,
.contact__inner > *,
.login > *,
.offer > * {
  min-width: 0;
}


/* ---------- Site header ---------- */
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s) var(--space-m);
  padding-block: var(--space-m);
}
.site-header__logo img {
  width: auto;
  height: clamp(3rem, 2.4rem + 1.8vw, 4.25rem);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem clamp(0.75rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--rose);   /* 4.9:1 on the page background, clearly visible */
}


/* ---------- Portrait (organic photo frame) ---------- */
.portrait {
  position: relative;
  margin: 0;
}
.portrait__frame {
  position: relative;   /* the small pebbles of the hero are placed around this */
}
.portrait img {
  position: relative;
  width: 100%;
  border-radius: var(--pebble);
  /* Works for cut-out (transparent) and normal photos alike */
  background: var(--accent);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
/* Caption under a portrait, like a photo caption in a magazine */
.portrait__caption {
  margin-top: var(--space-m);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.5;
  text-align: center;
}
.portrait__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}
/* Each part of the title moves to the next line as a whole, never "HR-" / "Expertin" */
.portrait__caption span {
  display: inline-block;
}


/* ---------- Hero ---------- */
.hero {
  padding-block: var(--space-l) clamp(3rem, 2.5rem + 3vw, 6rem);
}
.hero__inner {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem);
}
.hero__line {
  display: block;
}
.hero__intro {
  color: var(--ink-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-m);
}
.hero__portrait {
  width: min(80%, 26rem);
  justify-self: center;
}
/* Two small pebbles around the portrait */
.hero__portrait .portrait__frame::before,
.hero__portrait .portrait__frame::after {
  content: "";
  position: absolute;
  border-radius: var(--pebble);
}
.hero__portrait .portrait__frame::before {
  width: 28%;
  aspect-ratio: 1;
  right: -6%;
  top: 4%;
  background: var(--marigold-light);
  z-index: 1;
}
.hero__portrait .portrait__frame::after {
  width: 16%;
  aspect-ratio: 1;
  left: -4%;
  bottom: 10%;
  background: var(--cobalt);
  z-index: 1;
}

@media (min-width: 52rem) {
  .hero__inner {
    grid-template-columns: 1.25fr 1fr;
  }
}


/* ---------- Angebote ---------- */
.offers__title {
  margin-bottom: var(--space-s);
}
.offer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.offer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-s) var(--space-m);
  padding-block: var(--space-l);
}
.offer + .offer {
  border-top: 2px dashed var(--paper-deep);
}
.offer__head h3 {
  margin-bottom: 0.25rem;
}
.offer__tagline {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}
.offer__text {
  grid-column: 2;
}
.offer__text p {
  margin: 0;
}
.offer__text .button {
  margin-top: var(--space-m);
}

@media (min-width: 52rem) {
  .offer {
    grid-template-columns: auto 20rem 1fr;
    align-items: start;
  }
  .offer__text {
    grid-column: 3;
    padding-top: 0.4rem;
  }
}


/* ---------- DEIB band (the one bold moment) ---------- */
.deib {
  padding-block: var(--space-xl);
  background: var(--ink);
  color: var(--paper);
}
.deib__title {
  max-width: 20ch;
  margin-bottom: var(--space-m);
}
.deib__intro {
  font-size: var(--text-lg);
  color: var(--paper-deep);
}
.deib__lead-in {
  margin-block: var(--space-l) var(--space-m);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--paper);
}
.deib__outro {
  margin-top: var(--space-l);
}
.deib__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-l) var(--space-m);
  margin: 0;
}
.deib__item dt {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--accent-light);
  line-height: 1;
}
.deib__letter {
  display: block;
  font-size: clamp(5rem, 3rem + 7vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
}
.deib__item dd {
  margin: var(--space-s) 0 0;
  max-width: 22rem;
  color: var(--paper-deep);
}

/* Reveal: only active when JavaScript added .is-ready (content is visible without JS) */
.deib__list.is-ready .deib__item {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.deib__list.is-visible .deib__item {
  opacity: 1;
  transform: none;
}
.deib__list.is-visible .deib__item:nth-child(2) { transition-delay: 0.12s; }
.deib__list.is-visible .deib__item:nth-child(3) { transition-delay: 0.24s; }
.deib__list.is-visible .deib__item:nth-child(4) { transition-delay: 0.36s; }


/* ---------- Teaser ("Aus der Praxis" on the homepage: heading left, text right) ---------- */
.teaser {
  background: var(--paper-deep);
}
.teaser__inner {
  display: grid;
  gap: var(--space-s) var(--space-l);
}
.teaser .button {
  margin-top: var(--space-s);
}

@media (min-width: 52rem) {
  .teaser__inner {
    grid-template-columns: 1fr 1.5fr;
  }
}


/* ---------- Statement (one sentence set large, with a coloured bar) ---------- */
.statement {
  margin: var(--space-l) 0 0;
  padding-left: var(--space-m);
  border-left: 0.35rem solid var(--accent, var(--rose));
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  line-height: 1.25;
}


/* ---------- Gespräch (call to action at the end of a page) ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
}
/* A large pebble peeking in from the right edge */
.cta::before {
  content: "";
  position: absolute;
  width: clamp(10rem, 8rem + 12vw, 20rem);
  aspect-ratio: 1;
  right: -5rem;
  top: -4rem;
  background: var(--marigold-light);
  border-radius: var(--pebble);
}
.cta__inner {
  position: relative;   /* above the pebble */
  display: grid;
  gap: var(--space-m);
  align-items: end;
}
.cta h2 {
  max-width: 16ch;
}
.cta__text > :last-child {
  margin-bottom: 0;
}

@media (min-width: 52rem) {
  .cta__inner {
    grid-template-columns: 1fr auto;
  }
}


/* ---------- Page intro (top of Workshops and Über mich) ---------- */
.intro {
  padding-block: var(--space-l) var(--space-xl);
}
.intro__inner {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}
.intro h1 {
  /* Long words like "Führungskräfte" stay whole down to 320 px */
  font-size: clamp(1.9rem, 1.1rem + 3.6vw, 4rem);
}
.intro__portrait {
  width: min(80%, 24rem);
  justify-self: center;
}
.intro__portrait img {
  border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%;
}
/* Über mich: a large rose leaf behind the photo and a small marigold pebble in front
   (a different pair than on the homepage, so the two portraits don't look copied) */
.intro__portrait .portrait__frame::before,
.intro__portrait .portrait__frame::after {
  content: "";
  position: absolute;
  aspect-ratio: 1;
}
.intro__portrait .portrait__frame::before {   /* behind the photo: comes first, no z-index */
  width: 58%;
  right: -12%;
  bottom: -7%;
  background: var(--rose);
  border-radius: 50% 50% 50% 10%;
}
.intro__portrait .portrait__frame::after {    /* in front of the photo */
  width: 18%;
  left: -6%;
  top: 10%;
  background: var(--marigold-light);
  border-radius: var(--pebble);
  z-index: 1;
}
.intro__more {
  margin-top: var(--space-m);
  font-weight: 700;
}

/* Workshops: portrait photo, a rose leaf behind it and a small marigold pebble in front */
.intro__photo {
  width: min(80%, 22rem);
  justify-self: center;
}
.intro__photo .portrait__frame::before,
.intro__photo .portrait__frame::after {
  content: "";
  position: absolute;
  aspect-ratio: 1;
}
.intro__photo .portrait__frame::before {   /* behind the photo */
  width: 50%;
  left: -14%;
  bottom: -6%;
  background: var(--rose-light);
  border-radius: 50% 50% 10% 50%;
}
.intro__photo .portrait__frame::after {    /* in front of the photo */
  width: 15%;
  right: -5%;
  top: 12%;
  background: var(--marigold-light);
  border-radius: var(--pebble);
  z-index: 1;
}

@media (min-width: 52rem) {
  .intro__inner {
    grid-template-columns: 1.5fr 1fr;
  }
}


/* ---------- Workshop formats ---------- */
.formats__title {
  margin-bottom: var(--space-l);
}
.format-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: var(--space-l) var(--space-m);
}
.format {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-l) var(--space-m) var(--space-m);
  background: var(--white);
  border-top: 0.5rem solid var(--accent);
  border-radius: calc(var(--radius) * 2);
}
.format h3 {
  margin-bottom: 0.25rem;
  padding-right: 5.5rem;   /* room for the duration pebble */
}
/* Duration in a pebble in the top right corner */
.format__duration {
  position: absolute;
  top: -1.75rem;
  right: var(--space-m);
  display: grid;
  place-content: center;
  width: 5.5rem;
  aspect-ratio: 1;
  margin: 0;
  background: var(--accent);
  border-radius: var(--pebble);
  color: var(--white);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.format__hours {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
}
.format__tagline {
  color: var(--accent);
  font-weight: 700;
}
.format__question {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-lg);
  line-height: 1.35;
}
.format .pebble-list {
  margin-bottom: 0;
}
/* The button row is pushed to the bottom, so both buttons line up even if one card is
   longer. Its padding keeps a fixed gap above the button on every device. */
.format__action {
  margin: auto 0 0;
  padding-top: var(--space-m);
}
.format h4 {
  margin: var(--space-m) 0 var(--space-s);
  font-size: var(--text-base);
}

/* List with small pebbles as bullets */
.pebble-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pebble-list li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 1.75rem;
}
.pebble-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.9rem;
  aspect-ratio: 1;
  background: var(--accent, var(--teal));
  border-radius: var(--pebble);
}


/* ---------- Dark band (Workshops: method, Über mich: what drives my work) ---------- */
.band {
  padding-block: var(--space-xl);
  background: var(--ink);
  color: var(--paper);
}
.band a {
  color: var(--paper);
}
.band__inner {
  display: grid;
  gap: var(--space-l);
  align-items: start;
}
.band__inner > * {
  min-width: 0;
}
.band p {
  color: var(--paper-deep);
}
.band .statement {
  color: var(--paper);
  border-left-color: var(--accent-light);
}

@media (min-width: 52rem) {
  .band__inner {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Key facts (Zielgruppe, Dauer, …) */
.facts {
  display: grid;
  gap: var(--space-m);
  margin: 0;
}
.facts div {
  padding-left: var(--space-m);
  border-left: 0.35rem solid var(--accent-light);
}
.facts dt {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--accent-light);
}
.facts dd {
  margin: 0.25rem 0 0;
  color: var(--paper);
}


/* ---------- Experience (Über mich: three areas of work) ---------- */
.experience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: var(--space-l) var(--space-m);
  margin: var(--space-l) 0;
  padding: 0;
  list-style: none;
}
.experience li {
  min-width: 0;
}
.experience .shape {
  margin-bottom: var(--space-s);
}
.experience h3 {
  font-size: var(--text-lg);
}
.experience__summary {
  font-size: var(--text-lg);
}


/* ---------- Kontakt ---------- */
.contact {
  background: var(--paper-deep);
}
.contact__inner {
  display: grid;
  gap: var(--space-l);
  align-items: start;
}
.contact__direct {
  margin-top: var(--space-m);
  font-weight: 700;
  line-height: 1.7;
}
.contact__form {
  padding: var(--space-l) var(--space-m);
  background: var(--paper);
  border-radius: calc(var(--radius) * 2);
}

@media (min-width: 52rem) {
  .contact__inner {
    grid-template-columns: 1fr 1.25fr;
  }
  .contact__form {
    padding-inline: var(--space-l);
  }
}


/* ---------- Forms (contact + login) ---------- */
.field {
  margin: 0 0 var(--space-m);
  padding: 0;
  border: 0;
}
.field label,
.field legend {
  display: block;
  margin-bottom: 0.4rem;
  padding: 0;
  font-weight: 700;
}
.field__optional {
  font-weight: 400;
  color: var(--ink-soft);
}
.field input[type="text"],
.field input[type="password"],
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--ink-soft);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  -webkit-appearance: none;   /* iPhone/iPad: no built-in inner shadow, same look everywhere */
  appearance: none;
}
.field textarea {
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0 var(--space-m);
}
.field-row > * {
  min-width: 0;
}

/* Radio buttons styled as pills */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.choices legend {
  width: 100%;
}
.choice input {
  position: absolute;
  opacity: 0;
}
.choice span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
}
.choice input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.choice input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.form-note {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}
.form-error {
  padding: 0.75rem 1rem;
  border-left: 0.3rem solid var(--error);
  background: #fbeaea;
  color: var(--error);
  font-weight: 700;
}
.form-done {
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 2px dashed var(--paper-deep);
}
.form-done h2 {
  font-size: var(--text-lg);
}
.form-done__status {
  margin-top: var(--space-s);
  font-weight: 700;
  color: var(--teal);
}


/* ---------- Simple text pages (Impressum, Datenschutz, 404) ---------- */
.page {
  padding-block: var(--space-l) var(--space-xl);
}
.page h1 {
  /* Slightly smaller on narrow screens, so "Datenschutzerklärung" fits in one piece
     down to 320 px (phones, 400 % zoom). Same size as before on larger screens. */
  font-size: clamp(1.6rem, 0.9rem + 3.5vw, 3.4rem);
  margin-bottom: var(--space-l);
}
.page h2 {
  margin-top: var(--space-l);
  /* Like h1 above: long words such as "Sicherheitsmaßnahmen" stay whole down to 320 px */
  font-size: clamp(1.35rem, 0.9rem + 2.2vw, 2.25rem);
}
.page h3 {
  margin-top: var(--space-m);
  font-size: var(--text-lg);
}
/* Plain lists in legal texts (styled lists like .downloads keep their own layout) */
.page ul:not([class]) {
  max-width: var(--text-width);
  padding-left: 1.25rem;
}
.page li {
  margin-bottom: 0.5rem;
}
.page address {
  font-style: normal;
  margin-bottom: var(--space-s);
}
.toc {
  margin-bottom: var(--space-l);
  padding: var(--space-m);
  background: var(--paper-deep);
  border-radius: var(--radius);
  max-width: var(--text-width);
}
.toc h2 {
  margin-top: 0;
  font-size: var(--text-lg);
}


/* ---------- 404: page not found ---------- */
.not-found__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-top: var(--space-m);
}
/* Three pebbles lying around at different heights and angles */
.not-found__shapes {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--space-m);
  min-height: 9rem;
}
.not-found__shapes .shape:nth-child(1) { width: 4.5rem; transform: rotate(-18deg); margin-bottom: 3rem; }
.not-found__shapes .shape:nth-child(2) { width: 7rem; }
.not-found__shapes .shape:nth-child(3) { width: 3.5rem; transform: rotate(35deg); margin-bottom: 4.5rem; }


/* ---------- Medien / login ---------- */
.login {
  display: grid;
  gap: var(--space-l);
  align-items: center;
  padding-block: var(--space-l) var(--space-xl);
}
.login h1 {
  font-size: var(--text-2xl);
}
.login__card {
  position: relative;
  max-width: 28rem;
  padding: var(--space-l) var(--space-m);
  background: var(--white);
  border-radius: calc(var(--radius) * 2);
  box-shadow: 0.6rem 0.6rem 0 var(--paper-deep);
}
.login__card::before {
  content: "";
  position: absolute;
  top: -1.5rem;
  right: -1rem;
  width: 4rem;
  aspect-ratio: 1;
  border-radius: var(--pebble);
  background: var(--marigold-light);
}
.password-field {
  display: flex;
  gap: 0.5rem;
}
.password-field input {
  flex: 1;
  min-width: 0;
}
.password-toggle {
  flex: none;
  padding: 0 1rem;
  border: 2px solid var(--ink-soft);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: 700 var(--text-sm) var(--font-body);
  cursor: pointer;
}
.login .button {
  width: 100%;
}
.login .button[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

@media (min-width: 52rem) {
  .login {
    grid-template-columns: 1.2fr 1fr;
  }
  .login__card {
    padding-inline: var(--space-l);
  }
}


/* ---------- Protected area: download list ---------- */
.downloads {
  display: grid;
  gap: var(--space-s);
  max-width: 48rem;
  margin: var(--space-l) 0;
  padding: 0;
  list-style: none;
}
.download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  padding: var(--space-m);
  background: var(--white);
  border-left: 0.4rem solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.download h2 {
  margin: 0 0 0.25rem;
  font-size: var(--text-lg);
}
.download p {
  margin: 0;
  color: var(--ink-soft);
}


/* ---------- Site footer ---------- */
.site-footer {
  padding-block: var(--space-l);
  background: var(--ink);
  color: var(--paper-deep);
}
.site-footer__inner {
  display: grid;
  gap: var(--space-m);
}
.site-footer__name img {
  width: auto;
  height: 3.5rem;
  margin-bottom: 0.5rem;
}
.site-footer__name p {
  margin: 0;
  line-height: 1.7;
}
.site-footer__label {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--marigold-light);
}
.site-footer__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__group li {
  margin-bottom: 0.4rem;
}
/* Links with a small logo in front (LinkedIn) */
.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;          /* LinkedIn asks for some clear space around its logo */
}
.site-footer__icon {
  flex: none;
  width: auto;
  height: 22px;         /* LinkedIn's minimum is 21 px */
}
.site-footer a {
  color: var(--paper);
  font-weight: 700;
}
.site-footer a:hover {
  color: var(--marigold-light);
}
.site-footer :focus-visible {
  outline-color: var(--marigold-light);   /* the blue ring is too faint on the dark background */
}
.site-footer__note {
  margin: 0;
  font-size: var(--text-sm);
  color: #c9bdd3;
}

@media (min-width: 36rem) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l) var(--space-m);
  }
  .site-footer__note {
    grid-column: 1 / -1;
  }
}
@media (min-width: 60rem) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    align-items: start;
  }
  .site-footer__note {
    grid-column: 1 / -1;
  }
}
