/* =========================================================================
   implantat-berater.de — Bausteine des Arztverzeichnisses
   Gestaltung nach dem freigegebenen Entwurf „Ruhe und Orientierung", 2026-09-01.
   Ergänzt das Design des Baukastens; alle Klassen tragen das Präfix ib-,
   damit sich nichts mit dem Grundgerüst beißt.
   ========================================================================= */

.ib-marine  { color: #222955; }

:root {
  --ib-marine: #222955;
  --ib-blau: #0061ad;
  --ib-blau-hell: #e8f1f9;
  --ib-gruen: #2f6b52;
  --ib-grund: #faf9f6;
  --ib-linie: #e4e1d9;
  --ib-linie-kraeftig: #cfcbc0;
  --ib-text: #1c2033;
  --ib-leise: #5c6172;
  --ib-radius: 14px;
  --ib-radius-klein: 9px;
  --ib-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --ib-schatten: 0 1px 2px rgba(28,32,51,.05), 0 8px 24px -12px rgba(28,32,51,.18);
}

.ib-suche, .ib-trefferbereich, .ib-ortsuebersicht, .ib-ortsseite, .ib-praxis { color: var(--ib-text); }
.ib-suche h1, .ib-suche h2, .ib-trefferbereich h2, .ib-ortsuebersicht h2,
.ib-ortsseite h1, .ib-praxis h1, .ib-praxis h2 {
  font-family: var(--ib-serif); color: var(--ib-marine); line-height: 1.22; font-weight: 600;
}

/* --- Suchkarte ----------------------------------------------------------- */
.ib-suchkarte {
  background: #fff; border: 1px solid var(--ib-linie); border-radius: var(--ib-radius);
  box-shadow: var(--ib-schatten); padding: 1.6rem 1.7rem; margin-bottom: 2rem;
}
.ib-suchkarte h2 { margin: 0 0 1.1rem; font-size: 1.32rem; }
.ib-suchzeile { display: grid; grid-template-columns: 2.1fr 1.1fr 1.2fr auto; gap: .7rem; align-items: end; }
.ib-feld label { display: block; font: 600 13.5px/1 system-ui, sans-serif; color: var(--ib-leise); margin-bottom: .45rem; }
.ib-feld input, .ib-feld select {
  width: 100%; padding: 13px 14px; font: 400 17px/1.3 system-ui, sans-serif; color: var(--ib-text);
  background: var(--ib-grund); border: 1.5px solid var(--ib-linie-kraeftig); border-radius: var(--ib-radius-klein);
  box-sizing: border-box;
}
.ib-feld input:focus, .ib-feld select:focus { border-color: var(--ib-blau); background: #fff; outline: none; }
.ib-suchzeile button {
  padding: 14px 26px; font: 600 17px/1.3 system-ui, sans-serif; color: #fff; cursor: pointer;
  background: var(--ib-marine); border: 0; border-radius: var(--ib-radius-klein); white-space: nowrap;
}
.ib-suchzeile button:hover { background: var(--ib-blau); }

/* --- Trefferliste -------------------------------------------------------- */
.ib-trefferkopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.ib-trefferkopf h2 { margin: 0; font-size: 1.4rem; }
.ib-trefferzahl { font-size: .97rem; color: var(--ib-leise); margin: 0; }
.ib-trefferliste { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
/* Drei Spalten: laufende Nummer, Angaben, Entfernung samt Schaltflaeche. Die Nummer ist
   dieselbe wie auf der Karte im Seitenkopf - sie verbindet Nadel und Eintrag. */
.ib-treffer {
  background: #fff; border: 1px solid var(--ib-linie); border-radius: var(--ib-radius);
  padding: 1.35rem 1.5rem; display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  gap: 1.2rem; align-items: center;
}
.ib-treffer-nummer {
  display: grid; place-items: center; width: 30px; height: 30px; align-self: start;
  border-radius: 50%; background: var(--ib-blau); color: #fff;
  font: 700 .9rem/1 var(--ib-sans, system-ui, sans-serif); margin-top: .2rem;
}
.ib-treffer:hover { border-color: var(--ib-linie-kraeftig); box-shadow: var(--ib-schatten); }
.ib-treffer-name { font-family: var(--ib-serif); font-size: 1.24rem; margin: 0 0 .3rem; }
.ib-treffer-name a { color: var(--ib-marine); text-decoration: none; }
.ib-treffer-name a:hover { color: var(--ib-blau); text-decoration: underline; }
.ib-treffer-anschrift { color: var(--ib-leise); font-size: .99rem; margin: 0; }
.ib-treffer-anschrift a { color: inherit; }
.ib-treffer-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.ib-marken { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .7rem; }
.ib-marke {
  display: inline-block; font: 600 12.5px/1 system-ui, sans-serif; padding: 5px 10px;
  border-radius: 99px; border: 1px solid var(--ib-linie); background: var(--ib-grund); color: var(--ib-leise);
}
.ib-marke-fach { color: var(--ib-gruen); border-color: #bfd6c9; background: #eef5f1; }
.ib-entfernung {
  display: inline-flex; align-items: baseline; gap: .25rem; background: var(--ib-marine); color: #fff;
  border-radius: 99px; padding: 6px 13px; font: 600 14px/1 system-ui, sans-serif; white-space: nowrap;
}
.ib-entfernung span { font-weight: 400; font-size: .85em; }

/* .ib-knopf ist bewusst NUR in main90.css definiert (marine, hover blau). Stand die Regel auch
   hier, gewann je nach Ladereihenfolge mal die eine, mal die andere Farbe - "Praxis anrufen"
   war blau, "Nachricht senden" marine, bei gleichrangigen Aktionen. */
.ib-knopf-schmal {
  display: inline-block; text-decoration: none; border-radius: 99px; white-space: nowrap;
  padding: 9px 16px; border: 1.5px solid var(--ib-blau); color: var(--ib-blau);
  font: 600 14.5px/1 system-ui, sans-serif;
}
.ib-knopf-schmal:hover { background: var(--ib-blau); color: #fff; }

/* --- Hinweise ------------------------------------------------------------ */
.ib-hinweis, .ib-leer {
  background: var(--ib-blau-hell); border-left: 4px solid var(--ib-blau);
  padding: 1.2rem 1.4rem; border-radius: 0 var(--ib-radius-klein) var(--ib-radius-klein) 0; margin: 1.4rem 0;
}
.ib-leer p:last-child, .ib-hinweis:last-child { margin-bottom: 0; }
.ib-vorspann { font-size: 1.1rem; color: var(--ib-leise); max-width: 62ch; }
.ib-klein { font-size: .92rem; color: var(--ib-leise); }
.ib-krumen { font-size: .92rem; color: var(--ib-leise); margin-bottom: .8rem; }
.ib-krumen a { color: var(--ib-leise); }
.ib-krumen span { padding: 0 .45em; color: var(--ib-linie-kraeftig); }

/* --- Ortsübersicht ------------------------------------------------------- */
.ib-sprungmarken { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.6rem 0 2.4rem; }
.ib-sprungmarken a {
  display: inline-block; min-width: 38px; text-align: center; padding: 8px 10px;
  border: 1px solid var(--ib-linie); border-radius: var(--ib-radius-klein); background: #fff;
  text-decoration: none; color: var(--ib-marine); font-weight: 600;
}
.ib-sprungmarken a:hover { border-color: var(--ib-blau); background: var(--ib-blau-hell); }
.ib-ortsgruppe { margin-bottom: 2.2rem; scroll-margin-top: 120px; }
.ib-ortsgruppe h2 { font-size: 1.5rem; margin: 0 0 .8rem; padding-bottom: .4rem; border-bottom: 2px solid var(--ib-linie); }
.ib-ortsliste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .4rem; }
.ib-ortsliste a {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: 9px 12px; border-radius: var(--ib-radius-klein); text-decoration: none;
  color: var(--ib-marine); font-weight: 600;
}
.ib-ortsliste a:hover { background: var(--ib-blau-hell); }
.ib-anzahl { flex: 0 0 auto; font: 600 12.5px/1 system-ui, sans-serif; color: var(--ib-leise); background: var(--ib-grund); border: 1px solid var(--ib-linie); border-radius: 99px; padding: 4px 9px; }

/* --- Praxisseite --------------------------------------------------------- */
.ib-praxis-kopf { margin-bottom: 1.8rem; }
.ib-praxis-kopf h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin: 0 0 .25em; }
.ib-praxis-kopf .ib-zusatz { color: var(--ib-leise); font-size: 1.05rem; margin: 0; }
.ib-praxis-raster { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 1.8rem; align-items: start; }
.ib-block { background: #fff; border: 1px solid var(--ib-linie); border-radius: var(--ib-radius); padding: 1.5rem 1.6rem; box-shadow: var(--ib-schatten); margin-bottom: 1.2rem; }
.ib-block h2 { margin: 0 0 1rem; font-size: 1.2rem; }
.ib-block p:last-child { margin-bottom: 0; }
.ib-kontaktliste { list-style: none; margin: 0; padding: 0; }
.ib-kontaktliste li { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: .8rem; padding: .62rem 0; border-bottom: 1px solid var(--ib-linie); }
.ib-kontaktliste li:last-child { border-bottom: 0; }
.ib-bez { color: var(--ib-leise); font-size: .93rem; }
.ib-zeiten { list-style: none; margin: 0; padding: 0; }
.ib-zeiten li { display: flex; justify-content: space-between; gap: 1rem; padding: .48rem 0; border-bottom: 1px dotted var(--ib-linie); }
.ib-zeiten li:last-child { border-bottom: 0; }
.ib-tag { color: var(--ib-leise); }

@media (max-width: 900px) {
  .ib-praxis-raster { grid-template-columns: 1fr; }
  .ib-suchzeile { grid-template-columns: 1fr 1fr; }
  .ib-suchzeile button { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .ib-suchzeile { grid-template-columns: 1fr; }
  .ib-treffer { grid-template-columns: auto minmax(0, 1fr); }
  .ib-treffer-rechts { grid-column: 1 / -1; align-items: flex-start; }
  .ib-treffer-rechts { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .ib-kontaktliste li { grid-template-columns: 1fr; gap: .1rem; }
  .ib-ortsliste { grid-template-columns: 1fr; }
}
