/* Drei Entwürfe, umschaltbar über theme in site.toml (oder ?theme=… zum Ansehen). */
:root, [data-theme="sommer"] {
  --grund: #fff6ea; --karte: #ffffff; --schrift: #33241c; --leise: #8a6f60;
  --akzent: #ff6b4a; --akzent2: #ffb627; --auf-akzent: #ffffff;
  --kopf: linear-gradient(160deg, #ffd166 0%, #ff8c61 55%, #ff5d73 100%); --auf-kopf: #3a1d10;
  --rund: 22px; --titel: Georgia, "Times New Roman", serif;
}
[data-theme="himmel"] {
  --grund: #eef8ff; --karte: #ffffff; --schrift: #10283b; --leise: #5b7a90;
  --akzent: #0a84c6; --akzent2: #22c1a6; --auf-akzent: #ffffff;
  --kopf: linear-gradient(170deg, #7fd4ff 0%, #4aa8f0 50%, #36d1b7 100%); --auf-kopf: #062235;
  --rund: 14px; --titel: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[data-theme="bunt"] {
  --grund: #ffffff; --karte: #faf7ff; --schrift: #1d1530; --leise: #6d6485;
  --akzent: #7b2ff7; --akzent2: #f72f8e; --auf-akzent: #ffffff;
  --kopf: linear-gradient(135deg, #7b2ff7 0%, #f72f8e 50%, #ff9a3c 100%); --auf-kopf: #ffffff;
  --rund: 28px; --titel: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--schrift);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--akzent); }
h1, h2 { font-family: var(--titel); line-height: 1.15; }

.kopf { background: var(--kopf); color: var(--auf-kopf); text-align: center;
  padding: 48px 20px 40px; border-radius: 0 0 40px 40px; }
.portrait { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; display: block;
  margin: 0 auto 18px; border: 5px solid #fff; background: rgba(255,255,255,.45);
  box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.kopf h1 { font-size: clamp(2rem, 8vw, 3.2rem); margin: 0; }
.daten { margin: 6px 0 18px; font-weight: 600; letter-spacing: .08em; }
.worte { max-width: 34em; margin: 0 auto 26px; white-space: pre-line; }

button, input, textarea { font: inherit; }
button { cursor: pointer; border: 0; border-radius: 999px; padding: 10px 18px;
  background: color-mix(in srgb, var(--schrift) 9%, transparent); color: var(--schrift); }
button.haupt { background: var(--akzent); color: var(--auf-akzent); font-weight: 700;
  padding: 14px 28px; font-size: 1.05rem; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.kopf button.haupt { background: #fff; color: var(--akzent); }
button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--akzent2); outline-offset: 2px; }
button:disabled { opacity: .5; cursor: wait; }

#feed, .schmal { max-width: 560px; margin: 0 auto; padding: 22px 14px; }
.karte { background: var(--karte); border-radius: var(--rund); margin: 0 0 22px; padding: 16px;
  box-shadow: 0 4px 22px rgba(0,0,0,.07); overflow: hidden; }
.wer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.wer time { color: var(--leise); font-size: .85rem; white-space: nowrap; }
.medien { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 12px -16px; padding: 0 16px; scrollbar-width: none; }
.medien > * { flex: 0 0 100%; scroll-snap-align: center; width: 100%; max-height: 78vh;
  object-fit: cover; border-radius: calc(var(--rund) * .6); background: #0001; }
.medien.mehrere > * { flex-basis: 88%; }
.medien video { object-fit: contain; background: #000; }
.wartet { display: grid; place-items: center; min-height: 180px; color: var(--leise); padding: 20px; text-align: center; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0; }
.leiste { display: flex; justify-content: space-between; align-items: center; }
.herz { color: var(--akzent2); font-size: 1.1rem; font-weight: 700; }
.herz.gegeben { background: var(--akzent2); color: #fff; }
.melden { background: none; color: var(--leise); font-size: .8rem; padding: 6px 8px; text-decoration: underline; }
.kommentare { margin-top: 8px; border-top: 1px solid #0001; padding-top: 8px; }
.kommentare summary { cursor: pointer; color: var(--leise); font-size: .9rem; }
.kommentare ul { list-style: none; padding: 0; margin: 8px 0; }
.kommentare li { margin: 6px 0; overflow-wrap: anywhere; }
.versteckt { opacity: .5; text-decoration: line-through; }
.kommentar { display: flex; flex-wrap: wrap; gap: 6px; }
.kommentar input { flex: 1 1 140px; min-width: 0; }
.mehr { display: block; margin: 0 auto 30px; }

dialog { border: 0; border-radius: var(--rund); padding: 22px; width: min(520px, 94vw);
  background: var(--karte); color: var(--schrift); }
dialog::backdrop { background: rgba(0,0,0,.55); }
label { display: block; margin: 12px 0; font-weight: 600; }
label small { font-weight: 400; color: var(--leise); }
input:not([type=file]):not([type=hidden]), textarea { width: 100%; padding: 11px 13px; margin-top: 4px;
  border: 2px solid #0002; border-radius: 12px; background: #fff; color: #111; }
input[type=file] { display: block; margin-top: 6px; max-width: 100%; }
progress { width: 100%; accent-color: var(--akzent); }
.knoepfe { display: flex; justify-content: flex-end; gap: 10px; }
.falle { position: absolute; left: -9999px; }
.unsichtbar { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.waehlen { text-align: center; border: 2px dashed var(--akzent); color: var(--akzent);
  border-radius: 16px; padding: 16px; cursor: pointer; }
.waehlen:focus-within { outline: 3px solid var(--akzent2); outline-offset: 2px; }
.auswahl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.auswahl:empty { display: none; }
.auswahl figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: #0001; display: grid; place-items: center; font-size: .7rem; text-align: center;
  overflow-wrap: anywhere; padding: 4px; }
.auswahl img, .auswahl video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auswahl button { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; padding: 0;
  background: #000a; color: #fff; font-size: 1rem; line-height: 1; }
.auswahl .film::after { content: "▶"; position: absolute; left: 6px; bottom: 4px; color: #fff;
  text-shadow: 0 0 4px #000; font-size: .9rem; }
.insta { margin: 12px 0; padding: 14px; border-radius: calc(var(--rund) * .6); text-align: center;
  background: color-mix(in srgb, var(--akzent) 8%, transparent); }
.insta iframe { width: 100%; height: 620px; border: 0; border-radius: 12px; background: #fff; }
.insta small { display: block; color: var(--leise); margin: 6px 0; }
#meldung:empty { display: none; }
#meldung, [role=alert] { color: #b3261e; font-weight: 600; }
.klein { font-size: .8rem; color: var(--leise); }
.hinweis { text-align: center; color: var(--leise); }
.inline { display: inline; }
.schmal h2 { margin-top: 36px; }
footer { text-align: center; padding: 30px 14px 50px; font-size: .85rem; }
footer a { margin: 0 8px; color: var(--leise); }
@media (prefers-reduced-motion: no-preference) { .medien { scroll-behavior: smooth; } }
