/* Responsive layout over the production styles; no backend or JavaScript required. */
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0 auto; max-width: 1440px; padding: clamp(16px, 3vw, 40px); font: 16px/1.6 Verdana, Tahoma, Arial, sans-serif; overflow-wrap: anywhere; }
header { position: static; margin: 0 0 32px; font-variant: normal; letter-spacing: normal; font-size: 1rem; line-height: 1.6; }
#menu-top-left { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; width: auto; margin: 0 0 24px; padding: 0 0 12px; border-bottom: 1px solid #777; font-size: 1rem; }
#menu-top-left a { display: inline-flex; align-items: center; min-height: 44px; }
#menu-top-left a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
#head-text, #head, header > h1 { position: static; margin: 0; font-family: Tahoma, Verdana, Arial, sans-serif; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.25; letter-spacing: normal; }
#head { margin: 24px 0 32px; }
main { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr) minmax(0, .9fr); gap: 32px; padding: 0; }
main > *, #column-left, #column-middle, #column-right, #column-termine, #column-middle-wide { min-width: 0; }
#column-left, #column-middle, #column-right, #column-termine, #column-middle-wide { position: static !important; top: auto; left: auto; width: auto; max-width: 100%; padding: 0; font-size: 1rem; line-height: 1.6; }
body > #column-left, body > #column-middle, body > #column-right, body > #column-termine, body > #column-middle-wide { max-width: 960px; margin: 0 auto 32px; }
/* Text-only pages remain a single readable column. */
main:has(> section:first-child h2) { grid-template-columns: 1fr; max-width: 960px; margin-inline: auto; }
p { font-size: inherit; margin: 0 0 1rem; }
ul, ol { padding-left: 1.5rem; }
li + li { margin-top: .5rem; }
h1, h2, h3, h4 { line-height: 1.3; margin: 1.5rem 0 .75rem; }
h1 { font-size: 1.8rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.1rem; }
#column-right > h1:first-child { margin-top: 0; }
a { text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #005b96; outline-offset: 4px; }
img { float: none; max-width: 100%; height: auto; margin: 0; }
.doctor-intro { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.doctor-intro img { width: 154px; }
.doctor-intro > div { flex: 1 1 160px; overflow: visible !important; }
iframe { display: block; width: 100%; max-width: 100%; border: 0; }
iframe[src*="google.com/maps"] { height: 282px; }
medflex-widget { display: block; max-width: 100%; }
iframe[src*="medflex"] { min-height: 140px; }
a.btn, a.btn:visited { padding: 12px 20px; background: #005b96; color: #fff; }
a.btn:hover { background: #004675; color: #fff; }
hr { border: 0; border-top: 1px solid #b9b9a6; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 10px; font-size: .875rem; }
table th { font-weight: bold; }
table td div { font-size: .75rem !important; }
.table-scroll { max-width: 100%; overflow-x: auto; margin-bottom: 1rem; }
.table-scroll table { min-width: 560px; }
.table-scroll:focus-visible { outline-offset: -3px; }
footer, #footer { position: static; width: auto; margin-top: 40px; padding-top: 16px; border-top: 1px solid #777; font-size: .875rem; }
@media (max-width: 1400px) {
 main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
 main > #column-right { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
 main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
 main > #column-right { grid-column: auto; }
 #menu-top-left { gap: 4px 16px; }
}

/* Long legal text stays in one readable column, including its draft notice. */
main.privacy-content { grid-template-columns: minmax(0, 1fr); max-width: 960px; margin-inline: auto; gap: 0; }
main.legal-content { grid-template-columns: minmax(0, 1fr); max-width: 960px; margin-inline: auto; gap: 0; }
.legal-draft { margin-top: 24px; padding: 16px; border: 1px solid #a17921; background: #fff5d6; }

/* Weekly hours: day rows on wide screens, labelled day blocks on narrow screens. */
.practice-hours { margin-block: 16px; }
.practice-hours th, .practice-hours td { text-align: left; padding: 10px 8px; border: 1px solid #c9c9af; }
.practice-hours thead th { background: #e5e5d5; font-size: .85rem; }
.practice-hours tbody th { background: #f0f0df; font-size: .9rem; }
.practice-hours td { background: #fff; line-height: 1.6; }
.practice-hours td.private-hours { background: #fff5d6; }
.hours-label { display: none; }
.hours-none { color: #555; font-size: .8rem; }
.open-hours-link { display: inline-block; padding-block: 8px; text-decoration: underline !important; }
@media (max-width: 700px) {
 .practice-hours, .practice-hours tbody, .practice-hours tr, .practice-hours th, .practice-hours td { display: block; width: 100%; }
 .practice-hours thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .practice-hours tbody tr { margin-bottom: 16px; border: 1px solid #b9b9a6; border-radius: 6px; overflow: hidden; }
 .practice-hours tbody th, .practice-hours tbody td { border: 0; padding: 10px 12px; }
 .practice-hours tbody th { font-size: 1rem; }
 .practice-hours tbody td + td { border-top: 1px solid #ddd5ba; }
 .hours-label { display: block; margin-bottom: 3px; font-weight: bold; }
}

/* Keep the compact left messenger at its natural size inside the iframe,
   scaling the complete banner to fit rather than clipping its contents. */
#column-left medflex-widget { display: block; width: 100%; max-width: 310px; overflow: hidden; }
#column-left medflex-widget iframe { min-height: 0; }

@media (max-width: 700px) {
 .practice-hours tbody td.private-hours-empty { display: none; }
}

/* Native disclosure menu: works on mobile without JavaScript. */
.mobile-header { display: none; }
@media (max-width: 700px) {
 .mobile-header { display: flex; position: relative; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #777; }
 .mobile-site-title, .mobile-site-title:visited { color: #666; font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 1.25rem; font-weight: 700; line-height: 1.25; text-decoration: none; }
 header > #menu-top-left { display: none; }
 .desktop-home-title { display: none; }
 .mobile-navigation { flex: 0 0 44px; }
 .mobile-navigation > summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #aaa; border-radius: 5px; cursor: pointer; color: #666; list-style: none; }
 .mobile-navigation > summary::-webkit-details-marker { display: none; }
 .mobile-navigation[open] > summary { background: #e8e8d7; }
 .mobile-menu-links { position: absolute; top: calc(100% - 4px); right: 0; z-index: 20; display: flex; flex-direction: column; width: min(320px, calc(100vw - 32px)); padding: 8px; background: #fafae8; border: 1px solid #aaa; border-radius: 5px; box-shadow: 0 8px 20px rgb(0 0 0 / 12%); }
 .mobile-menu-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: 1rem; font-weight: 600; }
 .mobile-menu-links a[aria-current="page"] { text-decoration: underline; }
}

@media (min-width: 701px) {
 header .mobile-header { display: none !important; }
 header > #menu-top-left { display: flex; }
 header .desktop-home-title { display: block; }
}

/* Dated weekly schedule with horizontal weekdays on all screens. */
.weekly-hours-date { margin-bottom: 12px; }
.weekly-hours-scroll table { min-width: 520px; table-layout: fixed; }
.weekly-hours th, .weekly-hours td { width: 20%; padding: 12px 6px; text-align: center; border: 1px solid #c9c9af; }
.weekly-hours thead th { background: #e5e5d5; color: #252525; font-size: .85rem; }
.weekly-hours td { background: #fff; white-space: nowrap; font-size: .875rem; }
.weekly-hours tbody tr + tr td { background: #fff; }
.weekly-hours-hint { display: none; }
@media (max-width: 700px) { .weekly-hours-hint { display: block; font-size: .8rem; color: #555; } }

.weekly-hours-mobile { display: none; }
@media (max-width: 700px) {
 .weekly-hours-scroll { display: none; }
 .weekly-hours-mobile { display: block; }
 .weekly-day { margin-bottom: 16px; border: 1px solid #b9b9a6; border-radius: 6px; overflow: hidden; }
 .weekly-day h4 { margin: 0; padding: 10px 12px; background: #e5e5d5; color: #252525; font-size: 1rem; }
 .weekly-day p { margin: 0; padding: 10px 12px; background: #fff; line-height: 1.6; }
}

/* Same neutral palette for the separate open consultation timetable. */
.open-consultation-hours th { background: #e5e5d5; color: #252525; border-color: #c9c9af; }
.open-consultation-hours td { background: #fff; border-color: #c9c9af; }
