/* mahava.app – ruhig, viel Luft, Lesetext in Literata, Bedienung in Inter (wie die App). */

@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/fonts/literata-italic-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --papier: #f6f4ee;
  --blatt: #fffefb;
  --tinte: #1f2420;
  --tinte-leise: #55605a;
  --linie: #dedacd;
  --tanne: #2c5a4c;
  --tanne-tief: #1f4439;
  --salbei: #dfeadf;
  --salbei-tief: #5f9480;
  --sand: #f1e3c8;
  --sand-tief: #b98a4e;
  --heute: #a13f2e;
  --lesen: "Literata", Georgia, "Times New Roman", serif;
  --bedienen: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rand: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--lesen);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--tanne);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--tanne-tief);
}
:focus-visible {
  outline: 2px solid var(--tanne);
  outline-offset: 3px;
  border-radius: 3px;
}

h1,
h2,
h3 {
  font-family: var(--lesen);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0 0 1.1em;
}
p:last-child {
  margin-bottom: 0;
}

.rahmen {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--rand);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--tinte);
  color: #fff;
  padding: 0.5rem 0.9rem;
  font-family: var(--bedienen);
  font-size: 0.9rem;
  z-index: 50;
}
.skip:focus {
  left: 0.5rem;
}

/* Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  font-family: var(--bedienen);
  font-size: 0.94rem;
}
.kopf.gescrollt {
  border-bottom-color: var(--linie);
}
.kopf-innen {
  max-width: 76rem;
  margin-inline: auto;
  padding: 0.85rem var(--rand);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.marke {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--tinte);
  text-decoration: none;
  font-family: var(--lesen);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.marke svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: var(--tanne);
  stroke-width: 2;
}
.marke svg line {
  stroke: var(--heute);
  stroke-linecap: round;
}
.kopf-rechts {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.haupt {
  display: flex;
  gap: 1.5rem;
}
.haupt a,
.anmelden {
  color: var(--tinte);
  text-decoration: none;
  padding-block: 0.35rem;
}
.haupt a:hover,
.anmelden:hover,
.haupt a[aria-current] {
  color: var(--tanne);
  text-decoration: underline;
  text-underline-offset: 0.4em;
}
.sprachen {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.sprachen a {
  display: block;
  padding: 0.3rem 0.45rem;
  border-radius: 4px;
  color: var(--tinte-leise);
  text-decoration: none;
}
.sprachen a:hover {
  color: var(--tinte);
  background: color-mix(in srgb, var(--tinte) 7%, transparent);
}
.sprachen a[aria-current] {
  color: var(--tinte);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--tanne);
  border-radius: 0;
}
.menue {
  display: none;
  margin-left: auto;
  font: inherit;
  color: var(--tinte);
  background: none;
  border: 1px solid var(--linie);
  border-radius: 6px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.knopf {
  display: inline-block;
  font-family: var(--bedienen);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: var(--tanne);
  border-radius: 6px;
  padding: 0.95rem 1.5rem;
  text-decoration: none;
  transition: background-color 150ms ease;
}
.knopf:hover {
  background: var(--tanne-tief);
  color: #fff;
}
.knopf-klein {
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
}
.verweis {
  font-family: var(--bedienen);
  font-size: 1rem;
  font-weight: 500;
}
.aktionen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin: 2rem 0 0;
}
.hinweis,
.klein {
  font-family: var(--bedienen);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--tinte-leise);
}
.hinweis {
  margin-top: 0.9rem;
}

/* Einstieg */
.einstieg {
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 8vw, 7rem);
}
.einstieg-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.einstieg h1 {
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.vorspann {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  max-width: 34rem;
  margin-top: 1.6rem;
  color: color-mix(in srgb, var(--tinte) 88%, var(--papier));
}

/* Jahreskreis */
.kreis {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 33rem;
}
.kreis svg {
  width: 100%;
  overflow: visible;
}
.kreis figcaption {
  font-family: var(--bedienen);
  font-size: 0.8rem;
  color: var(--tinte-leise);
  text-align: center;
  margin-top: 0.4rem;
}
.kreis .ring {
  fill: none;
  stroke-width: 26;
}
.kreis .sand {
  stroke: var(--sand);
}
.kreis .salbei {
  stroke: var(--salbei);
}
.kreis .stein {
  stroke: #ece8dd;
}
.kreis .teiler {
  stroke: var(--papier);
  stroke-width: 2;
}
.kreis .zeit {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}
.kreis .winter {
  stroke: #c9d9e3;
}
.kreis .fruehling {
  stroke: #c5dfc9;
}
.kreis .sommer {
  stroke: #eed9a6;
}
.kreis .herbst {
  stroke: #e8c3a1;
}
.kreis .marke {
  fill: var(--blatt);
  stroke: var(--tinte);
  stroke-width: 1.4;
}
.kreis .marke.voll {
  fill: var(--tanne);
  stroke: var(--tanne);
}
.kreis .heute {
  stroke: var(--heute);
  stroke-width: 2;
  stroke-linecap: round;
}
.kreis .jahr {
  font-family: var(--lesen);
  font-size: 34px;
  font-weight: 500;
  fill: var(--tinte);
}
@media (prefers-reduced-motion: no-preference) {
  .kreis-ringe {
    transform-origin: 260px 260px;
    animation: eindrehen 1600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .kreis .heute,
  .kreis .jahr {
    animation: erscheinen 700ms ease 1100ms both;
  }
}
@keyframes eindrehen {
  from {
    opacity: 0;
    transform: rotate(-40deg) scale(0.94);
  }
}
@keyframes erscheinen {
  from {
    opacity: 0;
  }
}

/* Abschnitte: Titel links, Text rechts */
.abschnitt {
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
.spalten {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.spalten > h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  max-width: 22rem;
}
.gross .spalten > h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  max-width: 26rem;
}
.text {
  max-width: 38rem;
}
.gross .text {
  font-size: 1.2rem;
}
.text h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 0.45rem;
}

.breit {
  padding-block: 0.5rem clamp(2rem, 5vw, 4rem);
}
.bild {
  margin: 0;
}
.bild img {
  width: 100%;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--blatt);
  box-shadow: 0 1px 2px rgba(31, 36, 32, 0.04), 0 18px 48px -18px rgba(31, 36, 32, 0.22);
}
.bild figcaption {
  font-family: var(--bedienen);
  font-size: 0.875rem;
  color: var(--tinte-leise);
  margin-top: 0.9rem;
  max-width: 44rem;
}
.bild.handy {
  max-width: 20rem;
  margin-inline: auto;
}
.bild.handy img {
  border-radius: 22px;
}

.fragen {
  display: grid;
  gap: 2rem;
}
.frage h3 {
  font-style: italic;
  font-weight: 400;
  font-size: 1.55rem;
}

.schritte {
  list-style: none;
  counter-reset: schritt;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.schritte li {
  counter-increment: schritt;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  column-gap: 0.5rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--linie);
}
.schritte li::before {
  content: counter(schritt);
  grid-row: span 2;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--salbei-tief);
}
.schritte h3,
.schritte p {
  grid-column: 2;
}

.band {
  background: var(--salbei);
  margin-block: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1rem, 3vw, 2.5rem);
}
.band .bild img {
  border-color: color-mix(in srgb, var(--salbei-tief) 35%, transparent);
}

.nicht {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}
.nicht > div {
  border-top: 2px solid var(--tinte);
  padding-top: 1rem;
}
.nicht p {
  font-size: 1.02rem;
}

.tarife {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0 1.25rem;
  font-family: var(--bedienen);
}
.tarif {
  background: var(--blatt);
  border: 1px solid var(--linie);
  border-radius: 10px;
  padding: 1.5rem 1.4rem 1.6rem;
}
.tarif.ki {
  border-color: var(--tanne);
  box-shadow: inset 0 3px 0 var(--tanne);
}
.tarif h3 {
  font-family: var(--bedienen);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--tinte-leise);
}
.tarif .preis {
  font-family: var(--lesen);
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0.5rem 0 0.1rem;
}
.tarif .jahr {
  font-size: 0.9rem;
  color: var(--tinte-leise);
  margin-bottom: 1.1rem;
}
.tarif ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
  line-height: 1.45;
}
.tarif li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--linie);
}

.faq details {
  border-top: 1px solid var(--linie);
}
.faq details:last-child {
  border-bottom: 1px solid var(--linie);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 2rem 1.05rem 0;
  font-size: 1.15rem;
  line-height: 1.35;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 0.85rem;
  font-family: var(--bedienen);
  font-size: 1.4rem;
  color: var(--tanne);
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  padding: 0 2rem 1.2rem 0;
  font-size: 1.02rem;
}

.seitenkopf {
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 3rem);
}
.seitenkopf h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  max-width: 48rem;
}
.seitenkopf .vorspann {
  max-width: 40rem;
}

.felder {
  margin: 1.75rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--blatt);
  overflow: hidden;
}
.felder div {
  padding: 1.1rem 1.2rem 1.2rem;
  border-top: 1px solid var(--linie);
  border-left: 1px solid var(--linie);
  margin: -1px 0 0 -1px;
}
.felder div:nth-child(2) {
  background: var(--salbei);
}
.felder dt {
  font-family: var(--bedienen);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.felder dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}

.bildhinweis {
  padding-bottom: 1rem;
}
.wege {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  font-size: 1.2rem;
}

.schluss {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  text-align: center;
}
.schluss h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
}
.schluss h2 + p {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-style: italic;
  max-width: 36rem;
  margin: 1.2rem auto 0;
}
.schluss .aktionen {
  justify-content: center;
}

.fuss {
  border-top: 1px solid var(--linie);
  padding-block: 3rem 2rem;
  font-family: var(--bedienen);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--tinte-leise);
}
.fuss-raster {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}
.fuss-name {
  font-family: var(--lesen);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--tinte);
  margin-bottom: 0.4rem;
}
.fuss-marke p {
  max-width: 19rem;
}
.fuss h2 {
  font-family: var(--bedienen);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--tinte);
  margin-bottom: 0.6rem;
}
.fuss ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fuss li {
  padding-block: 0.22rem;
}
.fuss a {
  color: var(--tinte-leise);
  text-decoration: none;
}
.fuss a:hover {
  color: var(--tanne);
  text-decoration: underline;
}
.fuss-ende {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linie);
  font-size: 0.82rem;
}

@media (max-width: 60rem) {
  .menue {
    display: block;
  }
  .kopf-rechts {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--papier);
    border-bottom: 1px solid var(--linie);
    padding: 0.5rem var(--rand) 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .kopf-rechts.offen {
    display: flex;
  }
  .haupt {
    flex-direction: column;
    gap: 0.4rem;
    font-size: 1.05rem;
  }
  .sprachen {
    font-size: 0.95rem;
  }
  .sprachen a {
    padding: 0.5rem 0.75rem;
  }
  .einstieg-raster,
  .spalten {
    grid-template-columns: minmax(0, 1fr);
  }
  .kreis {
    max-width: 24rem;
    order: 2;
  }
  .fuss-raster {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 36rem) {
  body {
    font-size: 1.06rem;
  }
  .nicht,
  .tarife,
  .felder {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Aufnahmen bleiben lesbar: seitlich wischen statt verkleinern. */
  .bild:not(.handy) {
    overflow-x: auto;
    margin-inline: calc(var(--rand) * -1);
    padding: 0 var(--rand) 0.5rem;
  }
  .bild:not(.handy) img {
    width: 42rem;
    max-width: none;
    border-radius: 6px;
    box-shadow: none;
  }
  .knopf {
    width: 100%;
    text-align: center;
  }
  .knopf-klein {
    width: auto;
  }
}
