/* Aemisegger – Design Refresh v4 (editorial, Markenmanual Prioma 2023) */

:root {
  --brand-gold: #d9b83b;
  --brand-gold-light: #eddfad;
  --brand-beige: #dad7c6;
  --brand-beige-dark: #b3aa8c;
  --brand-brown: #857659;
  --brand-brown-light: #beb4a3;
  --brand-ink: #575757;
  --brand-ink-light: #bdbdbc;
  --brand-paper: #f6f1e6;
  --brand-card: #fffdf8;
  --brand-dark: #2c2822;
  --header-height: 72px;
  --logo-size: 56px;
  --spacing: 12px;
  --radius-cut: 35px;
  --radius-sm: 14px;
  --section-space: clamp(3rem, 6vw, 5rem);
  --shadow-soft: 0 8px 30px rgba(44, 40, 34, 0.06);
  --shadow-nav: 0 20px 50px rgba(44, 40, 34, 0.12);
  --shadow-dropdown: 0 24px 60px rgba(44, 40, 34, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  :root {
    --header-height: 68px;
    --logo-size: 88px;
    --spacing: 14px;
  }
}

@media (min-width: 1200px) {
  :root {
    --header-height: 72px;
    --logo-size: 96px;
    --spacing: 16px;
  }
}

/* ── Basis ── */

html {
  scroll-behavior: smooth;
}

/* Kein horizontales Scrollen der ganzen Seite (clip bricht sticky nicht) */
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

img {
  max-width: 100%;
}

body {
  background: var(--brand-paper) !important;
  color: var(--brand-ink);
  -webkit-font-smoothing: antialiased;
}

.wrapper {
  background: var(--brand-paper);
}

.h1,
.quote__text,
.h2,
.header-image__title {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.125;
}

.h1,
.quote__text {
  color: var(--brand-gold);
}

.ae-intro__title {
  color: var(--brand-dark) !important;
}

.h2 {
  color: var(--brand-ink);
}

.bg-color--primary .h1.color--white,
.welcome .h1 {
  color: #fff;
}

.card__title {
  text-transform: none;
}

.main-footer h3.bold.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

/* ══════════════════════════════════════
   HEADER v4 – eine Zeile, editorial
   ══════════════════════════════════════ */

.main-header.ae-header {
  display: block !important;
  grid-template-rows: none !important;
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(87, 87, 87, 0.08);
  overflow: visible !important;
}

/* Topbar: Bereiche + Notfalldienst */
.ae-topbar {
  display: none;
  background: var(--brand-dark);
}

.ae-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}

.ae-topbar__realms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.ae-topbar__realm-wrap {
  display: inline-flex;
  align-items: center;
}

.ae-topbar__sep {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.35);
}

.ae-topbar__realm {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.ae-topbar__realm:hover,
.ae-topbar__realm.is-active {
  color: var(--brand-gold);
}

.ae-topbar__meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ae-topbar__emergency {
  color: var(--brand-gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.ae-topbar__emergency::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--brand-gold);
  vertical-align: 1px;
}

.ae-topbar__emergency:hover {
  color: #fff;
}

.ae-topbar__phone {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ae-topbar__phone:hover {
  color: var(--brand-gold);
}

@media (min-width: 768px) {
  .ae-topbar {
    display: block;
  }
}

.ae-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(8px, 1.5vw, 20px);
  min-height: var(--header-height);
  overflow: visible;
  position: relative;
  z-index: 3;
}

.ae-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ae-header__logo .logo__background {
  padding: 6px 8px 6px 6px !important;
  background: var(--brand-gold) !important;
  border-top-right-radius: var(--radius-cut);
}

.ae-header__logo .logo {
  width: var(--logo-size);
  height: var(--logo-size);
}

.ae-header__nav {
  display: none;
}

.ae-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 6px;
}

.ae-header__actions .header-icon-btn,
.ae-header__actions .icon {
  color: var(--brand-brown);
}

.ae-header__actions .header-icon-btn:hover,
.ae-header__actions .icon:hover {
  color: var(--brand-gold);
}

.ae-header__actions .header-icon-btn__badge {
  background: var(--brand-gold);
  color: var(--brand-dark);
}

.ae-header__account.icon {
  color: var(--brand-brown);
}

.ae-header__account.icon:hover {
  color: var(--brand-gold);
}

.ae-header__shop {
  display: none;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-cut);
  background: var(--brand-gold);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.ae-header__shop:hover {
  background: var(--brand-brown);
  color: #fff;
  transform: translateY(-1px);
}

.ae-header__menu-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(87, 87, 87, 0.1);
  border-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-cut);
  background: #fff;
}

.ae-header__menu-btn .menu__icon {
  width: 20px;
  gap: 5px;
  padding: 0;
  margin: 0 !important;
}

.ae-header__menu-btn .menu__icon > * {
  background-color: var(--brand-brown) !important;
}

body.menu-active .ae-header__menu-btn .menu__icon > * {
  background-color: var(--brand-dark) !important;
}

/* Legacy main.css verschiebt den Button beim Öffnen (margin-right 10/17px)
   und rechnet das X für ein 30px-Icon – beides für unser 20px-Icon korrigieren */
.menu__btn.ae-header__menu-btn,
body.menu-active .menu__btn.ae-header__menu-btn {
  margin-right: 0 !important;
}

body.menu-active .ae-header__menu-btn .menu__icon > :nth-child(1) {
  transform: translateY(7px) rotate(45deg) !important;
}

body.menu-active .ae-header__menu-btn .menu__icon > :nth-child(3) {
  transform: translateY(-7px) rotate(-45deg) !important;
}

.ae-nav__chev {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.45;
  flex-shrink: 0;
}

/* Desktop Nav */
@media (min-width: 1200px) {
  :root {
    --logo-size: 52px;
    --header-height: 68px;
  }

  .ae-header__nav {
    display: flex;
    justify-content: center;
    min-width: 0;
    overflow: visible;
  }

  .ae-header__nav .level1 {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: visible;
  }

  .ae-header__nav .level1 > li {
    position: relative;
    flex-shrink: 0;
  }

  .ae-header__nav .level1--sub::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 14px;
  }

  .ae-header__nav a.level1 {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 8px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    color: var(--brand-ink);
    font-size: 0.84rem;
    font-weight: 600;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
    background: none;
    transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
  }

  .ae-header__nav a.level1:hover,
  .ae-header__nav li.current1 > a.level1,
  .ae-header__nav li.is-open > a.level1 {
    color: var(--brand-brown);
    background: none;
    border-bottom-color: var(--brand-gold);
  }

  .ae-header__nav ul.level2 {
    display: block;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 200;
    min-width: 248px;
    padding: 8px !important;
    margin: 0;
    border: 1px solid rgba(87, 87, 87, 0.1);
    border-top-right-radius: var(--radius-cut);
    background: rgba(255, 253, 248, 0.98) !important;
    box-shadow: var(--shadow-dropdown);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.18s var(--ease), visibility 0.18s, transform 0.18s var(--ease);
  }

  .ae-header__nav li.is-open > ul.level2 {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .ae-header__nav ul.level2::after {
    display: none !important;
  }

  .ae-header__nav a.level2 {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px !important;
    border-radius: 8px;
    color: var(--brand-ink) !important;
    font-weight: 500;
    text-transform: none;
    text-decoration: none;
  }

  .ae-header__nav a.level2:hover,
  .ae-header__nav a.current2 {
    background: var(--brand-gold-light);
    color: var(--brand-dark) !important;
  }

  .ae-header__shop {
    display: inline-flex;
  }

  .ae-header__menu-btn {
    display: none !important;
  }

  .menu--drawer,
  body.menu-active .menu--drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.menu-active {
    overflow: auto !important;
  }
}

@media (min-width: 1440px) {
  :root {
    --logo-size: 56px;
    --header-height: 72px;
  }

  .ae-header__nav a.level1 {
    padding: 0 10px;
    font-size: 0.9rem;
  }
}

/* Mobile Drawer */
@media (max-width: 1199px) {
  .menu--drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none !important;
    pointer-events: none;
    visibility: hidden;
  }

  body.menu-active .menu--drawer {
    display: block !important;
    pointer-events: auto;
    visibility: visible;
  }

  .menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(44, 40, 34, 0.48);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
  }

  .menu__panel.ae-drawer {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    overflow-y: auto;
    padding: 88px 20px 32px;
    background: linear-gradient(180deg, var(--brand-paper) 0%, var(--brand-card) 100%);
    box-shadow: none;
  }

  .ae-drawer__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
  }

  .ae-drawer__close {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(87, 87, 87, 0.14);
    border-radius: 50%;
    background: #fff;
    color: var(--brand-dark);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
  }

  .ae-drawer__kicker {
    margin: 0;
    color: var(--brand-brown);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .ae-drawer__tagline {
    margin: 4px 0 0;
    color: var(--brand-ink);
    font-size: 0.95rem;
    font-weight: 600;
  }

  .ae-drawer__realms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 24px;
  }

  .ae-drawer__sector {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px;
    border-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-cut);
    background: #fff;
    border: 1px solid rgba(87, 87, 87, 0.1);
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
  }

  .ae-drawer__nav a.level1 {
    text-transform: none;
  }

  .ae-drawer-accordion {
    border-bottom: 1px solid rgba(87, 87, 87, 0.08);
  }

  .ae-drawer-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-ink);
    cursor: pointer;
    list-style: none;
  }

  .ae-drawer-accordion summary::-webkit-details-marker {
    display: none;
  }

  .ae-drawer-accordion summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--brand-brown);
    border-bottom: 2px solid var(--brand-brown);
    transform: rotate(45deg);
  }

  .ae-drawer-accordion[open] summary::after {
    transform: rotate(225deg);
  }

  .ae-drawer__nav ul.level2 {
    display: block !important;
    position: static !important;
    width: auto !important;
    padding: 0 0 12px 12px !important;
    margin: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 2px solid var(--brand-gold-light) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .ae-drawer__nav ul.level2 a.level2 {
    display: block;
    padding: 8px 0;
    color: var(--brand-brown) !important;
    background: none !important;
    text-decoration: none;
  }

  .ae-drawer__nav > .level1 > li > a.level1 {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(87, 87, 87, 0.08);
    color: var(--brand-ink);
    font-weight: 700;
    text-decoration: none;
  }

  .ae-drawer__foot {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(87, 87, 87, 0.1);
  }

  .ae-drawer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-cut);
    background: var(--brand-gold);
    color: var(--brand-dark);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
  }

  .ae-drawer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .ae-drawer__foot a,
  .ae-drawer__links a {
    color: var(--brand-brown);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
  }

  body.menu-active {
    overflow: hidden;
  }

  body.menu-active .ae-header {
    z-index: 110;
  }

  body.menu-active .ae-header__menu-btn {
    z-index: 111;
    position: relative;
  }
}

.menu:not(.menu--drawer),
body.menu-active .menu:not(.menu--drawer) {
  display: none !important;
}

.main-footer__credit {
  margin-left: var(--spacing);
}

.main-footer__credit a {
  text-decoration: none;
}

.main-footer__credit a:hover {
  color: #fff;
}

@media (max-width: 699px) {
  .main-footer__credit {
    grid-column-start: 3;
  }
}

/* ══════════════════════════════════════
   Buttons & Cards – hochwertiger
   ══════════════════════════════════════ */

.button,
.card__link.button {
  min-height: 46px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-cut);
  background: var(--brand-gold);
  color: var(--brand-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: none;
  border: 1px solid rgba(133, 118, 89, 0.15);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.button:hover,
.card__link.button:hover {
  background: var(--brand-brown);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.button--invert {
  background: var(--brand-dark);
  color: #fff;
  border-color: transparent;
}

.button--invert:hover {
  background: var(--brand-brown);
}

.card-list {
  gap: 24px;
}

.card {
  background: var(--brand-card);
  border: 1px solid rgba(87, 87, 87, 0.08);
  border-top-right-radius: var(--radius-cut);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-nav);
}

.card__image {
  background: var(--brand-beige);
}

.card__content {
  padding: calc(var(--spacing) * 1.5);
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-brown);
}

.wide-card {
  border: 1px solid rgba(133, 118, 89, 0.2);
  border-top-right-radius: var(--radius-cut);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-gold) 0%, #e8c96a 100%);
}

/* Hero */
.header-image {
  position: relative;
  min-height: 320px;
  background: var(--brand-beige);
  overflow: hidden;
}

.header-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44, 40, 34, 0.08) 0%, rgba(44, 40, 34, 0.35) 100%);
  pointer-events: none;
}

.header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-image__content {
  background: rgba(44, 40, 34, 0.55) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--brand-gold);
  border-top-right-radius: var(--radius-cut);
  padding: 18px 24px !important;
  z-index: 2;
}

.header-image__title {
  color: #fff !important;
  font-size: clamp(1.35rem, 3vw, 2rem);
  hyphens: manual;
  -webkit-hyphens: manual;
  overflow-wrap: break-word;
  display: block;
}

@media (min-width: 768px) {
  .header-image {
    min-height: 420px;
    max-height: min(680px, 62vh);
  }
}

/* Intro – editorial auf Paper */
.ae-intro {
  position: relative;
  padding: var(--section-space) 0;
  background:
    radial-gradient(900px 320px at 0% 0%, rgba(217, 184, 59, 0.12), transparent 60%),
    var(--brand-paper);
}

.ae-intro__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.ae-intro__copy {
  position: relative;
  padding-left: clamp(16px, 2vw, 24px);
  border-left: 4px solid var(--brand-gold);
}

.ae-intro__eyebrow {
  margin: 0 0 12px;
  color: var(--brand-brown);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ae-intro__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
}

.ae-intro__text {
  color: var(--brand-ink);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 52ch;
}

.ae-intro__text p {
  margin: 0 0 0.75em;
}

.ae-intro__media {
  margin: 0;
}

.ae-cut,
.ae-intro__media img {
  display: block;
  width: 100%;
  height: auto;
  border-top-right-radius: var(--radius-cut);
  box-shadow: var(--shadow-nav);
}

.ae-section {
  padding: var(--section-space) 0;
}

.ae-card-grid {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
}

@media (min-width: 768px) {
  .ae-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .ae-intro__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .ae-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Legacy welcome (falls noch irgendwo genutzt) */
.bg-color--primary:has(.welcome) {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 400px at 0% 100%, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(135deg, #c9a82e 0%, var(--brand-gold) 42%, #e2c04a 100%) !important;
}

.bg-color--primary:has(.welcome)::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(var(--brand-dark) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.welcome {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
  align-items: center;
}

.welcome .h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  text-shadow: 0 2px 24px rgba(44, 40, 34, 0.12);
}

.welcome .color--white,
.welcome p,
.welcome .color--white * {
  color: rgba(255, 255, 255, 0.95) !important;
}

.welcome img.rounded {
  border-top-right-radius: var(--radius-cut);
  box-shadow: var(--shadow-nav);
  border: 3px solid rgba(255, 255, 255, 0.35);
}

@media (min-width: 992px) {
  .welcome {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
  }
}

/* Quote */
.quote {
  border-top-right-radius: var(--radius-cut);
  overflow: hidden;
}

.quote__text {
  color: #fff !important;
}

/* Footer v4 */
.ae-footer {
  text-align: left !important;
  background:
    radial-gradient(900px 360px at 0% 100%, rgba(217, 184, 59, 0.08), transparent 55%),
    var(--brand-paper) !important;
  color: var(--brand-ink);
  border-top: 1px solid rgba(87, 87, 87, 0.08);
}

.ae-footer__main {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.ae-footer__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.ae-footer__brand {
  display: grid;
  gap: 16px;
}

.ae-footer__logo .logo__background {
  display: inline-block;
  padding: 8px 10px 8px 8px;
  background: var(--brand-gold) !important;
  border-top-right-radius: var(--radius-cut);
}

.ae-footer__logo .logo {
  width: 72px;
  height: 72px;
}

.ae-footer__name {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

.ae-footer__address {
  font-style: normal;
  line-height: 1.6;
  color: var(--brand-ink);
}

.ae-footer__contact {
  display: grid;
  gap: 6px;
}

.ae-footer__contact a {
  color: var(--brand-brown);
  font-weight: 600;
  text-decoration: none;
}

.ae-footer__contact a:hover {
  color: var(--brand-gold);
}

.ae-footer__recipe {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--brand-ink);
}

.ae-footer__recipe a {
  font-weight: 600;
}

.ae-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ae-footer__social a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gold-light);
  color: var(--brand-brown);
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.ae-footer__social a:hover {
  background: var(--brand-gold);
  color: var(--brand-dark);
}

.ae-footer__social i {
  font-size: 1.35rem;
}

.ae-footer__title {
  margin: 0 0 14px;
  color: var(--brand-brown);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ae-footer__title--spaced {
  margin-top: 24px;
}

.ae-footer__hours {
  display: grid;
  gap: 8px;
  margin: 0;
}

.ae-footer__hours > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
}

.ae-footer__hours dt {
  margin: 0;
  color: var(--brand-ink);
  font-weight: 600;
}

.ae-footer__hours dd {
  margin: 0;
  color: var(--brand-dark);
  font-weight: 700;
}

.ae-footer__note {
  margin: 12px 0 0;
  color: var(--brand-brown);
  font-size: 0.92rem;
  font-weight: 600;
}

.ae-footer__memberships {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: center;
}

.ae-footer__memberships a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 10px;
  border-top-right-radius: var(--radius-cut);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(87, 87, 87, 0.08);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ae-footer__memberships a:hover {
  border-color: rgba(217, 184, 59, 0.45);
  box-shadow: var(--shadow-soft);
}

.ae-footer__memberships img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 42px;
}

.ae-footer__partner img {
  display: block;
  width: min(180px, 100%);
  height: auto;
}

.ae-footer__newsletter {
  margin-top: clamp(28px, 4vw, 40px);
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-cut);
  background: var(--brand-card);
  border: 1px solid rgba(87, 87, 87, 0.08);
  box-shadow: var(--shadow-soft);
}

.ae-footer__newsletter .ae-footer__title {
  margin-bottom: 16px;
}

.newsletter-form__row {
  display: flex;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 10px;
}

.newsletter-form__row input {
  flex: 1 1 0% !important;
  width: auto !important;
  min-width: 0 !important;
}

.newsletter-form__row button {
  flex: 0 0 auto !important;
  width: auto !important;
}

.ae-footer__bar,
.main-footer.ae-footer .main-footer__bottom {
  background: var(--brand-dark) !important;
  color: rgba(255, 255, 255, 0.88);
}

.ae-footer__bar-inner,
.main-footer__bottom .ae-footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.ae-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.ae-footer__legal a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.ae-footer__legal a:hover {
  color: var(--brand-gold);
}

.ae-footer__credit {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.ae-footer__credit a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.ae-footer__credit a:hover {
  color: var(--brand-gold);
}

.footer-newsletter input,
.ae-footer__newsletter input {
  background: #fff !important;
  border: 1px solid rgba(87, 87, 87, 0.15) !important;
  border-top-right-radius: var(--radius-cut) !important;
  color: var(--brand-dark) !important;
}

.ae-footer__newsletter input::placeholder {
  color: rgba(87, 87, 87, 0.55) !important;
}

.ae-footer__newsletter .newsletter-form__message {
  color: var(--brand-brown);
}

.ae-footer__newsletter .newsletter-form__message--error {
  color: #b04a3f;
}

@media (min-width: 768px) {
  .ae-footer__grid {
    grid-template-columns: 1.1fr 0.8fr 1fr;
    align-items: start;
  }

  .ae-footer__memberships {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ae-footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Legacy footer overrides neutralisieren */
.main-footer.ae-footer .main-footer__top,
.main-footer.ae-footer .main-footer__separator,
.main-footer.ae-footer .footer-newsletter,
.main-footer.ae-footer .main-footer__credit,
.main-footer.ae-footer .main-footer__nav,
.main-footer.ae-footer .main-footer__icon {
  display: none !important;
}

.main-footer.bg-color--brown-2 {
  background: var(--brand-paper) !important;
  color: var(--brand-ink);
}

.main-footer h3.bold.uppercase {
  color: var(--brand-brown);
}

.main-footer__bottom {
  background: var(--brand-dark) !important;
}

.main-footer__social a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-gold-light);
  color: var(--brand-brown);
}

/* Shop */
.shop-page {
  background:
    radial-gradient(900px 360px at 100% -5%, rgba(217, 184, 59, 0.1), transparent 55%),
    var(--brand-paper) !important;
}

.shop-box,
.shop-card {
  border-top-right-radius: var(--radius-cut);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(87, 87, 87, 0.06);
}

/* Shop-Hero im Site-Design (editorial statt dunklem Bild) */
.shop-hero {
  margin-top: 0 !important;
  min-height: 0;
  align-items: start;
  background:
    radial-gradient(900px 320px at 0% 0%, rgba(217, 184, 59, 0.14), transparent 60%),
    var(--brand-paper) !important;
}

.shop-hero .h1 {
  hyphens: manual;
}

.shop-hero__inner {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 720px;
  border-left: 4px solid var(--brand-gold);
  padding-left: clamp(16px, 2vw, 24px);
}

.shop-hero .shop-kicker {
  color: var(--brand-brown) !important;
}

.shop-hero .h1 {
  color: var(--brand-dark) !important;
  margin: 0 0 12px;
}

.shop-hero p {
  color: var(--brand-ink) !important;
  max-width: 52ch;
}

.shop-trust {
  margin-top: 0;
}

/* Kartentexte nicht mehr hart abschneiden */
.shop-card__body h3 {
  min-height: 0;
  font-size: 1.15rem;
}

.shop-card__body .small {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  min-height: 0;
}

/* Focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 2px;
}

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

/* Legacy main.css: body.menu-active .menu { display: grid } neutralisieren */
@media (min-width: 1200px) {
  body.menu-active .menu.menu--drawer {
    display: none !important;
    grid-template-rows: none !important;
    inset: auto !important;
    overflow: visible !important;
    background: transparent !important;
  }
}

/* ══════════════════════════════════════
   Mini-Warenkorb – über dem Header
   ══════════════════════════════════════ */

.mini-cart {
  z-index: 140 !important;
}

.mini-cart__panel {
  border-top-left-radius: var(--radius-cut);
}

.mini-cart__close,
.mini-cart__remove {
  min-width: 44px;
  min-height: 44px;
}

.shop-stepper button {
  min-width: 40px;
  min-height: 40px;
}

@media (max-width: 640px) {
  .mini-cart__panel {
    width: 100%;
    border-top-left-radius: 0;
    padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
  }

  .mini-cart__list img {
    width: 60px;
    height: 72px;
  }
}

/* ══════════════════════════════════════
   Mobile-Pass – ganze Seite
   ══════════════════════════════════════ */

@media (max-width: 767px) {
  /* Intro & Sections */
  .ae-intro {
    padding: clamp(2rem, 8vw, 3rem) 0;
  }

  .ae-intro__copy {
    padding-left: 14px;
    border-left-width: 3px;
  }

  .ae-intro__title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .ae-intro__text {
    font-size: 1rem;
  }

  .ae-section {
    padding: clamp(2rem, 8vw, 3rem) 0;
  }

  .ae-card-grid {
    gap: 14px;
  }

  .header-image {
    min-height: 220px;
    max-height: 40vh;
  }

  .header-image__content {
    padding: 12px 16px !important;
  }

  .button,
  .card__link.button {
    min-height: 44px;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .card__content {
    padding: 16px;
  }

  /* Durchgehender Seitenrand auf Mobile */
  .container,
  .container--slim {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Footer mobil: deutlich kompakter */
  .ae-footer__main {
    padding-top: 1.75rem;
    padding-bottom: 1.25rem;
  }

  .ae-footer__grid {
    gap: 22px;
  }

  /* Logo weglassen – das Logo steht bereits im Header */
  .ae-footer__logo {
    display: none;
  }

  .ae-footer__social a {
    width: 44px;
    height: 44px;
  }

  /* Öffnungszeiten kompakt */
  .ae-footer__hours {
    gap: 4px;
  }

  .ae-footer__note {
    margin-top: 8px;
  }

  /* Mitgliedschaften: schlichte Logozeile statt Karten-Boxen */
  .ae-footer__memberships {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .ae-footer__memberships a {
    min-height: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
  }

  .ae-footer__memberships img {
    height: 26px;
    width: auto;
    max-width: 140px;
    max-height: none;
  }

  .ae-footer__title--spaced {
    margin-top: 16px;
  }

  .ae-footer__partner img {
    width: 110px;
  }

  /* Newsletter: kompakte einzeilige Anmeldung */
  .ae-footer__newsletter {
    margin-top: 18px;
    padding: 14px;
    box-shadow: none;
  }

  .ae-footer__title-sub {
    display: none;
  }

  /* Scroll-Top-Button: kleiner, rund, mit Randabstand statt 75px-Klotz am Rand */
  .to-top--new {
    width: 44px !important;
    height: 44px !important;
    right: 14px !important;
    bottom: 80px !important;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(44, 40, 34, 0.22);
  }

  .to-top--new i {
    font-size: 20px !important;
  }

  .ae-footer__newsletter .ae-footer__title {
    margin-bottom: 10px;
  }

  .newsletter-form__row {
    flex-direction: row;
    gap: 8px;
  }

  .newsletter-form__row input {
    min-height: 44px;
  }

  .newsletter-form__row button {
    min-height: 44px;
    padding: 0 16px;
    white-space: nowrap;
  }

  .ae-footer__bar-inner,
  .main-footer__bottom .ae-footer__bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .ae-footer__legal {
    gap: 8px 16px;
  }

  .ae-footer__legal a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
}

/* ══════════════════════════════════════
   Shop – mobile-first
   ══════════════════════════════════════ */

@media (max-width: 980px) {
  /* Produkte: 2-spaltig statt 1-spaltig */
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .shop-card__body {
    gap: 8px;
    padding: 12px 12px 14px;
  }

  .shop-card__body h3 {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .shop-hero__inner {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  /* Trust-Punkte: eine kompakte Scroll-Zeile statt 4 Karten */
  .shop-trust {
    display: flex !important;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    margin-top: 0;
  }

  .shop-trust article {
    flex: 0 0 220px;
    scroll-snap-align: start;
    min-height: 0;
    padding: 12px 14px;
  }

  .shop-trust b {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .shop-trust span {
    font-size: 13px;
  }

  /* «Aktuell im Fokus»: horizontal wischen statt in die Länge scrollen */
  .shop-section {
    padding-top: 28px;
  }

  .shop-section .shop-grid {
    display: flex !important;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .shop-section .shop-card {
    flex: 0 0 62%;
    max-width: 62%;
    scroll-snap-align: start;
  }

  /* Sortiment: Kategorien als horizontale Chips direkt sichtbar */
  .shop-layout {
    padding-top: 20px;
    padding-bottom: 56px;
    gap: 16px;
  }

  .shop-side {
    padding: 14px 14px 10px;
  }

  .shop-side .shop-kicker,
  .shop-side .h2 {
    display: none;
  }

  .shop-search {
    margin: 0 0 10px;
    min-height: 44px;
  }

  .shop-side a {
    display: inline-flex;
    width: auto;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    margin: 0 6px 8px 0;
    padding: 0 13px;
    border: 1px solid rgba(133, 118, 89, 0.25);
    border-radius: 999px;
    border-bottom: 1px solid rgba(133, 118, 89, 0.25) !important;
    background: #fff;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .shop-side a.is-on {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: var(--brand-dark);
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .shop-toolbar select {
    width: 100%;
    min-height: 44px;
  }

  /* Preisfilter: kompaktes 2-Spalten-Raster */
  .shop-filterbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
    align-items: end;
  }

  .shop-filterbar__field {
    width: auto;
  }

  .shop-filterbar__field input {
    width: 100%;
    min-height: 44px;
  }

  .shop-filterbar__check {
    min-height: 32px;
    align-items: center;
  }

  .shop-filterbar .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .shop-filterbar__count {
    grid-column: 1 / -1;
    text-align: center;
  }

  /* Produktkarten: quadratische Bilder, kompakte Buttons */
  .shop-card__image {
    aspect-ratio: 1 / 1;
  }

  .shop-card .shop-actions .button {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }

  .shop-card .shop-price {
    font-size: 15px;
  }

  .shop-wish {
    width: 40px;
    height: 40px;
  }

  .shop-badge {
    top: 10px;
    left: 10px;
  }
}

@media (max-width: 480px) {
  .shop-hero__inner {
    padding-top: 22px;
  }

  .shop-section .shop-card {
    flex: 0 0 72%;
    max-width: 72%;
  }
}

/* ══════════════════════════════════════
   Moderne Effekte
   ══════════════════════════════════════ */

/* Scroll-Reveal: Elemente blenden beim Scrollen sanft ein (Klassen via Reveal.tsx) */
.reveal-init {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease) var(--reveal-delay, 0ms),
    transform 0.7s var(--ease) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-init.reveal-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-init {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero: sanfter Ken-Burns-Zoom + Titel-Einblendung beim Laden */
  .header-image img {
    animation: ae-kenburns 12s var(--ease) both;
  }

  @keyframes ae-kenburns {
    from {
      transform: scale(1.07);
    }
    to {
      transform: scale(1);
    }
  }

  .header-image__content {
    animation: ae-rise-in 0.9s var(--ease) 0.15s both;
  }

  .shop-hero__inner {
    animation: ae-rise-in 0.9s var(--ease) both;
  }

  @keyframes ae-rise-in {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* Hover-Mikrointeraktionen nur für Geräte mit Maus */
@media (hover: hover) and (pointer: fine) {
  /* Bild-Zoom in Karten */
  .card__image,
  .wide-card__image,
  .shop-card__image {
    overflow: hidden;
  }

  .card__image img,
  .wide-card__image img,
  .shop-card__image img {
    transition: transform 0.55s var(--ease);
  }

  .card:hover .card__image img,
  .wide-card:hover .wide-card__image img,
  .shop-card:hover .shop-card__image img {
    transform: scale(1.05);
  }

  .shop-card {
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  }

  .shop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(44, 40, 34, 0.12);
  }

  /* Buttons: dezentes Anheben */
  .button:hover,
  .ae-header__shop:hover,
  .ae-drawer__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(217, 184, 59, 0.35);
  }

  /* Hauptnavigation: goldene Unterstreichung wächst von links */
  .ae-header__nav > .level1 > li.level1 > a.level1 {
    position: relative;
  }

  .ae-header__nav > .level1 > li.level1 > a.level1::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--brand-gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s var(--ease);
  }

  .ae-header__nav > .level1 > li.level1:hover > a.level1::after,
  .ae-header__nav > .level1 > li.level1.is-open > a.level1::after,
  .ae-header__nav > .level1 > li.current1 > a.level1::after {
    transform: scaleX(1);
  }
}

/* Sanftes Scrollen bei Ankerlinks */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
