/* =========================================================
   Soaring Perfection – Listmonk Public / Login
   Navy #03182e · Navy hell #0b2c4d · Sonne #f2b134
   Himmel #e9f0f5 · Text #1c2b3a · Grau #5b7690
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600&family=Barlow+Condensed:wght@600;800&display=swap');

/* ---------- Grundlayout ---------- */
html, body {
  background: #e9f0f5;
}
body {
  font-family: 'Barlow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #1c2b3a;
  padding: 40px 12px;
}

/* Die weiße Karte */
.wrap {
  max-width: 520px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(3, 24, 46, 0.12);
  overflow: hidden;
}

/* ---------- Kopf mit Logo ---------- */
.header {
  margin: -40px -40px 32px;
  padding: 32px 40px 28px;
  background: linear-gradient(180deg, #0b2c4d 0%, #03182e 100%);
  border: 0;
  text-align: center;
  position: relative;
}
.header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 64px;
  height: 6px;
  margin-left: -32px;
  background: #f2b134;
  border-radius: 3px;
}
.header .logo {
  text-align: center;
}
.header .logo img {
  display: block;
  margin: 0 auto;
  width: 96px;
  max-width: 96px;
  height: auto;
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #03182e;
  line-height: 1.1;
  margin: 0 0 16px;
}
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

p { margin: 0 0 16px; }

a {
  color: #0b2c4d;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #f2b134;
  text-underline-offset: 3px;
}
a:hover { color: #03182e; text-decoration-thickness: 2px; }

label {
  display: block;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5b7690;
  margin-bottom: 6px;
}

/* ---------- Formularfelder ---------- */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: 'Barlow', Helvetica, Arial, sans-serif;
  font-size: 17px;
  color: #1c2b3a;
  background: #ffffff;
  border: 2px solid #d3dfe8;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #03182e;
  box-shadow: 0 0 0 4px rgba(242, 177, 52, 0.35);
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: #03182e;
}

/* Captcha: Abstand zum Button */
.h-captcha,
altcha-widget,
.altcha,
.captcha {
  display: block;
  margin-bottom: 28px;
}

/* ---------- Buttons ---------- */
.button,
button,
input[type="submit"] {
  display: inline-block;
  background: #f2b134;
  color: #03182e;
  border: 0;
  border-radius: 999px;
  padding: 14px 30px;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.button:hover,
button:hover,
input[type="submit"]:hover {
  background: #e5a21f;
  color: #03182e;
}
.button:active,
button:active { transform: translateY(1px); }
.button:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #03182e;
  outline-offset: 3px;
}
form button[type="submit"],
form input[type="submit"],
form .button {
  margin-top: 12px;
}

.button.button-outline {
  background: transparent;
  color: #03182e;
  border: 2px solid #03182e;
  padding: 12px 28px;
}
.button.button-outline:hover {
  background: #03182e;
  color: #ffffff;
}

/* ---------- Startseite: Reihenfolge ----------
   Der Bereich mit dem Login-Link wird zur Spalte,
   der Login-Absatz rutscht ans Ende. */
:where(.wrap, .wrap *):has(> * > a[href$="/admin"]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
:where(.wrap, .wrap *):has(> * > a[href$="/admin"]) > * {
  order: 1;
}
:where(.wrap, .wrap *):has(> * > a[href$="/admin"]) > :has(> a[href$="/admin"]) {
  order: 2;
  width: 100%;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e3e9ee;
}

/* ---------- Startseite: Abonnieren + Archiv groß ---------- */
.wrap a[href$="/subscription/form"],
.wrap a[href$="/archive"] {
  display: inline-block;
  box-sizing: border-box;
  min-width: 200px;
  margin: 6px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}
.wrap a[href$="/subscription/form"] {
  background: #f2b134;
  color: #03182e;
  border: 2px solid #f2b134;
}
.wrap a[href$="/subscription/form"]:hover {
  background: #e5a21f;
  border-color: #e5a21f;
  color: #03182e;
}
.wrap a[href$="/archive"] {
  background: transparent;
  color: #03182e;
  border: 2px solid #03182e;
}
.wrap a[href$="/archive"]:hover {
  background: #03182e;
  color: #ffffff;
}

/* Logo-Link im Kopf zeigt auch auf /subscription/form → zurücksetzen */
.header a[href$="/subscription/form"] {
  display: inline;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

/* ---------- Startseite: Login klein (nur für Admins) ---------- */
.wrap a[href$="/admin"],
.wrap a[href$="/admin/"] {
  display: inline-block;
  background: transparent;
  color: #5b7690;
  border: 1px solid #d3dfe8;
  border-radius: 999px;
  padding: 5px 14px;
  font-family: 'Barlow', Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: none;
  text-decoration: none;
}
.wrap a[href$="/admin"]:hover,
.wrap a[href$="/admin/"]:hover {
  color: #03182e;
  border-color: #03182e;
  background: transparent;
}

/* ---------- Hinweise & Fehler ---------- */
.error, .notice, .message {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.error {
  background: #fdecea;
  color: #8a1c12;
  border-left: 4px solid #d93a2b;
}
.notice, .message {
  background: #f6efe2;
  color: #03182e;
  border-left: 4px solid #f2b134;
}

/* ---------- Fußzeile ---------- */
footer, .footer {
  text-align: center;
  font-size: 13px;
  color: #5b7690;
  margin-top: 24px;
}
footer a, .footer a {
  color: #5b7690;
  font-weight: 400;
}

/* ---------- Mobil ---------- */
@media (max-width: 600px) {
  body { padding: 16px 8px; }
  .wrap { padding: 24px; border-radius: 10px; }
  .header { margin: -24px -24px 28px; padding: 26px 24px 24px; }
  .header .logo img { width: 80px; max-width: 80px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }

  .button, button, input[type="submit"] {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
  .wrap a[href$="/subscription/form"],
  .wrap a[href$="/archive"] {
    display: block;
    width: 100%;
    margin: 8px 0;
  }
  .header a[href$="/subscription/form"] {
    display: inline;
    width: auto;
  }
  .wrap a[href$="/admin"],
  .wrap a[href$="/admin/"] {
    width: auto;
  }
}