/* =====================================================================
   listmonk – Public pages (Settings → Appearance → Public → Custom CSS)
   Angelehnt an dhbw-asta.de (AStA der DHBW)
   Farben zentral in :root anpassbar.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --asta-primary: #e2001a;        /* Akzent (DHBW-Rot) – bei Bedarf anpassen */
  --asta-primary-dark: #b80015;
  --asta-ink: #1d1d1b;            /* Text / dunkle Flächen */
  --asta-muted: #5f6368;
  --asta-bg: #f4f4f2;             /* Seitenhintergrund */
  --asta-card: #ffffff;
  --asta-border: #dcdcd8;
  --asta-radius: 10px;
  --asta-shadow: 0 6px 24px rgba(29, 29, 27, 0.08);
}

/* ---------- Basis ---------- */
html, body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  color: var(--asta-ink);
  background: var(--asta-bg) !important;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--asta-primary);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover {
  color: var(--asta-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Seitenrahmen / Karte ---------- */
.container.wrap,
.wrap {
  width: 100%;
  max-width: 520px !important;
  margin: 2.5rem auto 1.5rem !important;
  padding: 0 !important;
  background: var(--asta-card) !important;
  border: 1px solid var(--asta-border) !important;
  border-top: 6px solid var(--asta-primary) !important;
  border-radius: var(--asta-radius) !important;
  box-shadow: var(--asta-shadow) !important;
  overflow: hidden;
}

/* ---------- Header / Logo ---------- */
header,
.header {
  padding: 1.75rem 2rem 1rem !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--asta-border);
  background: var(--asta-card);
  text-align: left !important;
}
.logo img,
header img {
  max-height: 56px;
  width: auto;
}

/* Inhalt in der Karte */
section,
.section,
.wrap > form,
.wrap > div:not(.header):not(footer) {
  padding: 1.5rem 2rem 0.5rem;
}
.wrap > *:last-child {
  padding-bottom: 2rem;
}

/* ---------- Titel neben dem Logo ---------- */
header,
.header {
  display: flex !important;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
header::after,
.header::after {
  content: "Newsletter der VS der DHBW";
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--asta-ink);
  padding-left: 1.25rem;
  border-left: 3px solid var(--asta-primary);
}

/* ---------- Typografie ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--asta-ink);
}
h2 {
  font-size: 1.6rem;
  margin: 0 0 1rem;
}
h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: .6rem;
  background: var(--asta-primary);
  border-radius: 2px;
}
p { color: var(--asta-ink); }
small, .help, .small { color: var(--asta-muted); }

/* ---------- Formulare ---------- */
label,
.label {
  display: block;
  margin: 1rem 0 .35rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--asta-ink);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: .7rem .9rem;
  font: inherit;
  color: var(--asta-ink);
  background: #fff;
  border: 1.5px solid var(--asta-border);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--asta-primary);
  box-shadow: 0 0 0 3px rgba(226, 0, 26, .15);
}
::placeholder { color: #9a9a96; }

/* Checkboxen (Listenauswahl) */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--asta-primary);
  width: 1.1rem;
  height: 1.1rem;
  margin-right: .5rem;
  vertical-align: middle;
}
ul.lists, .lists, ul {
  list-style: none;
  padding-left: 0;
}
.lists li,
ul.lists li {
  margin: .5rem 0;
  padding: .65rem .9rem;
  border: 1px solid var(--asta-border);
  border-radius: 8px;
  background: #fafaf8;
  transition: border-color .15s ease, background .15s ease;
}
.lists li:hover {
  border-color: var(--asta-primary);
  background: #fff;
}
.lists li label {
  display: inline;
  margin: 0;
  font-weight: 500;
}

/* ---------- Buttons ---------- */
button,
.button,
input[type="submit"],
a.button {
  display: inline-block;
  margin-top: 1.25rem;
  padding: .75rem 1.5rem;
  font: inherit;
  font-weight: 700;
  color: #fff !important;
  background: var(--asta-primary) !important;
  border: 2px solid var(--asta-primary) !important;
  border-radius: 999px !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
button:hover,
.button:hover,
input[type="submit"]:hover,
a.button:hover {
  background: var(--asta-primary-dark) !important;
  border-color: var(--asta-primary-dark) !important;
}
button:active,
.button:active { transform: translateY(1px); }

/* Sekundär-Buttons (z. B. „Abbestellen“/Zurück) */
.button.button-outline,
a.button.button-outline,
button.button-outline {
  color: var(--asta-primary) !important;
  background: transparent !important;
}

/* ---------- Meldungen ---------- */
.error,
.message.error {
  padding: .8rem 1rem;
  margin: 1rem 0;
  color: #7a0010;
  background: #fdecee;
  border-left: 4px solid var(--asta-primary);
  border-radius: 6px;
}
.success,
.message.success {
  padding: .8rem 1rem;
  margin: 1rem 0;
  color: #14532d;
  background: #e8f5ec;
  border-left: 4px solid #1f9d55;
  border-radius: 6px;
}

/* ---------- Archiv-Seite ---------- */
ul.archive, .archive { margin: 0; padding: 0; }
.archive li {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  align-items: baseline;
  padding: .9rem 0;
  border-bottom: 1px solid var(--asta-border);
}
.archive li:last-child { border-bottom: 0; }
.archive .date, .archive time {
  font-size: .85rem;
  color: var(--asta-muted);
}
.archive a { font-weight: 600; }

/* ---------- Footer (dunkel, wie dhbw-asta.de) ---------- */
footer,
footer.container {
  margin: auto 0 0 !important;
  padding: 1.75rem 1rem !important;
  text-align: center;
  font-size: .85rem;
  color: #d9d9d4 !important;
  background: var(--asta-ink) !important;
  border-top: 4px solid var(--asta-primary);
  max-width: none !important;
  width: 100%;
  box-sizing: border-box;
}
footer a { color: #fff !important; font-weight: 500; }
footer a:hover { text-decoration: underline; }
footer .about, footer p { color: #d9d9d4; margin: .25rem 0; }

/* ---------- Mobil ---------- */
@media (max-width: 600px) {
  .container.wrap, .wrap {
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    max-width: none !important;
  }
  header, .header,
  section, .section,
  .wrap > form,
  .wrap > div:not(.header):not(footer) {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  button, .button, input[type="submit"] { width: 100%; text-align: center; }
}