/*
Theme Name: Hoffnung Schenken
Theme URI: https://www.hoffnung-schenken.org
Author: Hoffnung Schenken e.V.
Author URI: https://www.hoffnung-schenken.org
Description: Block-Theme (Full Site Editing) für den Website-Relaunch des gemeinnützigen Vereins Hoffnung Schenken, Neustadt am Main.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hoffnung-schenken
Tags: block-theme, full-site-editing, one-column, custom-colors, custom-typography, charity
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — LIGHT MODE (DEFAULT)
   ============================================================ */

:root {
  --hs-surface:          #FFFFFF;
  --hs-surface-alt:      #FDF6EE;
  --hs-surface-raised:   #FFFFFF;
  --hs-text:             #2C1810;
  --hs-text-muted:       #5C4033;
  --hs-primary:          #E8522A;
  --hs-primary-light:    #F28C5E;
  --hs-accent:           #F5A623;
  --hs-success:          #4CAF50;
  --hs-border:           rgba(44, 24, 16, 0.12);
  --hs-shadow-sm:        0 1px 4px rgba(44, 24, 16, 0.08);
  --hs-shadow-md:        0 4px 16px rgba(44, 24, 16, 0.12);
  --hs-shadow-lg:        0 8px 32px rgba(44, 24, 16, 0.16);
  --hs-radius:           8px;
  --hs-radius-lg:        16px;
  --hs-transition:       0.2s ease;
  --hs-header-bg:        #FFFFFF;
  --hs-header-height:    72px;
}

/* ============================================================
   DARK MODE — SYSTEM PREFERENCE
   ============================================================ */

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --hs-surface:          #2A1509;
    --hs-surface-alt:      #1A0D07;
    --hs-surface-raised:   #3D1F0D;
    --hs-text:             #F5EDE6;
    --hs-text-muted:       #C4A88D;
    --hs-primary:          #F06540;
    --hs-primary-light:    #F59072;
    --hs-border:           rgba(245, 237, 230, 0.1);
    --hs-shadow-sm:        0 1px 4px rgba(0, 0, 0, 0.3);
    --hs-shadow-md:        0 4px 16px rgba(0, 0, 0, 0.4);
    --hs-shadow-lg:        0 8px 32px rgba(0, 0, 0, 0.5);
    --hs-header-bg:        #1A0D07;
    --wp--preset--color--background: #1A0D07;
    --wp--preset--color--text-dark:  #F5EDE6;
    --wp--preset--color--text-medium:#C4A88D;
  }
}

/* ============================================================
   DARK MODE — MANUELLER OVERRIDE
   ============================================================ */

html[data-theme="dark"] {
  --hs-surface:          #2A1509;
  --hs-surface-alt:      #1A0D07;
  --hs-surface-raised:   #3D1F0D;
  --hs-text:             #F5EDE6;
  --hs-text-muted:       #C4A88D;
  --hs-primary:          #F06540;
  --hs-primary-light:    #F59072;
  --hs-border:           rgba(245, 237, 230, 0.1);
  --hs-shadow-sm:        0 1px 4px rgba(0, 0, 0, 0.3);
  --hs-shadow-md:        0 4px 16px rgba(0, 0, 0, 0.4);
  --hs-shadow-lg:        0 8px 32px rgba(0, 0, 0, 0.5);
  --hs-header-bg:        #1A0D07;
  --wp--preset--color--background: #1A0D07;
  --wp--preset--color--text-dark:  #F5EDE6;
  --wp--preset--color--text-medium:#C4A88D;
}

/* ============================================================
   BASE / RESET
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--wp--preset--font-family--body);
  background-color: var(--hs-surface-alt);
  color: var(--hs-text);
  transition: background-color var(--hs-transition), color var(--hs-transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea,
code,
pre {
  font-family: inherit;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   SKIP-TO-CONTENT (BARRIEREFREIHEIT)
   ============================================================ */

.hs-skip-link {
  position: fixed;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateY(-100%);
  z-index: 9999;
  padding: 12px 28px;
  background: var(--hs-primary);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-radius: 0 0 var(--hs-radius) var(--hs-radius);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: var(--hs-shadow-md);
}

.hs-skip-link:focus {
  transform: translateX(-50%) translateY(0);
  /* Kein outline:none – sichtbarer Fokus-Ersatz via box-shadow (WCAG 2.4.7) */
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--hs-primary), var(--hs-shadow-md);
}

/* ============================================================
   FOKUS-STYLES (WCAG 2.1 AA)
   ============================================================ */

:focus-visible {
  outline: 3px solid var(--hs-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--hs-primary);
  outline-offset: 3px;
}

/* ============================================================
   HEADER
   ============================================================ */

.hs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--hs-header-bg) !important;
  border-bottom: 1px solid var(--hs-border);
  box-shadow: var(--hs-shadow-sm);
  transition: background-color var(--hs-transition), box-shadow var(--hs-transition), border-color var(--hs-transition);
}

.hs-header > .wp-block-group__inner-container,
.hs-header > div {
  min-height: var(--hs-header-height);
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  gap: 16px;
}

.hs-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none !important;
  min-width: 0;
}

.hs-header-brand .wp-block-site-logo {
  flex-shrink: 0;
  flex-grow: 0;
}

.hs-header-brand .wp-block-site-logo img {
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  aspect-ratio: 300 / 276; /* native Bildgröße → reserviert Platz vor dem Laden (CLS) */
}

.hs-header-brand .wp-block-site-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  flex-shrink: 0;
  flex-grow: 0;
  margin: 0;
  padding: 0;
}

.hs-header-brand .wp-block-site-title a,
.hs-header-brand .wp-block-site-title p {
  color: var(--hs-text) !important;
  text-decoration: none !important;
  font-size: inherit;
  margin: 0;
}

.hs-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ============================================================
   DARK-MODE-TOGGLE-BUTTON
   ============================================================ */

.hs-theme-toggle {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--hs-border);
  background: var(--hs-header-bg);
  color: var(--hs-text);
  cursor: pointer;
  transition: background var(--hs-transition), border-color var(--hs-transition), color var(--hs-transition);
  flex-shrink: 0;
  padding: 0;
  box-shadow: var(--hs-shadow-sm);
}

.hs-theme-toggle:hover {
  background: rgba(232, 82, 42, 0.1);
  border-color: var(--hs-primary);
  color: var(--hs-primary);
}

.hs-icon-sun  { display: none;  }
.hs-icon-moon { display: block; }

html[data-theme="dark"] .hs-icon-sun   { display: block; }
html[data-theme="dark"] .hs-icon-moon  { display: none;  }
html[data-theme="light"] .hs-icon-sun  { display: none  !important; }
html[data-theme="light"] .hs-icon-moon { display: block !important; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .hs-icon-sun  { display: block; }
  html:not([data-theme="light"]) .hs-icon-moon { display: none;  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.hs-header .wp-block-navigation__container {
  gap: 2px;
}

.hs-header .wp-block-navigation-item__content {
  padding: 8px 12px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--hs-text) !important;
  border-radius: var(--hs-radius) !important;
  transition: background var(--hs-transition), color var(--hs-transition) !important;
  text-decoration: none !important;
}

.hs-header .wp-block-navigation-item__content:hover {
  background: rgba(232, 82, 42, 0.08) !important;
  color: var(--hs-primary) !important;
}

.hs-header .current-menu-item > .wp-block-navigation-item__content {
  color: var(--hs-primary) !important;
}

.wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--hs-header-bg) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-size: 22px !important;
}

/* Hamburger- & Schliessen-Button: Größe & Farbe — kein display-Override,
   damit WordPress' display:none auf dem Schliessen-Button wirkt */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  width: 44px !important;
  height: 44px !important;
  border-radius: var(--hs-radius) !important;
  color: var(--hs-text) !important;
}

/* Hamburger: Inhalt zentrieren wenn sichtbar */
.wp-block-navigation__responsive-container-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Schliessen-Button: nur anzeigen wenn Menü geöffnet ist */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-container-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ============================================================
   HERO
   ============================================================ */

.hs-hero.wp-block-cover {
  min-height: 80vh;
}

.hs-hero .wp-block-cover__inner-container {
  max-width: 950px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero-wrapper {
  position: relative;
  padding: 2em 5em 2em 2em;
  border-radius: var(--hs-radius);
  width: fit-content;
  max-width: 100%;
  margin-left: 5em;
}

.hero-wrapper-background {
  background-color: rgba(44, 24, 16, 0.72);
  border-radius: var(--hs-radius);
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* ============================================================
   KARTEN (hs-card)
   ============================================================ */

.hs-card {
  background: var(--hs-surface) !important;
  border-radius: var(--hs-radius) !important;
  box-shadow: var(--hs-shadow-sm);
  border: 1px solid var(--hs-border) !important;
  transition: box-shadow var(--hs-transition), transform var(--hs-transition);
  overflow: hidden;
}

.hs-card:hover {
  box-shadow: var(--hs-shadow-md);
  transform: translateY(-3px);
}

/* Gleich hohe Kacheln im Post-Template-Grid */
.wp-block-post-template.is-layout-grid > li {
  display: flex;
  flex-direction: column;
}
.wp-block-post-template.is-layout-grid > li > .hs-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.wp-block-post-template.is-layout-grid > li > .hs-card > .wp-block-group {
  flex: 1;
}

/* WP Standard-white-background in Dark Mode überschreiben */
html[data-theme="dark"] .has-white-background-color {
  background-color: var(--hs-surface) !important;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .has-white-background-color {
    background-color: var(--hs-surface) !important;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.wp-element-button,
.wp-block-button__link {
  border-radius: var(--hs-radius) !important;
  font-weight: 600 !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: background-color var(--hs-transition), transform var(--hs-transition), box-shadow var(--hs-transition) !important;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: var(--hs-shadow-md);
}

.wp-element-button:active,
.wp-block-button__link:active {
  transform: translateY(0);
}

/* ============================================================
   TYPOGRAFIE
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  color: var(--hs-text);
  transition: color var(--hs-transition);
}

p {
  transition: color var(--hs-transition);
}

/* Lesbarkeit: max. Zeilenlänge */
.entry-content p,
.wp-block-post-content p {
  max-width: 70ch;
}

/* ============================================================
   BILDER
   ============================================================ */

.wp-block-image img,
.wp-block-post-featured-image img {
  border-radius: var(--hs-radius);
}

/* ============================================================
   SIDEBAR SPENDEN
   ============================================================ */

.hs-sidebar-spenden {
  background: var(--hs-surface) !important;
  border: 2px solid var(--hs-primary);
  border-radius: var(--hs-radius-lg) !important;
  margin-top: 48px;
  box-shadow: var(--hs-shadow-sm);
}

/* ============================================================
   PROJEKT-META
   ============================================================ */

.hs-projekt-meta {
  background: var(--hs-surface-alt) !important;
  border-radius: var(--hs-radius) !important;
  padding: 16px 20px !important;
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hs-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hs-status-badge--aktiv {
  background: rgba(76, 175, 80, 0.12);
  color: #1B5E20; /* Kontrast 7.3:1 auf cremefarbenem Hintergrund (WCAG 1.4.3) */
  border: 1px solid rgba(76, 175, 80, 0.4);
}

html[data-theme="dark"] .hs-status-badge--aktiv {
  background: rgba(76, 175, 80, 0.15);
  color: #C8E6C9; /* Kontrast >11:1 auf dunklem Hintergrund (WCAG 1.4.3) */
  border-color: rgba(76, 175, 80, 0.3);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .hs-status-badge--aktiv {
    background: rgba(76, 175, 80, 0.15);
    color: #C8E6C9;
    border-color: rgba(76, 175, 80, 0.3);
  }
}

.hs-status-badge--abgeschlossen {
  background: var(--hs-border);
  color: var(--hs-text-muted);
  border: 1px solid var(--hs-border);
}

/* ============================================================
   VERTRAUENS-BEREICH (Icons)
   ============================================================ */

.hs-trust-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */

.hs-footer {
  color: rgba(245, 237, 230, 0.9);
  border-top: 3px solid var(--wp--preset--color--primary);
}

.hs-footer a {
  color: var(--wp--preset--color--primary-light) !important;
  text-decoration: none;
}

.hs-footer a:hover {
  color: var(--wp--preset--color--accent) !important;
  text-decoration: underline;
}

.hs-footer .wp-block-heading {
  color: #FFFFFF !important;
}

.hs-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 0;
  padding-top: 20px;
}

/* Footer: Touch-Ziele für Text-Links in Absätzen (E-Mail u.ä.) */
.hs-footer p a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Footer: Navigations-Items – Touch-Ziele */
.hs-footer .wp-block-navigation-item__content {
  min-height: 44px;
  display: flex !important;
  align-items: center;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Footer: Social-Link (Facebook) */
.hs-footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wp--preset--color--primary-light) !important;
  text-decoration: none;
  min-height: 44px;
  margin-top: var(--wp--preset--spacing--m);
  transition: color var(--hs-transition);
  cursor: pointer;
}

.hs-footer-social-link:hover {
  color: var(--wp--preset--color--accent) !important;
  text-decoration: underline;
}

.hs-footer-social-link:focus-visible {
  outline: 3px solid var(--hs-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Footer: Legal Nav (Impressum · Datenschutz · Barrierefreiheit) */
.hs-footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 4px;
  margin: 0;
  padding: 0;
}

.hs-footer-legal-nav a {
  font-size: 13px;
  color: var(--wp--preset--color--primary-light) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  transition: color var(--hs-transition);
  cursor: pointer;
}

.hs-footer-legal-nav a:first-child {
  padding-left: 0;
}

.hs-footer-legal-nav a:hover {
  color: var(--wp--preset--color--accent) !important;
  text-decoration: underline;
}

.hs-footer-legal-nav a:focus-visible {
  outline: 3px solid var(--hs-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

.hs-footer-legal-nav a:not(:last-child) {
  border-right: 1px solid rgba(245, 237, 230, 0.2);
}

/* ============================================================
   QUERIES / BLOG-LISTE
   ============================================================ */

.hs-post-card {
  background: var(--hs-surface);
  border-radius: var(--hs-radius);
  box-shadow: var(--hs-shadow-sm);
  border: 1px solid var(--hs-border);
  overflow: hidden;
  transition: box-shadow var(--hs-transition), transform var(--hs-transition);
}

.hs-post-card:hover {
  box-shadow: var(--hs-shadow-md);
  transform: translateY(-3px);
}

.hs-post-card .wp-block-post-featured-image img {
  border-radius: var(--hs-radius) var(--hs-radius) 0 0 !important;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.hs-post-card-body {
  padding: 20px 24px 24px;
}

/* ============================================================
   KONTAKTFORMULAR
   ============================================================ */

.hs-contact-info {
  background: var(--hs-surface);
  border-radius: var(--hs-radius-lg);
  padding: 32px;
  border: 1px solid var(--hs-border);
  box-shadow: var(--hs-shadow-sm);
}

.hs-contact-info a {
  color: var(--hs-primary);
}

/* ============================================================
   WP-FORMULARE (Barrierefreiheit)
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  background: var(--hs-surface);
  color: var(--hs-text);
  border: 2px solid var(--hs-border);
  border-radius: var(--hs-radius);
  padding: 10px 14px;
  font-size: 16px;
  min-height: 44px;
  width: 100%;
  transition: border-color var(--hs-transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: var(--hs-primary);
  outline: 3px solid var(--hs-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(232, 82, 42, 0.2);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--hs-text);
}

/* ============================================================
   PAGINATION
   ============================================================ */

.wp-block-query-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.wp-block-query-pagination a,
.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--hs-radius);
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  color: var(--hs-text);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--hs-transition), color var(--hs-transition);
}

.wp-block-query-pagination a:hover {
  background: var(--hs-primary);
  color: #fff;
  border-color: var(--hs-primary);
}

.wp-block-query-pagination-numbers .current {
  background: var(--hs-primary);
  color: #fff;
  border-color: var(--hs-primary);
}

/* ============================================================
   404-SEITE
   ============================================================ */

.hs-404-wrap {
  text-align: center;
  padding: 80px 20px;
}

.hs-404-wrap .hs-404-emoji {
  font-size: 80px;
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */

@media (max-width: 782px) {
  /* Dark-Mode-Toggle: sticky unten-rechts auf Mobile */
  .hs-theme-toggle {
    top: auto;
    bottom: 20px;
    right: 20px;
  }

  /* Navigation: Desktop-Links ausblenden (Hamburger übernimmt) */
  .hs-header .wp-block-navigation__container {
    display: none;
  }

  /* Footer: Seitenabstand auf Mobile */
  .hs-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Footer-Spalten: untereinander statt nebeneinander */
  .hs-footer .wp-block-columns {
    flex-direction: column !important;
  }
  .hs-footer .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .hs-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }

  /* Footer: Schriftgrößen auf Mobile anheben */
  .hs-footer .wp-block-column p {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  .hs-footer-bottom > p {
    font-size: 14px !important;
  }
}

@media (max-width: 600px) {
  :root {
    --hs-header-height: 0;
  }

  .hs-header > .wp-block-group__inner-container,
  .hs-header > div {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    min-height: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 28px !important;
    position: relative;
  }

  .hs-header-brand {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }

  /* Hamburger oben rechts – aus dem Flex-Flow herausnehmen */
  .hs-header-right {
    position: absolute !important;
    top: -34px;
    right: 16px;
    width: auto !important;
    min-width: 44px;
    z-index: 10;
  }

  .hs-header-brand .wp-block-site-logo img {
    max-width: 220px;
    max-height: 200px;
    aspect-ratio: 300 / 276;
  }

  .hs-header-brand .wp-block-site-title {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    font-size: 22px !important;
    font-weight: 700 !important;
    white-space: normal;
    min-height: 44px;
  }

  .hs-hero.wp-block-cover {
    min-height: 70vh;
  }

  /* Hero-Textbox: kein seitlicher Versatz auf kleinen Screens */
  .hero-wrapper {
    margin-left: 0;
    padding: 1.5em;
    width: 100%;
  }

  /* Seiten-Padding reduzieren */
  .hs-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 480px) {
  /* Footer Legal Nav: untereinander auf sehr kleinen Screens */
  .hs-footer-legal-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .hs-footer-legal-nav a {
    font-size: 14px !important;
    border-right: none !important;
    padding: 0 0 !important;
  }
  .hs-footer-legal-nav a:first-child {
    padding-left: 0 !important;
  }
}

/* ============================================================
   BARRIEREFREIHEIT: REDUZIERTE BEWEGUNG
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   DRUCK
   ============================================================ */

@media print {
  .hs-header,
  .hs-theme-toggle,
  .wp-block-navigation,
  .hs-footer {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000 !important;
    background: #fff !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #555;
  }
}

/* ============================================================
   SPENDEN-BEREICH
   ============================================================ */

.hs-spenden-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 0;
}

.hs-spenden-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

.hs-spenden-card {
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
}

.hs-spenden-card--primary {
  border-left: 3px solid #E8522A;
  border-color: rgba(255, 255, 255, 0.15);
  border-left-color: #E8522A;
}

.hs-spenden-card__icon {
  line-height: 1;
}

.hs-spenden-card__divider {
  width: 40px;
  height: 2px;
  background-color: #E8522A;
  margin-bottom: 16px;
}

/* IBAN-Blöcke */
.hs-iban-block {
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0;
}

.hs-iban-block__bank {
  font-size: 13px;
  font-weight: 700;
  color: #F5C9B3;
  margin-bottom: 4px;
  display: block;
}

.hs-iban-block__label {
  font-size: 13px;
  color: #F5EDE6;
  margin: 0;
}

.hs-iban-block__code {
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.05em;
  font-size: 13px;
  background: none;
  padding: 0;
  color: inherit;
}

/* Mobile: Spalten untereinander */
@media (max-width: 600px) {
  .hs-spenden-card {
    padding: 20px 16px;
  }

  .hs-spenden-badges {
    flex-direction: column;
    gap: 6px;
  }
}
