/* Kinderarztpraxis Dr. med. Julia Schuler – Stylesheet
   Bewusst schlicht: System-Schriften, keine externen Ressourcen. */

:root {
  --text: #1f2a33;
  --muted: #5b6873;
  --bg: #ffffff;
  --bg-soft: #f4f8f9;
  --line: #e1e8eb;
  --accent: #2b7a87;
  --accent-dark: #1f5e68;
  --accent-soft: #e6f2f3;
  --radius: 10px;
  --max: 1080px;
}

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

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--accent-dark); text-underline-offset: 2px; }
a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; font-weight: 650; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p, ul, ol, table { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 8px 14px; z-index: 10;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Kopfbereich ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky; top: 0; z-index: 5;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { text-decoration: none; color: var(--text); line-height: 1.25; display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 64px; width: auto; flex: none; }
.brand strong { display: block; font-size: 1.1rem; }
.brand-text span { font-size: .9rem; color: var(--muted); }

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px;
}
.main-nav a {
  display: block; padding: 6px 12px; border-radius: 6px;
  text-decoration: none; color: var(--text); font-size: .98rem;
}
.main-nav a:hover { background: var(--bg-soft); }
.main-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }

/* ---------- Inhalte ---------- */
main { display: block; }
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.page-head { padding: 48px 0 8px; }
.page-head p { color: var(--muted); max-width: 46em; font-size: 1.1rem; }
.page-end { padding-bottom: 56px; }

.hero {
  padding: 64px 0 56px;
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.2) 50%, rgba(255,255,255,.1) 100%),
    url("../img/web/hero-praxis_zuschnitt.jpg");
  background-size: cover;
  background-position: center 60%;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: stretch; }
.hero .lead { font-size: 1.15rem; color: var(--text); max-width: 34em; }
.hero-text {
  background: rgba(255, 255, 255, .88);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-text .actions { margin-top: 20px; }
.hero-grid > .card { display: flex; flex-direction: column; justify-content: center; }
.hero-grid > .card .note { margin-bottom: 0; }

.btn {
  display: inline-block; padding: 11px 20px; border-radius: 8px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent-dark); border: 1px solid var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h2, .card h3 { margin-top: 0; }

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

/* Öffnungszeiten */
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 600; width: 38%; padding-right: 12px; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.note { font-size: .93rem; color: var(--muted); }

/* Hinweisbox */
.notice {
  border-left: 4px solid var(--accent); background: var(--accent-soft);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
}
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice p:first-child { margin-bottom: .4em; }
.notice ul { padding-left: 1.2em; }

/* Praxis-App */
.app-promo { margin-top: 20px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.app-promo-text p:last-child { margin-bottom: 0; }
.app-stores { display: flex; flex-wrap: wrap; gap: 24px; }
.app-store { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.app-store .qr { width: 120px; height: 120px; background: #fff; }

.letter { margin-top: 20px; }
.letter p { max-width: 46em; }
.letter p:last-child { margin-bottom: 0; }
.list-clean { list-style: none; padding: 0; }
.list-clean li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.list-clean li:last-child { border-bottom: 0; }
.list-clean.no-lines li { border-bottom: 0; padding: 3px 0; }

/* Team */
.person { text-align: left; }
.person .photo {
  aspect-ratio: 4 / 5; background: var(--bg-soft); border-radius: 8px;
  margin-bottom: 14px; display: grid; place-items: center;
  color: var(--muted); font-size: .9rem; border: 1px dashed var(--line);
}
.person h3 { margin-bottom: .15em; }
.person .role { color: var(--muted); margin-bottom: .6em; }


/* ---------- Fußbereich ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: 40px 0 28px; margin-top: 24px; font-size: .95rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer h2 { font-size: 1rem; margin-bottom: .5em; }
.site-footer p { margin-bottom: .4em; }
.footer-bottom {
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }

/* ---------- Responsiv ---------- */
@media (max-width: 860px) {
  .hero-grid, .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .hero {
    padding: 40px 0;
    background-image:
      linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.25)),
      url("../img/web/hero-praxis_zuschnitt.jpg");
  }
  .page-head { padding: 32px 0 0; }
  .app-promo { grid-template-columns: 1fr; }
  .app-store .qr { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .site-header { position: static; }
  .main-nav { width: 100%; }
  .brand { gap: 10px; }
  .brand-logo { height: 44px; }
  .brand strong { font-size: 1rem; }
  .brand-text span { font-size: .82rem; }
  .main-nav ul { gap: 2px; }
  .main-nav a { padding: 6px 10px; font-size: .95rem; }
  .card { padding: 18px; }
  .hero-text { padding: 22px 20px; }
  .hours th { width: 45%; }
}

@media print {
  .site-header, .site-footer, .actions { display: none; }
}

/* ---------- Bilder ---------- */
.media { margin: 0; }
.media img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.media figcaption { font-size: .93rem; color: var(--muted); margin-top: 8px; }
.media.wide { margin-top: 28px; }
.media.wide img { aspect-ratio: 16 / 9; }
.media.short img { aspect-ratio: 21 / 9; }
.card .media { margin-top: 20px; }
img.photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 0; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.align-center { align-items: center; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .media.short img { aspect-ratio: 3 / 2; }
  .grid-4 { gap: 12px; }
  .grid-4 .card { padding: 12px; }
  .grid-4 .person p:not(.role) { font-size: .9rem; }
}
