/* Entwurf D "Fels": ruhiges Editorial. Stefans Wunschmotiv "Felsen im Wasser" als Zweiton-Druck,
   eine Schrift (Spectral) mit dünnen Schnitten für Titel und Mediävalziffern im Text.
   Abschnitte im Zeitungsraster: Titel links, Inhalt rechts. Vorbild für die Haltung: Pictet,
   Centerview (Bild mit Haltung statt Stockfoto, viel Weissraum). */

@font-face {
  font-family: "Spectral";
  src: url("../../fonts/spectral-300-latin.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("../../fonts/spectral-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("../../fonts/spectral-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("../../fonts/spectral-300-italic-latin.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Spectral";
  src: url("../../fonts/spectral-400-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #13202e;
  --ink-soft: #2b3846;
  --muted: #5a6573;
  --lake: #23476b;
  --lake-dark: #182f4a;
  --rule: #dde3ea;
  --ice: #eef3f8;

  --serif: "Spectral", Georgia, serif;

  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: clamp(1.15rem, 1.07rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.3rem, 1.15rem + 0.55vw, 1.6rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.3vw, 2.5rem);
  --step-4: clamp(2.3rem, 1.55rem + 2.5vw, 3.5rem);

  --gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  --section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --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(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.65;
  font-variant-numeric: oldstyle-nums;
  -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(--lake);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--lake-dark);
}

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

h1,
h2,
h3 {
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

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

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

p {
  text-wrap: pretty;
}

strong {
  font-weight: 500;
}

.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(--ink);
  color: var(--paper);
}

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

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
}

.intro {
  margin-top: 0.9rem;
  color: var(--muted);
  font-style: italic;
  max-width: 24rem;
}

/* Zeitungsraster: Titel links, Inhalt rechts. */
.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 56em) {
  .split,
  .situations .wrap,
  .offer .wrap {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 4rem;
    align-items: start;
  }
}

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

.site-header {
  position: relative;
  z-index: 10;
  background: var(--paper);
  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: baseline;
  gap: 0.3rem 1.6rem;
  font-size: 1.0625rem;
}

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

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

/* Kontakt als unterstrichener Verweis, nicht als Knopf: leiser, wie in einem Briefkopf. */
.nav .nav__cta {
  color: var(--lake);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

@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: 2.5rem;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.25rem);
}

.hero__claim {
  display: block;
  font-size: var(--step-4);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.012em;
}

.hero__role {
  display: block;
  margin-top: 1rem;
  font-size: var(--step-1);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--lake);
}

.hero__lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.6;
}

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

.button {
  display: inline-block;
  padding: 0.7rem 1.3rem 0.75rem;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--lake);
  color: var(--paper);
}

.link-quiet {
  font-size: 1.0625rem;
}

.hero__plate img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (max-width: 55.99em) {
  .hero__plate {
    max-width: 22rem;
  }
}

@media (min-width: 56em) {
  .hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: clamp(3rem, 1rem + 5vw, 7rem);
    align-items: center;
  }
}

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

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

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

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

.credentials span {
  font-style: italic;
  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 2.5rem;
  margin-top: 2rem;
}

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

.situations__list p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

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

@media (min-width: 56em) {
  .situations__list {
    margin-top: 0.6rem;
  }
}

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

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

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

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

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

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

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

.tasks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 0.4rem;
  height: 1px;
  background: currentColor;
}

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

.offer__ref strong {
  font-style: normal;
  color: var(--ink);
}

/* Desktop: jede Leistung als Zeile, Titel links, Text rechts. */
@media (min-width: 56em) {
  .offer__grid {
    margin-top: 0.4rem;
    gap: 2.25rem;
  }

  .offer__item {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    column-gap: 2.5rem;
  }

  .offer__item > * {
    grid-column: 2;
  }

  .offer__item > h3 {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .offer__item > p:first-of-type {
    margin-top: 0;
  }
}

/* Aufgaben erst zweispaltig, wenn die Textspalte breit genug ist (sonst passen Wörter wie
   "Baukostencontrolling" nicht in eine Spalte). */
@media (min-width: 72em) {
  .tasks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

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

.ledger dt {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.05rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--lake);
  white-space: nowrap;
}

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

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

/* ------------------------------------------------------------------ Bildband */

.landscape img {
  width: 100%;
  height: clamp(10rem, 22vw, 19rem);
  object-fit: cover;
  object-position: 50% 60%;
}

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

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

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

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

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

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

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

.about__facts h3 {
  margin-bottom: 0.6rem;
  font-size: var(--step--1);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.stations {
  font-size: 1rem;
  line-height: 1.55;
}

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

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

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

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

.languages strong {
  color: var(--ink);
}

/* Text links, Bild rechts wie eine Tafel im Buch. */
@media (min-width: 56em) {
  .about__grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    column-gap: 4rem;
    align-items: start;
  }

  .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: 1px solid var(--ink);
}

.faq summary {
  position: relative;
  padding: 1rem 2.5rem 1rem 0;
  font-size: var(--step-1);
  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.8rem;
  height: 1px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

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

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

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

.faq details p {
  padding-bottom: 1.2rem;
  max-width: var(--measure);
  color: var(--ink-soft);
}

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

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

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

.contact__intro {
  margin-top: 0.9rem;
  max-width: 30rem;
  font-style: italic;
  color: var(--muted);
}

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

.steps li {
  padding-top: 0.8rem;
  border-top: 1px solid var(--ink);
}

.steps h3 {
  font-style: italic;
  font-weight: 400;
}

.steps p {
  margin-top: 0.3rem;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Der Kontaktblock als Briefbogen: weisses Blatt, feine Kante, kein Schatten. */
.contact__card {
  align-self: start;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--rule);
}

.contact__person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--muted);
}

.contact__person picture {
  flex: none;
}

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

.contact__person strong {
  color: var(--ink);
}

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

.contact__list dt {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--muted);
}

.contact__list dd {
  font-size: var(--step-1);
  line-height: 1.4;
}

.contact__list dd a {
  color: var(--ink);
  text-decoration-color: var(--rule);
}

.contact__list dd a:hover {
  color: var(--lake);
  text-decoration-color: currentColor;
}

.contact__card .button {
  margin-top: 1.6rem;
}

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

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

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

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

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

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

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