/* Dr. Pamela Lungić – Ordination 1220 Wien
   Keine externen Fonts (DSGVO): System-Schriften */
:root {
  --plum: #5b2d57;
  --plum-dark: #3b1c38;
  --plum-soft: #efe3ec;
  --blush: #f7eeea;
  --cream: #fcfaf7;
  --sage: #5f7a64;
  --sage-soft: #e7eee7;
  --ink: #2a2228;
  --muted: #62575f;
  --line: #e9e0dc;
  --white: #fff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(59, 28, 56, .06), 0 8px 24px rgba(59, 28, 56, .07);
  --wrap: 1160px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { color: var(--plum-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--plum-dark); margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { font: 600 .8rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin: 0 0 .8em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
  font-size: 1rem; line-height: 1.2; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-dark); color: #fff; }
.btn-ghost { border-color: var(--plum); color: var(--plum); background: transparent; }
.btn-ghost:hover { background: var(--plum); color: #fff; }
.btn-light { background: #fff; color: var(--plum-dark); }
.btn-light:hover { background: var(--blush); color: var(--plum-dark); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Topbar */
.topbar { background: var(--plum-dark); color: #f3e9f1; font-size: .88rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .group { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b9b0b6; margin-right: 6px; vertical-align: 1px; }
.status-dot.open { background: #7bd88f; box-shadow: 0 0 0 3px rgba(123, 216, 143, .25); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 250, 247, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--plum-dark); }
.brand img { width: 50px; height: 50px; border-radius: 50%; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; line-height: 1.1; display: block; }
.brand-sub { font-size: .78rem; color: var(--muted); display: block; letter-spacing: .02em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: .55em .8em; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--plum-soft); color: var(--plum-dark); }
.nav .has-sub { position: relative; }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: none; flex-direction: column; align-items: stretch; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: flex; }
.nav .sub a { font-weight: 400; }
.nav .caret { font-size: .7em; margin-left: 4px; }
.nav .nav-cta a { background: var(--plum); color: #fff; padding: .6em 1.1em; border-radius: 999px; margin-left: 6px; }
.nav .nav-cta a:hover { background: var(--plum-dark); color: #fff; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; color: var(--plum-dark); }
.menu-toggle svg { width: 24px; height: 24px; display: block; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  /* backdrop-filter würde das fixierte Menü an den Header binden – auf Mobil daher aus */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
  .nav { position: fixed; top: var(--nav-top, 76px); left: 0; right: 0; bottom: 0; z-index: 70; background: var(--cream); overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px calc(40px + env(safe-area-inset-bottom)); display: none; border-top: 1px solid var(--line); }
  body.menu-open .mobile-bar { display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: .9em 1em; font-size: 1.05rem; }
  .nav .sub { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 14px; background: transparent; }
  .nav .caret { display: none; }
  .nav .nav-cta a { margin: 12px 0 0; text-align: center; }
  body.menu-open { overflow: hidden; }
}

/* Sections */
section { padding: clamp(56px, 7vw, 96px) 0; }
.section-alt { background: var(--blush); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.hero-badges li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-size: .9rem; font-weight: 500; color: var(--plum-dark); }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.today-card { position: absolute; left: -24px; bottom: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; font-size: .95rem; max-width: 250px; }
.today-card strong { display: block; color: var(--plum-dark); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { max-width: 440px; }
  .today-card { left: 12px; bottom: 12px; }
}

/* Page hero (Unterseiten) */
.page-hero { background: linear-gradient(180deg, var(--blush), var(--cream)); padding: 36px 0 56px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #b3a8af; }
.breadcrumb a { color: var(--muted); }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.page-hero-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(59, 28, 56, .04); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dccbd6; color: inherit; }
a.card .more { margin-top: auto; padding-top: 14px; color: var(--plum); font-weight: 600; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--plum-soft); color: var(--plum); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.tag { display: inline-block; align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: .25em .7em; border-radius: 999px; margin-bottom: 12px; }
.tag-kasse { background: var(--sage-soft); color: var(--sage); }
.tag-privat { background: var(--plum-soft); color: var(--plum); }

.info-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -40px; position: relative; }
.info-strip .card { padding: 20px; }
.info-strip strong { display: block; color: var(--plum-dark); font-family: var(--serif); font-size: 1.1rem; margin-bottom: 2px; }
.info-strip p { font-size: .94rem; color: var(--muted); }
@media (max-width: 980px) { .info-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .info-strip { grid-template-columns: 1fr; margin-top: -24px; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f7a64' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.cols-2 { columns: 2; column-gap: 32px; }
.cols-2 li { break-inside: avoid; }
@media (max-width: 620px) { .cols-2 { columns: 1; } }

/* Hours */
.hours { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hours caption { text-align: left; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--plum-dark); padding-bottom: 10px; }
.hours th, .hours td { padding: .6em 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today th, .hours tr.today td { color: var(--plum); font-weight: 700; }
.note { background: var(--sage-soft); border-radius: var(--radius); padding: 14px 18px; font-size: .95rem; margin-top: 18px; }
.note strong { color: var(--sage); }

/* Price tables */
.price-table { width: 100%; border-collapse: collapse; }
.price-table caption { text-align: left; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--plum-dark); padding-bottom: 8px; }
.price-table th, .price-table td { padding: .65em .2em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table td:last-child { font-weight: 600; color: var(--plum-dark); }
.price-table .desc { display: block; font-size: .88rem; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--plum); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 1.1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; position: relative; color: var(--plum-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--plum); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* CTA band */
.cta-band { background: var(--plum-dark); color: #f3e9f1; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 56ch; }

/* Online-Terminbuchung (CGM LIFE iframe) */
[id] { scroll-margin-top: 90px; }
.booking { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(14px, 2.5vw, 28px); }
.booking-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; }
.booking-head h2 { font-size: 1.4rem; margin: 0; }
.booking-frame { display: block; width: 100%; height: 900px; border: 0; border-radius: var(--radius); background: var(--cream); }
.booking-note { margin: 14px 0 0; }
.booking-consent { background: var(--plum-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 48px); text-align: center; }
.booking-consent .icon { margin: 0 auto 16px; background: #fff; }
.booking-consent p { max-width: 60ch; margin-left: auto; margin-right: auto; color: var(--muted); }
.booking-consent h3 { font-size: 1.35rem; }
@media (max-width: 620px) { .booking-frame { height: 1100px; } }

/* Map (Klick-zum-Laden, DSGVO) */
.map-box { border-radius: var(--radius-lg); overflow: hidden; background: var(--plum-soft); min-height: 320px; display: grid; place-items: center; text-align: center; padding: 28px; border: 1px solid var(--line); }
.map-box iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }
.map-box.loaded { padding: 0; display: block; }
.map-box p { max-width: 38ch; margin: 0 auto 14px; font-size: .92rem; color: var(--muted); }

/* 404 */
.error-page { background: linear-gradient(180deg, var(--blush), var(--cream)); }
.error-inner { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.error-inner .lead { margin-left: auto; margin-right: auto; }
.error-code { font-family: var(--serif); font-weight: 600; font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; margin: 0 0 12px; color: var(--plum-soft); -webkit-text-stroke: 2px var(--plum); letter-spacing: .04em; }
.error-links h2 { font-size: 1.25rem; margin-bottom: .4em; }

/* Content pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

/* Footer */
.site-footer { background: #2a1628; color: #d9cbd6; padding: 64px 0 28px; font-size: .95rem; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 1.05rem; color: #fff; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-hours { width: 100%; font-size: .9rem; border-collapse: collapse; }
.footer-hours th { font-weight: 400; text-align: left; padding: 2px 0; }
.footer-hours td { text-align: right; padding: 2px 0; font-variant-numeric: tabular-nums; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #b8a8b4; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile Call-Leiste */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(252, 250, 247, .97); border-top: 1px solid var(--line); }
  .mobile-bar .btn { padding: .8em .6em; font-size: .95rem; }
  body { padding-bottom: 76px; }
}

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