/* =========================================================================
   Ordination Dr. Zorica Mijalković – Relaunch mijalkovic.at
   Handgeschriebenes CSS · keine Frameworks · keine externen Schriften
   Markenwelt: Salbeigrün & Gold auf warmem Creme (Brand-Kit-konform)
   Mobile-first · WCAG-AA-Kontraste · große Schaltflächen · barrierearm
   ========================================================================= */

/* ---------- Design-Tokens ---------------------------------------------- */
:root {
  /* Markenfarben */
  --sage-900: #3f4c3c;
  --sage-800: #4d5c49;
  --sage-700: #5f715b;   /* Primäre Akzentfarbe */
  --sage-600: #6f7f69;
  --sage-500: #8b9a80;
  --sage-100: #e7ece2;
  --sage-50:  #f2f5ee;

  --gold-800: #6f511b;
  --gold-700: #8a6522;
  --gold-600: #a77c35;   /* Gold-Akzent (dekorativ) */
  --gold-500: #c8a869;
  --gold-100: #f1e7d2;

  /* Neutrale Grundfarben (warm) */
  --cream:    #fdf9f3;
  --cream-2:  #f7f1e8;
  --white:    #ffffff;
  --ink:      #2c2a26;   /* Fließtext, hoher Kontrast */
  --ink-soft: #55504733; /* nur für dünne Linien */
  --muted:    #6b6459;   /* sekundärer Text, AA auf Creme/Weiß */
  --line:     #e7e0d4;

  --focus:    #8a6522;

  /* Maße */
  --wrap: 1140px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(60, 50, 30, .06), 0 1px 2px rgba(60, 50, 30, .05);
  --shadow:    0 10px 30px rgba(70, 60, 35, .10);

  /* Schrift: Systemschriften (keine externen Fonts) */
  --serif: Georgia, "Iowan Old Style", "Times New Roman", "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Reset / Basis ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;      /* 18px – gut lesbar, auch für ältere Personen */
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-800); }
a:hover { color: var(--gold-700); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--sage-900);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 .5em;
  letter-spacing: .1px;
}
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.28rem; }
p  { margin: 0 0 1rem; }

/* Fokuszustände deutlich sichtbar */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Skip-Link */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--sage-800); color: #fff;
  padding: .7rem 1.1rem; border-radius: 10px; z-index: 100;
  text-decoration: none; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout-Helfer ---------------------------------------------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section--tint { background: var(--cream-2); }
.section--white { background: var(--white); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .8rem; font-weight: 700; color: var(--gold-700);
  font-family: var(--sans); margin-bottom: .6rem;
}
.lead { color: var(--muted); font-size: 1.15rem; max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Schaltflächen (groß, klarer Kontrast) ---------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: 1.05rem; font-weight: 600;
  padding: .95rem 1.6rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .05s ease;
  min-height: 52px;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--sage-700); color: #fff; }
.btn--primary:hover { background: var(--sage-800); color: #fff; }
.btn--gold { background: var(--gold-700); color: #fff; }
.btn--gold:hover { background: var(--gold-800); color: #fff; }
.btn--ghost { background: var(--white); color: var(--sage-800); border-color: var(--line); }
.btn--ghost:hover { background: var(--sage-50); color: var(--sage-900); border-color: var(--sage-500); }
.btn--block { width: 100%; justify-content: center; }
.btn .ico { width: 20px; height: 20px; flex: none; }

/* ---------- Icons (inline SVG, self-hosted) ---------------------------- */
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none;
       stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kopfzeile / Navigation ------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 249, 243, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand__name { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name b {
  font-family: var(--serif); font-size: 1.15rem; color: var(--sage-900); font-weight: 700;
}
.brand__name span {
  font-family: var(--sans); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-700); font-weight: 600;
}
.mainnav { display: none; }
.mainnav a {
  text-decoration: none; color: var(--ink); font-size: 1rem; font-weight: 500;
  padding: .4rem .2rem; border-bottom: 2px solid transparent;
}
.mainnav a:hover { color: var(--sage-800); border-bottom-color: var(--gold-500); }
.header-cta { display: inline-flex; }
.header-cta .btn { padding: .7rem 1.2rem; min-height: 46px; font-size: 1rem; }
.header-cta .label-full { display: none; }

@media (min-width: 900px) {
  .mainnav { display: flex; gap: 1.6rem; }
  .header-cta .label-full { display: inline; }
}

/* ---------- Hero -------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, var(--gold-100), transparent 60%),
    linear-gradient(160deg, var(--sage-50), var(--cream) 55%, var(--cream-2));
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.3rem; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .02em;
  padding: .45rem .85rem; border-radius: 999px;
}
.badge .ico { width: 16px; height: 16px; }
.badge--sage { background: var(--sage-100); color: var(--sage-800); }
.badge--gold { background: var(--gold-100); color: var(--gold-700); }
.hero h1 { margin-bottom: .5rem; }
.hero h1 em { font-style: normal; color: var(--gold-600); }
.hero__lead { color: var(--muted); font-size: 1.2rem; max-width: 34ch; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__media { position: relative; }
.hero__media::before {
  content: ""; position: absolute; inset: -6% -4% auto auto; width: 92%; height: 100%;
  background: linear-gradient(135deg, var(--sage-100), var(--gold-100));
  border-radius: var(--radius-lg); transform: rotate(2deg); opacity: .5; filter: blur(2px);
}
.hero__media img {
  position: relative; width: 100%; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}

@media (min-width: 860px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}

/* ---------- Kassen-Band ------------------------------------------------- */
.kassen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.kasse {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1rem; text-align: center; box-shadow: var(--shadow-sm);
}
.kasse b {
  display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--sage-800);
  letter-spacing: .03em;
}
.kasse span { font-size: .82rem; color: var(--muted); }
@media (min-width: 760px) { .kassen-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Fakten-Karten (Ordination) --------------------------------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.fact { display: flex; gap: .9rem; align-items: flex-start; }
.fact__icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: var(--sage-100); color: var(--sage-800);
  display: grid; place-items: center;
}
.fact h3 { font-size: 1.05rem; margin: 0 0 .1rem; }
.fact p { margin: 0; font-size: .95rem; color: var(--muted); }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* Ordination-Intro Textblock */
.prose { max-width: 68ch; }
.prose p { color: var(--ink); }
.prose .lead { color: var(--muted); }

/* ---------- Öffnungszeiten ---------------------------------------------- */
.hours-grid { display: grid; gap: 1.5rem; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.card__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.card__head .fact__icon { width: 44px; height: 44px; }
.card__head h2, .card__head h3 { margin: 0; }

.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; }
.hours th, .hours td { text-align: left; padding: .85rem .2rem; border-bottom: 1px solid var(--line); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 500; color: var(--ink); font-family: var(--sans); }
.hours td { text-align: right; font-weight: 700; color: var(--sage-900); white-space: nowrap; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; color: var(--gold-700);
  background: var(--gold-100); padding: .12rem .55rem; border-radius: 999px;
  margin-left: .5rem; vertical-align: middle;
}

.info-card {
  background: var(--sage-800); color: #f2f5ee; border: 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.info-card h3 { color: #fff; }
.info-card p { color: #e2e8dd; font-size: .98rem; }
.info-card .fact__icon { background: rgba(255,255,255,.12); color: #fff; }
.info-card__foot { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.16); }
.info-card .btn--ghost { background: #fff; color: var(--sage-900); border-color: #fff; }
.info-card .btn--ghost:hover { background: var(--sage-50); }

@media (min-width: 940px) { .hours-grid { grid-template-columns: 1.7fr 1fr; } }

/* ---------- Leistungen -------------------------------------------------- */
.services { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.service:hover { border-color: var(--sage-500); transform: translateY(-3px); box-shadow: var(--shadow); }
.service__icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--sage-100), var(--gold-100));
  color: var(--sage-800); display: grid; place-items: center;
}
.service h3 { margin-bottom: .4rem; }
.service p { margin: 0; font-size: .98rem; color: var(--muted); }
@media (min-width: 680px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Kontakt & Anfahrt ------------------------------------------ */
.contact-grid { display: grid; gap: 2rem; }
.contact-list { display: grid; gap: 1rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
}
.contact-item .fact__icon { width: 44px; height: 44px; }
.contact-item h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.contact-item p { margin: 0; color: var(--muted); font-size: .98rem; }
.contact-item a { font-weight: 600; color: var(--sage-800); }
.contact-item a:hover { color: var(--gold-700); }

.map-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.2rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.map-placeholder {
  flex: 1 1 auto; min-height: 220px; border-radius: var(--radius);
  background: var(--sage-50); border: 1px dashed var(--sage-500);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.6rem; gap: .5rem;
}
.map-placeholder .fact__icon { width: 54px; height: 54px; background: var(--gold-100); color: var(--gold-700); }
.map-placeholder h3 { margin: .4rem 0 .1rem; }
.map-placeholder p { margin: 0; font-size: .88rem; color: var(--muted); max-width: 40ch; }
.map-card .btn { margin-top: 1rem; }

@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- Fußzeile ---------------------------------------------------- */
.site-footer { background: var(--sage-900); color: #cdd4c6; }
.site-footer .wrap { padding-block: 2.6rem; }
.footer-grid { display: grid; gap: 1.6rem; align-items: center; }
.site-footer .brand__name b { color: #fff; }
.site-footer .brand__name span { color: var(--gold-500); }
.footer-role { font-size: .9rem; color: #b9c1b1; margin: .3rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a { color: #e7ece2; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--gold-500); text-decoration: underline; }
.footer-copy { font-size: .82rem; color: #9aa392; }
@media (min-width: 820px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr auto; }
  .footer-links { justify-content: center; }
  .footer-copy { text-align: right; }
}

/* ---------- Rechts-Unterseiten (Impressum/Datenschutz/404) ------------- */
.page-hero {
  background: linear-gradient(160deg, var(--sage-50), var(--cream));
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
}
.page-hero .eyebrow { margin-bottom: .4rem; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .35rem; }
.callout {
  background: var(--sage-50); border: 1px solid var(--line);
  border-left: 4px solid var(--gold-600); border-radius: 12px;
  padding: 1rem 1.2rem; margin: 1rem 0;
}
.backlink { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.backlink:hover { text-decoration: underline; }

/* 404 */
.error-wrap { text-align: center; max-width: 620px; margin-inline: auto; padding-block: clamp(3rem, 9vw, 6rem); }
.error-code { font-family: var(--serif); font-size: clamp(4rem, 16vw, 7rem); color: var(--sage-500); line-height: 1; margin: 0; }
.error-wrap .btn { margin-top: 1rem; }

/* ---------- Urlaubs-/Vertretungshinweis -------------------------------- */
.notice {
  background: linear-gradient(160deg, #fbf3e1, #fdf9f3 70%);
  border-top: 4px solid var(--gold-600);
  border-bottom: 1px solid var(--line);
}
.notice__pill {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--gold-700); color: #fff;
  font-family: var(--sans); font-weight: 700; font-size: .78rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1rem;
}
.notice__pill .ico { width: 16px; height: 16px; }
.notice h2 { margin-bottom: .4rem; }
.notice__dates {
  font-size: 1.15rem; color: var(--ink); max-width: 62ch; margin-bottom: .3rem;
}
.notice__dates strong { color: var(--sage-900); }
.notice__sub { color: var(--muted); margin-bottom: 1.6rem; }

.vertretung-title {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; font-weight: 700; color: var(--gold-700);
  margin: 0 0 .9rem;
}
.vertretung-grid { display: grid; gap: 1.2rem; }
.vertretung {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm);
}
.vertretung h3 { font-size: 1.2rem; margin: 0 0 .1rem; }
.vertretung .addr { color: var(--muted); font-size: .95rem; margin: 0 0 .2rem; }
.vertretung .tel { margin: 0 0 1rem; }
.vertretung .tel a { font-weight: 700; color: var(--sage-800); }
.vertretung .tel a:hover { color: var(--gold-700); }
.mini-hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mini-hours th, .mini-hours td { text-align: left; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.mini-hours tr:last-child th, .mini-hours tr:last-child td { border-bottom: 0; }
.mini-hours th { font-weight: 500; color: var(--ink); font-family: var(--sans); width: 4rem; }
.mini-hours td { text-align: right; font-weight: 700; color: var(--sage-900); }

.notice__foot { display: grid; gap: 1rem; margin-top: 1.6rem; }
.notice__box {
  display: flex; gap: .9rem; align-items: center;
  background: var(--white); border: 1px solid var(--line);
  border-left: 4px solid var(--sage-700); border-radius: 12px;
  padding: 1rem 1.2rem;
}
.notice__box.is-urgent { border-left-color: #a32d2d; }
.notice__box .fact__icon { width: 44px; height: 44px; flex: none; }
.notice__box.is-urgent .fact__icon { background: #fbeaea; color: #a32d2d; }
.notice__box p { margin: 0; font-size: .98rem; }
.notice__box b { color: var(--sage-900); }
.notice__box .big { font-family: var(--serif); font-size: 1.35rem; color: #a32d2d; font-weight: 700; }
.notice__box .big a { color: #a32d2d; text-decoration: none; }
@media (min-width: 720px) {
  .vertretung-grid { grid-template-columns: 1fr 1fr; }
  .notice__foot { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

/* ---------- Utilities --------------------------------------------------- */
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; }
.stack > * + * { margin-top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
