/* Altstadt-Apotheke — premium pharmacy palette */
:root {
  --apo-accent: #9b1c1f;
  --apo-red: var(--apo-accent);
  --apo-red-dark: #7a1518;
  --apo-red-soft: #f3e8e8;
  --apo-ink: #141414;
  --apo-ink-soft: #1f1f1f;
  --apo-cream: #f7f4f0;
  --apo-grey: #f0ece7;
  --apo-grey-mid: #e2ddd6;
  --apo-text: #1c1c1c;
  --apo-muted: #6a6560;
  --apo-white: #ffffff;
  --apo-footer-bg: #141414;
  --apo-footer-text: #f5f2ee;
  --apo-font: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --apo-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --apo-header-h: 88px;
  --apo-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --apo-shadow: 0 10px 40px rgba(20, 20, 20, 0.08);
}

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

html { scroll-behavior: smooth; }

body.apo-site {
  margin: 0;
  color: var(--apo-text);
  background: var(--apo-white);
  font-family: var(--apo-font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.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: 12px 16px; background: #fff; color: var(--apo-red);
  outline: 3px solid var(--apo-red);
}

/* —— Header (premium) —— */
.apo-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247, 244, 240, 0.94);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  transition: box-shadow 0.3s var(--apo-ease), background 0.3s;
}
.apo-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--apo-shadow);
}
.admin-bar .apo-header { top: 32px; }

.apo-header__shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
.apo-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 10px 0;
}

.apo-header__brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 240px;
}
.apo-header__logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.apo-logo { width: 180px; max-width: 100%; height: auto; }
.apo-site-title {
  display: inline-block;
  font-family: var(--apo-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--apo-ink);
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.apo-header__tagline {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  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: 1100px) {
  .apo-header__nav { display: flex; }
}

.apo-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 2px;
}
.apo-nav-list > li { position: relative; }
.apo-nav-list > li > a {
  display: block;
  padding: 10px 11px;
  color: var(--apo-ink);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}
.apo-nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 6px;
  height: 1px;
  background: var(--apo-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--apo-ease);
}
.apo-nav-list > li > a:hover::after,
.apo-nav-list > li.current-menu-item > a::after {
  transform: scaleX(1);
}
.apo-nav-list > li > a:hover,
.apo-nav-list > li.current-menu-item > a {
  color: var(--apo-accent);
  text-decoration: none;
}
.apo-nav-list .has-dropdown > a,
.apo-nav-list .menu-item-has-children > a {
  padding-right: 18px;
}
.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: 6px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  float: none;
}

.apo-dropdown,
.apo-nav-list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--apo-grey-mid);
  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: 9px 18px;
  color: var(--apo-text);
  font-size: 0.9rem;
  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: 4px;
  margin-left: auto;
}
.apo-icon-btn,
.apo-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--apo-ink);
  cursor: pointer;
  padding: 8px 10px;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.apo-icon-btn:hover,
.apo-menu-toggle:hover {
  background: rgba(155, 28, 31, 0.08);
  color: var(--apo-accent);
  text-decoration: none;
}
.apo-icon-btn__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
@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.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 575px) {
  .apo-menu-toggle__label { display: none; }
}

.apo-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  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' viewBox='0 0 16 16'%3E%3Cpath d='M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.568 17.568 0 0 0 4.168 6.608 17.569 17.569 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.678.678 0 0 0-.58-.122l-2.19.547a1.745 1.745 0 0 1-1.657-.459L5.482 8.062a1.745 1.745 0 0 1-.46-1.657l.548-2.19a.678.678 0 0 0-.122-.58L3.654 1.328z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.568 17.568 0 0 0 4.168 6.608 17.569 17.569 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.678.678 0 0 0-.58-.122l-2.19.547a1.745 1.745 0 0 1-1.657-.459L5.482 8.062a1.745 1.745 0 0 1-.46-1.657l.548-2.19a.678.678 0 0 0-.122-.58L3.654 1.328z'/%3E%3C/svg%3E");
}
.apo-icon--search {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
}
.apo-icon--clock {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z'/%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z'/%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z'/%3E%3C/svg%3E");
}

.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.75rem;
  font-weight: 500;
  color: var(--apo-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.apo-hours__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, 90vw);
  padding: 22px;
  background: #fff;
  border: 1px solid var(--apo-grey-mid);
  box-shadow: var(--apo-shadow);
  z-index: 60;
}
.apo-hours__panel h3 {
  margin: 16px 0 12px;
  font-family: var(--apo-display);
  font-size: 1.25rem;
  text-align: center;
  font-weight: 600;
}
.apo-hours__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.apo-hours__table th {
  text-align: left;
  font-weight: 600;
  padding: 6px 8px 6px 0;
  vertical-align: top;
}
.apo-hours__table td {
  text-align: right;
  padding: 6px 0;
  color: var(--apo-muted);
}

.apo-search-panel {
  border-top: 1px solid var(--apo-grey-mid);
  background: var(--apo-cream);
  padding: 18px 24px;
}
.apo-search-form {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}
.apo-search-form input {
  flex: 1;
  border: 1px solid var(--apo-grey-mid);
  padding: 12px 14px;
  background: #fff;
  border-radius: 2px;
}

.apo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.apo-btn--solid {
  background: var(--apo-accent);
  color: #fff;
  width: 100%;
}
.apo-btn--solid:hover {
  background: var(--apo-red-dark);
  color: #fff;
  text-decoration: none;
}

/* Offcanvas */
.apo-offcanvas[hidden] { display: none !important; }
.apo-offcanvas {
  position: fixed;
  inset: 0;
  z-index: 300;
}
.apo-offcanvas__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.apo-offcanvas__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(380px, 92vw);
  height: 100%;
  background: #fff;
  overflow: auto;
  transform: translateX(0);
  animation: apo-slide 0.28s var(--apo-ease);
}
@keyframes apo-slide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.apo-offcanvas__header {
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--apo-grey-mid);
  position: relative;
}
.apo-offcanvas__logo {
  margin-bottom: 12px;
  max-width: 160px;
  padding-right: 28px;
}
.apo-offcanvas__logo .apo-logo { width: 140px; }
.apo-offcanvas__logo .apo-site-title { font-size: 1.35rem; }

.apo-offcanvas__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--apo-text);
}
.apo-offcanvas__address {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-style: normal;
  padding-right: 28px;
  font-size: 0.9rem;
}
.apo-offcanvas__nav { padding: 8px 0 32px; }
.apo-offcanvas__nav .apo-nav-list {
  flex-direction: column;
  align-items: stretch;
}
.apo-offcanvas__nav .apo-nav-list > li > a {
  padding: 12px 20px;
  font-size: 1rem;
  border-bottom: 1px solid var(--apo-grey-mid);
  white-space: normal;
}
.apo-offcanvas__nav .apo-dropdown,
.apo-offcanvas__nav .sub-menu {
  position: static;
  display: none;
  box-shadow: none;
  border: 0;
  background: var(--apo-grey);
  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: 8px;
  top: 8px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--apo-red);
  font-size: 1.25rem;
  cursor: pointer;
}
.apo-offcanvas__nav li,
.apo-header__nav li { position: relative; }
@media (min-width: 1100px) {
  .apo-header__nav .apo-submenu-toggle { display: none; }
}

body.apo-menu-open { overflow: hidden; }

/* —— Homepage tiles —— */
.apo-home { width: 100%; }
.apo-home__cms {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.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-tile {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--apo-grey);
}
.apo-tile--full { min-height: 420px; }
.apo-tile--hero { min-height: 480px; }
.apo-tile__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.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: 32px 20px 40px;
  text-align: center;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.05) 100%);
}
.apo-tile__overlay--bottom { justify-content: flex-end; align-items: center; }
.apo-tile__overlay h1,
.apo-tile__overlay h2,
.apo-hero__title {
  margin: 0 0 16px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.apo-hero__title { font-size: clamp(1.4rem, 2.8vw, 2.1rem); }

.apo-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.apo-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  min-height: 110px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--apo-red);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.25s var(--apo-ease), background 0.25s;
}
.apo-cta:hover {
  background: #fff;
  transform: translateY(-3px);
  text-decoration: none;
  color: var(--apo-red-dark);
}
.apo-cta__icon {
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.apo-cta__icon--camera::before { content: "📷"; font-size: 14px; line-height: 24px; }
.apo-cta__icon--gallery::before { content: "🖼"; font-size: 14px; line-height: 24px; }
.apo-cta__icon--scan::before { content: "▦"; font-size: 14px; line-height: 24px; }
.apo-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font-style: normal;
}

.apo-tile--erezept { background: #ececec; min-height: 360px; }
.apo-tile__caption--erezept {
  position: absolute;
  z-index: 2;
  left: 24px;
  top: 24px;
  max-width: 55%;
}
.apo-erezept-line {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.25;
  color: var(--apo-muted);
  letter-spacing: 0.02em;
}
.apo-erezept-line strong { color: var(--apo-red); font-weight: 700; }

.apo-tile--partner {
  background: var(--apo-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  min-height: 360px;
  color: #fff;
}
.apo-tile__heading {
  margin: 0 0 28px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}
.apo-partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 36px;
  background: #fff;
  color: var(--apo-text);
  text-decoration: none;
  min-width: 220px;
  transition: transform 0.25s var(--apo-ease);
}
.apo-partner-card:hover {
  transform: scale(1.02);
  text-decoration: none;
  color: var(--apo-text);
}
.apo-partner-card img { max-width: 180px; margin-bottom: 4px; }
.apo-partner-card strong { font-size: 1.05rem; }
.apo-partner-card span { font-size: 0.9rem; color: var(--apo-muted); }

.apo-further {
  color: inherit;
  text-decoration: underline;
  font-size: 0.95rem;
}
.apo-further--light { color: #fff; margin-top: 20px; display: inline-block; }
.apo-article-kicker {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.95;
}
.apo-article-link {
  display: block;
  height: 100%;
  min-height: 320px;
  color: #fff;
  text-decoration: none;
}
.apo-article-link:hover { color: #fff; text-decoration: none; }
.apo-article-link .apo-tile__overlay { min-height: 320px; }

.apo-tile--season,
.apo-tile--article { min-height: 360px; }
.apo-tile--season .apo-tile__overlay,
.apo-tile--article .apo-tile__overlay { min-height: 360px; }

/* Services band */
.apo-services {
  background: var(--apo-accent);
  color: #fff;
  text-align: center;
  padding: 56px 24px 48px;
}
.apo-services h2 {
  margin: 0 0 36px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
}
.apo-services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 1100px) {
  .apo-services__grid { grid-template-columns: repeat(4, 1fr); }
}
.apo-service {
  color: #fff;
  text-decoration: none;
  padding: 0 8px;
}
.apo-service:hover { color: #fff; text-decoration: none; opacity: 0.92; }
.apo-service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  font-size: 1.5rem;
  opacity: 0.9;
}
.apo-service h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}
.apo-service p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0.95;
}

/* App promo */
.apo-app {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
}
.apo-app__icon {
  margin: 0 auto 16px;
  width: 90px;
  height: 90px;
  border-radius: 18px;
}
.apo-app h2 {
  margin: 0 0 12px;
  color: var(--apo-red);
  font-size: 1.75rem;
}
.apo-lead {
  max-width: 560px;
  margin: 0 auto 10px;
  font-size: 1.05rem;
}
.apo-app__stores {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 16px;
  flex-wrap: wrap;
}
.apo-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 10px 18px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.apo-store-badge:hover { color: #fff; opacity: 0.9; text-decoration: none; }
.apo-app__hint {
  font-size: 0.85rem;
  color: var(--apo-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* Appointment + contact */
.apo-tile--appointment {
  background: #f7ecec;
  min-height: auto;
  padding: 0;
}
.apo-appointment-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--apo-text);
  text-decoration: none;
  background: #f7ecec;
}
.apo-appointment-card:hover { color: var(--apo-text); text-decoration: none; }
.apo-appointment-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.apo-appointment-card__body {
  padding: 24px 28px 12px;
  flex: 1;
}
.apo-appointment-card__body h2 {
  margin: 0 0 12px;
  color: var(--apo-red);
  font-size: 1.35rem;
}
.apo-appointment-card__body p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}
.apo-appointment-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px 20px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.apo-appointment-card__foot .apo-further { color: var(--apo-red); }

.apo-contact-tile {
  background: var(--apo-accent);
  color: #fff;
  min-height: auto;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.apo-contact-tile h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  text-transform: lowercase;
}
.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: 100px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  font-size: 1.05rem;
}
.apo-contact-list__label {
  font-weight: 600;
  opacity: 0.85;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-top: 3px;
}
.apo-contact-tile a { color: #fff; text-decoration: underline; }
.apo-contact-tile a:hover { opacity: 0.9; }

/* —— Footer (premium) —— */
.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: 1200px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}
.apo-footer__grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 768px) {
  .apo-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
  }
}
.apo-footer__logo-link {
  display: inline-block;
  margin-bottom: 18px;
  text-decoration: none;
}
.apo-footer .apo-logo {
  width: 160px;
  filter: brightness(0) invert(1);
}
.apo-footer .apo-site-title {
  color: var(--apo-footer-text);
  font-size: 1.75rem;
}
.apo-footer__desc {
  margin: 0;
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(245, 242, 238, 0.72);
}
.apo-footer__heading {
  margin: 0 0 16px;
  font-family: var(--apo-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}
.apo-footer__addr {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 12px;
  color: rgba(245, 242, 238, 0.82);
}
.apo-footer__phone {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}
.apo-footer__phone a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.apo-footer__phone a:hover { border-bottom-color: #fff; }
.apo-footer__extra {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(245, 242, 238, 0.65);
}
.apo-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.apo-footer-nav a {
  color: rgba(245, 242, 238, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.apo-footer-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.apo-footer__bar {
  background: #0c0c0c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.apo-footer__bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}
.apo-footer__copy {
  font-size: 0.8rem;
  color: rgba(245, 242, 238, 0.55);
  line-height: 1.5;
}
.apo-footer__copy a { color: rgba(245, 242, 238, 0.75); }
.apo-policy-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.apo-policy-nav a {
  color: rgba(245, 242, 238, 0.6);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.apo-policy-nav a:hover {
  color: #fff;
  text-decoration: none;
}

/* Chat FAB */
.apo-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  background: var(--apo-accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(155, 28, 31, 0.35);
  transition: transform 0.2s var(--apo-ease);
}
.apo-chat:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}
.apo-chat__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  position: relative;
}
.apo-chat__icon::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 2px solid var(--apo-accent);
  border-bottom-color: transparent;
}

/* —— Archives / author / inner pages —— */
.lucky-site-main {
  padding: 40px 0 64px;
  background: #fafafa;
}
.lucky-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.lucky-page-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--apo-red);
}
.lucky-page-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--apo-text);
}
.lucky-archive-description {
  margin-top: 8px;
  color: var(--apo-muted);
}
.lucky-post-cards-grid {
  display: grid;
  gap: 20px;
  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-article-card-minimal .apo-card-thumb {
  margin: 0 0 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--apo-grey);
}
.lucky-article-card-minimal .apo-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lucky-article-card-minimal:hover {
  border-color: var(--apo-red);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
}
.lucky-article-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--apo-text);
}
.lucky-article-excerpt {
  color: var(--apo-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.lucky-article-footer-meta {
  font-size: 0.8rem;
  color: var(--apo-muted);
}
.lucky-meta-dot { margin: 0 6px; color: var(--apo-red); }
.lucky-pagination-nav {
  margin-top: 32px;
  text-align: center;
}
.lucky-pagination-nav a,
.lucky-pagination-nav span {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 12px;
  border: 1px solid var(--apo-grey-mid);
  background: #fff;
  color: var(--apo-text);
  text-decoration: none;
}
.lucky-pagination-nav .current {
  background: var(--apo-red);
  border-color: var(--apo-red);
  color: #fff;
}

.lucky-breadcrumb-nav {
  margin-bottom: 24px;
  font-size: 0.85rem;
}
.lucky-breadcrumb-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--apo-muted);
}
.lucky-breadcrumb-home { color: var(--apo-red); }
.lucky-author-archive-wrap { margin-top: 8px; }
.lucky-author-main-layout {
  display: grid;
  gap: 32px;
}
@media (min-width: 960px) {
  .lucky-author-main-layout {
    grid-template-columns: 1fr 280px;
  }
}
.lucky-author-header-refined {
  background: #fff;
  border: 1px solid var(--apo-grey-mid);
  padding: 28px;
  margin-bottom: 28px;
}
.lucky-author-profile-grid {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.lucky-author-avatar-big img,
.lucky-author-avatar-big .avatar {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
}
.lucky-author-name {
  margin: 0 0 6px;
  font-size: 1.75rem;
}
.lucky-author-role {
  color: var(--apo-red);
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: 8px;
}
.lucky-articles-counter {
  display: inline-block;
  padding: 4px 10px;
  background: var(--apo-red-soft);
  color: var(--apo-red);
  font-size: 0.85rem;
  font-weight: 600;
}
.lucky-author-bio-refined {
  margin-top: 20px;
  color: var(--apo-muted);
  line-height: 1.6;
}
.lucky-archive-title-section {
  margin: 0 0 16px;
  font-size: 1.25rem;
  border-left: 4px solid var(--apo-red);
  padding-left: 12px;
}
.lucky-sidebar-widget-refined {
  background: #fff;
  border: 1px solid var(--apo-grey-mid);
  padding: 20px;
}
.lucky-widget-title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: var(--apo-red);
}
.lucky-sidebar-author-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--apo-grey-mid);
  color: inherit;
  text-decoration: none;
}
.lucky-sidebar-author-item:last-child { border-bottom: 0; }
.lucky-sidebar-author-item:hover { color: inherit; text-decoration: none; }
.lucky-sidebar-avatar-small img,
.lucky-sidebar-avatar-small .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.lucky-sidebar-name {
  margin: 0 0 2px;
  font-weight: 600;
}
.lucky-sidebar-role-meta,
.lucky-sidebar-count-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--apo-muted);
}

.lucky-entry-header { margin-bottom: 24px; }
.lucky-entry-title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.lucky-featured-image { margin: 16px 0 24px; }
.lucky-featured-img { width: 100%; border-radius: 0; }
.lucky-entry-content { line-height: 1.7; }
.lucky-entry-content a { color: var(--apo-red); }
.lucky-author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.lucky-author-photo img,
.lucky-author-photo .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.lucky-meta-author-name {
  color: var(--apo-red);
  font-weight: 600;
  text-decoration: none;
}
.lucky-author-date {
  display: block;
  font-size: 0.85rem;
  color: var(--apo-muted);
}

.apo-category-hero {
  background: var(--apo-ink);
  color: #fff;
  padding: 48px 20px;
  margin-bottom: 0;
  border-bottom: 3px solid var(--apo-accent);
}
.apo-category-hero .lucky-container { max-width: 1100px; }
.apo-category-hero .lucky-page-title { color: #fff; margin: 0; }
.apo-category-hero .lucky-archive-description { color: rgba(255,255,255,0.9); margin-top: 10px; }

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