/* ==========================================================================
   MeinHausarzt
   Gestaltung der Übergangsseite. Farben und Formen sind aus Logo und
   Designreferenzen abgeleitet: Logo-Braun, warme Sandtöne, Serifen-Überschrift,
   Lamellen-Tresen als wiederkehrendes Motiv.
   ========================================================================== */

/* ---------- Schriften (lokal, keine Fremdserver) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Gestaltungswerte ---------- */
:root {
  /* Marke */
  --braun: #815d43;        /* Logo-Braun */
  --braun-tief: #5f4230;   /* Hover, Überschriften */
  --tinte: #2b211c;        /* stärkster Textton, nah am Logo-Schwarz */
  --text: #4d3f36;         /* Fließtext */

  /* Flächen */
  --sand-0: #fbf7f2;       /* Seitenhintergrund */
  --sand-1: #f4ebe1;       /* Wand */
  --sand-2: #e9dac9;       /* Wand unten, Flächen */
  --linie: #decdbb;        /* Haarlinien */
  --holz-hell: #dfcbb5;
  --holz: #cdb397;
  --holz-fuge: #b79a7c;
  --licht: #ffe9c6;        /* warmes Tresenlicht */

  /* Schrift */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  /* Maße */
  --rand: clamp(1.125rem, 4vw, 3rem);
  --radius-gross: clamp(1.25rem, 2.6vw, 2.25rem);
  --tresen: clamp(3.75rem, 10vw, 7.5rem);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--sand-0);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

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

h1, h2, h3, p, address, dl, dd, table, ul { margin: 0; }
address { font-style: normal; }
ul { padding: 0; list-style: none; }

a {
  color: var(--braun-tief);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--tinte); }

:focus-visible {
  outline: 3px solid var(--braun-tief);
  outline-offset: 3px;
  border-radius: 4px;
}

.rahmen {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--rand);
}

.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprung {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--tinte);
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
}
.sprung:focus { top: 1rem; color: #fff; }

.symbol {
  width: 1.3em;
  height: 1.3em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Platzhalter und Entwurfs-Hinweis ---------- */
.todo {
  background: #ffe7a3;
  color: #4a3500;
  padding: 0.05em 0.35em;
  border-radius: 0.3em;
  font-weight: 500;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.todo::before { content: "["; }
.todo::after { content: "]"; }

.entwurf {
  background: var(--tinte);
  color: #f6ebdd;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
  padding: 0.6rem var(--rand);
}
.entwurf strong { color: #ffe7a3; font-weight: 600; }

/* ---------- Schaltflächen ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0.85rem 1.75rem;
  border: 1.5px solid var(--braun);
  border-radius: 999px;
  background: var(--braun);
  color: #fff;
  font: 600 1rem/1.2 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.knopf:hover {
  background: var(--braun-tief);
  border-color: var(--braun-tief);
  color: #fff;
}
.knopf--linie {
  background: rgb(255 255 255 / 0.55);
  color: var(--braun-tief);
}
.knopf--linie:hover {
  background: #fff;
  border-color: var(--braun-tief);
  color: var(--tinte);
}
.knopf--klein {
  min-height: 2.75rem;
  padding: 0.55rem 1.3rem;
  font-size: 0.9375rem;
}

/* ---------- Kopfzeile ---------- */
.kopf__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(0.9rem, 2vw, 1.4rem);
}
.kopf__logo { display: block; border-radius: 6px; }
.kopf__logo img { width: auto; height: clamp(1.75rem, 3.8vw, 2.5rem); }

/* ---------- Hinweis zur Eröffnung ---------- */
.hinweis {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  padding: clamp(1.4rem, 3vw, 2.25rem) clamp(1.5rem, 5.5vw, 5.5rem);
  border-radius: var(--radius-gross);
  background: var(--braun-tief);
  color: #f8efe4;
}
.hinweis__titel {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #fff;
}
.hinweis__inhalt p { max-width: 38em; }
.hinweis__link {
  display: inline-block;
  margin-top: 0.6rem;
  padding-block: 0.25rem;
  color: #fff;
  font-weight: 600;
}
.hinweis__link:hover { color: var(--licht); }
.hinweis :focus-visible { outline-color: #fff; }

/* ---------- Bühne: Wand, Logo und Lamellen-Tresen ---------- */
.buehne {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(2.75rem, 6.5vw, 6rem) clamp(1.5rem, 5.5vw, 5.5rem)
    calc(var(--tresen) + clamp(2.75rem, 6vw, 5.5rem));
  border-radius: var(--radius-gross);
  background:
    radial-gradient(90% 75% at 74% 0%, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0) 62%),
    linear-gradient(180deg, var(--sand-1) 0%, #efe3d5 58%, var(--sand-2) 100%);
}

.buehne h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 7.2vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
  color: var(--tinte);
  font-optical-sizing: auto;
}
.buehne__ort {
  margin-top: clamp(1.1rem, 2.2vw, 1.75rem);
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  line-height: 1.3;
  font-weight: 500;
  color: var(--braun-tief);
}
.buehne__absatz {
  margin-top: 0.9rem;
  max-width: 31em;
  font-size: clamp(1.03rem, 1.35vw, 1.125rem);
}
.buehne__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.buehne__wand {
  display: grid;
  place-items: center;
}
.buehne__logo {
  width: min(100%, 26rem);
  animation: einblenden 1.1s 0.15s ease-out both;
}

/* Tresen: Lamellenfront mit warmem Licht unter der Platte */
.buehne__tresen {
  position: absolute;
  inset: auto 0 0 0;
  height: var(--tresen);
  z-index: -1;
  background:
    linear-gradient(180deg, rgb(255 233 198 / 0.95) 0%, rgb(255 233 198 / 0.35) 22%, rgb(255 233 198 / 0) 55%),
    linear-gradient(180deg, rgb(95 66 48 / 0) 60%, rgb(95 66 48 / 0.16) 100%),
    repeating-linear-gradient(
      90deg,
      var(--holz-hell) 0 7px,
      var(--holz) 7px 15px,
      var(--holz-fuge) 15px 18px
    );
}
.buehne__tresen::before {
  /* Tresenplatte mit Lichtkante */
  content: "";
  position: absolute;
  inset: -0.55rem 0 auto 0;
  height: 0.55rem;
  background: linear-gradient(180deg, #f7ecdf, #e6d5c1);
  box-shadow: 0 0.55rem 1.6rem 0.35rem rgb(255 222 170 / 0.85), 0 -1.5rem 3.5rem rgb(255 240 214 / 0.7);
  animation: licht 1.6s 0.2s ease-out both;
}

@keyframes einblenden {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: none; }
}
@keyframes licht {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

/* ---------- Kontakt ---------- */
.kontakt { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }

.kontakt__kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 1rem clamp(2rem, 5vw, 5rem);
}
.kontakt__kopf h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--tinte);
}
.kontakt__kopf p { max-width: 34em; }

.kontakt__spalten {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  margin-top: clamp(2rem, 4vw, 3.25rem);
  border-top: 1px solid var(--linie);
}
.kontakt__spalte {
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid var(--linie);
}
.kontakt__spalte:first-child { padding-left: 0; border-left: 0; }
.kontakt__spalte:last-child { padding-right: 0; }

.kontakt__spalte h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--braun-tief);
}
.kontakt__spalte h3 .symbol { width: 1.5rem; height: 1.5rem; color: var(--braun); }
.kontakt__spalte address strong { font-weight: 600; color: var(--tinte); }

.kontakt__liste {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1.25rem;
}
.kontakt__liste dt { color: #6b5a4e; }
.kontakt__liste dd { overflow-wrap: anywhere; }

.zeiten { width: 100%; border-collapse: collapse; }
/* Tage über den Uhrzeiten: bleibt bei jeder Spaltenbreite und Textlänge sauber */
.zeiten tr { display: block; }
.zeiten tr + tr { margin-top: 0.6rem; }
.zeiten th,
.zeiten td {
  display: block;
  padding: 0;
  text-align: left;
  font-weight: 400;
}
.zeiten th { font-size: 0.9375rem; color: #6b5a4e; }
.zeiten td { font-variant-numeric: tabular-nums; color: var(--tinte); }
.zeiten__hinweis { margin-top: 0.25rem; color: #6b5a4e; }

.notfall {
  margin-top: clamp(0.5rem, 2vw, 1.25rem);
  padding: 1.1rem 1.4rem;
  border-radius: 1rem;
  background: var(--sand-1);
  font-size: 0.9375rem;
}
.notfall a { font-weight: 600; white-space: nowrap; }

/* ---------- Fußzeile ---------- */
.fuss {
  flex: none;
  border-top: 1px solid var(--linie);
  font-size: 0.9375rem;
}
.fuss__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.4rem;
}
.fuss__links { display: flex; gap: 1.75rem; }
.fuss__links a { display: inline-block; padding-block: 0.4rem; }

/* ---------- Textseiten (Impressum, Datenschutz, 404) ---------- */
.dokument {
  max-width: 50rem;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem);
}
.dokument h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--tinte);
  margin-bottom: 1.5rem;
}
.dokument h2 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--braun-tief);
  margin: 2.5rem 0 0.6rem;
}
.dokument p,
.dokument address,
.dokument ul { max-width: 42em; }
.dokument p + p,
.dokument p + address,
.dokument address + p,
.dokument ul + p,
.dokument p + ul { margin-top: 0.9rem; }
.dokument ul { padding-left: 1.2rem; list-style: disc; }
.dokument li + li { margin-top: 0.2rem; }
.dokument li::marker { color: var(--holz-fuge); }
.dokument__vorspann { font-size: 1.1875rem; line-height: 1.55; color: var(--tinte); }
.dokument__stand { margin-top: 2.75rem !important; font-size: 0.9375rem; color: #6b5a4e; }
.dokument__aktionen { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem !important; }
.dokument--kurz { padding-block: clamp(3rem, 12vh, 8rem); }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 78rem) {
  /* untereinander, beide gleich breit */
  .buehne__aktionen { display: inline-grid; }
}

@media (min-width: 60.01rem) and (max-width: 80rem) {
  /* schmale Spalten: Bezeichnung über dem Wert, damit die E-Mail-Adresse nicht umbricht */
  .kontakt__liste { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kontakt__liste dt { font-size: 0.875rem; }
  .kontakt__liste dd + dt { margin-top: 0.5rem; }
}

@media (max-width: 60rem) {
  .buehne { grid-template-columns: minmax(0, 1fr); }
  .hinweis { grid-template-columns: minmax(0, 1fr); }
  /* Das Logo steht hier schon in der Kopfzeile direkt darüber */
  .buehne__wand { display: none; }
  .kontakt__kopf { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .kontakt__spalten { grid-template-columns: minmax(0, 1fr); }
  .kontakt__spalte {
    padding-inline: 0;
    border-left: 0;
    border-top: 1px solid var(--linie);
  }
  .kontakt__spalte:first-child { border-top: 0; }
}

@media (min-width: 34.01rem) and (max-width: 60rem) {
  .buehne__aktionen { display: flex; }
}

@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .buehne__aktionen { display: grid; }
  .kopf .knopf--klein { padding-inline: 1rem; font-size: 0.875rem; }
}

/* ---------- Bewegung reduzieren, Druck ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
}

@media print {
  .entwurf, .sprung, .buehne__tresen, .kopf .knopf { display: none; }
  .buehne { background: none; padding: 0; }
  body { background: #fff; }
}
