/* Artern an der Unstrut - FS25-Karte
   Farben aus der Karte selbst: Talgruen, Hangbraun, Unstrutblau. */

:root {
  --grund:      #12140f;
  --flaeche:    #1b1e17;
  --rand:       #2c3126;
  --schrift:    #e6e6df;
  --gedaempft:  #a3a89a;
  --tal:        #6f8f4a;
  --hang:       #c08a3e;
  --wasser:     #4d7ea8;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --grund:     #f6f5ee;
    --flaeche:   #ffffff;
    --rand:      #ddddd0;
    --schrift:   #1e2018;
    --gedaempft: #5c6152;
    --tal:       #4d6b2d;
    --hang:      #96631f;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--grund);
  color: var(--schrift);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Kopf ---------- */

.hero { position: relative; }

.hero-image {
  width: 100%;
  height: clamp(280px, 52vh, 560px);
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--grund) 96%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: -4.5rem auto 0;
  padding: 0 1.25rem 1rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 .6rem;
  text-wrap: balance;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  color: var(--gedaempft);
  max-width: 62ch;
  margin: 0;
}

/* ---------- Abschnitte ---------- */

main { max-width: 900px; margin: 0 auto; padding: 1rem 1.25rem 4rem; }

.section { margin-top: 3.5rem; }

.section h2 {
  font-size: 1.45rem;
  margin: 0 0 1.1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--tal);
  display: inline-block;
}

.images-two {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 660px) {
  .images-two { grid-template-columns: 1.35fr 1fr; align-items: start; }
}

figure { margin: 0; }

figure img {
  border-radius: 10px;
  border: 1px solid var(--rand);
}

figcaption {
  margin-top: .45rem;
  font-size: .86rem;
  color: var(--gedaempft);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.zahlen { margin-top: 1.4rem; }
.zahlen strong { color: var(--hang); font-variant-numeric: tabular-nums; }

.hinweis {
  font-size: .92rem;
  color: var(--gedaempft);
  border-left: 3px solid var(--rand);
  padding-left: .9rem;
  margin-top: 1rem;
}

/* ---------- Was aus OpenStreetMap kam ---------- */

.osm-liste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .6rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.osm-liste li {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 9px;
  padding: .85rem 1rem;
  font-size: .95rem;
  color: var(--gedaempft);
}

.osm-liste strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--tal);
  font-variant-numeric: tabular-nums;
}

/* ---------- Einbauen ---------- */

.schritte { padding-left: 1.3rem; }
.schritte li { margin-bottom: .55rem; }

code {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: 5px;
  padding: .1em .42em;
  font-size: .89em;
  word-break: break-word;
}

.pruefschritt {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-left: 3px solid var(--hang);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font-size: .95rem;
}

/* ---------- Download ---------- */

.download-btn {
  display: inline-flex;
  align-items: baseline;
  gap: .85rem;
  background: var(--tal);
  color: #0e1409;
  text-decoration: none;
  font-weight: 650;
  padding: 1.05rem 1.9rem;
  border-radius: 10px;
  font-size: 1.06rem;
  transition: transform .12s ease, filter .12s ease;
}

.download-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.download-btn:focus-visible { outline: 3px solid var(--hang); outline-offset: 3px; }
.btn-size { font-weight: 400; font-size: .92rem; opacity: .8; }

/* ---------- Fuss ---------- */

.quellen {
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rand);
  color: var(--gedaempft);
  font-size: .9rem;
}

.quellen h2 {
  font-size: .84rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 0 0 .7rem;
}

.quellen ul { padding-left: 1.1rem; margin: 0; }

/* Das Einblenden aus app.js - ohne Bewegung fuer alle, die keine wollen. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
