/* ============================================================
   Aurelia — Component & Layout Styles
   Bright, airy, reassuring. Mobile-first.
   ============================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }

/* The hidden attribute must win over component display rules
   (e.g. the level-3 menu accordion's display:flex). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-snug);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--text-4xl); letter-spacing: var(--ls-tight); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--forest); }
img { max-width: 100%; height: auto; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-xs);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.au-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.au-container--narrow { max-width: var(--container-narrow); }

.au-section { padding-block: var(--section-y); }
.au-section--white { background: var(--white); }
.au-section--cream { background: var(--cream); }
.au-section--green { background: var(--green-50); }
.au-section--blue  { background: var(--blue-50); }
.au-section--sand  { background: var(--sand-100); }
.au-section--dark  { background: var(--forest); }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */

/* Section label — letterspaced small-caps eyebrow in green, with rule */
.au-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--label-color);
}
.au-label::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--green-300);
}
.au-label--plain::before { display: none; }

/* Section head: label + title + optional intro */
.au-section-head { margin-bottom: var(--space-8); }
.au-section-head--center {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
}
.au-section-head h2 {
  font-size: var(--text-3xl);
  margin: 0.9rem 0 0;
}
.au-section-head .au-section-head__intro {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin: 1rem 0 0;
  line-height: 1.6;
}

.au-lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   BUTTONS — calm, rounded, confident
   ============================================================ */
.au-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 1rem;
  line-height: 1;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-soft),
              color var(--dur-base) var(--ease-soft),
              transform var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur-base) var(--ease-soft);
}
.au-btn:hover { transform: translateY(-1px); text-decoration: none; }
.au-btn svg { flex-shrink: 0; }

.au-btn--primary {
  background: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
}
.au-btn--primary:hover { background: var(--primary-hover); color: var(--primary-text); }

.au-btn--accent {
  background: var(--green-400);
  color: var(--forest);
  border-color: var(--green-400);
}
.au-btn--accent:hover { background: var(--green-500); color: var(--forest); }

.au-btn--secondary {
  background: var(--white);
  color: var(--forest);
  border-color: var(--green-300);
}
.au-btn--secondary:hover { background: var(--green-50); color: var(--forest); }

.au-btn--ghost {
  background: transparent;
  color: var(--forest);
}
.au-btn--ghost:hover { background: var(--green-50); color: var(--forest); }

.au-btn--text {
  background: transparent;
  color: var(--green-600);
  padding: 0;
  border: none;
}
.au-btn--text:hover { color: var(--forest); transform: none; }

.au-btn--sm { padding: 0.5rem 1rem; font-size: 0.875rem; gap: 0.4rem; }
.au-btn--lg { padding: 1rem 2rem; font-size: 1.0625rem; gap: 0.6rem; }
.au-btn--full { width: 100%; }
.au-btn:disabled, .au-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   BADGE — small status / category pill
   ============================================================ */
.au-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--green-100);
  color: var(--green-700);
}
.au-badge--blue    { background: var(--blue-100); color: var(--blue-700); }
.au-badge--sand    { background: var(--sand-200); color: var(--ink-700); }
.au-badge--neutral { background: var(--ink-100);  color: var(--ink-700); }
.au-badge--solid   { background: var(--forest);   color: var(--white); }

/* ============================================================
   TAG / CHIP — interactive category filter
   ============================================================ */
.au-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: var(--white);
  color: var(--ink-700);
  border: 1px solid var(--border-soft);
  text-decoration: none;
  transition: all var(--dur-base) var(--ease-soft);
}
.au-tag:hover { border-color: var(--green-300); color: var(--ink-700); }
.au-tag.is-active, .au-tag.is-active:hover {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

/* ============================================================
   AVATAR — round portrait with soft ring
   ============================================================ */
.au-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  overflow: hidden;
  background: var(--green-100);
  color: var(--green-700);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--green-200);
}
.au-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   CARD — soft, rounded surface
   ============================================================ */
.au-card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-soft),
              box-shadow var(--dur-base) var(--ease-soft);
}
.au-card--soft  { background: var(--cream);     box-shadow: none; }
.au-card--green { background: var(--green-50);  border-color: var(--green-100); box-shadow: none; }
.au-card--blue  { background: var(--blue-50);   border-color: var(--blue-100);  box-shadow: none; }
.au-card--sand  { background: var(--sand-100);  border-color: var(--sand-200);  box-shadow: none; }
.au-card--dark  { background: var(--forest);    border-color: var(--forest);    box-shadow: var(--shadow-md); color: var(--white); }
.au-card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   ICON MEDALLION — soft rounded square for line icons
   ============================================================ */
.au-medallion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background: var(--green-100);
  color: var(--green-700);
  flex-shrink: 0;
}
.au-medallion--blue { background: var(--blue-100); color: var(--blue-700); }
.au-medallion--sand { background: var(--sand-200); color: var(--ink-700); }

/* ============================================================
   SERVICE CARD — Leistung / Angebot
   ============================================================ */
.au-service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform var(--dur-base) var(--ease-soft),
              box-shadow var(--dur-base) var(--ease-soft);
}
.au-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.au-service-card .au-medallion { margin-bottom: 1.1rem; }
.au-service-card__title {
  font-size: var(--text-xl);
  margin: 0 0 0.5rem;
}
.au-service-card__text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 1.4rem;
  flex: 1;
}
.au-service-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 0.9375rem;
  color: var(--green-600);
}
.au-service-card__cta:hover { color: var(--forest); }

/* ============================================================
   TESTIMONIAL CARD
   ============================================================ */
.au-testimonial {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: 0;
  height: 100%;
}
.au-testimonial--white { background: var(--white); }
.au-testimonial--blue  { background: var(--blue-50); border-color: var(--blue-100); }
.au-testimonial__mark {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  line-height: 0.6;
  color: var(--green-300);
  height: 1.4rem;
}
.au-testimonial blockquote {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-style: normal;
  font-size: 1.0625rem;
  line-height: var(--lh-body);
  color: var(--text-body);
  flex: 1;
}
.au-testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.au-testimonial__name {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  font-size: 0.9375rem;
}
.au-testimonial__role {
  display: block;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ============================================================
   ARTICLE CARD — Magazin teaser
   ============================================================ */
.au-article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  color: inherit;
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease-soft),
              box-shadow var(--dur-base) var(--ease-soft);
}
.au-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.au-article-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--green-100) 0%, var(--blue-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.au-article-card__media--blue { background: linear-gradient(135deg, var(--blue-100) 0%, var(--green-100) 100%); }
.au-article-card__media--sand { background: linear-gradient(135deg, var(--sand-100) 0%, var(--green-100) 100%); }
.au-article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.au-article-card__media svg { color: rgba(36, 59, 48, 0.22); }
.au-article-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.au-article-card__title {
  font-size: var(--text-xl);
  margin: 0;
  line-height: 1.25;
}
.au-article-card__excerpt {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
  flex: 1;
}
.au-article-card__meta {
  color: var(--text-faint);
  font-size: 0.8125rem;
  margin-top: 0.2rem;
}

/* ============================================================
   ACCORDION — soft FAQ list
   ============================================================ */
.au-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.au-accordion__item {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-soft);
}
.au-accordion__item[open] { border-color: var(--green-200); }
.au-accordion__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: 1.0625rem;
  color: var(--text-strong);
}
.au-accordion__item summary::-webkit-details-marker { display: none; }
.au-accordion__icon {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius-circle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-100);
  color: var(--green-700);
  transition: all var(--dur-base) var(--ease-soft);
}
.au-accordion__item[open] .au-accordion__icon {
  background: var(--green-500);
  color: var(--white);
  transform: rotate(45deg);
}
.au-accordion__body {
  padding: 0 1.35rem 1.25rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ============================================================
   CALLOUT — soft HWG "Hinweis" box
   ============================================================ */
.au-callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}
.au-callout--note { background: var(--green-50); border-color: var(--green-200); }
.au-callout--sand { background: var(--sand-100); border-color: var(--sand-300); }
.au-callout__icon {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius-circle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--blue-600);
  box-shadow: var(--shadow-xs);
}
.au-callout--note .au-callout__icon { color: var(--green-600); }
.au-callout--sand .au-callout__icon { color: var(--ink-600); }
.au-callout__content {
  font-size: 0.9375rem;
  line-height: var(--lh-body);
  color: var(--text-body);
}
.au-callout__content p:last-child { margin-bottom: 0; }
.au-callout__title {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
  margin-bottom: 0.2rem;
}

/* ============================================================
   TRUST BLOCK — credentials grid with hairlines
   ============================================================ */
.au-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.au-trust__item {
  background: var(--white);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.au-trust__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 1.0625rem;
  color: var(--text-strong);
}
.au-trust__label::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green-500);
}
.au-trust__sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding-left: 1rem;
}

/* ============================================================
   FORMS — soft fields with accent focus
   ============================================================ */
.au-field { display: flex; flex-direction: column; gap: 0.4rem; width: 100%; }
.au-field label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}
.au-field .required { color: var(--green-600); }
.au-field input,
.au-field textarea,
.au-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-body);
  background: var(--white);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-muted);
  outline: none;
  width: 100%;
  transition: border-color var(--dur-base) var(--ease-soft),
              box-shadow var(--dur-base) var(--ease-soft);
}
.au-field textarea { resize: vertical; }
.au-field input:focus,
.au-field textarea:focus,
.au-field select:focus {
  border-color: var(--green-400);
  box-shadow: var(--ring);
}
.au-field__hint { font-size: 0.8125rem; color: var(--text-muted); }

.au-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

/* Checkbox — soft square with green check (DSGVO consent) */
.au-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-body);
}
.au-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: var(--radius-xs);
  margin: 0.1rem 0 0;
  cursor: pointer;
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  flex-shrink: 0;
  display: inline-grid;
  place-content: center;
  transition: all var(--dur-fast) var(--ease-soft);
}
.au-check input[type="checkbox"]:checked {
  border-color: var(--green-500);
  background: var(--green-500);
}
.au-check input[type="checkbox"]:checked::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.au-form-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* ============================================================
   NEWSLETTER BAND
   ============================================================ */
.au-newsletter {
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--green-50);
}
.au-newsletter--blue { background: var(--blue-50); }
.au-newsletter--sand { background: var(--sand-100); }
.au-newsletter--dark { background: var(--forest); }
.au-newsletter__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
.au-newsletter__copy { max-width: 30rem; }
.au-newsletter__copy h2 {
  margin: 0.6rem 0 0.5rem;
  font-size: var(--text-2xl);
}
.au-newsletter__copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.au-newsletter--dark .au-newsletter__copy h2 { color: var(--white); }
.au-newsletter--dark .au-newsletter__copy p { color: rgba(255, 255, 255, 0.8); }
.au-newsletter--dark .au-label { color: var(--green-300); }
.au-newsletter__form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex: 1 1 280px;
  max-width: 26rem;
}
.au-newsletter__form input[type="email"] {
  flex: 1 1 180px;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-muted);
  background: var(--white);
  outline: none;
  transition: border-color var(--dur-base) var(--ease-soft), box-shadow var(--dur-base) var(--ease-soft);
}
.au-newsletter__form input[type="email"]:focus {
  border-color: var(--green-400);
  box-shadow: var(--ring);
}

/* ============================================================
   HEADER — sticky, translucent on scroll
   ============================================================ */
.au-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: all var(--dur-base) var(--ease-soft);
}
.au-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--border-soft);
}
.au-header__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.au-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.au-header__wordmark {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 1.5rem;
  letter-spacing: var(--ls-snug);
  color: var(--forest);
  line-height: 1;
}
.au-header__wordmark--light { color: var(--white); }

/* Custom logo (Appearance → Customize → Site Identity → Logo): render as a compact
   mark that sits tight against the wordmark — matching the built-in sprout mark's
   scale and overriding Astra's default logo sizing/margins. */
.au-header__logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}
.au-header__logo .custom-logo {
  display: block;
  width: auto !important;
  height: 40px !important;
  max-width: none !important;
  margin: 0 !important;
}

.au-header__nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---- Primary nav: multi-level menu (up to 3 levels) ---- */
.au-nav-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.au-nav-item { position: relative; list-style: none; }
.au-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-soft);
}
.au-nav-link:hover,
.au-nav-item:focus-within > .au-nav-link { color: var(--forest); }
.au-nav-link.is-current,
.au-nav-item.current-menu-item > .au-nav-link,
.au-nav-item.current-menu-ancestor > .au-nav-link,
.au-nav-item.current_page_item > .au-nav-link {
  color: var(--forest);
  font-weight: var(--fw-semibold);
}
.au-nav-item--has-children > .au-nav-link svg {
  transition: transform var(--dur-base) var(--ease-soft);
}
.au-nav-item--has-children:hover > .au-nav-link svg,
.au-nav-item--has-children:focus-within > .au-nav-link svg { transform: rotate(180deg); }

/* Dropdown panel (level 2) */
.au-submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur-base) var(--ease-soft), transform var(--dur-base) var(--ease-soft);
  z-index: 60;
}
/* Transparent bridge across the 6px gap so the pointer keeps hovering the
   .au-nav-item while travelling from the top-level link into the panel —
   otherwise the dropdown closes mid-trip. Inherits the panel's visibility,
   so it's only active while the panel is open. */
.au-submenu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.au-nav-item:hover > .au-submenu,
.au-nav-item:focus-within > .au-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.au-submenu__list,
.au-submenu__sub { list-style: none; margin: 0; padding: 0; }
.au-submenu__item { list-style: none; }
.au-submenu__link {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
}
.au-submenu__link:hover,
.au-submenu__link.is-current { background: var(--green-50); color: var(--forest); }

/* Accordion row (level 3): label link + caret toggle */
.au-submenu__row { display: flex; align-items: center; gap: 0.1rem; }
.au-submenu__caret {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft);
}
.au-submenu__caret:hover { background: var(--green-50); color: var(--forest); }
.au-submenu__caret svg { transition: transform var(--dur-base) var(--ease-soft); }
.au-submenu__item.is-open > .au-submenu__row > .au-submenu__caret svg { transform: rotate(180deg); }

/* Nested branch (level 3) — indented with a tree line */
.au-submenu__sub {
  margin: 0.15rem 0 0.3rem 0.6rem;
  padding-left: 0.6rem;
  border-left: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.au-submenu__sub[hidden] { display: none; }
.au-submenu__sub .au-submenu__link { font-size: 0.875rem; padding: 0.5rem 0.6rem; }

.au-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.au-header__menu-toggle {
  display: none;
  background: var(--green-50);
  border: 1px solid var(--border-soft);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--forest);
}
.au-header__menu-toggle .hidden { display: none; }

.au-header__mobile-nav {
  display: none;
  border-top: 1px solid var(--border-soft);
  background: var(--white);
  padding: var(--gutter);
  flex-direction: column;
  gap: 0.25rem;
}
.au-header__mobile-nav.is-open { display: flex; }

/* Mobile nav reuses the walker markup — sub-levels expand inline, level 3
   collapses behind a caret (toggled by JS). */
.au-header__mobile-nav .au-nav-row {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
.au-header__mobile-nav .au-nav-item { position: static; }
.au-header__mobile-nav .au-nav-link {
  justify-content: space-between;
  padding: 0.85rem 0.5rem;
  font-size: 1.05rem;
  font-weight: var(--fw-medium);
  color: var(--text-body);
  border-bottom: 1px solid var(--ink-100);
  border-radius: 0;
}
.au-header__mobile-nav .au-nav-link.is-current,
.au-header__mobile-nav .au-nav-item.current-menu-item > .au-nav-link,
.au-header__mobile-nav .au-nav-item.current-menu-ancestor > .au-nav-link,
.au-header__mobile-nav .au-nav-item.current_page_item > .au-nav-link {
  color: var(--forest);
  font-weight: var(--fw-semibold);
}
/* Dropdown panel becomes a static inline block on mobile */
.au-header__mobile-nav .au-submenu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  min-width: 0;
  padding: 0.2rem 0 0.5rem 0.85rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.au-header__mobile-nav .au-submenu::before { display: none; }
.au-header__mobile-nav .au-submenu__link { font-size: 0.95rem; padding: 0.6rem 0.5rem; }
.au-header__mobile-nav .au-submenu__caret { width: 36px; min-width: 36px; height: 36px; }
.au-header__mobile-cta { margin-top: 0.85rem; }

/* ============================================================
   HERO (front page)
   ============================================================ */
.au-hero {
  position: relative;
  background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 70%);
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.au-hero__blob {
  position: absolute;
  top: -120px;
  right: -140px;
  width: 420px;
  opacity: 0.4;
  pointer-events: none;
}
.au-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}
.au-hero h1 {
  font-size: var(--text-5xl);
  margin: 1.1rem 0 0;
  line-height: 1.05;
}
.au-hero__lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 1.4rem 0 0;
  max-width: 32rem;
}
.au-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
.au-hero__proof {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.au-hero__proof-avatars { display: inline-flex; }
.au-hero__proof-avatars span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-200);
  border: 2px solid var(--white);
}
.au-hero__proof-avatars span + span { margin-left: -8px; }
.au-hero__proof-avatars span:nth-child(2) { background: var(--blue-200); }

.au-hero__media { position: relative; }
.au-hero__media .au-image-frame { aspect-ratio: 4 / 5; }
.au-hero__float-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  /* Above anything pinned inside the frame — an image caption, for one. */
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.au-hero__float-card .au-medallion {
  width: 42px;
  height: 42px;
}
/*
 * The card overhangs the bottom-left corner of the hero image, which is where
 * an image caption (AI notice) would otherwise sit — and be covered. Send it to
 * the opposite corner instead.
 */
.au-hero__media .ai-image-notice__text.ai-image-notice__text.ai-image-notice__text {
  padding-left: 6rem;
  text-align: right;
}
.au-hero__float-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
  font-size: 0.95rem;
}
.au-hero__float-sub {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Soft image frame — rounded, on-brand gradient placeholder */
.au-image-frame {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-100) 0%, var(--blue-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.au-image-frame--blue { background: linear-gradient(135deg, var(--blue-100) 0%, var(--green-100) 100%); }
.au-image-frame--sand { background: linear-gradient(135deg, var(--sand-100) 0%, var(--green-100) 100%); }
.au-image-frame--square { aspect-ratio: 1 / 1; }
.au-image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/*
 * An image block inside the frame renders as a <figure>. Its image is taken out
 * of flow by the rule above, so the figure has nothing left to size it and
 * collapses — invisibly, until something makes it the image's containing block.
 * A caption does exactly that (the AI Image Notice plugin sets `position:
 * relative` on any figure it writes into), and the image then resolves its
 * inset against the collapsed figure and disappears with it. Filling the frame
 * keeps the crop and pins the caption to the frame's bottom edge.
 */
.au-image-frame figure {
  position: absolute;
  inset: 0;
  margin: 0;
}
/*
 * Frames are rounded hard (40px), so a caption pinned to the bottom edge has to
 * start well inside the curve. Tripled class to outrank the AI Image Notice
 * plugin's own doubled-class rule, which loads after the theme.
 */
.au-image-frame .ai-image-notice__text.ai-image-notice__text.ai-image-notice__text {
  padding-inline: 1.5rem;
}
.au-image-frame > svg { color: rgba(36, 59, 48, 0.18); }

/* Page hero — centered, gentle gradient (inner pages, archives) */
.au-page-hero {
  background: linear-gradient(180deg, var(--green-50), var(--white));
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.au-page-hero__inner {
  max-width: 44rem;
  margin-inline: auto;
}
.au-page-hero h1 {
  font-size: var(--text-4xl);
  margin: 1rem 0 0;
}
.au-page-hero__intro {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 1.1rem 0 0;
}

/* ============================================================
   GRIDS
   ============================================================ */
.au-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.au-grid--wide    { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.au-grid--fill    { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.au-grid--steps   { gap: 1.5rem; }

.au-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.au-split--media-narrow { grid-template-columns: 0.9fr 1.1fr; }
.au-split--start { align-items: start; }

/* ============================================================
   APPROACH STEPS (So arbeiten wir)
   ============================================================ */
.au-step { padding: var(--space-6); }
.au-step__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.au-step__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-circle);
  background: var(--green-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-600);
}
.au-step__num {
  font-family: var(--font-heading);
  font-weight: var(--fw-extra);
  font-size: 1.5rem;
  color: var(--green-200);
}
.au-step h3 { font-size: var(--text-xl); margin: 0 0 0.5rem; }
.au-step p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* Numbered step list (Leistung detail / Ablauf) */
.au-steplist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.au-steplist__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.au-steplist__num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-500);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 0.85rem;
}
.au-steplist__item strong {
  font-family: var(--font-heading);
  color: var(--text-strong);
  font-size: 1.05rem;
}
.au-steplist__item p {
  margin: 0.2rem 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   INFO LIST (Auf einen Blick / Öffnungszeiten / Kontakt)
   ============================================================ */
.au-info-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}
.au-info-row:last-child { border-bottom: none; }
.au-info-row svg { color: var(--green-600); flex-shrink: 0; }
.au-info-row__key { color: var(--text-muted); flex: 1; }
.au-info-row__val {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  color: var(--text-strong);
}

/* ============================================================
   FOOTER — forest, columns + legal row
   ============================================================ */
.au-footer {
  background: var(--forest);
  color: var(--white);
}
.au-footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: var(--space-9);
}
.au-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.5rem;
}
.au-footer__tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-top: 1.1rem;
  max-width: 20rem;
  line-height: 1.6;
}
.au-footer__social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.4rem;
}
.au-footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--dur-base) var(--ease-soft);
}
.au-footer__social-link:hover { background: rgba(255, 255, 255, 0.2); color: var(--white); }
.au-footer__col-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.au-footer__link {
  display: block;
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
}
.au-footer__link:hover { color: var(--white); }
.au-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.au-footer__copyright {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}
.au-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.au-footer__legal-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
}
.au-footer__legal-link:hover { color: var(--white); }

/* ============================================================
   SINGLE ARTICLE (Magazin)
   ============================================================ */
.au-article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.4rem;
}
.au-article__back:hover { color: var(--forest); }
.au-article__title {
  font-size: var(--text-4xl);
  margin: 1rem 0 1rem;
}
.au-article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}
.au-article__meta .au-avatar { width: 36px; height: 36px; font-size: 0.8rem; }
.au-article__hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.au-article__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.au-article__content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-body);
}
.au-article__content > p:first-child {
  font-size: 1.3rem;
  color: var(--text-strong);
  font-weight: var(--fw-medium);
  line-height: 1.6;
}
.au-article__content h2 { font-size: var(--text-2xl); margin-top: 2rem; }
.au-article__content h3 { font-size: var(--text-xl); margin-top: 1.6rem; }
.au-article__content blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  background: var(--blue-50);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-heading);
  font-style: normal;
  font-size: 1.25rem;
  color: var(--text-strong);
  line-height: 1.5;
}
.au-article__content blockquote p { margin: 0; }
.au-article__content img { border-radius: var(--radius-lg); }
.au-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

/* ============================================================
   ARCHIVE (Magazin)
   ============================================================ */
.au-archive__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-7);
}
.au-pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: var(--space-8);
}
.au-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.8rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--white);
  color: var(--ink-700);
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  font-size: 0.9375rem;
}
.au-pagination .page-numbers.current {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}
.au-pagination .page-numbers:hover:not(.current) { border-color: var(--green-300); color: var(--forest); }

/* ============================================================
   PAGE (static) content defaults
   ============================================================ */
.au-page-content {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-body);
}
.au-page-content h2 { font-size: var(--text-xl); margin: 2rem 0 0.6rem; }
.au-page-content a { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   GUTENBERG BLOCK COMPAT
   ============================================================ */
.au-page-content .wp-block-button__link,
.entry-content .wp-block-button__link {
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--primary-text);
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  padding: 0.75rem 1.5rem;
  transition: background var(--dur-base) var(--ease-soft);
}
.au-page-content .wp-block-button__link:hover,
.entry-content .wp-block-button__link:hover { background: var(--primary-hover); }
.au-page-content .is-style-outline .wp-block-button__link,
.entry-content .is-style-outline .wp-block-button__link {
  background: var(--white);
  color: var(--forest);
  border: 1px solid var(--green-300);
}
.alignwide { max-width: var(--container-max); margin-inline: auto; }
.alignfull { width: 100%; }

/* ============================================================
   REVEAL ANIMATION
   The hidden state is injected from theme.js (only when JS +
   IntersectionObserver are available) so content is never
   gated on a class-triggered transition. No CSS needed here.
   ============================================================ */

/* ============================================================
   ASTRA OVERRIDES
   ============================================================ */
/* Scroll-to-top: align with the brand (forest pill, soft shadow) */
#ast-scroll-top,
.ast-scroll-top-icon {
  background: var(--forest) !important;
  color: var(--white);
  border-radius: var(--radius-circle) !important;
  box-shadow: var(--shadow-md);
}
#ast-scroll-top:hover { background: var(--forest-700) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .au-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .au-header__nav { display: none; }
  .au-header__cta-desktop { display: none; }
  .au-header__menu-toggle { display: inline-flex; }

  .au-hero__grid,
  .au-split,
  .au-split--media-narrow {
    grid-template-columns: 1fr;
  }
  .au-hero__media { max-width: 28rem; }
  .au-hero__float-card { left: 12px; }
  /*
   * The card now spans nearly the whole bottom edge of the narrower frame, so
   * the image caption moves to the top edge — with its scrim flipped to match.
   */
  .au-hero__media .ai-image-notice__text.ai-image-notice__text.ai-image-notice__text {
    top: 0;
    bottom: auto;
    padding: 0.55em 1.5rem 1.6em;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  }
  .au-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .au-footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .au-newsletter__form { max-width: none; }
}

/* ============================================================
   SIDEBAR — Astra "Seitenleiste" control (Design → Customizer)
   Position: astra_page_layout()  ·  Width: site-sidebar-width
   Style:    astra_is_sidebar_style_boxed()
   Own class names on purpose: Astra ships #primary/#secondary width,
   float and padding rules that would fight this grid.
   ============================================================ */

/* The merged article section (hero + body were two stacked <section>s). */
.au-section--article .au-article__content { margin-top: var(--space-9); }

.au-layout__main { min-width: 0; }
.au-sidebar      { min-width: 0; }

.au-layout--left,
.au-layout--right {
  display: grid;
  align-items: start;
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: var(--space-9);
}

/* --au-main-col / --au-side-col come from aurelia_output_sidebar_css().
   Fallbacks match Astra's 30% default. minmax(0,…) stops long words,
   <pre> and wide images from blowing the track out. */
.au-layout--right {
  grid-template-columns: minmax(0, var(--au-main-col, 70fr)) minmax(0, var(--au-side-col, 30fr));
}
.au-layout--left {
  grid-template-columns: minmax(0, var(--au-side-col, 30fr)) minmax(0, var(--au-main-col, 70fr));
}

/* Article stays first in the DOM for reading order and SEO; the grid
   places it visually for the left-sidebar case. */
.au-layout--right .au-layout__main { grid-column: 1; grid-row: 1; }
.au-layout--right .au-sidebar      { grid-column: 2; grid-row: 1; }
.au-layout--left  .au-layout__main { grid-column: 2; grid-row: 1; }
.au-layout--left  .au-sidebar      { grid-column: 1; grid-row: 1; }

/* Sticky only when Astra's "Klebrige Seitenleiste" is on. */
body.ast-sticky-sidebar .au-sidebar__inner {
  position: sticky;
  top: 96px;                       /* header is 76px + breathing room */
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

@media (max-width: 960px) {
  .au-layout--left,
  .au-layout--right { display: block; }
  .au-sidebar { margin-top: var(--space-9); }
  body.ast-sticky-sidebar .au-sidebar__inner {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

/* ---- Widget rhythm ---- */
.au-sidebar .widget { margin: 0 0 var(--space-7); }
.au-sidebar .widget:last-child { margin-bottom: 0; }

/* ---- Boxed (Seitenleisten-Stil → Box-Layout) ---- */
.au-sidebar--boxed .widget {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-5);
}

/* ---- Titles: classic (.widget-title) and block-based widgets ---- */
.au-sidebar .widget-title,
.au-sidebar .widget_block > h1,
.au-sidebar .widget_block > h2,
.au-sidebar .widget_block > h3,
.au-sidebar .widget_block > h4,
.au-sidebar .wp-block-heading {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-strong);
  margin: 0 0 var(--space-4);
  line-height: var(--lh-snug);
}

/* ---- Generic ---- */
.au-sidebar ul,
.au-sidebar ol { list-style: none; margin: 0; padding: 0; }
.au-sidebar li { margin: 0 0 var(--space-3); line-height: var(--lh-snug); }
.au-sidebar li:last-child { margin-bottom: 0; }
.au-sidebar a {
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-soft);
}
.au-sidebar a:hover,
.au-sidebar a:focus-visible { color: var(--green-600); }
.au-sidebar p {
  margin: 0 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--lh-body);
}
.au-sidebar__inner > *:last-child { margin-bottom: 0; }
.au-sidebar img { max-width: 100%; height: auto; }
.au-sidebar select,
.au-sidebar .wp-block-categories__dropdown {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: var(--text-sm);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-body);
}

/* ---- Search: classic widget + core Search block ----
   Astra absolutely-positions the button and makes the submit text
   transparent so its own icon can overlay the field. Undo all of it. */
.au-sidebar .search-form,
.au-sidebar .wp-block-search__inside-wrapper {
  display: flex;
  gap: var(--space-2);
  position: relative;
}
.au-sidebar .search-field,
.au-sidebar .wp-block-search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: var(--text-sm);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text-body);
}
.au-sidebar .search-field:focus-visible,
.au-sidebar .wp-block-search__input:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-color: var(--green-300);
}
.au-sidebar .widget_search .search-form button,
.au-sidebar .widget_search .search-form input[type="submit"],
.au-sidebar .widget_search .search-form input[type="submit"]:hover,
.au-sidebar .widget_search .search-form input[type="submit"]:focus,
.au-sidebar .search-submit,
.au-sidebar .wp-block-search__button {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  max-width: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: var(--white);
  cursor: pointer;
}
.au-sidebar .widget_search .search-form .search-field { padding-right: 0.9rem; }

/* ---- Categories / Archives / Pages ---- */
.au-sidebar .wp-block-categories-list,
.au-sidebar .wp-block-archives-list,
.au-sidebar .wp-block-page-list { list-style: none; margin: 0; padding: 0; }
.au-sidebar .cat-item,
.au-sidebar .wp-block-categories-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
}
.au-sidebar__count {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.au-sidebar .children { margin-top: var(--space-2); padding-left: var(--space-4); }

/* ---- Recent / Latest Posts ---- */
.au-sidebar .wp-block-latest-posts__list,
.au-sidebar .widget_recent_entries ul { display: grid; gap: var(--space-4); }
.au-sidebar .wp-block-latest-posts__featured-image img {
  border-radius: var(--radius-sm);
  width: 100%;
}
.au-sidebar .wp-block-latest-posts__post-title,
.au-sidebar .widget_recent_entries a {
  display: block;
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
  line-height: var(--lh-snug);
}
.au-sidebar .wp-block-latest-posts__post-date,
.au-sidebar__meta {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.au-sidebar .wp-block-latest-posts__post-excerpt {
  margin: 0.25rem 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---- Tag cloud. Core inlines style="font-size:22.4pt" per tag, and an
        author !important declaration outranks a non-important inline. ---- */
.au-sidebar .wp-block-tag-cloud a,
.au-sidebar .tagcloud a {
  font-size: var(--text-xs) !important;
  display: inline-block;
  margin: 0 4px 6px 0;
  padding: 0.35em 0.8em;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--text-body);
  line-height: 1.5;
}
.au-sidebar .wp-block-tag-cloud a:hover,
.au-sidebar .tagcloud a:hover {
  background: var(--green-100);
  border-color: var(--green-300);
  color: var(--forest);
}

/* ---- Other blocks a site owner may drop in ---- */
.au-sidebar .wp-block-group,
.au-sidebar .widget_block > .wp-block-group { margin: 0; }
.au-sidebar .wp-block-image { margin: 0 0 var(--space-3); }
.au-sidebar .wp-block-image img { border-radius: var(--radius-md); }
.au-sidebar .wp-block-buttons { margin: 0; }
.au-sidebar .wp-block-button__link {
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
}
.au-sidebar .wp-block-latest-comments,
.au-sidebar .wp-block-latest-comments__comment {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}
.au-sidebar .wp-block-calendar table,
.au-sidebar .widget_calendar table { width: 100%; font-size: var(--text-sm); }
.au-sidebar .wp-block-social-links { margin: 0; }
.au-sidebar .wp-block-separator { margin: var(--space-5) 0; border-color: var(--border-soft); }

/* ---- Starter-widget CTA + editor-only hint ---- */
.au-sidebar__cta .au-btn { width: 100%; justify-content: center; }
.au-sidebar__hint {
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-top: var(--space-5);
}
