/*
 * Ruth Newsletter Archive 1.3.2
 * Elementor bleibt für die Übersichtsseite zuständig.
 * Dieses Stylesheet gestaltet nur Plugin-Shortcodes und Einzelausgaben.
 * Keine Blumen, keine Ornamente, keine eigene Font-Datei.
 */

:root {
  --ruth-page-bg: #f8f8f6;
  --ruth-sidebar-bg: #fbfbf9;
  --ruth-form-bg: #fbfbf9;
  --ruth-text: #2e2e2c;
  --ruth-muted: #777773;
  --ruth-line: #e3e3de;
  --ruth-accent: #5a8385;
  --ruth-title-color: #5a8385;
  --ruth-button-bg: #c2d9db;
  --ruth-button-text: #202020;
  --ruth-button-hover: #b6d0d2;
  --ruth-input-bg: #ffffff;
  --ruth-input-border: #cfd0cb;
}

.ruth-newsletter-form-shortcode *,
.ruth-newsletter-archive-shortcode *,
.ruth-newsletter-single *,
.ruth-newsletter-form-shortcode *::before,
.ruth-newsletter-archive-shortcode *::before,
.ruth-newsletter-single *::before,
.ruth-newsletter-form-shortcode *::after,
.ruth-newsletter-archive-shortcode *::after,
.ruth-newsletter-single *::after {
  box-sizing: border-box;
}

/* --------------------------------------------------
   Elementor-Shortcode: Formular
   -------------------------------------------------- */

.ruth-newsletter-form-shortcode {
  width: 100%;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--ruth-line);
  background: var(--ruth-form-bg);
  color: var(--ruth-text);
  font-family: inherit;
  line-height: 1.55;
}

.ruth-newsletter-form-shortcode .ruth-form-heading {
  margin: 0 0 24px;
  color: inherit;
  font-family: inherit;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
}

.ruth-newsletter-form-shortcode .ruth-provider-form,
.ruth-newsletter-form-shortcode form {
  width: 100%;
}

.ruth-newsletter-form-shortcode input[type="email"],
.ruth-newsletter-form-shortcode input[type="text"],
.ruth-newsletter-form-shortcode input[type="tel"],
.ruth-newsletter-form-shortcode input[type="url"] {
  width: 100%;
  min-height: 50px;
  margin: 0 0 10px;
  padding: 0 15px;
  border: 1px solid var(--ruth-input-border);
  border-radius: 0;
  background: var(--ruth-input-bg);
  color: var(--ruth-text);
  box-shadow: none;
  font: inherit;
  font-size: 16px;
}

.ruth-newsletter-form-shortcode input:focus {
  outline: 2px solid var(--ruth-button-bg);
  outline-offset: 1px;
  border-color: var(--ruth-accent);
}

.ruth-newsletter-form-shortcode button,
.ruth-newsletter-form-shortcode input[type="submit"] {
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--ruth-button-bg);
  border-radius: 0;
  background: var(--ruth-button-bg);
  color: var(--ruth-button-text);
  box-shadow: none;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}

.ruth-newsletter-form-shortcode button:hover,
.ruth-newsletter-form-shortcode input[type="submit"]:hover {
  border-color: var(--ruth-button-hover);
  background: var(--ruth-button-hover);
}

.ruth-newsletter-form-shortcode .ruth-form-note {
  margin: 15px 0 0;
  color: var(--ruth-muted);
  font-size: .82rem;
  line-height: 1.55;
}

.ruth-newsletter-form-shortcode .ruth-form-placeholder {
  padding: 15px;
  border: 1px dashed var(--ruth-input-border);
  background: var(--ruth-input-bg);
  color: var(--ruth-muted);
  font-size: .9rem;
  line-height: 1.5;
}

/* --------------------------------------------------
   Elementor-Shortcode: automatische Archivliste
   -------------------------------------------------- */

.ruth-newsletter-archive-shortcode {
  width: 100%;
  color: inherit;
  font-family: inherit;
  line-height: 1.5;
}

.ruth-newsletter-archive-shortcode .ruth-year-group {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 32px;
  margin: 0 0 34px;
}

.ruth-newsletter-archive-shortcode .ruth-year {
  margin: 8px 0 0;
  color: var(--ruth-accent);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
}

.ruth-newsletter-archive-shortcode .ruth-year-items {
  min-width: 0;
  border-top: 1px solid var(--ruth-line);
}

.ruth-newsletter-archive-shortcode .ruth-archive-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--ruth-line);
}

.ruth-newsletter-archive-shortcode .ruth-archive-row time {
  display: flex;
  gap: 5px;
  color: var(--ruth-accent);
  font-family: inherit;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ruth-newsletter-archive-shortcode .ruth-archive-row h4 {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.ruth-newsletter-archive-shortcode .ruth-archive-row a {
  color: inherit;
  text-decoration: none;
}

.ruth-newsletter-archive-shortcode .ruth-archive-row a:hover {
  color: var(--ruth-accent);
  text-decoration: underline;
  text-decoration-color: var(--ruth-accent);
  text-underline-offset: 3px;
}

.ruth-newsletter-archive-shortcode .ruth-empty-state {
  margin: 0;
  color: var(--ruth-muted);
}

/* --------------------------------------------------
   Einzelausgabe – klare redaktionelle 2-Spalten-Struktur
   -------------------------------------------------- */

.ruth-newsletter-single {
  background: var(--ruth-page-bg);
  color: var(--ruth-text);
  font-family: inherit;
  line-height: 1.7;
}

.ruth-single-container {
  width: min(calc(100% - 96px), 1200px);
  margin-inline: auto;
}

.ruth-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
  gap: 0;
  align-items: stretch;
}

.ruth-single-main {
  min-width: 0;
  padding: clamp(64px, 6vw, 92px) clamp(40px, 4vw, 64px) 104px 0;
}

.ruth-single-header {
  margin: 0 0 54px;
}

.ruth-single-header h1 {
  max-width: 820px;
  margin: 0 0 38px;
  color: var(--ruth-title-color);
  font-family: inherit;
  font-size: clamp(2.55rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.ruth-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
  align-items: baseline;
  margin: 0;
  color: var(--ruth-muted);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ruth-byline-prefix {
  font-size: .98rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.ruth-byline strong {
  color: var(--ruth-text);
  font-weight: 600;
}

.ruth-title-divider {
  position: relative;
  width: 100%;
  height: 1px;
  margin: 0 0 clamp(80px, 9vw, 135px);
  background: var(--ruth-line);
}

.ruth-title-divider span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: var(--ruth-page-bg);
}

.ruth-title-divider span::after {
  content: "···";
  position: absolute;
  inset: -11px 0 auto;
  color: var(--ruth-accent);
  font-size: 14px;
  letter-spacing: 5px;
  text-align: center;
}

.ruth-single-content {
  max-width: 860px;
  font-family: inherit;
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.82;
}

.ruth-single-content > :first-child {
  margin-top: 0;
}

.ruth-single-content p {
  margin-top: 0;
  margin-bottom: 1.55em;
}

.ruth-single-content h2 {
  margin: clamp(66px, 7vw, 94px) 0 42px;
  color: var(--ruth-text);
  font-family: inherit;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
  text-transform: uppercase;
}

.ruth-single-content h3 {
  margin: 48px 0 20px;
  color: var(--ruth-text);
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
}

.ruth-single-content strong {
  color: var(--ruth-text);
  font-weight: 700;
}

.ruth-single-content a,
.ruth-join-copy a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--ruth-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ruth-single-content hr,
.ruth-single-content .wp-block-separator {
  width: 100%;
  max-width: none;
  height: 1px;
  margin: 54px 0;
  border: 0;
  background: var(--ruth-line);
}

.ruth-single-content blockquote {
  margin: 30px 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--ruth-accent);
  color: inherit;
}

/* Rechte redaktionelle Spalte */
.ruth-single-aside {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(64px, 6vw, 92px) 0 104px clamp(30px, 3vw, 42px);
  border-left: 1px solid var(--ruth-line);
  background: var(--ruth-sidebar-bg);
}

.ruth-aside-box,
.ruth-read-next {
  width: 100%;
}

.ruth-aside-box h2,
.ruth-read-next h2 {
  margin: 0 0 26px;
  color: var(--ruth-muted);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ruth-aside-rule {
  height: 1px;
  margin: 0 0 32px;
  background: var(--ruth-line);
}

.ruth-aside-copy {
  color: var(--ruth-text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.65;
}

.ruth-aside-copy p {
  margin: 0 0 1.4em;
}

.ruth-aside-link {
  display: inline;
  color: var(--ruth-text);
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.55;
  text-decoration-line: underline;
  text-decoration-color: var(--ruth-accent);
  text-underline-offset: 5px;
}

.ruth-aside-link:hover {
  color: var(--ruth-accent);
}

/* Wird durch flex automatisch an das untere Ende des langen Artikels geschoben. */
.ruth-read-next {
  margin-top: auto;
  padding-top: 80px;
}

.ruth-read-next-item {
  display: block;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--ruth-line);
  color: inherit;
  text-decoration: none;
}

.ruth-read-next-item time {
  display: block;
  margin-bottom: 6px;
  color: var(--ruth-accent);
  font-family: inherit;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.ruth-read-next-item strong {
  display: block;
  color: var(--ruth-text);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.55;
}

.ruth-read-next-item:hover strong {
  color: var(--ruth-accent);
}

/* Unterer Abonnieren-Bereich – bewusst schlicht und breit, ohne Kartenoptik */
.ruth-join-box {
  margin-top: clamp(86px, 9vw, 136px);
  padding-top: clamp(72px, 7vw, 104px);
  border-top: 1px solid var(--ruth-line);
}

.ruth-join-box > h2 {
  margin: 0 0 44px;
  color: var(--ruth-text);
  font-family: inherit;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.ruth-join-copy {
  max-width: 820px;
  margin-bottom: 34px;
  color: var(--ruth-text);
  font-size: clamp(1.04rem, 1.25vw, 1.14rem);
  line-height: 1.78;
}

/* Im Artikel-Footer soll das Formular wie eine redaktionelle Zeile wirken,
   nicht wie die Formularbox auf der Elementor-Landingpage. */
.ruth-join-box .ruth-newsletter-form-shortcode.ruth-join-form {
  width: 100%;
  max-width: 860px;
  margin-top: 30px;
  padding: 0;
  border: 0;
  background: transparent;
}

.ruth-join-box .ruth-join-form .ruth-provider-form,
.ruth-join-box .ruth-join-form .ruth-provider-form form {
  width: 100%;
}

/* Funktioniert bei einfachen Provider-Formularen direkt; bei Formularen mit
   Feld-Wrappern werden deren direkten Kinder ebenfalls nebeneinander gesetzt. */
.ruth-join-box .ruth-join-form .ruth-provider-form form {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, .92fr);
  gap: 12px;
  align-items: stretch;
}

.ruth-join-box .ruth-join-form .ruth-provider-form form > * {
  min-width: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.ruth-join-box .ruth-join-form input[type="email"],
.ruth-join-box .ruth-join-form input[type="text"],
.ruth-join-box .ruth-join-form input[type="tel"],
.ruth-join-box .ruth-join-form input[type="url"],
.ruth-join-box .ruth-join-form button,
.ruth-join-box .ruth-join-form input[type="submit"] {
  min-height: 58px;
  margin: 0;
}

.ruth-join-box .ruth-join-form input[type="email"],
.ruth-join-box .ruth-join-form input[type="text"],
.ruth-join-box .ruth-join-form input[type="tel"],
.ruth-join-box .ruth-join-form input[type="url"] {
  padding-inline: 18px;
  border-color: var(--ruth-input-border);
  background: var(--ruth-input-bg);
}

.ruth-join-box .ruth-join-form button,
.ruth-join-box .ruth-join-form input[type="submit"] {
  padding-inline: 24px;
  border-color: var(--ruth-button-bg);
  background: var(--ruth-button-bg);
  color: var(--ruth-button-text);
  font-weight: 600;
}

.ruth-join-box .ruth-join-form button:hover,
.ruth-join-box .ruth-join-form input[type="submit"]:hover {
  border-color: var(--ruth-button-hover);
  background: var(--ruth-button-hover);
}

.ruth-join-box .ruth-join-form .ruth-form-note {
  margin-top: 16px;
  color: var(--ruth-muted);
  font-size: .82rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .ruth-single-container {
    width: min(calc(100% - 56px), 1120px);
  }

  .ruth-single-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .ruth-single-main {
    padding-right: 36px;
  }

  .ruth-single-aside {
    padding-left: 26px;
  }
}

@media (max-width: 760px) {
  .ruth-newsletter-archive-shortcode .ruth-year-group {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 30px;
  }

  .ruth-newsletter-archive-shortcode .ruth-year {
    margin: 0;
    font-size: 1.2rem;
  }

  .ruth-newsletter-archive-shortcode .ruth-archive-row {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
  }

  .ruth-single-container {
    width: min(calc(100% - 30px), 760px);
  }

  .ruth-single-grid {
    grid-template-columns: 1fr;
  }

  .ruth-single-main {
    padding: 54px 0 70px;
  }

  .ruth-single-header h1 {
    margin-bottom: 32px;
    font-size: clamp(2.2rem, 9vw, 3.05rem);
  }

  .ruth-title-divider {
    margin-bottom: 70px;
  }

  .ruth-single-aside {
    padding: 52px 0 70px;
    border-top: 1px solid var(--ruth-line);
    border-left: 0;
    background: var(--ruth-sidebar-bg);
  }

  .ruth-read-next {
    margin-top: 68px;
    padding-top: 0;
  }

  .ruth-join-box {
    margin-top: 76px;
    padding-top: 64px;
  }

  .ruth-join-box > h2 {
    margin-bottom: 28px;
  }

  .ruth-join-box .ruth-join-form .ruth-provider-form form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ruth-join-box .ruth-join-form input[type="email"],
  .ruth-join-box .ruth-join-form input[type="text"],
  .ruth-join-box .ruth-join-form input[type="tel"],
  .ruth-join-box .ruth-join-form input[type="url"],
  .ruth-join-box .ruth-join-form button,
  .ruth-join-box .ruth-join-form input[type="submit"] {
    width: 100%;
    min-height: 54px;
  }
}
