/* shiver Werbeportal, ergänzt /style.css, ersetzt es nicht.
   Dieselbe Regel wie dort: eine kleine Datei, kein Build, keine Fremdanfrage. */

:root {
  --ok: #3ec98a;
  --warn: #e8b23a;
  --bad: #ef5f6b;
  --maxw-portal: 60rem;
}

body.portal header,
body.portal main,
body.portal footer { max-width: var(--maxw-portal); }

/* --- Meldungen ---------------------------------------------------------- */

.meldung {
  border: 1px solid var(--stroke);
  border-left-width: 4px;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.meldung.info    { border-left-color: var(--brand); }
.meldung.erfolg  { border-left-color: var(--ok); }
.meldung.warnung { border-left-color: var(--warn); }
.meldung.fehler  { border-left-color: var(--bad); }

/* --- Formulare ---------------------------------------------------------- */

.feld { margin: 1.1rem 0; }
.feld > label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.feld .hinweis {
  color: var(--muted);
  font-size: 0.87rem;
  margin: 0.3rem 0 0;
}

input[type="email"], input[type="password"], input[type="text"],
input[type="url"], input[type="number"], select, textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
}
textarea { resize: vertical; min-height: 5rem; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

input[type="range"] { width: 100%; accent-color: var(--brand); }

button, .knopf {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.leise, .knopf.leise {
  background: transparent;
  border-color: var(--stroke);
  color: var(--text);
}
button.gefahr { background: transparent; border-color: var(--bad); color: var(--bad); }

/* --- Zielauswahl -------------------------------------------------------- */

.ziele {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.6rem;
}
.ziel {
  position: relative;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  cursor: pointer;
  background: var(--surface);
}
.ziel input { position: absolute; opacity: 0; pointer-events: none; }
.ziel strong { display: block; font-size: 0.98rem; }
.ziel span { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }
.ziel:has(input:checked) { border-color: var(--brand); outline: 1px solid var(--brand); }
.ziel:has(input:focus-visible) { outline: 2px solid var(--brand); }

/* --- Kacheln / Kennzahlen ----------------------------------------------- */

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.kachel {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.kachel .wert { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.kachel .name { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }

/* --- Fortschritt -------------------------------------------------------- */

.balken {
  height: 8px;
  border-radius: 999px;
  background: var(--stroke);
  overflow: hidden;
  margin: 0.5rem 0;
}
.balken > i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .3s; }

/* --- Kampagnenliste ------------------------------------------------------ */

.kampagne {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 1rem;
  margin: 0.75rem 0;
}
.kampagne img {
  width: 128px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg);
  flex: none;
}
.kampagne .inhalt { flex: 1; min-width: 0; }
.kampagne h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.kampagne p { margin: 0.2rem 0; color: var(--muted); font-size: 0.9rem; }

.marke {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
}
.marke.aktiv     { color: var(--ok);   border-color: var(--ok); }
.marke.pausiert  { color: var(--warn); border-color: var(--warn); }
.marke.beendet   { color: var(--muted); }

.leer {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  border: 1px dashed var(--stroke);
  border-radius: 14px;
}

@media (max-width: 32rem) {
  .kampagne { flex-direction: column; }
  .kampagne img { width: 100%; height: auto; aspect-ratio: 16/9; }
}
