/* ==========================================================================
   Components: buttons, prose content, galleries, forms (built up over
   iterations — only what's needed so far lives here)
   ========================================================================== */

.button {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid var(--color-accent);
  color: var(--color-white);
  background-color: var(--color-accent);
  text-transform: uppercase;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.button:hover {
  background-color: transparent;
  color: var(--color-accent);
}

.button.is-loading {
  position: relative;
  padding-left: 44px;
  cursor: default;
}

.button.is-loading::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: button-spin 0.7s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.prose {
  max-width: 800px;
}

.prose p {
  margin: 0 0 20px;
}

/* Centered intro block: heading (and any lead-in element) centered, body
   copy left-aligned for readability. Used for short topic-intro blocks
   (home, blumen-abo). */
.prose--centered {
  text-align: center;
}

.prose--centered p {
  text-align: left;
}

.prose a {
  text-decoration: underline;
}

.prose a.button {
  text-decoration: none;
}

.prose h2:not(.h3) {
  font-size: 14px;
  line-height: 1.4em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin: 24px 0 4px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.prose li {
  margin: 0 0 8px;
}

.prose .quellenangabe {
  font-size: 13px;
  color: var(--color-text);
}

/* ---- Hero intro (centered accent heading + subtitle, used by
   workshops/lieferservice/blumen-abo) ---- */

.hero-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-intro h1 {
  color: var(--color-accent);
}

.hero-intro h3,
.hero-intro .h3 {
  color: var(--color-accent);
  margin-bottom: 24px;
}

.hero-intro p {
  text-align: left;
}

.hero-intro p a {
  text-decoration: underline;
}

/* ---- Call-to-action box (colored band with heading + button) ---- */

.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: var(--color-newsletter-bg);
  padding: 50px;
}

.cta-box h3 {
  margin: 0;
  flex: 1 1 400px;
  font-size: 22px;
  color: #5d5d5d;
}

/* ---- Newsletter box ---- */

.newsletter-box {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.newsletter-box__note {
  display: block;
  margin: 15px auto 0;
  max-width: 80%;
  font-size: smaller;
  color: var(--color-text);
}

.newsletter-box__note a {
  text-decoration: underline;
}

/* ---- Forms (contact + newsletter) ---- */

.form-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.form-fields input[type="text"],
.form-fields input[type="email"] {
  flex: 1 1 200px;
}

.form input[type="text"],
.form input[type="email"],
.form textarea {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 15px;
  border: 1px solid var(--color-border);
  font-family: var(--font-base);
  font-size: 13px;
  background: var(--color-white);
  color: var(--color-heading);
}

.form textarea {
  resize: vertical;
}

.form-privacy-note {
  font-size: 12px;
  margin-bottom: 15px;
}

.form-notice {
  margin-top: 15px;
  padding: 15px 20px;
  background-color: var(--color-bg-light);
  border-left: 3px solid var(--color-accent);
  font-weight: 600;
  text-align: left;
}

.form-notice a {
  text-decoration: underline;
}

/* Honeypot field for the Kontaktformular's spam defense: kept in the normal
   accessibility tree (no aria-hidden, no display:none) so it stays a valid
   focus target for the trap to work - just moved off-screen visually. Its
   aria-label tells screen-reader users to leave it empty. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media only screen and (max-width: 480px) {
  .cta-box {
    text-align: center;
    justify-content: center;
  }
}
