/* ==========================================================================
   Frauenärztinnen Altenbochum – Rosé & Pflaume
   ========================================================================== */

:root {
  --ink: #3A2233;
  --ink-2: #4C3044;
  --berry: #A8506A;
  --berry-dark: #7A3A4F;
  --rose: #F2B8C6;
  --blush: #F3E1E0;
  --paper: #FBF6F3;
  --white: #FFFFFF;
  --muted: #6A5463;
  --muted-2: #8A7383;
  --line: #EFDFDC;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --max: 1280px;
  --header-h: 88px;
  --radius-sm: 18px;
  --radius: 24px;
  --radius-lg: 32px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, address { margin: 0; }
address { font-style: normal; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--berry); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--ink); }
abbr[title] { text-decoration: none; }

:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }

.disp { font-family: var(--font-display); font-weight: 650; letter-spacing: -0.02em; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 16px; color: var(--white); }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--berry); }
.eyebrow--light { color: var(--rose); }

.icon { flex-shrink: 0; }

.section { padding-top: clamp(80px, 10vw, 130px); }
.spacer { height: clamp(80px, 10vw, 130px); }
.section-head { display: flex; flex-direction: column; gap: 18px; padding-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { align-items: center; text-align: center; }
.section-title { font-size: clamp(38px, 5vw, 64px); line-height: 1.02; text-wrap: balance; }
.section-lead { max-width: 680px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.text-link .icon { transition: transform .3s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Header & desktop navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(58, 34, 51, .08); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand { position: relative; display: block; width: 44px; height: 61px; flex-shrink: 0; }
.brand__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.brand__logo--light { opacity: 0; }
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.04); }

.main-nav { margin-left: auto; }
.main-nav__list { display: flex; align-items: center; gap: 4px; }
.main-nav__item { position: relative; }

.main-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 16px;
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.main-nav__link:hover,
.main-nav__item:focus-within > .main-nav__link,
.main-nav__link.is-active { color: var(--berry); background: var(--blush); }
.main-nav__chevron { transition: transform .3s var(--ease); }
.has-mega:hover .main-nav__chevron,
.has-mega:focus-within .main-nav__chevron { transform: rotate(180deg); }

.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: min(820px, 80vw);
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 28px; }
.has-mega:hover .mega,
.has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.mega__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(58, 34, 51, .16);
}
.mega__label { display: block; margin-bottom: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--berry); }
.mega__group ul { display: flex; flex-direction: column; gap: 2px; }
.mega__group a { display: block; padding: 7px 10px; margin-inline: -10px; border-radius: 10px; color: var(--ink); font-size: 15.5px; line-height: 1.35; transition: background-color .2s var(--ease), color .2s var(--ease), transform .25s var(--ease); }
.mega__group a:hover { background: var(--blush); color: var(--berry); transform: translateX(3px); }
.mega__all { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--paper); font-weight: 700; }
.mega__all:hover { background: var(--blush); }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 15.5px;
  white-space: nowrap;
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.header-call:hover { color: var(--ink); background: var(--rose); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(168, 80, 106, .25); }

/* Burger */
.burger {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .35s var(--ease);
}
.burger:hover { background: var(--blush); }
.burger__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.burger__lines { position: absolute; left: 12px; right: 12px; top: 50%; height: 16px; transform: translateY(-50%); }
.burger__lines span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease), opacity .25s var(--ease), top .45s var(--ease), width .35s var(--ease); }
.burger__lines span:nth-child(1) { top: 0; }
.burger__lines span:nth-child(2) { top: 7px; width: 70%; }
.burger__lines span:nth-child(3) { top: 14px; }
.burger:hover .burger__lines span:nth-child(2) { width: 100%; }

.menu-open .burger { color: var(--white); }
.menu-open .burger:hover { background: rgba(255, 255, 255, .12); }
.menu-open .burger__lines span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-open .burger__lines span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.menu-open .burger__lines span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Full-size menu overlay (mobile)
   -------------------------------------------------------------------------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--header-h) + 16px) var(--gutter) 40px;
  background: rgba(58, 34, 51, .9);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.menu-open .menu-overlay { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }

.menu-open .site-header { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .brand__logo--dark { opacity: 0; }
.menu-open .brand__logo--light { opacity: 1; }
.menu-open .header-call { background: var(--rose); color: var(--ink); }

.menu-overlay__nav { display: flex; flex-direction: column; gap: 40px; max-width: 900px; margin-inline: auto; min-height: 100%; }
.menu-overlay__list > li { border-bottom: 1px solid rgba(255, 255, 255, .14); opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .55s var(--ease); }
.menu-open .menu-overlay__list > li { opacity: 1; transform: none; }
.menu-open .menu-overlay__list > li:nth-child(1) { transition-delay: .05s; }
.menu-open .menu-overlay__list > li:nth-child(2) { transition-delay: .09s; }
.menu-open .menu-overlay__list > li:nth-child(3) { transition-delay: .13s; }
.menu-open .menu-overlay__list > li:nth-child(4) { transition-delay: .17s; }
.menu-open .menu-overlay__list > li:nth-child(5) { transition-delay: .21s; }
.menu-open .menu-overlay__list > li:nth-child(6) { transition-delay: .25s; }
.menu-open .menu-overlay__list > li:nth-child(7) { transition-delay: .29s; }

.menu-overlay__link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 0;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(28px, 6vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: color .25s var(--ease), transform .35s var(--ease);
}
.menu-overlay__link::before {
  content: "";
  width: 0;
  height: 2px;
  margin-right: 0;
  background: var(--rose);
  transition: width .35s var(--ease), margin-right .35s var(--ease);
}
.menu-overlay__link:hover,
.menu-overlay__link:focus-visible { color: var(--rose); }
.menu-overlay__link:hover::before,
.menu-overlay__link:focus-visible::before { width: 22px; margin-right: 14px; }

.menu-overlay__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 4px 0 24px; }
.menu-overlay__label { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.menu-overlay__group ul { display: flex; flex-direction: column; }
.menu-overlay__sublink { display: inline-block; padding: 6px 0; color: var(--white); font-size: 17px; line-height: 1.35; transition: color .2s var(--ease), transform .3s var(--ease); }
.menu-overlay__sublink:hover,
.menu-overlay__sublink:focus-visible { color: var(--rose); transform: translateX(6px); }

.menu-overlay__footer { display: flex; flex-direction: column; gap: 6px; margin-top: auto; color: rgba(255, 255, 255, .7); font-size: 15.5px; }
.menu-overlay__call { color: var(--rose); font-family: var(--font-display); font-weight: 650; font-size: 28px; letter-spacing: -0.02em; }
.menu-overlay__call:hover { color: var(--white); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { display: grid; grid-template-columns: 5fr 7fr; min-height: clamp(560px, 46vw, 660px); }
.hero__panel { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px) clamp(40px, 4.5vw, 64px) max(var(--gutter), calc((100vw - var(--max)) / 2)); background: var(--ink); color: #FBEFF0; }
/* Oversized logo rose, 30 % outside the left edge, glides in on load */
.hero__rose {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: -1;
  width: auto;
  height: 115%;
  max-width: none;
  opacity: .07;
  transform: translate(-30%, -50%);
  pointer-events: none;
  user-select: none;
  animation: rose-in 2.8s cubic-bezier(.16, 1, .3, 1) .2s both;
}
@keyframes rose-in {
  from { opacity: 0; transform: translate(-95%, -50%) rotate(-10deg); }
  to { opacity: .07; transform: translate(-30%, -50%) rotate(0deg); }
}
.hero__text { display: flex; flex-direction: column; gap: 24px; }
.hero__title { font-size: clamp(44px, 5.4vw, 72px); line-height: 1; text-wrap: balance; }
.hero__lead { max-width: 520px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: #D9BFCB; text-wrap: pretty; }
.hero__cta { display: flex; flex-direction: column; gap: 12px; color: #D9BFCB; font-size: 15px; }

.btn-call { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 26px; border-radius: 999px; background: var(--rose); color: var(--ink); transition: background-color .25s var(--ease), transform .25s var(--ease); }
.btn-call .disp { font-size: clamp(22px, 2.2vw, 26px); }
.btn-call:hover { background: var(--white); color: var(--ink); transform: translateY(-2px); }

.hero__media { position: relative; min-height: 320px; }
/* Crop from the left so the recoloured bench cushions stay visible */
.hero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 6% center; }

.status { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 20px; background: var(--white); box-shadow: 0 18px 40px rgba(58, 34, 51, .18); }
.status > div { display: flex; flex-direction: column; gap: 2px; }
.status__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted-2); box-shadow: 0 0 0 5px var(--line); }
.status.is-open .status__dot { background: var(--ink); box-shadow: 0 0 0 5px #EADCE3; animation: pulse 2.4s var(--ease) infinite; }
.status__title { font-size: 18px; line-height: 1.2; }
.status__text { font-size: 14.5px; color: var(--muted); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px #EADCE3; }
  50% { box-shadow: 0 0 0 9px rgba(234, 220, 227, .45); }
}

/* --------------------------------------------------------------------------
   Notices & opening hours
   -------------------------------------------------------------------------- */

.news-section { padding-top: clamp(64px, 8vw, 110px); }
.news-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-bottom: clamp(24px, 3vw, 36px); }
.news-section__head > div { display: flex; flex-direction: column; gap: 14px; }
.news-section__list { display: flex; flex-direction: column; gap: 16px; }

.news-card { display: grid; grid-template-columns: minmax(240px, 4fr) 8fr; overflow: hidden; border-radius: 28px; background: var(--white); border: 1px solid var(--line); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.news-card:hover { box-shadow: 0 22px 50px rgba(58, 34, 51, .09); transform: translateY(-2px); }
.news-card__when { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(28px, 3.4vw, 40px); background: var(--ink); color: #FBEFF0; }
.news-card__icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; background: rgba(242, 184, 198, .16); color: var(--rose); }
.news-card__kind { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); }
.news-card__range { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; }
.news-card__status { margin-top: 6px; padding: 6px 14px; border-radius: 999px; background: var(--rose); color: var(--ink); font-size: 14.5px; font-weight: 700; }
.news-card__body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(28px, 3.4vw, 44px); color: #5A4452; font-size: 18px; line-height: 1.6; }
.news-card__title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; color: var(--ink); }
.news-card__substitute { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font-size: 16.5px; }
.news-card__substitute > span { font-size: 14px; font-weight: 700; color: var(--berry); }

#sprechzeiten { padding-top: clamp(64px, 8vw, 110px); }
.hours { display: grid; grid-template-columns: 4fr 7fr; gap: 40px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg); background: var(--ink); color: #FBEFF0; }
.hours__intro { display: flex; flex-direction: column; gap: 14px; }
.hours__title { font-size: clamp(38px, 4.4vw, 52px); line-height: 1; }
.hours__intro p { color: #D9BFCB; }
.hours__phone { font-size: clamp(24px, 2.6vw, 30px); color: var(--rose); }
.hours__phone:hover { color: var(--white); }
.hours__days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hours__day { display: flex; flex-direction: column; gap: 8px; padding: 22px 18px; border-radius: 20px; background: var(--ink-2); font-size: 16px; transition: transform .3s var(--ease); }
.hours__day:hover { transform: translateY(-3px); }
.hours__day.is-today { background: var(--rose); color: var(--ink); }
.hours__name { font-size: 26px; line-height: 1.1; }
.hours__day.is-holiday { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(242, 184, 198, .45); }
.hours__day.is-holiday.is-today { background: transparent; color: #FBEFF0; box-shadow: inset 0 0 0 2px var(--rose); }
.hours__holiday { font-weight: 700; color: var(--rose); }
.hours__holiday-name { font-size: 14px; line-height: 1.35; color: #D9BFCB; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card { display: flex; flex-direction: column; gap: 20px; padding: 36px; border-radius: 28px; background: var(--blush); color: var(--berry); }
.service-card--light { background: var(--white); border: 1px solid var(--line); }
.service-card__title { font-size: 30px; color: var(--ink); }
.service-card__list { display: flex; flex-direction: column; }
.service-card__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(58, 34, 51, .08); color: var(--ink); font-size: 17px; line-height: 1.35; }
.service-card__list li:last-child a { border-bottom: 0; }
.service-card__list .icon { opacity: 0; transform: translateX(-6px); color: var(--berry); transition: opacity .25s var(--ease), transform .3s var(--ease); }
.service-card__list a:hover { color: var(--berry); }
.service-card__list a:hover .icon { opacity: 1; transform: none; }

.feature { display: grid; grid-template-columns: 4fr 8fr; gap: 24px 40px; margin-top: 20px; padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 56px); border-radius: 28px; background: var(--white); border: 1px solid var(--line); }
.feature__head { display: flex; flex-direction: column; gap: 12px; }
.feature__eyebrow { font-size: 14px; font-weight: 700; color: var(--berry); }
.feature__title { font-size: clamp(32px, 3.4vw, 42px); line-height: 1.02; }
.feature__body { display: flex; flex-direction: column; gap: 20px; color: #5A4452; font-size: 18px; line-height: 1.65; }
.feature__note { display: flex; flex-direction: column; gap: 6px; padding: 22px 26px; border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.6; }
.feature__note > span { font-size: 14px; font-weight: 700; color: var(--berry); }

/* --------------------------------------------------------------------------
   Split layouts, galleries, doctors
   -------------------------------------------------------------------------- */

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split__text { display: flex; flex-direction: column; gap: 24px; }
.split__text p { font-size: clamp(17px, 1.5vw, 18.5px); color: #5A4452; }
.split__image { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.split--text-first { padding-top: clamp(24px, 4vw, 48px); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 250px)); gap: 20px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.gallery__tall { grid-row: span 2; }

.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 320px; gap: 20px; padding-top: clamp(48px, 6vw, 80px); }
.photo-grid__wide { grid-column: span 2; }
.photo-grid__tall { grid-column: 4; grid-row: 1 / span 2; }
.photo-grid__banner { grid-column: 1 / span 3; }

/* Room photos with caption overlay */
.room { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--blush); outline-offset: 4px; container-type: inline-size; }
.room img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .8s var(--ease); }
.room.room--split { aspect-ratio: 3 / 2; height: auto; }
.room::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58, 34, 51, 0) 35%, rgba(58, 34, 51, .82) 100%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.room__caption {
  position: absolute;
  left: clamp(18px, 2.2vw, 28px);
  right: clamp(18px, 2.2vw, 28px);
  bottom: clamp(16px, 2vw, 24px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--white);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.room__eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
/* Sized by the tile width, so long names like "Untersuchungsraum" fit narrow tiles */
.room__title { font-size: clamp(18px, 8cqi, 30px); line-height: 1.1; overflow-wrap: break-word; hyphens: auto; }
.room:hover img,
.room:focus-visible img { transform: scale(1.05); }
.room:hover::after,
.room:focus-visible::after,
.room:hover .room__caption,
.room:focus-visible .room__caption { opacity: 1; transform: none; }

@media (hover: none) {
  .room::after,
  .room__caption { opacity: 1; transform: none; }
}

.doctors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; max-width: 1000px; margin-inline: auto; }
.doctor { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.doctor__photo { width: min(320px, 70vw); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--white); border: 8px solid var(--blush); margin-bottom: 8px; transition: transform .5s var(--ease), border-color .3s var(--ease); }
.doctor:hover .doctor__photo { transform: scale(1.02); border-color: var(--rose); }
.doctor__name { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.doctor__role { font-size: 17px; color: var(--muted); }
.doctor__cv { font-size: 15px; color: var(--muted-2); }

.team-doctors { padding-top: clamp(16px, 3vw, 32px); }
.team-text { display: flex; justify-content: center; padding-top: clamp(56px, 7vw, 96px); }
.team-text .prose { font-size: clamp(17px, 1.6vw, 19px); color: #5A4452; text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--paper); font-size: 15px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

#kontakt { padding-top: clamp(80px, 10vw, 140px); }
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-lg); background: var(--blush); }
.contact__text { display: flex; flex-direction: column; gap: 22px; }
.contact__title { font-size: clamp(38px, 4.4vw, 56px); line-height: 1; }
.contact__address { font-size: 21px; line-height: 1.5; }
.contact__lines { display: flex; flex-wrap: wrap; gap: 16px 36px; font-size: 18px; }
.contact__line { display: flex; align-items: center; gap: 14px; }
.contact__line > div { display: flex; flex-direction: column; gap: 2px; }
.contact__icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--berry); box-shadow: inset 0 0 0 1.5px rgba(168, 80, 106, .22); flex-shrink: 0; transition: background-color .25s var(--ease), color .25s var(--ease); }
.contact__line:hover .contact__icon { background: var(--ink); color: var(--rose); }
.contact__lines a { color: var(--ink); }
.contact__lines a:hover { color: var(--berry); }
.contact__label { font-size: 14px; font-weight: 700; color: var(--berry-dark); }
.contact__note { font-size: 15.5px; color: var(--muted); }
.contact__map { position: relative; height: 100%; min-height: 320px; overflow: hidden; border-radius: var(--radius); background: #F0DCDC; }
.contact__map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.contact__map figcaption { position: absolute; right: 14px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(251, 246, 243, .85); font-size: 11.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Sub pages
   -------------------------------------------------------------------------- */

.page-intro { padding-block: clamp(56px, 8vw, 110px) clamp(32px, 4vw, 48px); }
.page-intro__inner { display: flex; flex-direction: column; gap: 18px; }
.page-intro__title { max-width: 980px; font-size: clamp(40px, 6vw, 80px); line-height: 1; text-wrap: balance; }
.page-intro__lead { max-width: 820px; font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); text-wrap: pretty; }

.toc { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 24px; }
.toc__link { padding: 10px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-size: 15.5px; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.toc__link:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.accordion-group { padding-top: clamp(40px, 5vw, 64px); }
.accordion-group__head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; color: var(--berry); }
.accordion-group__title { font-size: clamp(30px, 3.4vw, 42px); color: var(--ink); }
.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion__item { border-radius: 22px; background: var(--white); border: 1px solid var(--line); transition: border-color .25s var(--ease), box-shadow .3s var(--ease); }
.accordion__item:hover { border-color: var(--rose); }
.accordion__item[open] { box-shadow: 0 18px 40px rgba(58, 34, 51, .07); }
.accordion__summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; cursor: pointer; list-style: none; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.3; }
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blush); color: var(--berry); flex-shrink: 0; transition: transform .35s var(--ease), background-color .25s var(--ease), color .25s var(--ease); }
.accordion__summary:hover .accordion__icon { background: var(--rose); color: var(--ink); }
.accordion__item[open] .accordion__icon { transform: rotate(45deg); background: var(--ink); color: var(--white); }
.accordion__content { display: flex; flex-direction: column; gap: 14px; max-width: 900px; padding: 0 28px 28px; color: #5A4452; font-size: 17.5px; line-height: 1.65; }

.news { display: flex; flex-direction: column; gap: 16px; }
.news__empty { display: flex; align-items: center; gap: 18px; padding: 28px 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); color: var(--berry); }
.news__empty p { color: var(--ink); font-size: 18px; }

.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.partner { display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: 28px; background: var(--white); border: 1px solid var(--line); }
.partner__logo { width: 140px; height: 140px; object-fit: contain; margin-bottom: 10px; }
.partner__name { font-size: 22px; line-height: 1.2; }
.partner__fach { color: var(--muted); font-size: 16px; }
.partner__adresse { font-size: 16px; }
.partner .text-link { margin-top: auto; padding-top: 10px; }

.prose { max-width: 860px; }
.prose p + p { margin-top: 16px; }
.legal h2 { margin: 44px 0 12px; font-family: var(--font-display); font-weight: 650; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; line-height: 1.2; }
.legal h3 { margin: 28px 0 8px; font-family: var(--font-display); font-weight: 650; font-size: 21px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #5A4452; }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0; padding-left: 22px; list-style: disc; }
.legal a { word-break: break-word; }
.legal__todo { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--blush); color: var(--berry-dark) !important; font-weight: 700; }
.legal__meta { margin-top: 40px; font-size: 15px; color: var(--muted) !important; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { margin-top: clamp(80px, 10vw, 120px); padding-block: 64px 32px; background: var(--white); border-top: 1px solid var(--line); font-size: 15.5px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.site-footer__brand > div { display: flex; flex-direction: column; gap: 6px; }
.site-footer__brand strong { font-size: 20px; line-height: 1.2; }
.site-footer__brand span { color: var(--muted); line-height: 1.5; }
.site-footer__col { display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.site-footer__col a { color: var(--ink); width: fit-content; background: linear-gradient(var(--berry), var(--berry)) 0 100% / 0 1.5px no-repeat; transition: color .25s var(--ease), background-size .35s var(--ease); }
.site-footer__col a:hover { color: var(--berry); background-size: 100% 1.5px; }
.site-footer__title { margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--berry); }
.site-footer__day { display: inline-block; width: 28px; font-weight: 700; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer__legal { display: flex; gap: 24px; }
.site-footer__legal a { color: var(--muted); }
.site-footer__legal a:hover { color: var(--berry); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  :root { --header-h: 76px; }
  .brand { width: 38px; height: 53px; }
  .main-nav { display: none; }
  .header-call { margin-left: auto; }
  .burger { display: block; }
  .menu-overlay { display: block; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__panel { padding-inline: var(--gutter); }
  .hero__media { min-height: clamp(320px, 56vw, 520px); }

  .hours { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; }
  .photo-grid__wide,
  .photo-grid__banner { grid-column: 1 / -1; }
  .photo-grid__tall { grid-column: auto; grid-row: auto; }
}

@media (max-width: 900px) {
  .service-cards,
  .partners,
  .news-card { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .gallery { grid-template-rows: repeat(2, minmax(0, 200px)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-call span { display: none; }
  .header-call { padding: 0; width: 48px; height: 48px; justify-content: center; }

  .menu-overlay__groups { grid-template-columns: 1fr; gap: 18px; }

  .hours__days { grid-template-columns: 1fr; gap: 8px; }
  .hours__day { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 14px 18px; }
  .hours__name { width: 44px; font-size: 20px; }

  .doctors { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .photo-grid__wide,
  .photo-grid__banner,
  .photo-grid__tall { grid-column: auto; grid-row: auto; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .accordion__summary { padding: 18px 20px; }
  .accordion__content { padding: 0 20px 22px; }
  .service-card { padding: 28px; }
}

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