/* Entwurf C "Seeblau": Stefans Wunsch nach verschiedenen Blautönen als Aufbau.
   Die Seite wird von oben nach unten tiefer, wie ein Bergsee: helle Abschnitte bis zu den
   Ergebnissen, dann der Urnersee als Wasseroberfläche, darunter die tiefen Blautöne.
   Flache Flächen, keine Verläufe. Source Serif 4 für Überschriften, IBM Plex Sans für Text. */

@font-face {
  font-family: "Source Serif 4";
  src: url("../../fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../../fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-stretch: 85% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Tiefenstufen, hell nach dunkel */
  --t0: #f3f7fb;
  --t1: #e9f1f8;
  --t2: #dde9f3;
  --t3: #cfe0ee;
  --d1: #1f476b;
  --d2: #183b5a;
  --d3: #112d47;
  --d4: #0b2135;

  --ink: #0f2236;
  --muted: #3d5068;
  --accent: #2a5a88;
  --accent-dark: #1f476b;
  --rule: rgba(15, 34, 54, 0.14);
  --on-deep: #eef4fa;
  --on-deep-muted: #b9cbe0;
  --on-deep-rule: rgba(238, 244, 250, 0.18);
  --ice: #a9cbe9;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", Arial, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --step-2: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-3: clamp(1.7rem, 1.35rem + 1.2vw, 2.35rem);
  --step-4: clamp(2.1rem, 1.55rem + 1.9vw, 3.1rem);

  --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(--t0);
  color: var(--ink);
  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(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease;
}

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

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

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

h3 {
  font-size: var(--step-1);
  font-weight: 560;
  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(--d3);
  color: var(--on-deep);
  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(--t0);
  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(--ink);
  text-decoration: none;
}

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

.nav .nav__cta {
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
  background: var(--d1);
  color: var(--on-deep);
  transition: background-color 0.15s ease;
}

.nav .nav__cta:hover {
  background: var(--d3);
  color: var(--on-deep);
}

@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 */

/* Porträt links in normaler Grösse, Text rechts: ein Mensch, kein Plakat. */
.hero__inner {
  display: grid;
  gap: 1.75rem;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

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

.hero h1 {
  font-size: var(--step-4);
  font-weight: 480;
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 17ch;
}

.hero__lead {
  margin-top: 1.1rem;
  max-width: 35rem;
  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.6rem;
}

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

.button:hover {
  background: var(--d3);
  color: var(--on-deep);
  text-decoration: none;
}

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

@media (min-width: 56em) {
  .hero__inner {
    grid-template-columns: 19rem minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
  }

  .hero__photo img {
    max-width: none;
  }
}

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

.credentials-bar {
  background: var(--t1);
  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));
  }
}

/* ------------------------------------------------------------------ Helle Stufen */

.situations {
  background: var(--t1);
}

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

.results {
  background: var(--t3);
}

/* 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__grid {
  display: grid;
  gap: 2.75rem 3rem;
  margin-top: 2.5rem;
}

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

.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.78em;
  width: 0.45rem;
  height: 1px;
  background: currentColor;
}

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

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

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

/* Ergebnisse */

.ledger {
  border-top: 1px solid var(--ink);
}

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

.ledger dt {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 520;
  line-height: 1.25;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--d1);
  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: 11rem 1fr;
    align-items: baseline;
  }
}

/* ------------------------------------------------------------------ Wasseroberfläche */

.surface img {
  width: 100%;
  height: clamp(9rem, 20vw, 17rem);
  object-fit: cover;
  object-position: 50% 70%;
}

/* ------------------------------------------------------------------ Tiefe Stufen */

.about,
.faq,
.contact {
  color: var(--on-deep);
}

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

.faq {
  background: var(--d2);
}

.contact {
  background: var(--d3);
}

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

.about a:hover,
.faq a:hover,
.contact a:hover {
  color: var(--ice);
}

.about :focus-visible,
.faq :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--ice);
}

/* Über mich: Text links, Stationen rechts (das Porträt steht in C schon im Hero). */
.about__text h2 {
  margin-bottom: 1.25rem;
}

.about__text > p {
  font-family: var(--serif);
  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(--on-deep-rule);
}

.about__facts h3 {
  margin-bottom: 0.7rem;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--on-deep);
}

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

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

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

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

.year {
  font-variant-numeric: tabular-nums;
  color: var(--ice);
  white-space: nowrap;
}

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

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

@media (min-width: 56em) {
  /* Die rechte Spalte reicht bis in eine flexible Schlusszeile. So nimmt diese Zeile die
     überschüssige Höhe auf, und die Absätze links behalten ihren normalen Abstand. */
  .about__text {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: repeat(4, auto) 1fr;
    column-gap: 4.5rem;
    align-items: start;
  }

  .about__text > * {
    grid-column: 1;
  }

  .about__text > .about__facts {
    grid-column: 2;
    grid-row: 2 / -1;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}

/* Fragen */

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

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

.faq summary {
  position: relative;
  padding: 1.05rem 2.5rem 1.05rem 0;
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 500;
  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(--ice);
  transition: transform 0.25s ease;
}

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

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

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

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

/* Kontakt */

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

.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__card {
  align-self: start;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border: 1px solid var(--on-deep-rule);
  border-radius: 4px;
}

.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: 3px;
}

.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(--ice);
}

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

.contact__card .button:hover {
  background: var(--ice);
  color: var(--d3);
}

@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: var(--d4);
  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);
}

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