:root {
  --hintergrund: #fbf6ee;
  --text: #2a2622;
  --leise: #7a6f64;
  --akzent: #b5462f;
  --karte: #ffffff;
  --rand: #e8ddcc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

header { text-align: center; }

.datum {
  margin: 0;
  color: var(--akzent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1 {
  margin: 0.2rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  line-height: 1.1;
}

.unterzeile { margin: 0.3rem 0 0; color: var(--leise); }

.fotos {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.fotos img {
  width: min(44%, 260px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.12);
}

.fotos img:only-child { width: min(70%, 320px); }

.karte {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.format {
  margin: 0 0 0.6rem;
  color: var(--akzent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.45;
  white-space: pre-line;
  transition: opacity 0.2s;
}

.laedt blockquote { opacity: 0.35; }

.steuerung {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

input, textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rand);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

input:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--akzent);
  outline-offset: 1px;
}

button {
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 10px;
  background: var(--akzent);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

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

.geschichten { margin-top: 3rem; }

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  margin: 0;
}

.hinweis { color: var(--leise); margin: 0.3rem 0 1rem; }

#geschichte-form { display: grid; gap: 0.6rem; }

.zeile { display: flex; justify-content: space-between; align-items: center; }
.zeichen { color: var(--leise); font-size: 0.85rem; }
.meldung { margin: 0; min-height: 1.5em; color: var(--akzent); }

#liste { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }

#liste li {
  background: var(--karte);
  border: 1px solid var(--rand);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}

#liste .von { display: block; margin-top: 0.3rem; color: var(--leise); font-size: 0.9rem; }

footer {
  margin-top: 3rem;
  text-align: center;
  color: var(--leise);
  font-size: 0.85rem;
}

.unsichtbar {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 480px) {
  .steuerung { flex-direction: column; }
}
