/*
 * 3claws — lesbare Inhaltstypografie / v4.
 * Gemeinsam für Startseite, Angebote, Kontakt und Rechtstext-Vorlagen.
 * Diese Datei wird zuletzt geladen; die alten kleinen mobilen Schriftwerte
 * aus den bisherigen Layoutdateien werden hier gezielt ersetzt.
 * Überschriften und das offene Grundlayout bleiben erhalten.
 */

:root {
  --text-body: 1.125rem;      /* 18 px: laufender Inhalt */
  --text-lead: 1.25rem;       /* 20 px: Einleitungen */
  --text-support: 1rem;      /* 16 px: ergänzende Informationen / Bedienung */
  --text-meta: 0.875rem;      /* 14 px: Abschnittsnummern und kurze Labels */
  --body-leading: 1.75;
}

body {
  font-size: var(--text-body);
}

/* Senkrechte Beschriftungen am rechten Seitenrand. */
.vertical-caption {
  font: 400 var(--text-meta)/1.65 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  white-space: nowrap;
}

@media (min-width: 1201px) {
  .vertical-caption {
    font-size: clamp(14px, min(.95vw, 1.9dvh), 24px);
    line-height: 1.55;
  }
}

#track-description,
.incident-response {
  color: var(--color-muted);
  font-size: 1.25rem;
  line-height: 1.5;
}

#ansatz .kiss-note,
.service-overview {
  font: 400 clamp(17px, 1.45vw, 25px)/1.6 var(--sans);
  letter-spacing: -.01em;
}

@media (max-width: 760px) {
  #track-description,
  .incident-response { font-size: 1.125rem; }
}

@media (max-width: 700px) {
  #ansatz .kiss-note,
  .service-overview { font-size: 16px; }
}

/* Einleitungen und die eigentlichen Inhalte. */
.hero-description,
.services-head > p,
.team-heading > p,
.offers .offer-heading > p,
.page-lead {
  font-size: var(--text-lead);
  line-height: var(--body-leading);
  max-width: 44ch;
}

.hero-description {
  max-width: 36ch;
}

.service-body p,
.freedom .kiss-copy p,
.person p,
.offer-right > p,
.offer-features,
.contact-bottom > p:not(.mono),
.page-section-heading > p,
.open-columns article > p:last-child,
.service-rows > a > span:nth-child(2),
.legal-content section > p,
.legal-data > div,
.prototype-note p,
.contact-aside > p:not(.section-index),
.dialog-lead {
  font-size: var(--text-body);
  line-height: var(--body-leading);
}

.person p {
  max-width: 40ch;
}

/* Begleittext, Bedienelemente und Formular nicht zu Kleingedrucktem machen. */
.service .summary-text,
.service-body .service-link,
.kiss-principles,
.projects p,
.project-links :is(button, a),
.contact-cta,
.track-detail,
.hero-small,
.text-cta,
.back-link,
.contact-aside > .inline-link,
.draft-notice,
.comparison-table,
.comparison-table tfoot,
.field label,
.field input,
.field textarea,
.field select,
.demo-info,
.form-result,
.form-privacy-link,
main .pill,
dialog .pill {
  font-size: var(--text-support);
  line-height: 1.65;
}

.field input,
.field textarea,
.field select {
  line-height: 1.5;
}

.hero-eyebrow,
.section-index,
.service-num,
.service-body .service-tags,
.offer-kicker,
.person-role,
.contact-bottom .mono,
.kiss-count,
.offer-price .period,
.selector-caption,
.selector-caption span:first-child,
.selector-caption span:last-child,
.track span,
.tab span,
.table-hint,
.comparison-table caption,
.comparison-table thead span,
.dialog-top {
  font-size: var(--text-meta);
  line-height: 1.65;
}

.offer-specific {
  font-size: var(--text-support) !important;
  line-height: 1.65;
}

.offer-disclaimer,
.footer-note,
.footer-note p,
.footer-note .version {
  font-size: var(--text-meta);
  line-height: 1.8;
}

.freedom .kiss-footnote {
  font-size: var(--text-meta) !important;
  line-height: 1.7;
}

.track {
  font-size: 1.25rem;
}

.track span {
  margin-right: 10px;
}

.kiss-principles span::before {
  top: 0.7em;
}

/* Persönliche Note, nicht als zusätzlicher Kasten oder Werbeblock. */
.team-small {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-family: var(--sans);
  font-size: var(--text-support);
  line-height: 1.75;
  text-transform: none;
  letter-spacing: 0;
}

.team-cats {
  color: var(--muted);
}

/* Text wächst im Lesefluss; keine feste Höhe für den Anfangsbereich.
 * Desktop behält die Grafik rechts und den Text links.
 */
.hero {
  padding-bottom: 110px;
}

.hero-copy {
  padding-bottom: 16px;
}

.hero-actions {
  flex-wrap: wrap;
  row-gap: 16px;
}

.text-cta {
  max-width: none;
}

.text-cta .round {
  flex-shrink: 0;
}

/* Mehr Platz für Teamtexte statt zu schmaler Restspalten. */
@media (min-width: 561px) and (max-width: 1000px) {
  .person {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .person p {
    max-width: 36ch;
  }
}

@media (max-width: 800px) {
  :root {
    --text-body: 1.0625rem;   /* 17 px */
    --text-lead: 1.125rem;    /* 18 px */
    --text-meta: 0.8125rem;   /* 13 px */
  }

  .hero-description {
    max-width: 30ch;
  }

  .track {
    font-size: 1.125rem;
  }

  .track span {
    margin-right: 6px;
  }

  .hero-meta > span,
  .hero-meta a {
    font-size: 0.8125rem;
    line-height: 1.65;
  }

  .hero-meta a {
    white-space: normal;
  }
}

/* Auf dem Smartphone stehen Text, Grafik, Auswahl wie bisher untereinander.
 * Jetzt im normalen Dokumentfluss, damit größere Schriften/Zoom nichts überlagern.
 */
@media (max-width: 560px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 26px;
  }

  .hero-copy {
    max-width: 100%;
    padding-bottom: 0;
  }

  .hero-description {
    max-width: none;
  }

  .hero-actions {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .hero-small {
    margin-left: 56px;
    max-width: none;
    white-space: normal;
  }

  .hero-art {
    position: relative;
    align-self: center;
    flex-shrink: 0;
    top: auto;
    right: auto;
    width: calc(100% + 2 * var(--pad));
    height: clamp(310px, 90vw, 410px);
    margin-top: 38px;
  }

  .hero-selector {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 12px;
  }

  .hero-meta {
    position: static;
    width: 100%;
    margin-top: 34px;
    gap: 20px;
  }

  .hero-meta > span {
    max-width: 58%;
  }

  .hero-meta a {
    max-width: 35%;
  }

  .track-detail {
    min-height: 82px;
  }

  .track {
    font-size: 1.0625rem;
  }

  .team-heading > p,
  .offers .offer-heading > p,
  .freedom .kiss-copy p {
    max-width: none;
  }

  .person {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 20px;
  }

  .person p {
    max-width: none;
  }

  .person-role {
    overflow-wrap: anywhere;
  }

  .offer-features {
    grid-template-columns: 1fr;
  }

  .project-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 380px) {
  .person {
    grid-template-columns: 1fr;
  }

  .hero-eyebrow {
    letter-spacing: 0;
  }
}

@media print {
  body {
    font-size: 11pt;
  }

  .comparison-table {
    font-size: 9pt;
  }
}
