/* nie wieder angst – minimalistisches Stylesheet, keine externen Ressourcen */

:root {
  color-scheme: light dark;
  --bg: #eef2f1;
  --paper: #f7f9f8;
  --ink: #1b2b30;
  --muted: #51666b;
  --line: #d5dedc;
  --accent: #2e5e5c;
  --accent-strong: #234947;
  --accent-soft: #cfe0dd;
  --on-accent: #ffffff;

  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101a1d;
    --paper: #152125;
    --ink: #e4eeec;
    --muted: #9db2b0;
    --line: #25363a;
    --accent: #8fc7c2;
    --accent-strong: #b2dcd8;
    --accent-soft: #1e3a3b;
    --on-accent: #0e1a1c;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-family: var(--sans);
  z-index: 10;
}

.skip:focus {
  left: 0.5rem;
}

/* Raster: eine gemeinsame linke Kante, Textspalte bewusst schmal */

.wrap {
  width: min(100% - 3rem, 60rem);
  margin-inline: auto;
}

.prose {
  max-width: 40rem;
}

/* Kopfbereich */

.top {
  padding-block: 1.75rem;
}

.top__in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.brand {
  white-space: nowrap;
}

.brand {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

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

.nav {
  display: flex;
  gap: 1.75rem;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.nav a {
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Typografie */

h1,
h2,
h3 {
  font-family: var(--sans);
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-weight: 300;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

h2 {
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

h3 {
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 2rem 0 0.5rem;
}

p {
  margin: 0 0 1.25rem;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--muted);
}

.meta {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

/* Abschnitte */

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section--tight {
  padding-top: 0;
}

/* Hero mit Atemkreis */

.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(2rem, 7vw, 5.5rem) clamp(2.5rem, 7vw, 5rem);
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem);
    gap: 4rem;
  }
}

.breath {
  margin: 0;
  justify-self: center;
  width: min(100%, 21rem);
}

.breath__stage {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
}

.breath__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  transform: scale(0.55);
  animation: breathe 10s ease-in-out infinite;
}

.breath__word {
  position: relative;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  grid-area: 1 / 1;
  opacity: 0;
}

.breath__word--in {
  animation: word-in 10s linear infinite;
}

.breath__word--out {
  animation: word-out 10s linear infinite;
}

.breath__caption {
  margin: 1.25rem 0 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

/* 4 Sekunden ein (0–40 %), 6 Sekunden aus (40–100 %) */
@keyframes breathe {
  0%   { transform: scale(0.55); }
  40%  { transform: scale(1); }
  100% { transform: scale(0.55); }
}

@keyframes word-in {
  0%, 34%   { opacity: 1; }
  40%, 100% { opacity: 0; }
}

@keyframes word-out {
  0%, 40%   { opacity: 0; }
  46%, 94%  { opacity: 1; }
  100%      { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .breath__disc {
    animation: none;
    transform: scale(0.8);
  }

  .breath__word {
    animation: none;
    opacity: 0;
  }
}

/* Artikelliste ohne Karten */

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
  border-bottom: 1px solid var(--line);
}

.list li {
  border-top: 1px solid var(--line);
}

.list__link {
  display: block;
  padding: 1.5rem 0;
  color: inherit;
  text-decoration: none;
}

.list__title {
  display: block;
  font-family: var(--sans);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--ink);
}

.list__desc {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.list__link:hover .list__title {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Hinweise */

.note {
  max-width: 40rem;
  margin: 0 0 1.5rem;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 2px solid var(--accent);
  font-size: 1.05rem;
  line-height: 1.7;
}

.note p:last-child {
  margin-bottom: 0;
}

/* Werbeblock (immer gekennzeichnet) */

.sponsor {
  max-width: 40rem;
  margin-bottom: 2rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sponsor__tag {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
}

.sponsor p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 6px;
}

.btn:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

/* Eckdaten */

.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 2rem;
  margin: 0 0 1.5rem;
  max-width: 40rem;
}

.facts dt {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

.facts dd {
  margin: 0;
}

@media (min-width: 640px) {
  .facts {
    grid-template-columns: 9rem 1fr;
  }

  .facts dt,
  .facts dd {
    margin-top: 0;
    padding-block: 0.75rem;
    border-top: 1px solid var(--line);
  }
}

/* Artikel-Inhalt */

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.prose h2 {
  margin-top: 3rem;
}

.prose strong {
  font-weight: 700;
}

.todo {
  background: #ffe9a8;
  color: #3a2d00;
  padding: 0 0.3em;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.95em;
}

/* Fuß */

.foot {
  margin-top: 2rem;
  padding-block: 3rem 3.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
}

.foot p {
  margin: 0 0 0.9rem;
  max-width: 44rem;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
}

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

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

/* Ergänzungen: Navigation im Artikel, Hilfsklassen */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin: 0 0 2rem;
  font-family: var(--sans);
  font-size: 1rem;
}

/* Startseite: Ratgeber neben dem Kursangebot */

.split {
  display: grid;
  gap: 3rem;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) 19.5rem;
    gap: 4rem;
    align-items: start;
  }
}

@media (max-width: 899px) {
  .offer {
    order: -1;
  }
}

.offer {
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--accent);
  border-radius: 8px;
}

@media (min-width: 900px) {
  .offer {
    position: sticky;
    top: 1.5rem;
  }
}

.offer .sponsor__tag {
  margin-bottom: 0.5rem;
}

.offer__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.offer__text {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.offer__price {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 2.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.offer__note {
  margin: 0.25rem 0 1.25rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}

.offer__cta {
  margin: 0 0 1rem;
}

.offer__cta .btn {
  display: block;
  text-align: center;
}

.offer__more,
.offer__fine {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.5;
}

.offer__fine {
  margin-bottom: 0;
  color: var(--muted);
}

.more {
  margin: 1.25rem 0 0;
  font-family: var(--sans);
  font-size: 1rem;
}

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

.small {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.crumb {
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.crumb a {
  color: var(--muted);
}

.toc {
  margin: 0 0 2.5rem;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
}

.toc__title {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

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

.toc li {
  margin: 0.25rem 0;
  padding: 0;
}

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

.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.prose h2[id] {
  scroll-margin-top: 1.5rem;
}

.prose .list {
  margin-bottom: 1rem;
  padding-left: 0;
}

.prose .list li {
  margin: 0;
  padding: 0;
}
