/* =====================================================================
   Hausarztpraxis Dr. med. Maria Madalina Cinca — praxis-cinca.de
   Keine externen Ressourcen: nur System-Schriften, keine CDNs.
   Palette abgeleitet aus den Praxisräumen (Petrol-Stühle, helles Holz).
   ===================================================================== */

:root {
  --petrol:        #23606B;   /* Markenfarbe – Stühle im Wartezimmer */
  --petrol-dunkel: #17454E;
  --petrol-hell:   #EAF2F1;   /* zarte Flächen */
  --sand:          #F8F5EF;   /* warmer Putz / Holz */
  --tinte:         #1F2E33;   /* Fließtext */
  --grau:          #5B6B70;   /* Sekundärtext */
  --linie:         #DCE5E4;
  --signal:        #B3372B;   /* Notruf */
  --weiss:         #FFFFFF;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--weiss);
}

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

a { color: var(--petrol); }
a:hover { color: var(--petrol-dunkel); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--petrol-dunkel);
  color: #fff;
  padding: .7rem 1.2rem;
  z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* ---------- Typografie ---------- */

h1, h2, h3 { font-family: var(--serif); color: var(--petrol-dunkel); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 600; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 600; margin: 0 0 .5rem; }
h3 { font-size: 1.15rem; margin: 0 0 .35rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--petrol);
  margin: 0 0 .75rem;
}

.lead { font-size: 1.15rem; color: var(--grau); max-width: 60ch; }

/* ---------- Notfall-Leiste ---------- */

.notfall {
  background: var(--petrol-dunkel);
  color: #E9F1F0;
  font-size: .9rem;
  padding: .45rem 0;
}
.notfall .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.75rem;
  justify-content: space-between;
}
.notfall strong { color: #fff; }
.notfall .rot { color: #FFB4A8; font-weight: 700; }

/* ---------- Navigation ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--linie);
}
.kopf .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  flex-wrap: wrap;
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.marke { text-decoration: none; }
.marke .zeile1 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--petrol-dunkel);
  display: block;
}
.marke .zeile2 {
  font-size: .85rem;
  color: var(--petrol);
  font-weight: 600;
  display: block;
}
.nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.nav a { font-weight: 600; text-decoration: none; color: var(--tinte); }
.nav a:hover { color: var(--petrol); }
.nav .btn { color: #fff; }

.btn {
  display: inline-block;
  background: var(--petrol);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: .75rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid var(--petrol);
}
.btn:hover { background: var(--petrol-dunkel); border-color: var(--petrol-dunkel); color: #fff; }
.btn.hell { background: transparent; color: var(--petrol-dunkel); border-color: var(--petrol); }
.btn.hell:hover { background: var(--petrol-hell); }

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

.hero { background: linear-gradient(180deg, var(--sand) 0%, var(--weiss) 100%); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.hero .cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero .tel-hinweis { font-size: .9rem; color: var(--grau); margin-top: 1rem; }

/* Signatur-Element: Sprechzeiten-Karte, heutiger Tag wird hervorgehoben */
.zeiten-karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-top: 5px solid var(--petrol);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.4rem;
  box-shadow: 0 12px 32px rgba(23,69,78,.10);
}
.zeiten-karte h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.zeiten-karte table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.zeiten-karte th, .zeiten-karte td {
  text-align: left;
  padding: .55rem .4rem;
  border-bottom: 1px solid var(--linie);
  font-weight: 400;
}
.zeiten-karte td:last-child { text-align: right; white-space: nowrap; }
.zeiten-karte tr:last-child th, .zeiten-karte tr:last-child td { border-bottom: none; }
.zeiten-karte tr.heute th, .zeiten-karte tr.heute td {
  background: var(--petrol-hell);
  font-weight: 700;
  color: var(--petrol-dunkel);
}
.zeiten-karte .fussnote { font-size: .85rem; color: var(--grau); margin: .9rem 0 0; }

/* ---------- Infekt-Hinweis ---------- */

.hinweis {
  border-left: 5px solid var(--signal);
  background: #FBF1EF;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem auto;
}
.hinweis h2 { color: #7C2318; font-size: 1.1rem; font-family: var(--sans); font-weight: 700; }
.hinweis p { margin: .25rem 0 0; }

/* ---------- Abschnitte ---------- */

section.block { padding: 4.5rem 0; }
section.block.getont { background: var(--sand); }

.kopfzeile { max-width: 62ch; margin-bottom: 2.5rem; }

/* Leistungen */
.leistungen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  padding: 0; margin: 0;
  list-style: none;
}
.leistungen li {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.25rem;
}
.leistungen h3 { display: flex; align-items: center; gap: .6rem; color: var(--petrol-dunkel); }
.leistungen svg { flex: none; color: var(--petrol); }
.leistungen p { margin: .4rem 0 0; font-size: .95rem; color: var(--grau); }

/* Praxis / Galerie */
.galerie {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.galerie figure { margin: 0; }
.galerie img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--linie);
}
.galerie figcaption { font-size: .88rem; color: var(--grau); margin-top: .45rem; }

.grundriss {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}
.grundriss img {
  border-radius: var(--radius);
  border: 1px solid var(--linie);
  background: #fff;
}

/* Kontakt */
.kontakt-gitter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.k-karte {
  background: var(--weiss);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.k-karte .label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grau);
  margin: 0 0 .3rem;
}
.k-karte .wert {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--petrol-dunkel);
  text-decoration: none;
  word-break: break-word;
}
a.wert:hover { color: var(--petrol); text-decoration: underline; }
.k-karte p { margin: .5rem 0 0; font-size: .9rem; color: var(--grau); }

.anfahrt-links { margin-top: 1rem; font-size: .95rem; }

/* ---------- Fußzeile ---------- */

footer {
  background: var(--petrol-dunkel);
  color: #CFE0DE;
  padding: 3rem 0 2rem;
  margin-top: 4.5rem;
  font-size: .95rem;
}
footer h2 { color: #fff; font-size: 1.05rem; font-family: var(--sans); }
footer a { color: #fff; }
.fuss-gitter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: .35rem 0; }
.fuss-ende { padding-top: 1.25rem; font-size: .85rem; color: #9FB8B5; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */

.rechtstext { padding: 3.5rem 0 1rem; max-width: 75ch; }
.rechtstext h2 { margin-top: 2.25rem; font-size: 1.3rem; }
.rechtstext .platzhalter {
  background: #FFF6DC;
  border: 1px dashed #C9A227;
  padding: 0 .3rem;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: .9em;
}

/* ---------- Responsiv ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .galerie { grid-template-columns: 1fr; }
  .grundriss { grid-template-columns: 1fr; gap: 1.5rem; }
  section.block { padding: 3rem 0; }
}
