/* ==========================================================================
   Altstadt-Apotheke — Premium Apothecary design system
   Luxury skincare / private wellness clinic direction
   ========================================================================== */

:root {
  /* Signature accent — precision use only */
  --apo-accent: #9b1c1f;
  --apo-red: var(--apo-accent);
  --apo-red-dark: #7a1518;
  --apo-red-soft: rgba(155, 28, 31, 0.08);
  --apo-sage: #7a8471;

  /* Surfaces */
  --apo-ink: #171310;
  --apo-ink-soft: #241f1b;
  --apo-cream: #f7f4f0;
  --apo-warm: #fbf9f6;
  --apo-grey: #f0ece7;
  --apo-grey-mid: #e4ddd4;
  --apo-line: rgba(23, 19, 16, 0.1);
  --apo-line-strong: rgba(23, 19, 16, 0.18);

  /* Type color */
  --apo-text: #1c1916;
  --apo-muted: #6e675f;
  --apo-white: #ffffff;

  /* Dark moments */
  --apo-footer-bg: #171310;
  --apo-footer-text: #f5f2ee;

  /* Typography */
  --apo-font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --apo-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  /* Rhythm */
  --apo-header-h: 80px;
  --apo-radius: 20px;
  --apo-radius-sm: 12px;
  --apo-section-y: clamp(4rem, 8vw, 8.5rem);
  --apo-section-y-sm: clamp(3.5rem, 6vw, 5rem);
  --apo-container: 1200px;
  --apo-wide: 1320px;
  --apo-measure: 65ch;

  /* Motion & elevation */
  --apo-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --apo-ease-slow: cubic-bezier(0.33, 1, 0.68, 1);
  --apo-shadow: 0 18px 50px rgba(23, 19, 16, 0.07);
  --apo-shadow-soft: 0 8px 28px rgba(23, 19, 16, 0.05);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.apo-site {
  margin: 0;
  color: var(--apo-text);
  background: var(--apo-warm);
  font-family: var(--apo-font);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--apo-accent); text-decoration: none; transition: color 0.35s var(--apo-ease); }
a:hover { color: var(--apo-red-dark); }
button, input { font: inherit; }

:focus-visible {
  outline: 2px solid var(--apo-accent);
  outline-offset: 3px;
}

.screen-reader-text,
.apo-skip-link:not(:focus) {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.apo-skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100000;
  padding: 14px 18px; background: #fff; color: var(--apo-accent);
  outline: 2px solid var(--apo-accent);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.lucky-container {
  max-width: var(--apo-container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}

/* Shared micro-label */
.apo-kicker,
.apo-panel__kicker,
.apo-hero__kicker,
.apo-section-eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--apo-font);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--apo-accent);
}

/* Buttons — ghost default, solid reserved for one primary action */
.apo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--apo-line-strong);
  background: transparent;
  color: var(--apo-ink);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.4s var(--apo-ease), color 0.4s var(--apo-ease), border-color 0.4s var(--apo-ease);
}
.apo-btn:hover {
  border-color: var(--apo-ink);
  color: var(--apo-ink);
  text-decoration: none;
}
.apo-btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}
.apo-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
  text-decoration: none;
}
.apo-btn--solid {
  background: var(--apo-accent);
  border-color: var(--apo-accent);
  color: #fff;
}
.apo-btn--solid:hover {
  background: var(--apo-red-dark);
  border-color: var(--apo-red-dark);
  color: #fff;
  text-decoration: none;
}
.apo-btn--inline { width: auto; }

/* Reveal on scroll */
.apo-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--apo-ease-slow), transform 0.8s var(--apo-ease-slow);
}
.apo-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.apo-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(251, 249, 246, 0.72);
  backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition:
    background 0.5s var(--apo-ease),
    border-color 0.5s var(--apo-ease),
    box-shadow 0.5s var(--apo-ease),
    backdrop-filter 0.5s var(--apo-ease);
}
.apo-header.apo-header--scrolled,
.apo-header.is-scrolled {
  background: rgba(251, 249, 246, 0.92);
  backdrop-filter: blur(18px) saturate(1.15);
  border-bottom-color: var(--apo-line);
  box-shadow: var(--apo-shadow-soft);
}
.admin-bar .apo-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .apo-header { top: 46px; }
}

.apo-header__shell {
  max-width: var(--apo-wide);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3vw, 2rem);
}
.apo-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--apo-header-h);
  padding: 0.65rem 0;
}

.apo-header__brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  max-width: 220px;
}
.apo-header__logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.apo-logo { width: 168px; max-width: 100%; height: auto; }
.apo-site-title {
  display: inline-block;
  font-family: var(--apo-display);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--apo-ink);
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.apo-header__tagline {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--apo-muted);
}

.apo-header__nav {
  flex: 1 1 auto;
  min-width: 0;
  display: none;
  justify-content: center;
}
@media (min-width: 1025px) {
  .apo-header__nav { display: flex; }
  .apo-menu-toggle { display: none; }
}

.apo-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.apo-nav-list > li { position: relative; }
.apo-nav-list > li > a {
  display: block;
  padding: 0.7rem 0.85rem;
  color: var(--apo-ink);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.apo-nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.45rem;
  height: 1px;
  background: var(--apo-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--apo-ease);
}
.apo-nav-list > li > a:hover::after,
.apo-nav-list > li.current-menu-item > a::after,
.apo-nav-list > li.current-menu-ancestor > a::after {
  transform: scaleX(1);
}
.apo-nav-list > li > a:hover,
.apo-nav-list > li.current-menu-item > a,
.apo-nav-list > li.current-menu-ancestor > a {
  color: var(--apo-accent);
  text-decoration: none;
}
.apo-nav-list .has-dropdown > a,
.apo-nav-list .menu-item-has-children > a {
  padding-right: 1.35rem;
}
.apo-nav-list .has-dropdown > a > .apo-caret,
.apo-nav-list .menu-item-has-children > a::before {
  content: none;
}
.apo-nav-list .has-dropdown > a::before,
.apo-nav-list .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -1px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 3.5px solid currentColor;
}

.apo-dropdown,
.apo-nav-list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 240px;
  background: var(--apo-white);
  border: 1px solid var(--apo-line);
  box-shadow: var(--apo-shadow);
  display: none;
  z-index: 50;
}
.apo-nav-list > li:hover > .apo-dropdown,
.apo-nav-list > li:hover > .sub-menu,
.apo-nav-list > li:focus-within > .apo-dropdown,
.apo-nav-list > li:focus-within > .sub-menu,
.apo-nav-list > li.is-open > .apo-dropdown,
.apo-nav-list > li.is-open > .sub-menu {
  display: block;
}
.apo-dropdown a,
.apo-nav-list .sub-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--apo-text);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
}
.apo-dropdown a:hover,
.apo-nav-list .sub-menu a:hover {
  background: var(--apo-cream);
  color: var(--apo-accent);
}

.apo-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.apo-icon-btn,
.apo-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--apo-ink);
  cursor: pointer;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
  border-radius: 0;
  transition: color 0.35s var(--apo-ease), opacity 0.35s var(--apo-ease);
}
.apo-icon-btn:hover,
.apo-menu-toggle:hover {
  color: var(--apo-accent);
  background: transparent;
  text-decoration: none;
}
.apo-icon-btn__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
@media (max-width: 900px) {
  .apo-icon-btn__label,
  .apo-hours__text { display: none; }
}
.apo-menu-toggle__bars {
  display: block;
  width: 20px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 70% 1.5px no-repeat;
}
.apo-menu-toggle__label {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
@media (max-width: 575px) {
  .apo-menu-toggle__label { display: none; }
}

.apo-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.apo-icon--phone {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.24c1.1.37 2.3.56 3.5.56a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.2.19 2.4.56 3.5a1 1 0 0 1-.25 1L6.6 10.8z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.24c1.1.37 2.3.56 3.5.56a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.2.19 2.4.56 3.5a1 1 0 0 1-.25 1L6.6 10.8z'/%3E%3C/svg%3E");
}
.apo-icon--search {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E");
}
.apo-icon--clock {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l3 2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l3 2'/%3E%3C/svg%3E");
}

/* Hours popover */
.apo-hours { position: relative; }
.apo-hours__summary {
  list-style: none;
  cursor: pointer;
  max-width: 220px;
}
.apo-hours__summary::-webkit-details-marker { display: none; }
.apo-hours__text {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--apo-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.apo-hours__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(340px, 92vw);
  padding: 1.75rem;
  background: var(--apo-white);
  border: 1px solid var(--apo-line);
  box-shadow: var(--apo-shadow);
  z-index: 60;
}
.apo-hours__panel .apo-btn { width: 100%; margin-bottom: 0.25rem; }
.apo-hours__panel h3 {
  margin: 1.35rem 0 1rem;
  font-family: var(--apo-display);
  font-size: 1.45rem;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.apo-hours__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.apo-hours__table th {
  text-align: left;
  font-weight: 500;
  padding: 0.55rem 0.5rem 0.55rem 0;
  vertical-align: top;
  color: var(--apo-ink);
}
.apo-hours__table td {
  text-align: right;
  padding: 0.55rem 0;
  color: var(--apo-muted);
  line-height: 1.45;
}
.apo-hours__table tr.is-today th,
.apo-hours__table tr.is-today td {
  color: var(--apo-accent);
  font-weight: 600;
}
.apo-hours__table tr.is-today {
  border-top: 1px solid var(--apo-line);
  border-bottom: 1px solid var(--apo-line);
}

.apo-search-panel {
  border-top: 1px solid var(--apo-line);
  background: var(--apo-cream);
  padding: 1.25rem clamp(1.25rem, 3vw, 2rem);
}
.apo-search-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
}
.apo-search-form input {
  flex: 1;
  min-height: 48px;
  border: 1px solid var(--apo-line);
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 0;
}

/* Off-canvas mobile nav */
.apo-offcanvas[hidden] { display: none !important; }
.apo-offcanvas {
  position: fixed;
  inset: 0;
  z-index: 300;
}
.apo-offcanvas__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 16, 0.42);
  backdrop-filter: blur(2px);
  animation: apo-fade 0.45s var(--apo-ease);
}
.apo-offcanvas__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(400px, 92vw);
  height: 100%;
  background: var(--apo-warm);
  overflow: auto;
  transform: translateX(0);
  animation: apo-slide 0.55s var(--apo-ease);
  border-left: 1px solid var(--apo-line);
}
@keyframes apo-slide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@keyframes apo-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.apo-offcanvas__header {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--apo-line);
  position: relative;
}
.apo-offcanvas__logo {
  margin-bottom: 1.25rem;
  max-width: 150px;
  padding-right: 2rem;
}
.apo-offcanvas__logo .apo-logo { width: 140px; }
.apo-offcanvas__logo .apo-site-title {
  font-size: 1.5rem;
  font-family: var(--apo-display);
}
.apo-offcanvas__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--apo-text);
}
.apo-offcanvas__address {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-style: normal;
  padding-right: 2rem;
  font-size: 0.9rem;
  color: var(--apo-muted);
  line-height: 1.5;
}
.apo-offcanvas__address strong {
  font-family: var(--apo-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--apo-ink);
}
.apo-offcanvas__nav { padding: 0.5rem 0 2.5rem; }
.apo-offcanvas__nav .apo-nav-list {
  flex-direction: column;
  align-items: stretch;
}
.apo-offcanvas__nav .apo-nav-list > li > a {
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--apo-line);
  white-space: normal;
}
.apo-offcanvas__nav .apo-nav-list > li > a::after { display: none; }
.apo-offcanvas__nav .apo-dropdown,
.apo-offcanvas__nav .sub-menu {
  position: static;
  display: none;
  box-shadow: none;
  border: 0;
  background: var(--apo-cream);
  min-width: 0;
}
.apo-offcanvas__nav li.is-open > .apo-dropdown,
.apo-offcanvas__nav li.is-open > .sub-menu { display: block; }
.apo-submenu-toggle {
  position: absolute;
  right: 0.75rem;
  top: 0.55rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--apo-accent);
  font-size: 1.15rem;
  cursor: pointer;
}
.apo-offcanvas__nav li,
.apo-header__nav li { position: relative; }
@media (min-width: 1025px) {
  .apo-header__nav .apo-submenu-toggle { display: none; }
}
body.apo-menu-open { overflow: hidden; }

/* ==========================================================================
   Homepage canvas sections
   ========================================================================== */
.apo-canvas {
  width: 100%;
  min-height: 40vh;
  background: var(--apo-warm);
}
.apo-canvas__content { width: 100%; }
.apo-canvas__content > .wp-block-group.alignfull,
.apo-canvas__content > .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.apo-canvas .lucky-entry-content > p,
.apo-canvas .lucky-entry-content > h1,
.apo-canvas .lucky-entry-content > h2,
.apo-canvas .lucky-entry-content > h3,
.apo-canvas .lucky-entry-content > ul,
.apo-canvas .lucky-entry-content > ol,
.apo-canvas .lucky-entry-content > .wp-block-image:not(.alignfull) {
  max-width: var(--apo-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  padding-right: clamp(1.25rem, 3vw, 2rem);
}
.apo-canvas .wp-block-html,
.apo-canvas .apo-home,
.apo-canvas [class*="apo-"] {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.apo-home { width: 100%; }
.apo-home__cms {
  max-width: var(--apo-container);
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
}

.apo-grid {
  display: grid;
  gap: 0;
}
.apo-grid--2 { grid-template-columns: 1fr; }
@media (min-width: 992px) {
  .apo-grid--2 { grid-template-columns: 1fr 1fr; }
}
.apo-grid--gap {
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--apo-cream);
}

/* Full-bleed photo tiles */
.apo-tile {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: var(--apo-grey);
}
.apo-tile--full { min-height: 460px; }
.apo-tile--hero {
  min-height: clamp(520px, 78vh, 760px);
}
.apo-tile__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--apo-ease-slow);
}
.apo-tile:hover .apo-tile__bg { transform: scale(1.035); }
.apo-tile__bg--contain { object-fit: contain; background: #eee; }
.apo-tile__overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-height: inherit;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  color: #fff;
  background: linear-gradient(
    to top,
    rgba(23, 19, 16, 0.72) 0%,
    rgba(23, 19, 16, 0.28) 42%,
    rgba(23, 19, 16, 0.12) 100%
  );
}
.apo-tile__overlay--bottom { justify-content: flex-end; align-items: center; }
.apo-tile__overlay h1,
.apo-tile__overlay h2 {
  margin: 0 0 1.25rem;
  font-family: var(--apo-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-shadow: none;
  max-width: 16ch;
}
.apo-hero__title {
  margin: 0 0 1.75rem;
  font-family: var(--apo-display);
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.apo-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.apo-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 148px;
  min-height: 112px;
  padding: 1.15rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: background 0.5s var(--apo-ease), border-color 0.5s var(--apo-ease), transform 0.5s var(--apo-ease);
}
.apo-cta:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.apo-cta__icon {
  width: 28px;
  height: 28px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  position: relative;
}
.apo-cta__icon--camera::before,
.apo-cta__icon--gallery::before,
.apo-cta__icon--scan::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.apo-cta__icon--camera::before { border-radius: 3px; }
.apo-cta__icon--gallery::before {
  box-shadow: 2px 2px 0 -0.5px currentColor;
}
.apo-cta__icon--scan::before {
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 0 / 1.5px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 1.5px 100% no-repeat;
  border: 0;
}

/* Partner / e-Rezept 2-up — cream cards, not flat red */
.apo-tile--erezept,
.apo-tile--partner {
  min-height: 340px;
  background: var(--apo-white);
  border: 1px solid var(--apo-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.apo-grid--2 .apo-tile--erezept,
.apo-grid--2 .apo-tile--partner {
  margin: 0;
}
.apo-grid--partner {
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: var(--apo-section-y-sm) clamp(1.25rem, 4vw, 3rem);
  background: var(--apo-cream);
}
.apo-tile__caption--erezept {
  position: relative;
  z-index: 2;
  left: auto;
  top: auto;
  max-width: 28ch;
  text-align: center;
}
.apo-erezept-line {
  margin: 0;
  font-family: var(--apo-display);
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.2;
  color: var(--apo-ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.apo-erezept-line strong {
  color: var(--apo-accent);
  font-weight: 500;
}
.apo-tile--partner {
  color: var(--apo-ink);
  background: var(--apo-warm);
}
.apo-tile__heading {
  margin: 0 0 1.75rem;
  font-family: var(--apo-display);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--apo-ink);
  letter-spacing: -0.01em;
}
.apo-partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.75rem 2rem;
  background: var(--apo-white);
  border: 1px solid var(--apo-line);
  color: var(--apo-text);
  text-decoration: none;
  min-width: 220px;
  transition: border-color 0.45s var(--apo-ease), box-shadow 0.45s var(--apo-ease);
}
.apo-partner-card:hover {
  border-color: var(--apo-line-strong);
  box-shadow: var(--apo-shadow-soft);
  text-decoration: none;
  color: var(--apo-text);
  transform: none;
}
.apo-partner-card img { max-width: 160px; margin-bottom: 0.35rem; }
.apo-partner-card strong {
  font-family: var(--apo-display);
  font-size: 1.2rem;
  font-weight: 500;
}
.apo-partner-card span { font-size: 0.85rem; color: var(--apo-muted); letter-spacing: 0.04em; }

.apo-further {
  color: inherit;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
}
.apo-further::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--apo-ease);
}
.apo-further:hover::after { transform: scaleX(1); }
.apo-further--light { color: #fff; margin-top: 1.5rem; display: inline-block; }

.apo-article-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
}
.apo-article-link {
  display: block;
  height: 100%;
  min-height: 380px;
  color: #fff;
  text-decoration: none;
}
.apo-article-link:hover { color: #fff; text-decoration: none; }
.apo-article-link .apo-tile__overlay { min-height: 380px; }
.apo-tile--season,
.apo-tile--article { min-height: 420px; }
.apo-tile--season .apo-tile__overlay,
.apo-tile--article .apo-tile__overlay { min-height: 420px; }
.apo-tile--season .apo-tile__overlay h2,
.apo-tile--article .apo-tile__overlay h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 14ch;
}

/* Services — light band, not solid red */
.apo-services {
  background: var(--apo-warm);
  color: var(--apo-ink);
  text-align: center;
  padding: var(--apo-section-y) clamp(1.25rem, 4vw, 2.5rem);
  border-top: 1px solid var(--apo-line);
  border-bottom: 1px solid var(--apo-line);
}
.apo-services h2 {
  margin: 0 0 0.75rem;
  font-family: var(--apo-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--apo-ink);
}
.apo-services .apo-section-eyebrow,
.apo-services > .apo-kicker {
  margin-bottom: 1rem;
}
.apo-services__lead {
  max-width: 42ch;
  margin: 0 auto 3.5rem;
  color: var(--apo-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.apo-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .apo-services__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1025px) {
  .apo-services__grid { grid-template-columns: repeat(4, 1fr); }
}
.apo-service {
  color: var(--apo-ink);
  text-decoration: none;
  padding: 0 0.5rem;
  transition: color 0.35s var(--apo-ease);
}
.apo-service:hover { color: var(--apo-accent); text-decoration: none; }
.apo-service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.15rem;
  font-size: 0;
  border: 1.5px solid var(--apo-line-strong);
  border-radius: 50%;
  color: var(--apo-accent);
  position: relative;
}
.apo-service__icon::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.apo-service h3 {
  margin: 0 0 0.75rem;
  font-family: var(--apo-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.apo-service p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--apo-muted);
}

/* App promo */
.apo-app {
  text-align: center;
  padding: var(--apo-section-y) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--apo-cream);
}
.apo-app__icon {
  margin: 0 auto 1.5rem;
  width: 84px;
  height: 84px;
  border-radius: var(--apo-radius-sm);
  border: 1px solid var(--apo-line);
}
.apo-app h2 {
  margin: 0 0 1rem;
  font-family: var(--apo-display);
  color: var(--apo-ink);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.apo-lead {
  max-width: 36rem;
  margin: 0 auto 0.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--apo-muted);
}
.apo-app__stores {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 1.25rem;
  flex-wrap: wrap;
}
.apo-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  background: var(--apo-ink);
  color: #fff;
  border-radius: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.35s var(--apo-ease);
}
.apo-store-badge:hover { color: #fff; opacity: 0.85; text-decoration: none; }
.apo-app__hint {
  font-size: 0.82rem;
  color: var(--apo-muted);
  max-width: 420px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* Telepharmacy + contact band */
.apo-tile--appointment {
  background: var(--apo-white);
  min-height: auto;
  padding: 0;
  border: 1px solid var(--apo-line);
}
.apo-appointment-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--apo-text);
  text-decoration: none;
  background: var(--apo-white);
}
.apo-appointment-card:hover { color: var(--apo-text); text-decoration: none; }
.apo-appointment-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.8s var(--apo-ease-slow);
}
.apo-appointment-card:hover img { transform: scale(1.03); }
.apo-appointment-card__body {
  padding: 2rem 2rem 1rem;
  flex: 1;
}
.apo-appointment-card__body h2 {
  margin: 0 0 0.85rem;
  color: var(--apo-ink);
  font-family: var(--apo-display);
  font-size: 1.65rem;
  font-weight: 500;
}
.apo-appointment-card__body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--apo-muted);
}
.apo-appointment-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 2rem 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--apo-line);
}
.apo-appointment-card__foot .apo-further { color: var(--apo-accent); }

.apo-contact-tile {
  background: var(--apo-ink);
  color: var(--apo-footer-text);
  min-height: auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
}
.apo-contact-tile h2 {
  margin: 0 0 2rem;
  text-align: center;
  font-family: var(--apo-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.015em;
}
.apo-contact-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 420px;
  width: 100%;
}
.apo-contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.apo-contact-list li:last-child { border-bottom: 0; }
.apo-contact-list__label {
  font-weight: 500;
  opacity: 0.7;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding-top: 0.3rem;
}
.apo-contact-tile a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.35); }
.apo-contact-tile a:hover { border-bottom-color: #fff; }

.apo-band-contact {
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: var(--apo-section-y-sm) clamp(1.25rem, 4vw, 3rem);
  background: var(--apo-cream);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.apo-footer {
  background: var(--apo-footer-bg);
  color: var(--apo-footer-text);
  margin-top: 0;
}
.apo-footer a { color: inherit; }
.apo-footer__main {
  max-width: var(--apo-wide);
  margin: 0 auto;
  padding: clamp(4rem, 7vw, 6rem) clamp(1.25rem, 3vw, 2rem) clamp(3rem, 5vw, 4rem);
}
.apo-footer__grid {
  display: grid;
  gap: clamp(2.5rem, 4vw, 3.5rem);
}
@media (min-width: 640px) {
  .apo-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1025px) {
  .apo-footer__grid {
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}
.apo-footer__logo-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  text-decoration: none;
}
.apo-footer .apo-logo {
  width: 148px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.apo-footer .apo-site-title {
  color: var(--apo-footer-text);
  font-size: 1.75rem;
  font-weight: 500;
}
.apo-footer__heritage {
  margin: 0 0 1rem;
  font-family: var(--apo-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  color: rgba(245, 242, 238, 0.72);
  letter-spacing: 0.02em;
}
.apo-footer__desc {
  margin: 0;
  max-width: 32ch;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(245, 242, 238, 0.62);
}
.apo-footer__heading {
  margin: 0 0 1.25rem;
  font-family: var(--apo-font);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 242, 238, 0.55);
}
.apo-footer__heading--spaced { margin-top: 1.75rem; }
.apo-footer__addr {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 1rem;
  color: rgba(245, 242, 238, 0.78);
}
.apo-footer__phone {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 500;
}
.apo-footer__phone a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.35s var(--apo-ease);
}
.apo-footer__phone a:hover { border-bottom-color: #fff; }
.apo-footer__extra {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(245, 242, 238, 0.55);
}
.apo-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.apo-footer-nav a {
  color: rgba(245, 242, 238, 0.75);
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.35s var(--apo-ease);
}
.apo-footer-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.apo-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.apo-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(245, 242, 238, 0.75);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 0.85rem;
  transition: border-color 0.35s var(--apo-ease), color 0.35s var(--apo-ease);
}
.apo-footer__social a:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.apo-footer__payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.apo-footer__payments-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 238, 0.4);
}
.apo-pay-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.apo-pay-icons li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 32px;
  padding: 0 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(245, 242, 238, 0.55);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.apo-footer__bar {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.apo-footer__bar-inner {
  max-width: var(--apo-wide);
  margin: 0 auto;
  padding: 1.35rem clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.apo-footer__copy {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 242, 238, 0.42);
  line-height: 1.55;
}
.apo-footer__copy a { color: rgba(245, 242, 238, 0.6); }
.apo-policy-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
}
.apo-policy-nav a {
  color: rgba(245, 242, 238, 0.48);
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.apo-policy-nav a:hover {
  color: #fff;
  text-decoration: none;
}

/* Chat FAB — quieter */
.apo-chat {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.65rem 1.15rem 0.65rem 0.85rem;
  background: var(--apo-ink);
  color: #fff;
  border-radius: 0;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--apo-shadow);
  transition: background 0.4s var(--apo-ease), transform 0.4s var(--apo-ease);
}
.apo-chat:hover {
  color: #fff;
  text-decoration: none;
  background: var(--apo-accent);
  transform: translateY(-1px);
}
.apo-chat__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative;
  background: transparent;
}
.apo-chat__icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  border-bottom-color: transparent;
}

/* ==========================================================================
   Inner page hero
   ========================================================================== */
.apo-breadcrumb {
  margin-bottom: 1.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.apo-breadcrumb__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.45);
}
.apo-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.apo-breadcrumb a:hover { color: #fff; }
.apo-breadcrumb__sep { opacity: 0.35; }
.apo-breadcrumb__current { color: rgba(255, 255, 255, 0.92); }

.apo-hero {
  background: var(--apo-ink);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 5vw, 4.25rem);
  border-bottom: 0;
}
.apo-hero__inner { max-width: var(--apo-container); }
.apo-hero__kicker {
  margin: 0 0 1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9a0a2;
}
.apo-hero__title {
  margin: 0;
  font-family: var(--apo-display);
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.apo-hero__subtitle {
  margin: 1.25rem 0 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  max-width: 42ch;
  font-weight: 300;
}
.apo-hero__rule {
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 2rem;
  background: var(--apo-accent);
}

/* ==========================================================================
   Content shell / single / page
   ========================================================================== */
.apo-shell {
  background: var(--apo-cream);
  padding: var(--apo-section-y-sm) 0 var(--apo-section-y);
  min-height: 45vh;
}
.apo-shell__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 1025px) {
  .apo-shell__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3.5rem;
  }
  .apo-shell--archive .apo-shell__grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}
.apo-shell__main--flush {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.apo-shell__featured {
  margin: 0 0 2.25rem;
  overflow: hidden;
  background: var(--apo-grey);
  border-radius: 0;
}
.apo-shell__featured-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.8s var(--apo-ease-slow);
}
.apo-shell__featured:hover .apo-shell__featured-img { transform: scale(1.02); }

.apo-byline {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--apo-line);
}
.apo-byline .lucky-author-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.apo-byline .lucky-author-photo img,
.apo-byline .lucky-author-photo .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--apo-line);
  box-shadow: 0 0 0 4px var(--apo-cream);
}
.apo-byline .lucky-meta-author-name {
  display: block;
  color: var(--apo-ink);
  font-family: var(--apo-display);
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.apo-byline .lucky-meta-author-name:hover { color: var(--apo-accent); }
.apo-byline .lucky-author-date {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apo-muted);
}
.apo-byline .lucky-meta-sep { display: none; }

.apo-prose {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--apo-text);
  max-width: var(--apo-measure);
}
.apo-prose > *:first-child { margin-top: 0; }
.apo-prose > p:first-of-type {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--apo-ink);
}
.apo-prose > p:first-of-type::first-letter {
  font-family: var(--apo-display);
  font-size: 3.4em;
  float: left;
  line-height: 0.8;
  padding: 0.08em 0.12em 0 0;
  color: var(--apo-accent);
  font-weight: 500;
}
.apo-prose h2,
.apo-prose h3 {
  font-family: var(--apo-display);
  font-weight: 500;
  color: var(--apo-ink);
  margin-top: 2em;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.apo-prose h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.1rem);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--apo-line);
}
.apo-prose h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.apo-prose a {
  color: var(--apo-accent);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.45s var(--apo-ease);
}
.apo-prose a:hover { background-size: 100% 1px; }
.apo-prose blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.35rem;
  border-left: 1px solid var(--apo-accent);
  background: transparent;
  font-family: var(--apo-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--apo-ink);
}
.apo-prose figcaption,
.apo-prose .wp-caption-text {
  margin-top: 0.65rem;
  font-family: var(--apo-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--apo-muted);
}
.apo-prose img { border-radius: 0; }

.apo-shell__aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 1025px) {
  .apo-shell__aside {
    position: sticky;
    top: calc(var(--apo-header-h) + 1.5rem);
  }
}
.apo-panel {
  background: var(--apo-white);
  border: 1px solid var(--apo-line);
  padding: 1.75rem 1.5rem 1.85rem;
  box-shadow: none;
}
.apo-panel--muted { background: var(--apo-warm); }
.apo-panel--accent {
  background: var(--apo-ink);
  border-color: var(--apo-ink);
  color: #fff;
}
.apo-panel--accent .apo-panel__kicker { color: #c9a0a2; }
.apo-panel--accent .apo-panel__title { color: #fff; }
.apo-panel--accent .apo-contact-list,
.apo-panel--accent .apo-contact-list a { color: #fff; }
.apo-panel--accent .apo-contact-list__label { color: rgba(255,255,255,0.55); }
.apo-panel--accent .apo-contact-list li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.apo-panel__title {
  margin: 0 0 1.35rem;
  font-family: var(--apo-display);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--apo-ink);
  letter-spacing: -0.01em;
}

.apo-contact-list--page {
  max-width: none;
}
.apo-contact-list--page li {
  grid-template-columns: 88px 1fr;
  font-size: 0.92rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--apo-line);
  color: var(--apo-text);
}
.apo-contact-block .apo-contact-list--page a {
  color: var(--apo-ink);
  border-bottom: 1px solid transparent;
}
.apo-contact-block .apo-contact-list--page a:hover {
  color: var(--apo-accent);
  border-bottom-color: var(--apo-accent);
}
.apo-panel--accent .apo-contact-list--page li { border-bottom-color: rgba(255,255,255,0.1); }

.apo-hours__table--page {
  width: 100%;
  font-size: 0.9rem;
}
.apo-hours__table--page th { color: var(--apo-ink); }

.apo-related {
  list-style: none;
  margin: 0;
  padding: 0;
}
.apo-related li { border-top: 1px solid var(--apo-line); }
.apo-related li:first-child { border-top: 0; }
.apo-related a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.95rem 0;
  text-decoration: none;
  color: var(--apo-ink);
}
.apo-related a:hover span { color: var(--apo-accent); }
.apo-related span {
  font-family: var(--apo-display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
}
.apo-related time {
  font-size: 0.7rem;
  color: var(--apo-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.apo-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--apo-line);
}
.apo-tags__label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--apo-muted);
  margin-right: 0.35rem;
}
.apo-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  background: transparent;
  border: 1px solid var(--apo-line-strong);
  color: var(--apo-ink);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.35s var(--apo-ease), color 0.35s var(--apo-ease);
}
.apo-chip:hover {
  border-color: var(--apo-accent);
  color: var(--apo-accent);
  background: transparent;
  text-decoration: none;
}

/* ==========================================================================
   Archive cards
   ========================================================================== */
.apo-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
}
@media (min-width: 640px) {
  .apo-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
  .apo-shell--archive .lucky-container > .apo-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.apo-card {
  margin: 0;
  background: var(--apo-white);
  border: 1px solid var(--apo-line);
  transition: border-color 0.5s var(--apo-ease), box-shadow 0.5s var(--apo-ease);
}
.apo-card:hover {
  border-color: var(--apo-line-strong);
  box-shadow: var(--apo-shadow-soft);
}
.apo-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.apo-card__link:hover { color: inherit; text-decoration: none; }
.apo-card__media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8e2db;
}
.apo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--apo-ease-slow);
}
.apo-card:hover .apo-card__img { transform: scale(1.04); }
.apo-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e4ddd4 0%, #cfc5ba 100%);
}
.apo-card__badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: 0.4rem 0.75rem;
  background: rgba(251, 249, 246, 0.92);
  border: 1px solid var(--apo-line);
  color: var(--apo-ink);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.apo-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.4rem 1.55rem;
}
.apo-card__title {
  margin: 0 0 0.75rem;
  font-family: var(--apo-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--apo-ink);
}
.apo-card__excerpt {
  margin: 0 0 1.35rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--apo-muted);
  flex: 1;
}
.apo-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--apo-line);
  font-size: 0.72rem;
}
.apo-card__meta time {
  color: var(--apo-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.apo-card__more {
  color: var(--apo-ink);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
}
.apo-card__more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--apo-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--apo-ease);
}
.apo-card:hover .apo-card__more::after { transform: scaleX(1); }
.apo-card:hover .apo-card__more { color: var(--apo-accent); }

.apo-pager {
  margin-top: 3.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
}
.apo-pager .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  width: 100%;
}
.apo-pager a,
.apo-pager span,
.apo-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.35rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--apo-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color 0.35s var(--apo-ease), border-color 0.35s var(--apo-ease);
}
.apo-pager .current,
.apo-pager span.current {
  background: transparent;
  border-bottom-color: var(--apo-ink);
  color: var(--apo-ink);
}
.apo-pager a:hover {
  border-bottom-color: var(--apo-accent);
  color: var(--apo-accent);
}

.apo-empty {
  background: var(--apo-white);
  border: 1px solid var(--apo-line);
  padding: 3.5rem 2rem;
  text-align: center;
  color: var(--apo-muted);
}
.apo-section-label {
  margin: 0.5rem 0 1.75rem;
  font-family: var(--apo-display);
  font-size: clamp(1.65rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--apo-ink);
  letter-spacing: -0.015em;
  padding-left: 0;
  border-left: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--apo-line);
}

/* Author / team profile */
.apo-author-card {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--apo-white);
  border: 1px solid var(--apo-line);
  padding: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
}
.apo-author-card__avatar {
  flex: 0 0 auto;
}
.apo-author-card__avatar img,
.apo-author-card__avatar .avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--apo-line);
  box-shadow: 0 0 0 6px var(--apo-cream);
}
.apo-author-card__info { flex: 1 1 240px; }
.apo-author-card__name { margin-bottom: 0.35rem !important; }
.apo-author-card__bio {
  margin-top: 0.85rem;
  color: var(--apo-muted);
  line-height: 1.75;
  font-size: 1rem;
  max-width: 55ch;
}
.apo-author-card__bio p { margin: 0 0 0.65em; }

/* Legacy lucky-* compatibility */
.lucky-site-main {
  padding: var(--apo-section-y-sm) 0 var(--apo-section-y);
  background: var(--apo-cream);
}
.lucky-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--apo-line);
}
.lucky-page-title {
  margin: 0;
  font-family: var(--apo-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  color: var(--apo-ink);
}
.lucky-archive-description {
  margin-top: 0.75rem;
  color: var(--apo-muted);
}
.lucky-post-cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(var(--lucky-archive-grid-cols, 2), minmax(0, 1fr));
}
.lucky-post-cards-grid.is-list-layout { grid-template-columns: 1fr; }
@media (max-width: 700px) {
  .lucky-post-cards-grid.is-grid-layout { grid-template-columns: 1fr; }
}
.lucky-entry-content { line-height: 1.75; }
.lucky-entry-content a { color: var(--apo-accent); }
.lucky-author-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.75rem;
}
.lucky-author-photo img,
.lucky-author-photo .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.lucky-meta-author-name {
  color: var(--apo-ink);
  font-weight: 500;
  text-decoration: none;
}
.lucky-author-date {
  display: block;
  font-size: 0.8rem;
  color: var(--apo-muted);
}
.lucky-breadcrumb-nav { margin-bottom: 1.5rem; font-size: 0.85rem; }
.lucky-breadcrumb-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  color: var(--apo-muted);
}
.lucky-breadcrumb-home { color: var(--apo-accent); }
.lucky-pagination-nav { margin-top: 2.5rem; text-align: center; }
.lucky-pagination-nav a,
.lucky-pagination-nav span {
  display: inline-block;
  margin: 0 0.35rem;
  padding: 0.5rem 0.25rem;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--apo-muted);
  text-decoration: none;
}
.lucky-pagination-nav .current {
  background: transparent;
  border-bottom-color: var(--apo-ink);
  color: var(--apo-ink);
}

.apo-category-hero {
  background: var(--apo-ink);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 0;
  border-bottom: 0;
}
.apo-category-hero .lucky-page-title { color: #fff; margin: 0; }
.apo-category-hero .lucky-archive-description {
  color: rgba(255,255,255,0.65);
  margin-top: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .apo-reveal { opacity: 1; transform: none; }
  .apo-tile:hover .apo-tile__bg,
  .apo-card:hover .apo-card__img,
  .apo-appointment-card:hover img,
  .apo-shell__featured:hover .apo-shell__featured-img {
    transform: none;
  }
}
