/* Warme, sonnige Farben: Sand, Koaholz, Hibiskus. */
:root {
  --sand: #fdf5ea;
  --sand-hell: #fff3e0;
  --papier: #fffdfa;
  --koa: #4a3527;
  --hibiskus: #d8593c;
  --sonne: #f2b544;
  /* Dunkler als --hibiskus, damit Links auch als Fliesstext kontrastreich sind. */
  --hibiskus-dunkel: #b8431f;
}

body {
  margin: 0;
  padding: 3rem 1.25rem 4rem;
  min-height: 100vh;
  box-sizing: border-box;
  background: linear-gradient(170deg, var(--sand-hell), var(--sand) 45%);
  color: var(--koa);
  font-family: system-ui, sans-serif;
  /* Skaliert mit der Bildschirmbreite, damit es auch auf dem Handy passt. */
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  line-height: 1.65;
}

main {
  max-width: 34rem;
  margin: 0 auto;
}
/* Titelbild: breiter als die Textspalte, damit das Bild Luft bekommt. */
.cover {
  display: block;
  width: min(100%, 46rem);
  height: clamp(200px, 26vw, 300px);
  margin: 0 auto 2.4rem;
  object-fit: cover;
  object-position: center 48%;
  border-radius: 1rem;
  box-shadow: 0 3px 18px rgb(74 53 39 / 0.16);
}


h1 {
  margin: 0 0 1.75rem;
  color: var(--hibiskus);
  /* Obergrenze so gewählt, dass auch der englische Titel auf eine Zeile passt. */
  font-size: clamp(1.9rem, 1.35rem + 2.5vw, 2.5rem);
  line-height: 1.15;
  /* Falls er doch umbricht: gleichmässig, statt ein Wort allein zu lassen. */
  text-wrap: balance;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1.15rem;
}
h2 {
  margin: 2.75rem 0 1.1rem;
  color: var(--hibiskus);
  font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.6rem);
  line-height: 1.25;
}

/* Kurzer Sonnenstrich - nimmt den Akzent des Kastens wieder auf. */
h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--sonne);
}


a {
  color: var(--hibiskus-dunkel);
  text-underline-offset: 2px;
}

aside {
  margin: 2rem 0;
  padding: 1.3rem 1.5rem;
  border-left: 6px solid var(--sonne);
  border-radius: 0.85rem;
  background: var(--papier);
  box-shadow: 0 2px 14px rgb(74 53 39 / 0.1);
}

aside h4 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
}

aside p {
  margin: 0 0 0.9rem;
}

aside p:last-child {
  margin-bottom: 0;
}

/* Sprachwahl: leiser Hinweis auf die andere Sprache, rechts über dem Titel. */
.sprachen {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.sprachen a {
  /* Gedämpft, aber noch gut lesbar - die Seite wird auch draussen gelesen. */
  color: rgb(74 53 39 / 0.75);
  text-decoration: none;
  padding: 0.25rem 0.1rem;
}

.sprachen a:hover {
  color: var(--koa);
  text-decoration: underline;
}

.sprachen a:focus-visible {
  outline: 2px solid var(--hibiskus);
  outline-offset: 2px;
  border-radius: 0.2rem;
}
