/* Entwurf B "Weite": hell, der Urnersee als Horizont unter der Überschrift.
   Eine Schrift (Mona Sans) mit Breitenachse: Überschriften breit, Fliesstext normal. */

@font-face {
  font-family: "Mona Sans";
  src: url("../../fonts/mona-sans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep: #0f2840;
  --water: #1f6f9c;
  --water-dark: #175a80;
  --glacier: #9cc3e3;
  --mist: #eef5fb;
  --white: #ffffff;
  --muted: #4a5d70;
  --rule: #d6e2ec;
  --on-deep: #eef5fb;
  --on-deep-muted: #b8cadb;
  --on-deep-rule: rgba(238, 245, 251, 0.16);

  --sans: "Mona Sans", Arial, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.1rem, 1.04rem + 0.25vw, 1.22rem);
  --step-2: clamp(1.22rem, 1.1rem + 0.45vw, 1.45rem);
  --step-3: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.1vw, 3.3rem);

  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --measure: 36rem;
  --header-h: 4.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--deep);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: var(--water);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--water-dark);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--water);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-stretch: 112%;
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  font-weight: 580;
  line-height: 1.3;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--deep);
  color: var(--white);
  font-weight: 600;
}

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

.section {
  padding-block: var(--section);
}

.section__head {
  max-width: 40rem;
}

.intro {
  margin-top: 0.9rem;
  color: var(--muted);
  max-width: 30rem;
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 56em) {
  .split {
    grid-template-columns: 4fr 7fr;
    gap: 4rem;
  }
}

/* ------------------------------------------------------------------ Kopf */

.site-header {
  position: relative;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding-block: 0.9rem;
}

.wordmark {
  display: block;
  flex: none;
  line-height: 0;
}

.wordmark img {
  display: block;
  width: auto;
  /* 36 px, auf schmalen Handys kleiner, damit Logo und Kontakt-Knopf nebeneinander passen */
  height: clamp(1.75rem, 1.2rem + 3vw, 2.25rem);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 1.4rem;
  font-size: var(--step--1);
  font-weight: 500;
}

.site-header a {
  color: var(--deep);
  text-decoration: none;
}

.nav a:hover {
  color: var(--water);
}

.nav .nav__cta {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--deep);
  color: var(--white);
  transition: background-color 0.15s ease;
}

.nav .nav__cta:hover {
  background: var(--water);
  color: var(--white);
}

@media (max-width: 39.99em) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .nav li:not(:last-child) {
    display: none;
  }
}

@media (min-width: 48em) {
  html {
    scroll-padding-top: calc(var(--header-h) + 0.5rem);
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .site-header__inner {
    min-height: var(--header-h);
    padding-block: 0;
  }
}

/* ------------------------------------------------------------------ Hero */

.hero__inner {
  display: grid;
  gap: 1.5rem 4rem;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.25rem) clamp(2rem, 1.5rem + 2vw, 3rem);
}

.hero h1 {
  font-size: var(--step-4);
  font-stretch: 116%;
  font-weight: 540;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 14em;
}

.hero__byline {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.hero__byline picture {
  flex: none;
}

.hero__byline img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
}

.hero__lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  background: var(--deep);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--water);
  color: var(--white);
  text-decoration: none;
}

.link-quiet {
  font-weight: 500;
  font-size: 1rem;
}

/* Desktop: Überschrift über die ganze Breite, darunter Lead links und Aktionen rechts
   auf einer Grundlinie. */
@media (min-width: 56em) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title title"
      "byline actions";
    row-gap: 1.75rem;
  }

  .hero h1 {
    grid-area: title;
  }

  .hero__side {
    display: contents;
  }

  .hero__byline {
    grid-area: byline;
  }

  .hero__actions {
    grid-area: actions;
    align-self: end;
    margin-top: 0;
  }
}

/* Der Horizont: so hoch, dass er im ersten Bild anschneidet, nicht so hoch, dass er erschlägt. */
.horizon img {
  width: 100%;
  height: clamp(12rem, 22vw, 19rem);
  object-fit: cover;
  object-position: 50% 64%;
}

/* ------------------------------------------------------------------ Qualifikationen */

.credentials-bar {
  border-block: 1px solid var(--rule);
}

.credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.5rem;
  padding-block: 1.1rem;
  font-size: var(--step--1);
  line-height: 1.4;
}

.credentials strong {
  display: block;
  font-weight: 600;
}

.credentials span {
  color: var(--muted);
}

@media (min-width: 56em) {
  .credentials {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------ Wann Sie mich beiziehen */

.situations__list {
  display: grid;
  gap: 1.75rem 3rem;
  margin-top: 2.25rem;
}

.situations__list li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

.situations__list p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: var(--step--1);
  max-width: 32rem;
}

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

@media (min-width: 64em) {
  .situations__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------ Leistungen */

.offer {
  background: var(--mist);
}

.offer__grid {
  display: grid;
  gap: 2.75rem 3rem;
  margin-top: 2.5rem;
}

.offer__item {
  padding-top: 1.25rem;
  border-top: 2px solid var(--deep);
}

.offer__item h3 {
  font-size: var(--step-2);
}

.offer__item > p {
  margin-top: 0.75rem;
  max-width: var(--measure);
}

.tasks {
  display: grid;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.tasks li {
  position: relative;
  padding-left: 1.1rem;
}

.tasks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--glacier);
}

.offer__item > .offer__ref {
  margin-top: 1.1rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.offer__ref strong {
  color: var(--deep);
  font-weight: 600;
}

@media (min-width: 60em) {
  .offer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------ Ergebnisse */

.ledger {
  border-top: 2px solid var(--deep);
}

.ledger > div {
  display: grid;
  gap: 0.2rem 2rem;
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--rule);
}

.ledger dt {
  font-size: var(--step-2);
  font-stretch: 115%;
  font-weight: 560;
  line-height: 1.25;
  color: var(--water);
  white-space: nowrap;
}

.ledger dd {
  align-self: center;
  max-width: var(--measure);
}

.ledger strong {
  font-weight: 600;
}

@media (min-width: 40em) {
  .ledger > div {
    grid-template-columns: 12rem 1fr;
    align-items: baseline;
  }
}

/* ------------------------------------------------------------------ Über mich */

.about {
  background: var(--mist);
}

.about__grid {
  display: grid;
  gap: 2.5rem;
}

.about__photo img {
  width: 100%;
  max-width: 21rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

.about__text h2 {
  margin-bottom: 1.25rem;
}

.about__text > p {
  font-size: var(--step-1);
  line-height: 1.6;
  max-width: 38rem;
}

.about__text > p + p {
  margin-top: 0.9em;
}

.about__facts {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

.about__facts h3 {
  margin-bottom: 0.7rem;
  font-size: var(--step--1);
  font-stretch: 100%;
  font-weight: 650;
  letter-spacing: 0;
}

/* Werdegang im richtigen Zeitverhältnis: Monate laut CV (BDO 87, Swiss Casinos 148,
   STM bis 10.2026 32). Beim Nachführen nur die drei flex-grow-Werte anpassen.
   Für Screenreader verborgen, die Liste darunter trägt die Information. */
.span {
  margin-bottom: 1.1rem;
}

.span__bar,
.span__labels {
  display: flex;
  gap: 3px;
}

.span__bar {
  height: 0.55rem;
}

.span__seg {
  border-radius: 2px;
}

.span__bar .span__seg--bdo {
  background: var(--glacier);
}

.span__bar .span__seg--sc {
  background: var(--water);
}

.span__bar .span__seg--stm {
  background: var(--deep);
}

.span__seg--bdo {
  flex-grow: 87;
}

.span__seg--sc {
  flex-grow: 148;
}

.span__seg--stm {
  flex-grow: 32;
}

.span__labels {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.span__labels span {
  flex-basis: 0;
  min-width: 0;
}

.stations {
  font-size: var(--step--1);
  line-height: 1.5;
}

.stations li {
  display: grid;
  grid-template-columns: 7.25rem 1fr;
  gap: 1rem;
}

.stations li + li {
  margin-top: 0.55rem;
}

.stations strong {
  font-weight: 600;
}

.year {
  color: var(--water);
  white-space: nowrap;
}

.languages {
  font-size: var(--step--1);
  color: var(--muted);
}

.languages strong {
  color: var(--deep);
  font-weight: 600;
}

@media (min-width: 56em) {
  .about__grid {
    grid-template-columns: 1fr 19rem;
    gap: 4.5rem;
    align-items: start;
  }

  /* Text links, Bild rechts: gespiegelt zu A. */
  .about__photo {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .about__text {
    grid-column: 1;
    grid-row: 1;
  }
}

/* ------------------------------------------------------------------ Fragen */

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq details:first-child {
  border-top: 2px solid var(--deep);
}

.faq summary {
  position: relative;
  padding: 1.05rem 2.5rem 1.05rem 0;
  font-size: var(--step-1);
  font-weight: 550;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 0.85rem;
  height: 1.5px;
  background: var(--water);
  transition: transform 0.25s ease;
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::after {
  transform: rotate(0deg);
}

.faq summary:hover {
  color: var(--water);
}

.faq details p {
  padding-bottom: 1.3rem;
  max-width: var(--measure);
  color: var(--muted);
}

/* ------------------------------------------------------------------ Kontakt */

.contact {
  padding-block: var(--section);
  background: var(--deep);
  color: var(--on-deep);
}

.contact__grid {
  display: grid;
  gap: 2.5rem;
}

.contact__intro {
  margin-top: 0.9rem;
  max-width: 30rem;
  color: var(--on-deep-muted);
}

.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.steps li {
  padding-top: 0.9rem;
  border-top: 1px solid var(--on-deep-rule);
}

.steps p {
  margin-top: 0.35rem;
  font-size: var(--step--1);
  color: var(--on-deep-muted);
}

.contact a {
  color: var(--on-deep);
}

.contact a:hover {
  color: var(--glacier);
}

.contact :focus-visible {
  outline-color: var(--glacier);
}

.contact__card {
  align-self: start;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-radius: 6px;
  background: rgba(238, 245, 251, 0.06);
}

.contact__person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--on-deep-rule);
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--on-deep-muted);
}

.contact__person picture {
  flex: none;
}

.contact__person img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
}

.contact__person strong {
  color: var(--on-deep);
  font-weight: 600;
}

.contact__list > div + div {
  margin-top: 1rem;
}

.contact__list dt {
  font-size: 0.875rem;
  color: var(--on-deep-muted);
}

.contact__list dd {
  margin-top: 0.1rem;
  font-size: var(--step-1);
  line-height: 1.45;
}

.contact__list dd a {
  text-decoration: none;
  border-bottom: 1px solid var(--on-deep-rule);
}

.contact__list dd a:hover {
  border-bottom-color: var(--glacier);
}

.contact__card .button {
  margin-top: 1.75rem;
  background: var(--white);
  color: var(--deep);
}

.contact__card .button:hover {
  background: var(--glacier);
  color: var(--deep);
}

@media (min-width: 40em) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 56em) {
  .contact__grid {
    grid-template-columns: 7fr 5fr;
    gap: 4.5rem;
  }
}

/* ------------------------------------------------------------------ Fuss */

.site-footer {
  background: #0a1d30;
  color: var(--on-deep-muted);
  font-size: 0.875rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  padding-block: 1.6rem;
}

.site-footer a {
  color: var(--on-deep);
}

.site-footer :focus-visible {
  outline-color: var(--glacier);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
