/* Platz für Ideen — Bürgerbeteiligung */
:root {
  /* Gelbbraun + Dunkelblau aus dem Eichstätt-Logo */
  --accent: #c79f77;
  --accent-dark: #a87e52;
  --bg: #faf7f3;
  --card: #ffffff;
  --text: #20466b;
  --muted: #6b7686;
  --border: #e8ded2;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.55;
}
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

header { background: var(--card); border-bottom: 1px solid var(--border); }
header .wrap { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 14px; }
.brand img { height: 42px; width: auto; display: block; }
@media (max-width: 540px) { .brand img { height: 34px; } .brand span { display: none; } }
nav a { color: var(--accent); text-decoration: none; font-weight: 600; }

main { padding: 28px 20px 60px; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 14px; }
h2 { font-size: 1.5rem; margin: 0 0 6px; }

.hero { text-align: center; max-width: 640px; margin: 8vh auto 0; }
.hero p { font-size: 1.08rem; }

.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: all .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); color: #fff; }
.btn.big { padding: 14px 32px; font-size: 1.1rem; margin-top: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--border); color: inherit; }
.btn.primary:disabled:hover { background: var(--accent); color: #fff; }

.stepper {
  display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px;
  counter-reset: step; flex-wrap: wrap;
}
.stepper li {
  counter-increment: step; font-size: .85rem; color: var(--muted);
  display: flex; align-items: center; gap: 7px;
}
.stepper li::before {
  content: counter(step); display: inline-flex; width: 24px; height: 24px;
  border-radius: 50%; background: var(--border); color: var(--muted);
  align-items: center; justify-content: center; font-weight: 700; font-size: .8rem;
}
.stepper li:not(:last-child)::after { content: "—"; margin-left: 8px; color: var(--border); }
.stepper li.active { color: var(--text); font-weight: 600; }
.stepper li.active::before { background: var(--accent); color: #fff; }
.stepper li.done::before { content: "✓"; background: #eadbc9; color: var(--accent-dark); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.form { display: flex; flex-direction: column; gap: 16px; max-width: 480px; margin-top: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.form select, .form input, .form textarea {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--text);
}
.form select:focus, .form input:focus, .form textarea:focus {
  outline: 2px solid var(--accent); border-color: transparent;
}

.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin: 18px 0 22px;
}
.photo-grid img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius);
  cursor: pointer; border: 3px solid transparent; transition: all .15s; display: block;
}
.photo-grid img:hover { transform: scale(1.02); }
.photo-grid img.selected { border-color: var(--accent); box-shadow: 0 4px 18px rgba(199,159,119,.5); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 18px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.preview { width: 100%; border-radius: var(--radius); display: block; }
.big-preview { box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.compare { margin-top: 8px; text-align: center; }
.compare a { color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border); background: var(--bg); border-radius: 999px;
  padding: 6px 12px; font-size: .85rem; cursor: pointer; font-family: inherit;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 18px 0 24px; }
.gallery .item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.gallery .meta { padding: 12px 14px; }
.gallery .meta p { margin: 0 0 6px; font-size: .92rem; }

footer { padding: 20px; text-align: center; border-top: 1px solid var(--border); }

.overlay {
  position: fixed; inset: 0; background: rgba(20,30,26,.55);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.loader-card {
  background: var(--card); border-radius: var(--radius); padding: 36px 44px;
  text-align: center; max-width: 340px;
}
.loader-card p { margin: 8px 0 0; font-weight: 600; }
.spinner {
  width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%;
  border: 4px solid var(--border); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #b3261e; color: #fff; padding: 12px 20px; border-radius: 10px;
  font-weight: 600; z-index: 60; max-width: 90vw; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
