/* medial.jetzt – Stylesheet für alle Seiten */

/* ---------- Grundlagen ---------- */

:root {
  --ink: #0d2123;
  --paper: #fff;
  --accent: #ff8c62;
  --dot: #ff62a9;

  /* Farben der Kreise (Hintergrundfarbe mit 67 % Deckkraft) */
  --circle-blue: rgb(138 220 255 / 0.67);
  --circle-green: rgb(148 240 138 / 0.67);
  --circle-yellow: rgb(243 255 6 / 0.67);
  --circle-lime: rgb(180 255 98 / 0.67);
  --circle-salmon: rgb(255 140 98 / 0.67);

  --font-text: "Montserrat", system-ui, sans-serif;
  --font-head: "Lato", system-ui, sans-serif;

  --gutter: 1rem;
}

*,
*::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(--font-text);
  font-size: 1.125rem;
  line-height: 1.67;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}

/* Überschriften, Adressen und Kurzzeilen nicht trennen */
h1,
h2,
address,
.hero__quote,
.site-footer,
.date,
.signature {
  hyphens: manual;
}

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

h1,
h2,
h3,
p,
ul,
figure,
blockquote,
address {
  margin: 0;
}

address {
  font-style: normal;
}

.nowrap {
  white-space: nowrap;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid #116dff;
  outline-offset: 3px;
}

/* Sprunglink für Tastatur- und Screenreader-Nutzer */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-120%);
}

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

/* ---------- Footer ---------- */

.site-footer {
  padding: 1.5rem var(--gutter) 2.5rem;
  border-top: 1px solid rgb(13 33 35 / 0.2);
  font-size: 0.875rem;
  line-height: 1.79;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a[aria-current="page"] {
  text-decoration-thickness: 2px;
}

/* ---------- Seitenkopf mit Logo (Startseite: Hero) ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2rem;
}

.hero__logo {
  width: 100%;
  max-width: 320px;
}

.hero__portrait {
  width: 100%;
  max-width: 999px;
  margin-inline: auto;
}

.hero__quote {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.35;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__quote footer {
  margin-top: 1.5em;
}

/* ---------- Kontaktblock (Startseite) ---------- */

.contact {
  padding: 1rem var(--gutter) 3rem;
  text-align: center;
  font-size: 1.25rem;
}

.contact h1 {
  font-size: 2rem;
  line-height: 1.3;
  text-wrap: balance;
}

.contact h1 .dot {
  color: var(--accent);
  font-size: 1.95em;
  line-height: 0;
  vertical-align: -0.05em;
}

.contact address {
  margin-top: 0.5rem;
}

.contact__cta {
  margin-top: 2rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- Kreise ---------- */

.circles {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  justify-items: center;
  padding: 2rem var(--gutter) 5rem;
}

.circle {
  /* Durchmesser: höchstens 933 px, auf kleinen Bildschirmen die ganze Breite.
     Alle Schriftgrößen im Kreis skalieren mit dem Durchmesser. */
  --d: min(933px, 100vw - 2 * var(--gutter));

  position: relative;
  display: grid;
  place-content: center;
  width: var(--d);
  aspect-ratio: 1;
  padding: 0 7%;
  border-radius: 50%;
  background: var(--circle-blue);
  font-size: calc(var(--d) * 0.0279);
  line-height: 1.3;
  text-align: center;
}

.circle--blue {
  background: var(--circle-blue);
}

.circle--green {
  background: var(--circle-green);
}

.circle--yellow {
  background: var(--circle-yellow);
}

.circle--lime {
  background: var(--circle-lime);
}

.circle--salmon {
  background: var(--circle-salmon);
}

/* Rosa Punkt in der Mitte jedes Kreises */
.circle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--d) * 0.0772);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--dot);
  transform: translate(-50%, -50%);
}

.circle > * {
  position: relative;
}

.circle > * + * {
  margin-top: 1.1em;
}

.circle h2 {
  font-family: var(--font-head);
  font-size: 1.385em;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.circle h2.is-montserrat {
  font-family: var(--font-text);
}

.circle p,
.circle li {
  text-wrap: pretty;
}

.circle .lead {
  margin-top: 0.4em;
  font-family: var(--font-head);
  font-weight: 700;
  text-wrap: balance;
}

.circle .date {
  display: block;
  font-size: 0.615em;
}

.circle .signature {
  margin-top: 0.4em;
}

.circle ul {
  padding: 0;
  list-style: none;
}

.circle ul.dashes li::before {
  content: "– ";
}

.circle ul.bullets li::before {
  content: "• ";
}

.circle strong {
  font-weight: 700;
}

/* Mehrere Rückmeldungen in einem Kreis */
.circle .testimonial + .testimonial {
  margin-top: 1.8em;
}

/* ---------- Foto-Abschnitte (Startseite) ---------- */

.duo {
  display: grid;
  justify-items: center;
  padding: 0 var(--gutter) 3rem;
}

.duo img {
  width: min(720px, 100%);
}

.duo figcaption {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: min(859px, 100%);
  margin-top: 1rem;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.4vw, 1.75rem);
  font-weight: 300;
  line-height: 1.3;
  text-align: center;
}

.duo figcaption p {
  align-self: end;
}

.vita-portrait {
  display: grid;
  justify-items: center;
  padding: 2rem var(--gutter) 0;
}

.vita-portrait img {
  width: min(600px, 100%);
}

/* ---------- Unterseiten ---------- */

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 1rem;
}

.page-head img {
  width: 100%;
  max-width: 320px;
}

.page-head h1 {
  font-family: var(--font-text);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
}

/* Rechtstexte (Impressum, Datenschutz) */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 4rem;
}

.legal__logo {
  width: 227px;
  height: auto;
  margin: 0 auto 1rem;
}

.legal h1 {
  font-family: var(--font-head);
  font-size: 1.875rem;
  font-weight: 300;
  line-height: 1.25;
}

.legal h2 {
  margin-top: 2.5rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.legal h3 {
  margin-top: 2rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.legal h4 {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.legal h1 + * {
  margin-top: 1.5rem;
}

.legal h2 + p,
.legal h3 + p,
.legal h4 + p {
  margin-top: 0.5rem;
}

.legal p + p,
.legal p + ul,
.legal ul + p,
.legal address + p,
.legal p + address {
  margin-top: 1rem;
}

.legal ul {
  padding-left: 1.5rem;
}

.legal a {
  overflow-wrap: anywhere;
}

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
  }

  .hero__logo {
    max-width: 200px;
  }

  .hero__portrait {
    order: 1;
  }

  .hero__quote {
    order: 2;
    max-width: 30rem;
  }

  .page-head {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .page-head img {
    max-width: 220px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 1rem;
  }

  .contact {
    font-size: 1.125rem;
  }

  .contact h1 {
    font-size: 1.5rem;
  }

  /* Statt der Kreise: abgerundete Karten, damit der Text bequem lesbar bleibt */
  .circle {
    --d: auto;

    width: 100%;
    max-width: 36rem;
    aspect-ratio: auto;
    padding: 2.5rem 1.5rem;
    border-radius: 2.5rem;
    font-size: 1.0625rem;
    line-height: 1.6;
  }

  .circle::before {
    display: none;
  }

  .circle h2 {
    font-size: 1.4em;
  }

  .circle .date {
    font-size: 0.85em;
  }

  .duo figcaption {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .legal {
    font-size: 1rem;
  }

  .legal h1 {
    font-size: 1.625rem;
  }
}

@media print {
  .skip-link {
    display: none;
  }

  .circle {
    break-inside: avoid;
  }
}
