/* Zahnarztpraxis Steudel - gemeinsames, responsives Stylesheet */

/* ---------- Schriften (lokal, ohne externe Server) ---------- */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lora-latin-400-italic.woff2") format("woff2");
}

/* ---------- Grundwerte ---------- */

:root {
  --maroon: #7f213c;
  --maroon-dark: #651a30;
  --text: #4a4a4a;
  --heading: #666666;
  --muted: #828282;
  --line: #e2e2e2;
  --dark: #222222;
  --maxw: 1060px;
  --gutter: 16px;
  --radius: 6px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  --shadow-strong: 0 10px 26px rgba(0, 0, 0, 0.2);
  --sans: "Source Sans 3", Arial, Helvetica, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  /* Abstände */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: #fff url("../img/bg.jpg") center top / cover no-repeat;
}

main { flex: 1 0 auto; padding-bottom: var(--s4); }

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--maroon); }
a:hover { color: var(--maroon-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; }

h1, h2, h3, p, ul, table { margin: 0; }
h1, h2, h3 { color: var(--heading); line-height: 1.25; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Kopf und Menü ---------- */

.topline { height: 11px; background: var(--maroon); }

.site-header { position: relative; z-index: 2; }

.main-nav {
  display: flex;
  background: #f1f1f1;
  box-shadow: var(--shadow);
}

.main-nav a {
  flex: 1 1 0;
  display: block;
  height: 60px;
  line-height: 60px;
  text-align: center;
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
  border-right: 1px solid #fff;
  transition: background-color 0.15s, box-shadow 0.15s;
}
.main-nav a:last-child { border-right: 0; }
.main-nav a:hover { color: var(--maroon); background: #fafafa; box-shadow: inset 0 -3px 0 var(--maroon); }
.main-nav a[aria-current="page"],
.main-nav a[aria-current="page"]:hover { color: #fff; background: var(--maroon); box-shadow: none; }

.mobile-bar { display: none; }

/* ---------- Kopfbild ---------- */

.hero { position: relative; }
.hero img { display: block; width: 100%; }
.hero-link { display: block; }
.hero-hint { margin-top: var(--s1); font-size: 0.85em; color: var(--muted); }

/* Startseite: Zitat und Sprechzeiten liegen auf dem Bild */
.hero-text {
  position: absolute;
  left: 0;
  top: 22%;
  text-align: left;
}

.zitat {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.3;
  color: var(--maroon);
}
.zitat-quelle {
  margin: 4px 0 var(--s3);
  font-size: 0.8em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hours-card {
  display: inline-block;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.88);
  border-left: 4px solid var(--maroon);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.hours-title {
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 4px;
}

.hours { border-collapse: collapse; }
.hours th { text-align: left; padding: 0 14px 0 0; font-weight: 700; }
.hours td { padding: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Inhalt ---------- */

.page-title {
  font-size: 1.55em;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: var(--s4) 0 var(--s4);
}
.page-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 14px;
  background: var(--maroon);
}

.lead { max-width: 70ch; }
.lead p { margin-bottom: 1em; }
.lead h2 { font-size: 1.15em; margin: 0 0 0.6em; }
.lead * + h2 { margin-top: 1.6em; }
.lead ul { margin: 0 0 1em 1.3em; padding: 0; }

.small-link { font-size: 0.85em; margin: var(--s2) 0 0; }

.job-box {
  max-width: 400px;
  margin: var(--s4) 0 0;
  padding: var(--s3);
  border-top: 4px solid var(--maroon);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.job-box h2 { color: var(--maroon); font-size: 1.2em; margin-bottom: 0.6em; }
.job-box p { margin-bottom: 0.8em; }
.job-box p:last-child { margin-bottom: 0; }
.job-box a { font-weight: 700; }

/* ---------- Behandlung ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s2);
  margin-bottom: var(--s4);
}
.tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 14px 12px;
  text-align: center;
  font-weight: 700;
  line-height: 1.25;
  color: var(--heading);
  text-decoration: none;
  background: #fff;
  border-top: 4px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  hyphens: manual;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.tile small { display: block; margin-top: 4px; font-size: 0.72em; font-weight: 400; color: var(--muted); }
.tile:hover { color: var(--maroon); border-top-color: var(--maroon); transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.tile[aria-current="true"] { color: #fff; background: var(--maroon); border-top-color: var(--maroon-dark); }
.tile[aria-current="true"] small { color: #f0d9e0; }

.topic { scroll-margin-top: var(--s2); }
.topic h2 { font-size: 1.4em; color: var(--maroon); margin-bottom: 0.8em; }
.topic h3 { font-size: 1.05em; margin: 1.4em 0 0.3em; }
.js .topic { display: none; }
.js .topic.active { display: block; }

/* ---------- Team ---------- */

.team-detail { display: flex; align-items: stretch; }
.team-photo {
  flex: 0 0 300px;
  width: 300px;
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: var(--shadow);
  align-self: flex-start;
}
.team-box {
  flex: 1 1 auto;
  background: #fff;
  border-left: 6px solid var(--maroon);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  padding: var(--s3) 28px;
}
.member > p { font-size: 1.15em; font-weight: 700; color: var(--maroon); }
.team-box ul { margin: var(--s2) 0 0 1.2em; padding: 0; }
.team-box li { margin-bottom: 4px; }
.js .member { display: none; }
.js .member.active { display: block; }

.team-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.thumb {
  width: 138px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }
.thumb img { display: block; width: 100%; }

/* ---------- Anfahrt / Kontakt / Rechtliches ---------- */

.address { font-weight: 600; margin: var(--s4) 0 var(--s3); }
.map { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }

.contact { font-size: 1.5em; line-height: 1.4; margin: var(--s4) 0; overflow-wrap: anywhere; }
.contact h1 { font-size: 1em; margin-bottom: 1em; }
.contact p { margin-bottom: 1em; }
.contact a { text-decoration: none; }

.legal { margin: var(--s4) 0; max-width: 80ch; font-size: 0.9em; overflow-wrap: anywhere; }
.legal h1 { font-size: 1.6em; }
.legal h2 { font-size: 1.15em; }

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

.site-footer {
  flex-shrink: 0;
  padding: var(--s4) 0 var(--s3);
  background: var(--dark);
  border-top: 6px solid var(--maroon);
  color: #bdbdbd;
}
.footer-name {
  font-size: 1.4em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e6e6e6;
  margin-bottom: var(--s3);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: space-between;
  gap: var(--s3) var(--s4);
}
.footer-title {
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--s1);
}
.site-footer a { color: #e6e6e6; }
.site-footer a:hover { color: #fff; }
.footer-links {
  margin-top: var(--s4);
  padding-top: var(--s2);
  border-top: 1px solid #3a3a3a;
  font-size: 0.85em;
}

/* ---------- Große Bildschirme ---------- */

@media (min-width: 1700px) {
  :root { --maxw: 1300px; }
  body { font-size: 19px; }
  .zitat { font-size: 32px; }
}

/* ---------- Kleine Laptops: Box auf dem Startbild kompakter ---------- */

@media (max-width: 1200px) {
  .hero-text { top: 10%; }
  .zitat-quelle { margin-bottom: 12px; }
  .hours-card { font-size: 15px; padding: 8px 14px; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
  body { font-size: 17px; }
  .main-nav a { font-size: 0.85em; letter-spacing: 0.04em; }
  .hero-text { top: 12%; }
  .zitat { font-size: clamp(16px, 2.6vw, 26px); }
  .zitat-quelle { margin-bottom: 1.2vw; }
  .hours-card { font-size: clamp(11px, 1.6vw, 17px); padding: 1vw 1.6vw; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .team-photo { flex-basis: 240px; width: 240px; }
  .footer-cols { grid-template-columns: repeat(2, auto); justify-content: start; }
}

/* ---------- Smartphone ---------- */

@media (max-width: 699px) {
  body { font-size: 16.5px; }
  .site-header { padding: 0; }

  .mobile-bar {
    display: flex;
    height: 52px;
    background: #f1f1f1;
    box-shadow: var(--shadow);
  }
  .nav-toggle { display: none; }
  .js .nav-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    padding: 0 var(--gutter);
    border: 0;
    background: none;
    color: #555;
    font: 700 1em var(--sans);
    letter-spacing: 0.08em;
    cursor: pointer;
  }
  .call-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 0 var(--gutter);
    background: var(--maroon);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
  }
  .call-btn:hover { color: #fff; background: var(--maroon-dark); }

  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    position: relative;
  }
  .nav-toggle-icon::before,
  .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-icon::before { top: -7px; }
  .nav-toggle-icon::after { top: 7px; }

  .main-nav { flex-direction: column; box-shadow: var(--shadow); }
  .js .main-nav { display: none; }
  .js .nav-open .main-nav { display: flex; }
  .main-nav a {
    height: 48px;
    line-height: 48px;
    padding: 0 var(--gutter);
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid #fff;
  }
  .main-nav a:hover { box-shadow: inset 4px 0 0 var(--maroon); }

  .hero { margin: 0 calc(-1 * var(--gutter)); }
  .hero-text { position: static; padding: var(--s3) var(--gutter) 0; }
  .zitat { font-size: 22px; }
  .zitat-quelle { margin-bottom: var(--s2); }
  .hours-card { font-size: 1em; padding: 12px 18px; }

  .page-title { font-size: 1.3em; margin: var(--s3) 0; overflow-wrap: anywhere; }

  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: var(--s3); }
  .tile { min-height: 72px; font-size: 0.95em; }

  .team-detail { flex-direction: column; }
  .team-photo { flex-basis: auto; width: min(300px, 100%); border-radius: var(--radius); margin-bottom: var(--s2); }
  .team-box { border-radius: var(--radius); padding: var(--s2) 20px; }
  .team-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 12px;
  }
  .thumb { width: auto; }

  .contact { font-size: 1.2em; }

  .footer-cols { grid-template-columns: 1fr; }
  .footer-name { font-size: 1.2em; }
}
