/* ==========================================================
   Salzburger Kieferchirurgen – Stylesheet
   Hauptfarbe laut Original: #2D316A
   ========================================================== */

:root {
  --primary: #2D316A;
  --primary-dark: #1f2350;
  --primary-light: #e9eaf3;
  --accent: #8b90c4;
  --text: #2b2d3a;
  --text-muted: #6b6e80;
  --bg: #ffffff;
  --bg-alt: #f6f6fa;
  --border: #e3e4ee;
  --radius: 6px;
  --shadow: 0 8px 30px rgba(45, 49, 106, 0.10);
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Playfair Display", Georgia, serif;
  --header-h: 88px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.2;
  color: var(--primary);
  margin: 0 0 .5em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

/* ---------- Skip-Link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .03em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-light); color: var(--primary-dark); }

.btn-outline-light { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--primary); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo img { height: 56px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav ul a {
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-weight: 400;
  font-size: 16px;
  padding: 6px 0;
}
.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .25s;
}
.main-nav ul a:hover::after,
.main-nav ul a.active::after { transform: scaleX(1); }
.main-nav ul a.active { color: var(--primary); font-weight: 700; }

/* Mobile-Menü (ohne JavaScript) */
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; padding: 8px; }
.nav-burger span {
  display: block;
  width: 26px; height: 2px;
  margin: 6px 0;
  background: var(--primary);
  transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media,
.hero-overlay { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media,
.hero-media.no-img {
  background:
    radial-gradient(circle at 80% 20%, rgba(139,144,196,.45), transparent 55%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.hero-media.no-img img { display: none; }
.hero-overlay {
  background: linear-gradient(90deg, rgba(31,35,80,.85) 0%, rgba(45,49,106,.55) 55%, rgba(45,49,106,.15) 100%);
}

.hero-content { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 60px; }
.hero h1 {
  color: #fff;
  font-size: clamp(38px, 6vw, 68px);
  max-width: 12ch;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 300;
  letter-spacing: .02em;
  margin: 0 0 36px;
  opacity: .95;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Intro ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}
.intro-image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.intro-image img { width: 100%; height: 100%; object-fit: cover; }
.intro-text p { margin: 0 0 1.1em; }
.intro-text .lead {
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 1.45;
  color: var(--primary);
}

/* ---------- Ordination / Galerie ---------- */
.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(32px, 4vw, 44px); }
.section-head h2::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  margin: 18px auto 0;
  background: var(--accent);
}
.section-head p { color: var(--text-muted); margin: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(45,49,106,.06);
  transition: box-shadow .25s, transform .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.card:hover .card-img img { transform: scale(1.04); }

.card figcaption {
  padding: 20px 24px 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.card h3 { font-size: 21px; margin: 0; }

.link-arrow {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow::after { content: " →"; }

/* Platzhalter, solange ein Bild fehlt */
.no-img {
  background: linear-gradient(135deg, var(--primary-light), #d6d8ea);
  position: relative;
}
.no-img img { visibility: hidden; }
.card-img.no-img::after,
.intro-image.no-img::after {
  content: "Bild folgt";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- Kontakt-Band ---------- */
.contact-band {
  background: var(--primary);
  color: #fff;
  padding: 64px 0;
}
.contact-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.contact-band h2 { color: #fff; font-size: 34px; margin-bottom: 6px; }
.contact-band p { margin: 0; opacity: .85; }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding-top: 56px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.logo-footer img { height: 64px; }
.footer-col { font-style: normal; color: var(--text-muted); line-height: 1.8; }
.footer-col strong {
  display: block;
  color: var(--primary);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-col a { color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--primary); }
.muted { font-size: 14px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-image { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .logo img { height: 46px; }

  .nav-burger { display: block; }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px; }
  .main-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .main-nav ul a::after { display: none; }
  .nav-cta { margin: 16px 24px 24px; text-align: center; }

  .nav-toggle:checked ~ .main-nav { max-height: 420px; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { min-height: 70vh; }
  .gallery { grid-template-columns: 1fr; gap: 24px; }
  .intro-text .lead { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   Unterseiten / Leistungen
   ========================================================== */
.page-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(139,144,196,.4), transparent 55%),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 88px 0 72px;
}
.page-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 56px); margin-bottom: 10px; }
.page-hero p { margin: 0; font-size: 19px; font-weight: 300; opacity: .9; }

.notice-section { padding-top: 64px; }
.notice {
  max-width: 860px;
  margin: 0 auto 56px;
  padding: 20px 28px;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--primary-dark);
}
.notice strong { font-style: normal; }

/* ---------- Leistungs-Kacheln (Icon + Titel) ---------- */
.gallery.services {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.card.service {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 460px;
  padding: 88px 24px 40px;
  background: #edf0f8;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}
.card.service:hover { transform: none; box-shadow: none; background: #e5e9f5; }

.card.service .card-img {
  width: 90px;
  height: 90px;
  aspect-ratio: auto;
  overflow: visible;
  background: none;
  flex: 0 0 auto;
}
.card.service .card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}
.card.service:hover .card-img img { transform: none; }

/* Platzhalter für fehlende Icons */
.card.service .card-img.no-img { border: 2px dashed #b9c6e4; border-radius: 50%; }
.card.service .card-img.no-img::after { content: ""; }

.card.service figcaption {
  display: block;
  padding: 44px 0 0;
}
.card.service h3 {
  font-family: "Poppins", var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: #1d1d1f;
  margin: 0;
}

@media (max-width: 1080px) { .gallery.services { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  {
  .gallery.services { grid-template-columns: repeat(2, 1fr); }
  .card.service { min-height: 300px; padding: 56px 16px 32px; }
  .card.service h3 { font-size: 16px; }
}
@media (max-width: 420px)  { .gallery.services { grid-template-columns: 1fr; } .card.service { min-height: 240px; } }

/* ==========================================================
   Öffnungszeiten
   ========================================================== */
.hours-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
}
.hours-card {
  background: #edf0f8;
  padding: 48px 56px;
}
.hours-card h2 {
  font-family: "Poppins", var(--font-body);
  font-weight: 400;
  font-size: 26px;
  color: #1d1d1f;
  margin-bottom: 24px;
}
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th,
.hours-table td {
  padding: 14px 0;
  border-bottom: 1px solid #d6dcec;
  font-size: 17px;
}
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { text-align: left; font-weight: 700; color: var(--primary); }
.hours-table td { text-align: right; }
.hours-table tr.closed td { color: var(--text-muted); font-style: italic; }
.hours-table tr.today th,
.hours-table tr.today td { color: var(--primary-dark); }
.hours-table tr.today th::after {
  content: "heute";
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.hours-aside p { font-size: 18px; margin: 0 0 24px; }

@media (max-width: 860px) {
  .hours-grid { grid-template-columns: 1fr; gap: 32px; }
  .hours-card { padding: 32px 24px; }
}

/* ==========================================================
   Downloads
   ========================================================== */
.narrow { max-width: 860px; }
.sub-head {
  font-family: "Poppins", var(--font-body);
  font-weight: 400;
  font-size: 26px;
  color: #1d1d1f;
  margin-bottom: 28px;
}
.download-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.download-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: #edf0f8;
  text-decoration: none;
  color: var(--text);
  transition: background .2s;
}
.download-item:hover { background: #e5e9f5; color: var(--text); }
.dl-icon { flex: 0 0 48px; width: 48px; height: 48px; color: #6cc4ee; }
.dl-icon svg { width: 100%; height: 100%; }
.dl-text { flex: 1; display: flex; flex-direction: column; }
.dl-text strong { font-family: "Poppins", var(--font-body); font-weight: 400; font-size: 18px; color: #1d1d1f; }
.dl-text span { font-size: 14px; color: var(--text-muted); }
.dl-action {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================
   Kontakt
   ========================================================== */
.nav-cta.active { background: var(--primary-dark); }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.contact-card {
  background: #edf0f8;
  padding: 44px 36px;
}
.contact-card h2,
.directions h2 {
  font-family: "Poppins", var(--font-body);
  font-weight: 400;
  font-size: 22px;
  color: #1d1d1f;
  margin-bottom: 16px;
}
.contact-card p { margin: 0 0 12px; }
.contact-card a { text-decoration: none; }

.directions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: 8px;
  padding: 44px 36px;
  border: 2px solid #edf0f8;
}
.directions p { margin: 0 0 8px; max-width: 620px; }
.directions p:last-child { margin-bottom: 0; }

@media (max-width: 980px) {
  .contact-cards { grid-template-columns: 1fr; }
  .directions { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .download-item { flex-wrap: wrap; padding: 24px 20px; gap: 16px; }
  .dl-action { width: 100%; text-align: center; }
  .contact-card, .directions { padding: 32px 24px; }
}

/* ==========================================================
   Impressum & Datenschutz
   ========================================================== */
.legal h2 {
  font-family: "Poppins", var(--font-body);
  font-weight: 400;
  font-size: 22px;
  color: #1d1d1f;
  margin: 48px 0 14px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal > h2:first-child { margin-top: 0; }
.legal h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  color: var(--primary);
  margin: 28px 0 8px;
}
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal-lead { font-size: 19px; }

.legal-box {
  background: #edf0f8;
  padding: 28px 32px;
  margin: 16px 0 24px;
}
.legal-box p { margin: 0 0 12px; }
.legal-box p:last-child { margin-bottom: 0; }

.legal-facts {
  display: grid;
  grid-template-columns: 240px 1fr;
  margin: 0;
  border-top: 1px solid var(--border);
}
.legal-facts dt,
.legal-facts dd {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.legal-facts dt { font-weight: 700; color: var(--primary); }

.toc {
  border: 2px solid #edf0f8;
  padding: 24px 32px;
  margin: 32px 0 8px;
}
.toc strong { color: var(--primary); }
.toc ol { margin: 10px 0 0; padding-left: 1.2em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.footer-bottom a.active { color: var(--primary); font-weight: 700; }

@media (max-width: 600px) {
  .legal-facts { grid-template-columns: 1fr; }
  .legal-facts dt { padding-bottom: 0; border-bottom: 0; }
  .legal-box, .toc { padding: 22px 20px; }
}
