:root {
  --bg: #16202A;
  --bg-elev: #1B2733;
  --surface: #1F2C39;
  --text: #F4EFE6;
  --text-2: #C9C0AE;
  --muted: #8D8576;
  --accent: #D9A86C;
  --accent-2: #9F8FB8;
  --warn: #C58A82;
  --ok: #86A98F;
  --border: #26384A;
  --radius: 16px;
  --pad: 16px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #FAF6F1;
    --bg-elev: #FFFFFF;
    --surface: #F4EEE5;
    --text: #1F1A14;
    --text-2: #5B4E3F;
    --muted: #8A7B68;
    --accent: #7A5A48;
    --accent-2: #A8B89D;
    --border: #E1D6C4;
  }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px 8px 8px;
}

.logo {
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
}

h1 {
  font-family: "SF Pro Display", "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  margin: 0;
  letter-spacing: -0.2px;
}

.lead {
  color: var(--text-2);
  margin: 0;
  max-width: 520px;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

h2 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  margin: 0;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.users {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.users button {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  transition: background 120ms ease, border-color 120ms ease;
}

.users button:hover,
.users button:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.users button.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

details summary {
  cursor: pointer;
  color: var(--text-2);
  padding: 6px 0;
  list-style: none;
}

details summary::before {
  content: "+ ";
  color: var(--accent);
}

details[open] summary::before {
  content: "− ";
}

input[type="text"],
textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  min-height: 44px;
}

input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

.rating {
  display: flex;
  gap: 6px;
  font-size: 32px;
  line-height: 1;
}

.rating button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 6px;
  font: inherit;
  min-width: 44px;
  min-height: 44px;
  transition: color 100ms ease, transform 100ms ease;
}

.rating button.on {
  color: var(--accent);
}

.rating button:hover {
  transform: scale(1.08);
}

button.primary {
  appearance: none;
  border: none;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  min-height: 44px;
  transition: filter 120ms ease, transform 80ms ease;
}

button.primary:hover {
  filter: brightness(1.05);
}

button.primary:active {
  transform: scale(0.98);
}

button.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.status {
  margin: 0;
  color: var(--ok);
  font-size: 14px;
  min-height: 1.2em;
}

.status.error {
  color: var(--warn);
}

.feed {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--muted);
  font-size: 12px;
  gap: 8px;
}

.feed .who {
  color: var(--accent);
  font-weight: 600;
}

.feed .rate {
  color: var(--accent);
  letter-spacing: 1px;
  font-size: 14px;
}

.feed .text {
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--text);
}

.item {
  position: relative;
}

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-title {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
}

.item-remove {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

.item-remove:hover {
  color: var(--warn);
  background: var(--surface);
}

.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kind {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  min-height: 36px;
}

.kind:hover {
  border-color: var(--accent);
}

.kind.selected {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

button.ghost {
  appearance: none;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--text-2);
  padding: 10px 18px;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
}

button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.file-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--text-2);
  cursor: pointer;
  font: inherit;
  min-height: 44px;
  align-self: flex-start;
  transition: border-color 120ms ease, color 120ms ease;
}

.file-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.thumb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.feed-shots a {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.feed-shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

footer {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

footer p {
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.footer-meta {
  margin-top: 12px;
  color: #3f4a57;
  letter-spacing: 0.4px;
}

/* === HERO === */
.hero {
  padding: 48px 16px 12px;
}
.logo-xl {
  font-size: 88px;
}
.tagline {
  font-family: "Lora", Georgia, serif;
  font-size: 20px;
  color: var(--text-2);
  margin: 0 0 6px;
  font-style: italic;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}
.btn-primary, .btn-ghost {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  min-height: 48px;
  line-height: 20px;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
}
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* === PLATTFORMEN === */
.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 18px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: border-color 120ms ease, transform 120ms ease;
  position: relative;
}
.platform.available {
  border-color: var(--accent);
}
.platform.available::before {
  content: "JETZT";
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--accent);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.6px;
}
.platform.available:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.platform.soon, .platform.later {
  opacity: 0.7;
  cursor: default;
}
.platform.soon { border-style: dashed; }
.platform.later { opacity: 0.55; border-style: dashed; }
.platform-icon { font-size: 32px; line-height: 1; }
.platform-name { font-weight: 600; font-size: 14px; }
.platform-status { font-size: 12px; color: var(--text-2); }
.platform-action { font-size: 11px; color: var(--muted); margin-top: 4px; }

.install-help {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
}
.install-help summary {
  color: var(--accent);
  font-weight: 600;
}
.install-help ol {
  margin: 10px 0 6px 22px;
  padding: 0;
  color: var(--text-2);
}
.install-help li { padding: 3px 0; }

/* === FEATURES === */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.feature {
  padding: 16px 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.feature-icon { font-size: 28px; line-height: 1; }
.feature h3 {
  margin: 8px 0 6px;
  font-family: "Lora", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}
.feature p {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

/* === HOW-TO === */
.howto {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
}
.howto li {
  padding: 6px 0;
  line-height: 1.6;
  color: var(--text-2);
}
.howto li strong { color: var(--accent); }

/* === SECURITY === */
.security-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.security-points li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
.security-points li strong { color: var(--accent); }

/* === SECTION rhythm === */
.section { scroll-margin-top: 16px; }
