/* Arbeitsschutzkurse — Header & Footer CI */
:root {
  --as-red: #B12227;
  --as-red-dark: #99191E;
  --as-black: #111111;
  --as-text: #333333;
  --as-muted: #5A5A5A;
  --as-border: #ECECEC;
  --as-bg: #ffffff;
  --as-bg-soft: #FAFAFA;
  /* Shared content width with marketing (--mk-max) and SCP/LearnDash */
  --as-max: 1200px;
  --as-content-max: 1200px;
  --as-content-pad-x: 24px;
  --as-radius: 12px;
  --as-shadow: 0 4px 20px rgba(17, 17, 17, 0.06);
  --as-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Prevent browser/theme default serif on headings site-wide */
body,
body button,
body input,
body select,
body textarea {
  font-family: var(--as-font) !important;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body strong,
body b {
  font-family: var(--as-font) !important;
}

@media (max-width: 768px) {
  :root {
    --as-content-pad-x: 18px;
  }
}

.as-site-header,
.as-site-footer {
  font-family: var(--as-font);
  color: var(--as-text);
}

/* WP Admin-Bar: Hover darf Namen nicht weiß-auf-hell machen (Elementor-Linkfarben) */
#wpadminbar .ab-top-menu > li > .ab-item,
#wpadminbar .ab-top-menu > li > .ab-item .ab-label,
#wpadminbar #wp-admin-bar-my-account > .ab-item,
#wpadminbar #wp-admin-bar-my-account > .ab-item .display-name,
#wpadminbar #wp-admin-bar-my-account > .ab-item .username {
  color: #f0f0f1 !important;
}

#wpadminbar .ab-top-menu > li:hover > .ab-item,
#wpadminbar .ab-top-menu > li.hover > .ab-item,
#wpadminbar .ab-top-menu > li > .ab-item:focus,
#wpadminbar #wp-admin-bar-my-account:hover > .ab-item,
#wpadminbar #wp-admin-bar-my-account.hover > .ab-item {
  color: #f0f0f1 !important;
  background: #2c3338 !important;
}

#wpadminbar .ab-submenu .ab-item,
#wpadminbar .ab-submenu .ab-item .ab-label {
  color: #3c434a !important;
}

#wpadminbar .ab-submenu .ab-item:hover,
#wpadminbar .ab-submenu .ab-item:focus {
  color: #072c51 !important;
  background: #f0f0f1 !important;
}

/* Header-Profilname bleibt auf Hover dunkel lesbar */
.as-site-header .as-user-menu__toggle,
.as-site-header .as-user-menu__toggle:hover,
.as-site-header .as-user-menu.is-open .as-user-menu__toggle,
.as-site-header .as-user-menu__name {
  color: var(--as-text) !important;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.as-site-header {
  position: relative;
  z-index: 1000;
  background: var(--as-bg);
  border-bottom: 1px solid var(--as-border);
  box-shadow: var(--as-shadow);
}

.as-header-inner {
  max-width: var(--as-max);
  margin: 0 auto;
  padding: 16px var(--as-content-pad-x);
  display: flex;
  align-items: center;
  gap: 24px;
}

.as-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--as-black);
  flex-shrink: 0;
}

.as-brand img,
.as-brand svg,
.as-custom-logo {
  width: auto;
  max-width: 220px;
  max-height: 52px;
  display: block;
}

.as-brand--logo-only img,
.as-brand--logo-only .as-custom-logo {
  max-width: 240px;
}

.as-brand-text {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Höhere Spezifität + !important: Elementor-Kit stylt sonst alle <button> rot/rund. */
.as-site-header .as-nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border: 1px solid var(--as-border) !important;
  border-radius: var(--as-radius) !important;
  background: var(--as-bg) !important;
  color: var(--as-black) !important;
  font-family: var(--as-font) !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.as-site-header .as-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--as-black);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.as-site-header.is-open .as-nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.as-site-header.is-open .as-nav-toggle span:nth-child(2) {
  opacity: 0;
}
.as-site-header.is-open .as-nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.as-header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.as-header-menu {
  display: flex;
  align-items: center;
  justify-content: center;
}

.as-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.as-menu a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--as-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.as-menu a:hover,
.as-menu .current-menu-item > a,
.as-menu .current_page_item > a {
  background: rgba(166, 28, 46, 0.08);
  color: var(--as-red);
}

.as-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.as-header-actions__label {
  display: none;
}

.as-header-actions__group {
  display: flex;
  align-items: center;
}

.as-header-actions__account {
  gap: 10px;
}

/* ── Header: Benachrichtigung + Profil-Pille ───────────────────────────── */
.as-header-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.as-notify-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--as-border);
  background: #fff;
  color: var(--as-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.as-notify-btn i {
  font-size: 1rem;
}

.as-notify-btn:hover,
.as-notify-btn.is-open {
  color: var(--as-red);
  border-color: rgba(166, 28, 46, 0.25);
  background: rgba(166, 28, 46, 0.04);
}

.as-notify-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--as-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}

.as-user-menu {
  position: relative;
}

.as-user-menu--desktop {
  position: relative;
}

.as-user-menu__mobile-link {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--as-border);
  background: #f9fafb;
  color: var(--as-text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.as-user-menu__mobile-link:hover {
  border-color: rgba(166, 28, 46, 0.25);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  color: var(--as-text);
}

/* Elementor-Kit darf Header-Buttons nicht einfärben */
.as-site-header .as-notify-btn,
.as-site-header .as-user-menu__toggle {
  font-family: var(--as-font) !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  box-shadow: none;
}

.as-site-header .as-notify-btn {
  background: #fff !important;
  color: var(--as-muted) !important;
  border: 1px solid var(--as-border) !important;
  border-radius: 50% !important;
  padding: 0 !important;
}

.as-site-header .as-notify-btn:hover,
.as-site-header .as-notify-btn.is-open {
  background: rgba(166, 28, 46, 0.04) !important;
  color: var(--as-red) !important;
  border-color: rgba(166, 28, 46, 0.25) !important;
}

.as-site-header .as-user-menu__toggle {
  background: #f9fafb !important;
  color: var(--as-text) !important;
  border: 1px solid var(--as-border) !important;
  border-radius: 999px !important;
  padding: 4px 12px 4px 4px !important;
}

.as-site-header .as-user-menu__toggle:hover,
.as-site-header .as-user-menu.is-open .as-user-menu__toggle {
  background: #fff !important;
  color: var(--as-text) !important;
  border-color: rgba(166, 28, 46, 0.25) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}

.as-user-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--as-border);
  background: #f9fafb;
  color: var(--as-text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.as-user-menu__toggle:hover,
.as-user-menu.is-open .as-user-menu__toggle {
  border-color: rgba(166, 28, 46, 0.25);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.as-user-menu__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.as-user-menu__avatar .avatar,
.as-user-menu__avatar .as-profile-avatar,
.as-user-menu__avatar .as-profile-avatar--img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.as-user-menu__avatar .as-profile-avatar--initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.as-user-menu__name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.as-user-menu__chev {
  font-size: 0.7rem;
  color: var(--as-muted);
  transition: transform 0.15s;
}

.as-user-menu.is-open .as-user-menu__chev {
  transform: rotate(180deg);
}

.as-user-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--as-border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.as-user-menu__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--as-border);
  background: #fafbfc;
}

.as-user-menu__head-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
}

.as-user-menu__head-avatar .avatar,
.as-user-menu__head-avatar .as-profile-avatar,
.as-user-menu__head-avatar .as-profile-avatar--img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.as-user-menu__head-avatar .as-profile-avatar--initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.as-user-menu__head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.as-user-menu__head-text strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--as-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-user-menu__head-text span {
  font-size: 0.78rem;
  color: var(--as-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-user-menu__list {
  list-style: none;
  margin: 0;
  padding: 6px;
}

.as-user-menu__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--as-text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.as-user-menu__list a i {
  width: 16px;
  text-align: center;
  color: var(--as-muted);
  font-size: 0.95rem;
}

.as-user-menu__list a:hover {
  background: rgba(166, 28, 46, 0.06);
  color: var(--as-red);
}

.as-user-menu__list a:hover i {
  color: var(--as-red);
}

.as-user-menu__footer {
  padding: 6px;
  border-top: 1px solid var(--as-border);
}

.as-user-menu__logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}

.as-user-menu__logout i {
  width: 16px;
  text-align: center;
}

.as-user-menu__logout:hover {
  background: rgba(180, 35, 24, 0.06);
}

.as-notify-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  min-width: 220px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--as-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  font-size: 0.85rem;
  color: var(--as-muted);
  text-align: center;
}

.as-lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
  align-self: center;
  padding: 0;
  z-index: 60;
  flex-shrink: 0;
}

.as-lang-switcher .gtranslate_wrapper {
  position: relative;
  z-index: 60;
  line-height: 0;
}

/* GTranslate dwf: flag-only compact trigger; dropdown opens below (site-wide). */
.as-lang-switcher .gt_switcher {
  position: relative !important;
  overflow: visible !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  line-height: normal !important;
  font-family: inherit !important;
  z-index: 60;
}

.as-lang-switcher .gt_selected,
.as-lang-switcher .gt_selected a {
  background: transparent !important;
  box-shadow: none !important;
}

.as-lang-switcher .gt_selected a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0 !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  padding: 0 !important;
  border: 1px solid rgba(128, 128, 128, 0.35) !important;
  border-radius: 50% !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  white-space: nowrap;
  overflow: hidden !important;
}

.as-lang-switcher .gt_selected a:hover {
  border-color: rgba(177, 34, 39, 0.5) !important;
  background: rgba(177, 34, 39, 0.06) !important;
}

.as-lang-switcher .gt_selected a img {
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  opacity: 1 !important;
  display: block !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

/* Hide language name / chevron text nodes next to flag */
.as-lang-switcher .gt_selected a span,
.as-lang-switcher .gt_selected .gt_current,
.as-lang-switcher .gt_selected .gt_current_lang,
.as-lang-switcher .gt_selected a::after {
  display: none !important;
  content: none !important;
}

.as-lang-switcher .gt_option {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  right: 0 !important;
  left: auto !important;
  width: auto !important;
  min-width: 148px !important;
  z-index: 10060 !important;
  margin: 0 !important;
  padding: 6px 0 !important;
  border: 1px solid var(--as-border, #ececec) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16) !important;
  box-sizing: border-box !important;
}

.as-lang-switcher .gt_option a {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 12px !important;
  color: var(--as-black, #111) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  background: transparent !important;
}

.as-lang-switcher .gt_option a:hover,
.as-lang-switcher .gt_option a.gt_current {
  background: #f5f5f5 !important;
}

.as-lang-switcher .gt_option a img {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  opacity: 1 !important;
}

.as-site-header,
.as-mkt-header,
.as-mkt-header__inner,
.as-header-actions,
.as-mkt-header-actions {
  overflow: visible !important;
}

.as-lang-switcher,
.as-lang-switcher a,
.as-lang-switcher .gt_switcher,
.as-lang-switcher .gt_switcher a,
.as-lang-switcher .gt_selected,
.as-lang-switcher .gt_selected a,
.as-lang-switcher .glink,
.as-lang-switcher span {
  color: var(--as-black) !important;
}

.as-lang-switcher a:hover,
.as-lang-switcher .gt_selected a:hover {
  color: var(--as-text) !important;
}

.as-auth-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--as-text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.as-auth-link i {
  font-size: 1rem;
  color: var(--as-muted);
  transition: color 0.15s;
}

.as-auth-link:hover {
  color: var(--as-red);
  background: rgba(166, 28, 46, 0.06);
}

.as-auth-link:hover i {
  color: var(--as-red);
}

.as-auth-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 1px solid var(--as-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--as-muted);
  text-decoration: none;
  font-size: 1rem;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}

.as-auth-icon .avatar,
.as-auth-icon .as-profile-avatar,
.as-auth-icon .as-profile-avatar--img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: none;
}

.as-auth-icon .as-profile-avatar--initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.as-auth-icon:has(.avatar),
.as-auth-icon:has(.as-profile-avatar--img) {
  background: #e5e7eb;
  padding: 0;
}

.as-auth-icon:hover {
  color: var(--as-red);
  border-color: rgba(166, 28, 46, 0.25);
  background: rgba(166, 28, 46, 0.06);
  box-shadow: 0 0 0 3px rgba(166, 28, 46, 0.1);
}

.as-auth-icon:has(.avatar):hover {
  background: #e5e7eb;
}

.as-auth-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--as-text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.as-auth-logout i {
  font-size: 1rem;
  color: var(--as-muted);
  transition: color 0.15s;
}

.as-auth-logout:hover {
  color: var(--as-red);
  background: rgba(166, 28, 46, 0.06);
}

.as-auth-logout:hover i {
  color: var(--as-red);
}

/* CTA — hohe Spezifität, damit Hello/Elementor nicht überschreibt */
.as-site-header a.as-header-cta,
.as-site-header .as-header-actions a.as-header-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 11px 22px !important;
  border-radius: 999px !important;
  background: var(--as-red) !important;
  background-color: var(--as-red) !important;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  white-space: nowrap;
  transition: background 0.15s, background-color 0.15s;
}

.as-site-header a.as-header-cta:hover,
.as-site-header .as-header-actions a.as-header-cta:hover,
.as-site-header a.as-header-cta:focus,
.as-site-header .as-header-actions a.as-header-cta:focus {
  background: var(--as-red-dark) !important;
  background-color: var(--as-red-dark) !important;
  color: #fff !important;
}

/* ── Zugangssperre (Dashboard, Fortschritte, Kurse) ───────────────────── */

.as-access-gate {
  box-sizing: border-box;
  max-width: 560px;
  margin: 2rem auto 2.5rem;
  padding: 2rem 1.75rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--as-border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(17, 17, 17, 0.06);
}

.as-access-gate__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(166, 28, 46, 0.08);
  color: var(--as-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.as-access-gate__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--as-black);
  font-family: var(--as-font) !important;
  letter-spacing: -0.02em;
}

.as-access-gate__message {
  margin: 0 0 1.5rem;
  color: var(--as-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.as-access-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.as-access-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.as-access-gate__btn--primary {
  background: var(--as-red);
  color: #fff;
}

.as-access-gate__btn--primary:hover {
  background: var(--as-red-dark);
  color: #fff;
}

.as-access-gate__btn--secondary {
  background: #fff;
  color: var(--as-text);
  border: 1px solid var(--as-border);
}

.as-access-gate__btn--secondary:hover {
  border-color: var(--as-red);
  color: var(--as-red);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.as-site-footer {
  background: var(--as-bg-soft);
  border-top: 1px solid var(--as-border);
  margin-top: auto;
}

.as-footer-inner {
  max-width: var(--as-max);
  margin: 0 auto;
  padding: 48px var(--as-content-pad-x) 28px;
}

.as-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.as-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.as-footer-brand .as-brand {
  align-self: flex-start;
}

.as-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.85rem;
}

.as-footer-legal a {
  color: var(--as-muted);
  text-decoration: none;
}

.as-footer-legal a:hover {
  color: var(--as-red);
}

.as-footer-col h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--as-black);
}

.as-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.as-footer-links a {
  color: var(--as-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.as-footer-links a:hover {
  color: var(--as-red);
}

.as-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.as-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(166, 28, 46, 0.1);
  color: var(--as-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.as-contact-label {
  display: block;
  font-weight: 700;
  color: var(--as-black);
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.as-contact-value {
  color: var(--as-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.as-contact-value:hover {
  color: var(--as-red);
}

.as-social {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.as-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(166, 28, 46, 0.1);
  color: var(--as-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.as-social a:hover {
  background: var(--as-red);
  color: #fff;
}

.as-site-header .fas,
.as-site-footer .fas {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
}

.as-site-header .fab,
.as-site-footer .fab {
  font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands";
  font-weight: 400;
}

.as-footer-bottom {
  max-width: var(--as-max);
  margin: 0 auto;
  padding: 18px var(--as-content-pad-x) 28px;
  border-top: 1px solid var(--as-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--as-muted);
}

.as-footer-bottom a {
  color: var(--as-red);
  text-decoration: none;
  font-weight: 600;
}

.as-footer-bottom a:hover {
  text-decoration: underline;
}

/* ── Desktop: Logo links, Menü mittig, Aktionen rechts ─────────────────── */

@media (min-width: 769px) {
  .as-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 24px;
  }

  .as-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .as-nav-toggle {
    display: none;
  }

  .as-site-header .as-header-nav {
    display: contents;
  }

  .as-header-menu {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .as-header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .as-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .as-nav-toggle {
    display: inline-flex;
  }

  /* Legacy dropdown layout — do not apply to marketing header (drawer). */
  .as-header-inner:not(.as-mkt-header__inner) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .as-site-header:not(.as-mkt-header) .as-header-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--as-bg);
    border-bottom: 1px solid var(--as-border);
    box-shadow: var(--as-shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    gap: 12px;
    width: 100%;
  }

  .as-site-header:not(.as-mkt-header).is-open .as-header-nav {
    display: flex;
  }

  .as-site-header:not(.as-mkt-header) .as-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--as-border);
  }

  /* Marketing header: always one compact row */
  .as-mkt-header .as-mkt-header__inner,
  .as-mkt-header .as-header-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .as-mkt-header .as-header-actions,
  .as-mkt-header .as-mkt-header-actions {
    width: auto !important;
    flex: 0 0 auto !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .as-mkt-header .as-header-actions__account,
  .as-mkt-header .as-mkt-header-actions--user {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
  }

  .as-mkt-header .as-user-menu__name,
  .as-mkt-header .as-user-menu__chev {
    display: none !important;
  }

  .as-mkt-header .as-user-menu__toggle {
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }

  .as-mkt-header .as-header-user {
    width: auto !important;
    justify-content: flex-end !important;
    gap: 6px !important;
  }

  .as-mkt-header .as-user-menu {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  /* Bar: avatar chip only; hide full-width mobile link */
  .as-mkt-header .as-user-menu__mobile-link {
    display: none !important;
  }

  .as-mkt-header .as-header-actions__account--bar .as-user-menu--desktop {
    display: block !important;
  }

  .as-mkt-header .as-header-actions__account--guest-desktop {
    display: none !important;
  }

  .as-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .as-footer-brand {
    align-items: flex-start;
  }

  .as-site-header .as-nav-toggle {
    border-radius: 50% !important;
    border-color: transparent !important;
    background: #f3f4f6 !important;
  }
}
