:root {
  color-scheme: light dark;
  --hintergrund: #f4f7f3;
  --text: #1c2833;
  --gedaempft: #52606b;
  --karte: #ffffff;
  --rand: #d5ded7;
  --akzent: #14532d;
  --akzent-text: #ffffff;
  --fokus: #b45309;
  --schatten: 0 10px 30px rgba(28, 40, 51, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --hintergrund: #101613;
    --text: #e8eee9;
    --gedaempft: #a7b3ab;
    --karte: #18211c;
    --rand: #2c3a31;
    --akzent: #7dd3a0;
    --akzent-text: #0c1a11;
    --fokus: #fbbf24;
    --schatten: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  overflow-wrap: break-word;
}

body {
  margin: 0;
  padding: 0 16px;
  background: var(--hintergrund);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

main,
.kopf,
.fuss {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
}

.kopf {
  padding: 28px 0 8px;
}

.marke {
  margin: 0;
  color: var(--akzent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

h1 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  line-height: 1.2;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

h3 {
  margin: 1.3rem 0 0.4rem;
  font-size: 1.05rem;
}

.unterzeile {
  margin: 0 0 1rem;
  color: var(--gedaempft);
}

.karte {
  margin: 0 0 16px;
  padding: 20px 16px;
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 14px;
  box-shadow: var(--schatten);
}

.feld {
  margin: 0 0 1rem;
}

label,
summary,
legend {
  font-weight: 650;
}

input,
select,
button {
  width: 100%;
  min-height: 44px;
  font: inherit;
}

input,
select {
  margin-top: 0.3rem;
  padding: 0.6rem 0.75rem;
  color: var(--text);
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 10px;
}

.einverstaendnis {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.einverstaendnis input {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  min-height: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--akzent, currentColor);
}

.einverstaendnis label {
  font-weight: 400;
  line-height: 1.45;
}

input::placeholder {
  color: var(--gedaempft);
}

details.optional {
  margin: 0 0 1rem;
  border: 1px solid var(--rand);
  border-radius: 10px;
  padding: 0 0.9rem;
}

details.optional[open] {
  padding-bottom: 0.8rem;
}

summary {
  min-height: 44px;
  padding: 0.65rem 0;
  cursor: pointer;
}

.hinweis,
.fundort {
  color: var(--gedaempft);
  font-size: 0.95rem;
}

.fotos {
  margin: 0 0 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px dashed var(--rand);
  border-radius: 10px;
  color: var(--gedaempft);
}

.fotos p {
  margin: 0.4rem 0 0;
}

button {
  padding: 0.7rem 1rem;
  color: var(--akzent-text);
  background: var(--akzent);
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

#neu {
  margin-top: 1rem;
  color: var(--text);
  background: transparent;
  border-color: var(--rand);
}

a {
  color: var(--akzent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
}

.status {
  min-height: 1.6em;
  margin: 0.6rem 0;
  font-weight: 600;
}

.datenschutz-hinweis {
  margin: 0.4rem 0 0;
  color: var(--gedaempft);
  font-size: 0.95rem;
}

.ergebnis .urteil {
  margin: 0 0 0.7rem;
  font-size: clamp(1.35rem, 5vw, 1.8rem);
  font-weight: 750;
  line-height: 1.25;
}

.kennzahlen {
  margin: 0.8rem 0;
  font-weight: 650;
}

ul {
  padding-left: 1.2rem;
}

li {
  margin: 0.35rem 0;
}

.vorschau-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 1rem;
  font-weight: 700;
}

.fuss {
  padding: 1rem 0 2.5rem;
  color: var(--gedaempft);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
