/* All fonts and images are served from this domain; nothing is loaded from third parties. */
@font-face {
  font-family: "Raleway";
  src: url("/fonts/raleway-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f4f1;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #5b6672;
  --line: #e6e1da;
  --slate: #2c3a4d;
  --slate-deep: #1e2836;
  /* plum from the painting in the waiting room */
  --accent: #7a4a6c;
  --accent-ink: #ffffff;
  --accent-soft: #f3ebf1;
  --notice-bg: #fff8e6;
  --notice-line: #e0b54a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 41, 51, 0.06), 0 8px 24px rgba(31, 41, 51, 0.06);
  --max: 64rem;
  --head: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12171e;
    --card: #1a212b;
    --ink: #e6e9ed;
    --muted: #a0abb7;
    --line: #2a333f;
    --slate: #1a2330;
    --slate-deep: #0e131a;
    --accent: #c08bb2;
    --accent-ink: #1a1220;
    --accent-soft: #2a2130;
    --notice-bg: #2a2416;
    --notice-line: #b08b33;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--head);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap { padding: 0 1.5rem; }
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(30, 40, 54, 0.94) 0%, rgba(30, 40, 54, 0.82) 45%, rgba(30, 40, 54, 0.45) 100%),
    url("/img/praxis-800.webp") center 40% / cover no-repeat;
}

@media (min-width: 50rem) {
  .hero {
    background-image:
      linear-gradient(100deg, rgba(30, 40, 54, 0.94) 0%, rgba(30, 40, 54, 0.8) 45%, rgba(30, 40, 54, 0.3) 100%),
      url("/img/praxis.webp");
  }
}

.hero-inner {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

@media (min-width: 50rem) {
  .hero-inner { padding-top: 6rem; padding-bottom: 7rem; }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d9c4d3;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 4.25rem);
  font-weight: 700;
}

.lead {
  margin: 0.4rem 0 1.5rem;
  font-family: var(--head);
  font-size: clamp(1.2rem, 3.4vw, 1.6rem);
  font-weight: 500;
  color: #e8edf3;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.chips li {
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  line-height: 1.4;
}

.chips-note {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #b9c3cf;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: #fff;
  color: var(--slate-deep);
}

.btn-primary:hover { background: #f1ebf0; }

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Cards ---------- */

/* The two cards overlap the bottom of the hero photo. */
.grid-2 {
  position: relative;
  display: grid;
  gap: 1.25rem;
  margin-top: -2.25rem;
}

@media (min-width: 50rem) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Notices inside the Information card, edited via Pages CMS */
.notice {
  margin: 0 0 0.85rem;
  padding: 0.9rem 1.1rem;
  background: var(--notice-bg);
  border-left: 5px solid var(--notice-line);
  border-radius: 10px;
}

.notice:last-child { margin-bottom: 0; }

.muted { color: var(--muted); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

@media (min-width: 40rem) {
  .card { padding: 1.75rem 2rem; }
}

.card h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.icon-title { color: var(--accent); }

.card p:last-child { margin-bottom: 0; }

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours th,
.hours td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }

.hours th { font-weight: 600; width: 45%; }

.hours td { font-variant-numeric: tabular-nums; }

.card .week {
  margin: -0.5rem 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hours .date {
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hours .past { opacity: 0.5; }

.hours .today th,
.hours .today td { color: var(--accent); }

.today-label {
  margin-left: 0.25rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: 0.1em;
}

.tag {
  display: inline-block;
  margin: 0.15rem 0;
  padding: 0.1rem 0.55rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}

.tag-closed {
  display: block;
  width: fit-content;
  background: var(--notice-bg);
  border: 1px solid var(--notice-line);
  color: var(--ink);
}

.tag-absent {
  display: block;
  width: fit-content;
  background: var(--accent-soft);
  color: var(--accent);
}

.cancelled {
  color: var(--muted);
  text-decoration-thickness: 1.5px;
}

/* ---------- Sections ---------- */

.section { padding-top: 3.5rem; }

.section-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
}

.contact {
  display: grid;
  gap: 1rem;
}

@media (min-width: 44rem) {
  .contact { grid-template-columns: repeat(3, 1fr); }
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.15rem;
}

@media (max-width: 43.99rem) {
  .contact-item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
  }
  .contact-icon { grid-row: span 3; margin: 0; }
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  font-family: var(--head);
  font-size: 1.2rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-hint {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Map ---------- */

.map { margin: 0; }

.map > a {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map img {
  width: 100%;
  aspect-ratio: 1600 / 760;
  object-fit: cover;
}

@media (max-width: 40rem) {
  .map img { aspect-ratio: 4 / 3; }
}

.map-cta {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.map figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.map figcaption a { color: inherit; }

/* ---------- Sub-pages ---------- */

.topbar {
  background: var(--slate);
  color: #fff;
}

.topbar .wrap {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  font-family: var(--head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.prose {
  max-width: 46rem;
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.prose h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin-top: 0; }
.prose h2 { font-size: 1.2rem; margin-top: 2rem; }
.prose a { overflow-wrap: anywhere; }

/* ---------- Team guide (/anleitung/) ---------- */

.guide { font-size: 1.125rem; line-height: 1.7; }

.guide-lead {
  margin-top: -0.75rem;
  font-size: 1.2rem;
  color: var(--muted);
}

.guide h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.75rem;
  font-size: 1.45rem;
}

.step {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.1rem;
}

.guide-list { padding-left: 1.4rem; }
.guide-list li { margin-bottom: 0.6rem; }
.guide-list li::marker { font-weight: 700; color: var(--accent); }

.guide-box {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.guide-box h2,
.guide-box h3 { margin-top: 0; }

.guide-box-warn { border-left: 6px solid var(--notice-line); }

.guide-note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--notice-bg);
  border-left: 5px solid var(--notice-line);
  border-radius: 10px;
}

/* Imitations of what the editor shows, so people recognise it on screen */
.ui {
  display: inline-block;
  padding: 0.05rem 0.6rem;
  border-radius: 6px;
  background: #18181b;
  color: #fff;
  font-family: var(--body);
  font-size: 0.95em;
  font-weight: 600;
  white-space: nowrap;
}

.ui-field {
  display: inline-block;
  min-width: 7rem;
  padding: 0.05rem 0.6rem;
  border: 1px solid #a1a1aa;
  border-radius: 6px;
  background: #fff;
  color: #71717a;
}

.ui-nav,
.ui-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ui-text {
  padding: 0 0.3rem;
  border-radius: 4px;
  background: var(--accent-soft);
  font-style: italic;
}

.addr { color: var(--accent); }

.warn { color: #9a3412; }

kbd {
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--card);
  font-family: var(--body);
}

.fill-in {
  display: inline-block;
  min-width: 16rem;
  border-bottom: 1px solid var(--muted);
}

@media print {
  .guide-page .topbar,
  .guide-page .site-footer { display: none; }
  .guide-page { background: #fff; }
  .guide { font-size: 11.5pt; padding-top: 0; max-width: none; }
  .guide h2 { break-after: avoid; margin-top: 1.6rem; }
  .guide-box,
  .guide-note,
  .guide-list li { break-inside: avoid; box-shadow: none; }
  .ui, .step { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

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

.site-footer {
  margin-top: 4rem;
  background: var(--slate-deep);
  color: #c9d1db;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.site-footer strong { color: #fff; font-family: var(--head); }

.site-footer nav {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.site-footer a { color: #e4e9ef; }
