/* ============================================================
   mgd.training.academy – Prototyp V4 „Kassabuch, weit"
   Dokument-Look ohne rote Randlinie: feines Linienpapier im Hero,
   breiteres Raster, mehr Weißraum, Handschrift nur im T-Konto.
   Mobile-first · Breakpoints: 45em (720px), 64em (1024px)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --paper: #FBF8F3;
  --ink: #22313A;
  --ink-soft: #44565B;
  --pine: #175E54;
  --amber: #F2B33D;
  --amber-dark: #E7A62B;
  --pencil: #6E7B74;
  --line: rgba(34, 49, 58, 0.16);
  --line-soft: rgba(23, 94, 84, 0.2);
  --ledger-line: rgba(23, 94, 84, 0.075);

  --container: 76rem;
  --header-h: 4.25rem;

  --font-display: "Bitter", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", "SF Mono", "Consolas", monospace;
  --font-hand: "Caveat", "Bradley Hand", cursive;
}

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

* { margin: 0; }

body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--pine); }

::selection { background: #F6D794; color: var(--ink); }

:focus-visible {
  outline: 2.5px solid var(--pine);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 45em) {
  .container { padding-inline: 2rem; }
}

@media (min-width: 64em) {
  .container { padding-inline: 3rem; }
}

section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 100;
  background: var(--pine);
  color: #fff;
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-weight: 600;
  transform: translateY(-300%);
}

.skip-link:focus { transform: none; }

/* ---------- Typo-Helfer ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine);
}

.sec__head {
  max-width: 46rem;
  margin-bottom: 3rem;
}

.sec__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 1.6vw + 1.2rem, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin-top: 0.8rem;
  text-wrap: balance;
}

.sec__intro {
  font-size: 1.1rem;
  color: var(--pencil);
  margin-top: 0.9rem;
}

/* Textmarker-Strich */
.mark {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.08em;
  right: -0.08em;
  bottom: 0.05em;
  height: 0.42em;
  background: var(--amber);
  opacity: 0.5;
  border-radius: 2px;
  transform: rotate(-1.1deg);
}

.mark--small::after { height: 0.52em; bottom: 0; }

/* ---------- Buttons & Links ---------- */
.btn-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  background: var(--amber);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  padding: 0.9rem 1.5rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.btn-stamp:hover { background: var(--amber-dark); }

.btn-stamp--small {
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
}

.arrow-link {
  font-weight: 700;
  font-size: 1rem;
  color: var(--pine);
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 2.5px;
  text-underline-offset: 0.3em;
}

.arrow-link:hover {
  text-decoration-color: var(--amber-dark);
  text-decoration-thickness: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 248, 243, 0.92);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
}

.site-header.is-scrolled {
  background: rgba(252, 250, 246, 0.97);
  box-shadow: inset 0 -1px 0 var(--line), 0 2px 10px rgba(34, 49, 58, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: var(--header-h);
}

/* Logo-Lockup: Marke + zweizeilige Wortmarke */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  white-space: nowrap;
}

.brand__text strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--pine);
  letter-spacing: -0.01em;
}

.brand__text span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-top: 0.2rem;
}

.nav { display: none; }

@media (min-width: 45em) {
  .nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin-left: auto;
  }

  .nav__link {
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink);
    text-decoration: none;
  }

  .nav__link:hover {
    text-decoration: underline;
    text-decoration-color: var(--amber);
    text-decoration-thickness: 3px;
    text-underline-offset: 0.4em;
  }
}

/* ---------- Hero (liniertes Papier) ---------- */
.hero {
  padding: 3.5rem 0 4.5rem;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(2.3rem - 1px),
    var(--ledger-line) calc(2.3rem - 1px),
    var(--ledger-line) 2.3rem
  );
}

.hero__grid {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 45em) {
  .hero { padding: 4.5rem 0 5.5rem; }
}

@media (min-width: 64em) {
  .hero { padding: 5.5rem 0 6.5rem; }

  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 5rem;
    align-items: center;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 3.1vw + 1.1rem, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 1rem 0 1.25rem;
}

.hero__sub {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 36rem;
}

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

@media (max-width: 29.99em) {
  .hero__actions .btn-stamp { width: 100%; }
}

/* ---------- T-Konto (Signatur) ---------- */
.tkonto {
  width: 100%;
  max-width: 30rem;
  justify-self: center;
}

@media (min-width: 64em) {
  .tkonto { justify-self: end; }
}

.tkonto__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  text-align: center;
  margin-bottom: 0.75rem;
}

.tkonto__sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 3px solid var(--ink);
}

.tkonto__col { padding: 0.9rem 0 0 1rem; }

.tkonto__col--soll {
  border-right: 3px solid var(--ink);
  padding-left: 0.2rem;
  padding-right: 1rem;
}

.tkonto__head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.tkonto__head span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--pencil);
  margin-top: 0.15rem;
}

.tkonto__list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
}

.tkonto__list li {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink-soft);
  padding: 0.5rem 0.1rem 0.35rem;
  border-bottom: 1px solid var(--line-soft);
}

.tkonto__saldo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.6rem 0.2rem 0.65rem;
  border-top: 2px solid var(--ink);
  border-bottom: 6px double var(--ink);
}

.tkonto__saldo-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pencil);
}

.tkonto__saldo-value {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
}

/* ---------- Referenzen / Stationen ---------- */
.refs {
  padding: 2.75rem 0 3.5rem;
  border-top: 1px solid var(--line);
}

.refs__label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-bottom: 1.4rem;
}

.refs__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.ref {
  padding: 1.35rem 1rem 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.ref:nth-child(2n) {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.ref:nth-last-child(-n + 2) { border-bottom: 0; }

.ref__short {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 1.2vw + 1rem, 1.85rem);
  line-height: 1;
  color: var(--pine);
  letter-spacing: -0.01em;
}

.ref__long {
  display: block;
  font-size: 0.88rem;
  color: var(--pencil);
  margin-top: 0.5rem;
  hyphens: auto;
  overflow-wrap: break-word;
}

@media (min-width: 45em) {
  .ref__long { font-size: 0.92rem; }
}

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

  .ref {
    padding: 1.6rem 1.25rem;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .ref:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------- Abschnitte ---------- */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 45em) {
  .section { padding: 6rem 0; }
}

@media (min-width: 64em) {
  .section { padding: 7rem 0; }
}

/* ---------- Leistungen & Honorare (Ledger-Tabelle) ---------- */
.ledger {
  border-top: 2px solid var(--ink);
}

.ledger__row {
  display: grid;
  grid-template-areas:
    "what"
    "price"
    "desc";
  gap: 1.1rem;
  padding: 1.9rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.ledger__row:last-of-type { border-bottom: 2px solid var(--ink); }

.ledger__what { grid-area: what; }
.ledger__price { grid-area: price; }
.ledger__desc { grid-area: desc; }

@media (min-width: 45em) {
  .ledger__row {
    grid-template-columns: minmax(0, 1fr) 240px;
    grid-template-areas:
      "what price"
      "desc price";
    gap: 1rem 3rem;
    align-items: start;
    padding: 2.25rem 0;
  }
}

@media (min-width: 64em) {
  .ledger__row {
    grid-template-columns: 250px minmax(0, 1fr) 270px;
    grid-template-areas: "what desc price";
    gap: 3.5rem;
  }
}

.ledger__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.2;
  hyphens: manual;
  overflow-wrap: break-word;
}

.ledger__for {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--pencil);
  margin-top: 0.45rem;
  hyphens: manual;
}

.ledger__desc p {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 40rem;
  hyphens: auto;
}

.ledger__desc .arrow-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.96rem;
}

.ledger__price {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.price-row__label { font-size: 0.98rem; }

.price-row__dots {
  flex: 1;
  border-bottom: 2px dotted rgba(110, 123, 116, 0.45);
  transform: translateY(-0.25em);
}

.price-row__value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger__custom {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

/* ---------- Über mich ---------- */
.about__role {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--pine);
  margin-top: 0.55rem;
}

.about {
  display: grid;
  gap: 3rem;
}

@media (min-width: 45em) {
  .about {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 4rem;
    align-items: start;
  }
}

@media (min-width: 64em) {
  .about {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 6rem;
  }
}

.about__text { max-width: 42rem; }

.about__text > p + p { margin-top: 1rem; }

.about__text p { hyphens: auto; }

.about__media {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
}

.portrait {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background-color: #fff;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(1.6rem - 1px),
    rgba(23, 94, 84, 0.09) calc(1.6rem - 1px),
    rgba(23, 94, 84, 0.09) 1.6rem
  );
  border: 2px solid var(--ink);
}

.portrait__monogram {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.8rem;
  letter-spacing: 0.02em;
  color: var(--pine);
}

.portrait__caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--pencil);
  text-align: right;
  margin-top: 0.6rem;
}

/* ---------- Termin & Kontakt (zweispaltig, wie ein T-Konto) ---------- */
.booking {
  display: grid;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}

.booking__col { padding: 2rem 0; }

.booking__col + .booking__col { border-top: 1px solid var(--line); }

@media (min-width: 45em) {
  .booking { grid-template-columns: 1fr 1fr; }

  .booking__col { padding: 2.5rem 2.5rem 2.5rem 0; }

  .booking__col + .booking__col {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 2.5rem;
    padding-right: 0;
  }
}

@media (min-width: 64em) {
  .booking__col { padding: 3rem 3.5rem 3rem 0; }

  .booking__col + .booking__col { padding-left: 3.5rem; }
}

.booking__label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pencil);
}

.booking__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0.6rem 0 0.85rem;
}

.booking__col p { color: var(--ink-soft); max-width: 32rem; }

.booking__col .btn-stamp { margin-top: 1.6rem; }

.booking__hint {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--pencil);
  margin-top: 0.9rem;
}

.booking__mail {
  display: inline-block;
  margin-top: 1.6rem;
  font-size: 1.15rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 6px double var(--ink);
  padding: 2.5rem 0 3rem;
}

.footer__grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 45em) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .footer__legal { text-align: right; }
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.footer__line {
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.footer__line a {
  color: var(--pine);
  font-weight: 600;
}

.footer__domain {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--pencil);
}

.footer__legal {
  font-size: 0.88rem;
  color: var(--pencil);
}

.footer__legal a { color: var(--pencil); }

.footer__legal a:hover { color: var(--pine); }
