/* montaniva.de: ein Stil für alle Seiten. Keine fremden Schriften, keine Cookies. */
:root {
  --grund: #f6f4ef;
  --flaeche: #ffffff;
  --text: #1f2a2e;
  --text-leise: #55615f;
  --linie: #ddd8cc;
  --kupfer: #9a5426;
  --kupfer-hell: #b8682f;
  --fokus: #1f5f7a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund: #141a1c;
    --flaeche: #1b2326;
    --text: #ece8df;
    --text-leise: #a9b2ae;
    --linie: #33403f;
    --kupfer: #e0965e;
    --kupfer-hell: #eaa877;
    --fokus: #8cc7de;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --grund: #141a1c; --flaeche: #1b2326; --text: #ece8df; --text-leise: #a9b2ae;
  --linie: #33403f; --kupfer: #e0965e; --kupfer-hell: #eaa877; --fokus: #8cc7de;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--grund);
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
a { color: var(--kupfer); text-underline-offset: .18em; }
a:hover { color: var(--kupfer-hell); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 4px; }

.sprung {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--flaeche); color: var(--text); padding: .6rem 1rem; border-radius: 6px;
}
.sprung:focus { top: 1rem; }

.rahmen { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .rahmen { padding: 0 2rem; } }

.kopf { padding: 1.5rem 0; }
.wortmarke {
  font-size: 1.05rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--text); text-decoration: none; font-weight: 600;
}

main { flex: 1; }

/* Startseite */
.buehne { padding: 12vh 0 4rem; }
.buehne .kennung {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--kupfer); margin: 0 0 1rem;
}
.buehne h1 {
  font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1.05; font-weight: 500;
  letter-spacing: -.01em; margin: 0 0 1.4rem;
}
.buehne p { max-width: 32rem; color: var(--text-leise); margin: 0 0 2rem; }
.knopf {
  display: inline-flex; align-items: center; min-height: 48px; padding: .7rem 1.5rem;
  border-radius: 999px; background: var(--kupfer); color: var(--grund);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 600; font-size: 1rem; text-decoration: none;
}
.knopf:hover { background: var(--kupfer-hell); color: var(--grund); }
.buehne .hinweis {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .875rem; color: var(--text-leise); margin: 2.5rem 0 0;
}

.gebirge { display: block; width: 100%; height: auto; color: var(--linie); margin-top: 2rem; }

/* Textseiten */
.text { padding: 2rem 0 4rem; }
.text h1 { font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 500; margin: 0 0 1.5rem; line-height: 1.15; }
.text h2 { font-size: 1.25rem; font-weight: 600; margin: 2.2rem 0 .6rem; }
.text p, .text li { color: var(--text-leise); }
.text address { font-style: normal; line-height: 1.8; margin: 0 0 1rem; }
.zurueck { display: inline-block; margin-bottom: 1.5rem; font-family: system-ui, sans-serif; font-size: .95rem; }

.fuss {
  border-top: 1px solid var(--linie); padding: 1.5rem 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .875rem; color: var(--text-leise);
}
.fuss .rahmen { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.fuss nav { display: flex; gap: 1.25rem; }
.fuss a { color: var(--text-leise); display: inline-block; padding: .35rem 0; }

/* Telefon: Kontaktknopf bleibt am unteren Rand erreichbar */
.sticky-cta { display: none; }
@media (max-width: 40rem) {
  .sticky-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 5;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: var(--grund); border-top: 1px solid var(--linie);
  }
  .sticky-cta .knopf { width: 100%; justify-content: center; }
  body.mit-cta { padding-bottom: 6.5rem; }
  /* Auf der Startseite übernimmt der feste Knopf, sonst stünde er doppelt da */
  .buehne .knopf { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
