.solawi-landing {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1f2a22;
}

/* The public pages are centred on one measure: every section spans the full width (so the green
   header bar and the hero's tint still bleed to the edges) while its contents sit in a
   Bootstrap .container, narrowed from Bootstrap's 1320px to something easier to read across. */
.solawi-landing .container {
  max-width: 1040px;
}

.site-flash {
  font-size: 14px;
  padding: 13px 40px;
  border-bottom: 1px solid transparent;
}

.site-flash__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* With `container: true` the coloured band still spans the full width, but its text lines up with
   the centred page content — the .container inside brings its own gutters. */
.site-flash--banded {
  padding-left: 0;
  padding-right: 0;
}

.site-flash i {
  font-size: 15px;
  flex: none;
}

.site-flash--notice {
  background: #eff5ef;
  color: #1f4d28;
  border-bottom-color: #cfe0d2;
}

.site-flash--notice i {
  color: #2f6b3a;
}

.site-flash--alert {
  background: #fdecea;
  color: #7a2a24;
  border-bottom-color: #f5c2c0;
}

.site-flash--alert i {
  color: #c0392b;
}

.site-flash--dense {
  padding: 10px 14px;
  border-radius: 8px;
  border-bottom-width: 1px;
  border: 1px solid;
  margin-bottom: 18px;
  font-size: 13.5px;
}

.site-flash--dense.site-flash--notice {
  border-color: #cfe0d2;
}

.site-flash--dense.site-flash--alert {
  border-color: #f5c2c0;
}

/* :not(.btn), or this would beat Bootstrap's own `.btn { color: var(--bs-btn-color) }` on specificity
   and paint every link styled as a button green — green text on the green .btn-primary background,
   and the same on .btn-outline-primary once it fills in on hover. */
.solawi-landing a:not(.btn) {
  color: #2f6b3a;
}

.solawi-landing a:not(.btn):hover {
  color: #24522d;
}

/* Bootstrap's own .btn-primary defaults to blue; retarget the CSS custom properties it reads
   (rather than inventing a bespoke button class) so `btn btn-primary` renders in the app's
   green. The extra `.btn` in the selector is needed to out-specificity Bootstrap's own
   single-class rule, since vendor/bootstrap.min.css is re-included (via `stylesheet_link_tag
   :app`, which bundles every stylesheet in app/assets/stylesheets) after this file. */
.btn.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #2f6b3a;
  --bs-btn-border-color: #2f6b3a;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #24522d;
  --bs-btn-hover-border-color: #24522d;
  --bs-btn-focus-shadow-rgb: 47, 107, 58;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #24522d;
  --bs-btn-active-border-color: #24522d;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #2f6b3a;
  --bs-btn-disabled-border-color: #2f6b3a;
}

.solawi-landing__header {
  padding: 20px 0;
  background: #2f6b3a;
}

.solawi-landing__header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.solawi-landing__logo {
  width: 230px;
  max-width: 60vw;
  height: auto;
  display: block;
}

.solawi-landing__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.solawi-landing__nav a {
  font-size: 13.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
}

.solawi-landing__nav a:hover,
.solawi-landing__nav a:focus {
  color: #fff;
  text-decoration: underline;
}

.solawi-landing__hero {
  padding: 52px 0 44px;
  background: #f6f9f6;
  border-bottom: 1px solid #e6e8e4;
}

.solawi-landing__hero-inner {
  max-width: 620px;
}

.solawi-landing__eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: #2f6b3a;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.solawi-landing__hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1f2a22;
  margin: 12px 0 14px;
  line-height: 1.25;
  text-wrap: pretty;
}

.solawi-landing__hero p {
  font-size: 15.5px;
  color: #4b5563;
  line-height: 1.65;
  margin: 0 0 24px;
  text-wrap: pretty;
}

/* The line under the hero text that points at the Formulare page. */
/* The big "Für Interessenten" card on the landing page while no round is running. */
.solawi-landing__teaser {
  margin-top: 32px;
  padding: 26px 28px 28px;
  background: #fff;
  border: 1px solid #dfe6df;
  border-left: 5px solid #2f6b3a;
  border-radius: 12px;
}

.solawi-landing__teaser-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2a22;
  margin-bottom: 8px;
}

.solawi-landing__hero .solawi-landing__teaser p {
  margin-bottom: 18px;
}

.solawi-landing__forms-heading {
  font-size: 18px;
  font-weight: 700;
  color: #1f2a22;
  margin: 32px 0 8px;
}

.solawi-landing__hero .solawi-landing__forms-teaser {
  font-size: 14.5px;
  margin: 0;
}

.solawi-landing__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.solawi-landing__cta-row .btn {
  font-size: 14.5px;
  padding: 10px 22px;
  font-weight: 600;
  text-decoration: none;
}

/* The "E-Mail erneut anfordern" form sits in the CTA row and behaves like the single button it
   replaced: address field and submit stay on one line, and wrap together on narrow screens. */
.solawi-landing__request-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.solawi-landing__request-form .form-control {
  width: 240px;
  max-width: 100%;
  font-size: 14.5px;
  padding: 10px 14px;
}

.solawi-landing__deadline {
  font-size: 13px;
  color: #6b7280;
}

.solawi-landing__footer {
  padding: 16px 0;
  border-top: 1px solid #eceee9;
  font-size: 12.5px;
  color: #9aa39c;
}

.solawi-landing__footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.solawi-landing__footer-links {
  display: flex;
  gap: 18px;
}

.solawi-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f9f6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1f2a22;
  padding: 24px;
}

.solawi-auth__card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid #e6e8e4;
  border-radius: 12px;
  padding: 36px 32px;
}

.solawi-auth__logo {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 24px;
}

/* What the login is for, on the sign-in page — the footer link that leads here is the one public
   route into the admin area, and most people who follow it are after something else. */
.solawi-auth__note {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
  background: #f6f9f6;
  border: 1px solid #dfe6df;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 0 0 20px;
}

.solawi-auth__card h1 {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 24px;
}

.solawi-auth__card label {
  font-size: 13.5px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.solawi-auth__card .form-control {
  margin-bottom: 16px;
}

.solawi-auth__card .form-check {
  margin-bottom: 20px;
}

.solawi-auth__card .btn-primary {
  width: 100%;
  border: none;
}

.solawi-auth__links {
  margin-top: 20px;
  text-align: center;
  font-size: 13.5px;
}

.solawi-auth__links a {
  color: #2f6b3a;
  text-decoration: none;
}

.solawi-auth__links a:hover {
  color: #24522d;
}

.solawi-auth__errors {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: #7a2a24;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13.5px;
}

.solawi-auth__errors ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

/* The public Kontakt form (app/views/contact_requests/new.html.erb). Sits under the same hero as
   the landing page, so it only needs the form's own layout — page chrome comes from
   .solawi-landing__* above. */
.solawi-contact {
  padding: 32px 0 40px;
}

.solawi-contact__form {
  max-width: 620px;
}

/* The "no recipient configured" warning above the form, on the same measure as the form itself. */
.solawi-contact__warning {
  max-width: 620px;
}

/* Two fields side by side on a roomy screen, stacked as soon as that gets cramped. */
.solawi-contact__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.solawi-contact__field {
  margin-bottom: 18px;
}

.solawi-contact__field label {
  font-size: 13.5px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.solawi-contact__field .form-control,
.solawi-contact__field .form-select {
  font-size: 14.5px;
  padding: 10px 14px;
}

/* The required-field marker: red, and without the dotted underline browsers give <abbr>. */
.solawi-required {
  color: #c0392b;
  font-weight: 700;
  text-decoration: none;
  cursor: help;
}

.solawi-contact__required-note {
  font-size: 12.5px;
  color: #6b7280;
  margin: 0 0 18px;
}

.solawi-contact__consent {
  margin: 4px 0 24px;
}

.solawi-contact__consent .form-check-label {
  font-size: 13.5px;
  line-height: 1.55;
  color: #4b5563;
}

.solawi-contact__hint {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.6;
  margin: 8px 0 0;
}

.solawi-contact .btn-primary {
  font-size: 14.5px;
  padding: 10px 22px;
  font-weight: 600;
  border: none;
}

/* The Antrag Vereinsmitgliedschaft page (app/views/membership_applications/new.html.erb) reuses the
   Kontakt form's layout; these are its additions. */
.solawi-application__steps {
  max-width: 620px;
  margin: 0 0 28px;
  padding: 16px 20px 16px 40px;
  background: #f1f7ee;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.6;
}

.solawi-application__lead {
  font-weight: 600;
  margin: 0 0 18px;
}

.solawi-application__zip-row {
  grid-template-columns: 1fr 2fr;
}

.solawi-application__legend {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.solawi-application__fee {
  max-width: 260px;
}

.solawi-application__terms {
  margin: 0 0 24px;
}

/* Running text on a public information page (app/views/pages/interested.html.erb). */
.solawi-prose {
  max-width: 680px;
  font-size: 15.5px;
  line-height: 1.7;
  color: #374151;
}

.solawi-prose p,
.solawi-prose ul {
  margin: 0 0 16px;
}

.solawi-prose h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1f2a22;
  margin: 32px 0 10px;
}

/* The trail above a public page's heading (app/views/shared/_breadcrumbs.html.erb). */
.solawi-breadcrumbs {
  margin-bottom: 18px;
  font-size: 13px;
}

.solawi-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: #6b7280;
}

.solawi-breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
}

.solawi-breadcrumbs a {
  color: #2f6b3a;
  text-decoration: none;
}

.solawi-breadcrumbs a:hover {
  text-decoration: underline;
}

/* The Formulare page (app/views/pages/forms.html.erb): one card per form or document. */
.solawi-forms {
  list-style: none;
  max-width: 720px;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.solawi-forms__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #dfe6df;
  border-radius: 12px;
}

.solawi-forms__item h2 {
  font-size: 16px;
  font-weight: 700;
  color: #1f2a22;
  margin: 0 0 4px;
}

.solawi-forms__item p {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
}

.solawi-forms__item .btn {
  flex: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
}

/* The two groups: forms to fill in, documents to read. */
.solawi-forms__heading {
  font-size: 13px;
  font-weight: 600;
  color: #2f6b3a;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 28px 0 12px;
}

.solawi-forms__heading:first-child {
  margin-top: 0;
}

@media (max-width: 640px) {
  .solawi-forms__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .solawi-contact__row,
  .solawi-application__zip-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* The landing page's hero carries the "Noch kein Mitglied?" card beside its text, so the two
   audiences — members with an invite link, and everyone else — are both served above the fold. */
.solawi-landing__hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.solawi-landing__member-card {
  background: #fff;
  border: 1px solid #dfe6df;
  border-radius: 12px;
  padding: 22px 22px 24px;
}

.solawi-landing__member-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2a22;
  margin-bottom: 10px;
}

.solawi-landing__member-card-title i {
  color: #2f6b3a;
}

.solawi-landing__member-card p {
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 12px;
}

.solawi-landing__member-card .btn {
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  text-decoration: none;
}

/* Same retargeting as .btn.btn-primary above, for the card's quieter outline variant. */
.btn.btn-outline-primary {
  --bs-btn-color: #2f6b3a;
  --bs-btn-border-color: #2f6b3a;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #2f6b3a;
  --bs-btn-hover-border-color: #2f6b3a;
  --bs-btn-focus-shadow-rgb: 47, 107, 58;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #24522d;
  --bs-btn-active-border-color: #24522d;
}

/* One column as soon as a 300px card next to the text would squeeze the headline. */
@media (max-width: 860px) {
  .solawi-landing__hero--split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Public FAQ page */
.solawi-faq {
  padding: 32px 0 56px;
}

.solawi-faq__search {
  max-width: 640px;
  margin-bottom: 20px;
}

.solawi-faq__search .form-control {
  font-size: 15px;
  padding: 12px 16px;
}

.solawi-faq__filters {
  margin-bottom: 20px;
}

.solawi-faq__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.solawi-faq__chip,
.solawi-faq__tag {
  border-radius: 999px;
  border: 1px solid #cfd8cf;
  padding: 4px 14px;
  font-size: 13.5px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.solawi-faq__tag {
  padding: 2px 10px;
  font-size: 12.5px;
  color: #5b6b5b;
}

.solawi-landing a.solawi-faq__chip,
.solawi-landing a.solawi-faq__tag {
  color: inherit;
  text-decoration: none;
}

.solawi-landing a.solawi-faq__tag {
  color: #5b6b5b;
}

.solawi-landing a.solawi-faq__chip:hover,
.solawi-landing a.solawi-faq__tag:hover {
  background: #eef4ee;
  border-color: #2f6b3a;
  color: #24522d;
}

/* Beats `.solawi-landing a:not(.btn)` (green links, hover included), which would otherwise paint
   green on green. */
.solawi-landing a.solawi-faq__chip--active,
.solawi-landing a.solawi-faq__chip--active:hover,
.solawi-landing a.solawi-faq__tag--active,
.solawi-landing a.solawi-faq__tag--active:hover {
  background: #2f6b3a;
  border-color: #2f6b3a;
  color: #fff;
}

.solawi-faq__list {
  max-width: 800px;
}

.solawi-faq__entry {
  border: 1px solid #dfe6df;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 10px;
}

.solawi-faq__entry summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
}

.solawi-faq__answer {
  padding: 0 18px 14px;
}

.solawi-faq__empty {
  max-width: 800px;
  color: #5b6b5b;
}
