/* Praxis à la Gare (2.11.2026): die Seite erbt medin-fall.css, hier die Welt der Praxis.
   Nur erlaubte Farben, keine Verläufe, box-shadow nur none oder 0 10px 30px rgba(0,60,85,.12). */

/* 1. Kopf */
.md--gare .pg-kopf { background: #003C55; color: #fff; padding: clamp(3rem, 7vw, 6rem) 0; }
.md--gare .pg-kopf::after { content: none; } /* MEDIN-Leuchten weg */
.md--gare .pg-kopf .md-pfad { color: rgba(255, 255, 255, .7); }
.md--gare .pg-kopf__raster { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.md--gare .pg-kopf__text { min-width: 0; }
.md--gare .pg-kopf__titel { color: #fff; font-size: clamp(2.3rem, 6vw, 4.6rem); line-height: 1.02; font-weight: 700; max-width: 15ch; }
.md--gare .pg-kopf__titel em { color: #009FE3; font-style: normal; }
.md--gare .pg-kopf__lead { color: rgba(255, 255, 255, .85); max-width: 34rem; margin-top: 1.5rem; }
.md--gare .pg-kopf__knopf { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .85rem 1.5rem; border-radius: 8px; font: 700 1rem/1 var(--font-display); text-decoration: none; transition: transform .25s ease, border-color .25s ease; }
.md--gare .pg-kopf__knopf svg { width: 16px; height: 16px; }
.md--gare .pg-kopf__knopf--hell { background: #fff; color: #003C55; }
.md--gare .pg-kopf__knopf--hell:hover { transform: translateY(-1px); }
.md--gare .pg-kopf__knopf--rand { color: #fff; border: 1px solid rgba(255, 255, 255, .5); }
.md--gare .pg-kopf__knopf--rand:hover { border-color: #fff; }
.md--gare .pg-kopf__knopf--rand:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: none; }
.md--gare .pg-kopf__bild { margin: 0; }
.md--gare .pg-kopf__bild img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 45% 50%; border-radius: 16px; }
.md--gare .pg-kopf__bild figcaption { margin-top: .85rem; font-size: .85rem; color: rgba(255, 255, 255, .7); }
.md--gare .pg-kopf__zahlen { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; overflow: hidden; }
.md--gare .pg-kopf__zahlen li { min-width: 0; padding: 1.2rem 1.4rem 1.1rem; background: rgba(255, 255, 255, .06); }
.md--gare .pg-kopf__zahlen b { display: block; font: 700 clamp(2.2rem, 4vw, 3.2rem)/1 var(--font-display); letter-spacing: -.03em; color: #fff; white-space: nowrap; }
.md--gare .pg-kopf__zahlen span { display: block; margin-top: .4rem; font-size: .92rem; line-height: 1.4; color: rgba(255, 255, 255, .75); }

/* 2. Wörter, die beim Scrollen hell werden */
.md--gare .md-an .md-woerter .md-w:not(.is-hell) { color: rgba(0, 60, 85, .18); }

/* 3. Kapitelleiste */
.md--gare .md-leiste { box-shadow: 0 10px 30px rgba(0, 60, 85, .12); }
.md--gare .md-leiste a:hover:not(.is-hier) { color: #009FE3 !important; }
.md--gare .md-leiste a.is-hier { background: #009FE3; }

/* 4. Website: Browserpunkte, neuer Block Zwei Sprachen */
.md--gare .md-browser__leiste { background: #fff; border-bottom: 1px solid #e3f4fc; background-image: none; }
.md--gare .md-browser__leiste i { background: rgba(0, 60, 85, .2); }
.md--gare .md-browser, .md--gare .md-browser::before, .md--gare .md-browser::after,
.md--gare .md-telefon, .md--gare .md-telefon::before, .md--gare .md-telefon::after {
  box-shadow: 0 10px 30px rgba(0, 60, 85, .12);
}
.md--gare .md-telefon { background: #003C55; }
.md--gare .pg-sprachen { margin-top: clamp(3rem, 6vw, 4.5rem); }
.md--gare .pg-sprachen__satz { margin: 0; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; color: var(--md-tinte); max-width: 32ch; }
.md--gare .pg-sprachen__bilder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: 1.5rem; }
.md--gare .pg-sprachen__bilder figure { margin: 0; }
.md--gare .pg-sprachen__bilder img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid #e3f4fc; }
.md--gare .pg-sprachen__bilder figcaption { margin-top: .5rem; font-size: .92rem; color: var(--md-grau); }

/* 5. Wege: Abfahrtstafel, Farben der Praxis */
.md--gare .pg-tafel { padding: clamp(5rem, 10vw, 8rem) 0; background: #003C55; color: #fff; }
.md--gare .pg-tafel .md-kapitel { color: #e3f4fc; }
.md--gare .pg-tafel h2 { color: #fff; }
.md--gare .pg-tafel h2 em { color: #e3f4fc; font-style: normal; }
.md--gare .pg-tafel .md-lead { color: rgba(255, 255, 255, .78); max-width: 40rem; }

.md--gare .pg-tafel__buehne { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.2rem, 2.5vw, 2rem); align-items: start; margin-top: 2.6rem; }
.md--gare .pg-tafel__rahmen { padding: clamp(1rem, 2.4vw, 1.8rem); border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.md--gare .pg-tafel__kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .2rem .4rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.md--gare .pg-tafel__titel { font: 600 clamp(1.4rem, 3vw, 2rem)/1 var(--font-display); letter-spacing: .02em; color: #fff; }
.md--gare .pg-tafel__sprache { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.md--gare .pg-tafel__sprache button { min-width: 44px; min-height: 36px; border: 0; border-radius: 999px; background: none; color: rgba(255, 255, 255, .7); font: 600 .85rem/1 var(--font-display); cursor: pointer; }
.md--gare .pg-tafel__sprache button[aria-pressed="true"] { background: #009FE3; color: #fff; }
.md--gare .pg-tafel__sprache button:focus-visible { outline: 2px solid #e3f4fc; outline-offset: 2px; box-shadow: none; border-radius: 999px; }

.md--gare .pg-tafel__liste { width: 100%; border-collapse: separate; border-spacing: 0 .45rem; margin-top: .6rem; }
.md--gare .pg-tafel__liste th { text-align: left; padding: .3rem .6rem; font: 500 .72rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.md--gare .pg-tafel__liste td { padding: .75rem .6rem; background: rgba(255, 255, 255, .06); font: 600 clamp(.95rem, 1.6vw, 1.2rem)/1.2 var(--font-body); color: #fff; letter-spacing: 0; }
.md--gare .pg-tafel__liste td:first-child { border-radius: 8px 0 0 8px; }
.md--gare .pg-tafel__liste td:last-child { border-radius: 0 8px 8px 0; color: #e3f4fc; }
.md--gare .pg-tafel__liste .pg-gleis { width: 3.4rem; text-align: center; background: #009FE3; color: #fff; font-size: 1.15rem; }
.md--gare .pg-tafel__liste .pg-zeichen { display: inline-block; }
.md--gare .pg-tafel__liste .pg-zeichen.is-klappt { animation: pg-klapp .07s steps(1) infinite; }
.md--gare .pg-tafel__fuss { margin: 1rem .4rem 0; font-size: .85rem; color: rgba(255, 255, 255, .55); }
.md--gare .pg-tafel__liste tbody tr { cursor: pointer; }
.md--gare .pg-tafel__liste tbody tr td { transition: background .25s ease; }
.md--gare .pg-tafel__liste tbody tr:hover td:not(.pg-gleis) { background: rgba(255, 255, 255, .09); }
.md--gare .pg-tafel__liste tbody tr.is-an td:not(.pg-gleis) { background: rgba(255, 255, 255, .14); }
.md--gare .pg-tafel__liste .pg-gleis { padding: 0; }
.md--gare .pg-tafel__liste .pg-gleis button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; border-radius: 8px 0 0 8px; }
.md--gare .pg-tafel__liste tr.is-an .pg-gleis { background: #fff; color: #003C55; }
.md--gare .pg-tafel__liste .pg-gleis button:focus-visible { outline: 2px solid #e3f4fc; outline-offset: -2px; box-shadow: none; border-radius: 8px 0 0 8px; }
.md--gare .pg-tafel__liste tr.is-an .pg-gleis button:focus-visible { outline-color: #009FE3; }
.md--gare .pg-tafel__liste .pg-wort { white-space: nowrap; }
.md--gare .pg-tafel__buehne .pg-tafel__liste td { font-size: clamp(.86rem, 1.15vw, 1.05rem); }

.md--gare .pg-schirm { display: flex; flex-direction: column; margin: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(0, 60, 85, .12); }
.md--gare .pg-schirm__leiste { flex: 0 0 auto; display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; background: #e3f4fc; }
.md--gare .pg-schirm__leiste i { width: .62rem; height: .62rem; border-radius: 50%; background: rgba(0, 60, 85, .2); }
.md--gare .pg-schirm__leiste span { margin-left: auto; margin-right: auto; padding: .2rem .8rem; border-radius: 8px; background: #fff; font-size: .75rem; color: #003C55; }
.md--gare .pg-schirm__bild { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.md--gare .pg-schirm__bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; background: #fff; animation: pg-ein .45s ease both; }
.md--gare .pg-schirm__text { flex: 0 0 auto; padding: .85rem 1rem 1rem; font-size: .88rem; line-height: 1.45; color: #003C55; background: #fff; }

@keyframes pg-klapp { 50% { transform: scaleY(.82); } }
@keyframes pg-ein { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }

/* 6. Betreuung: Zeitleiste auf Weiss */
.md--gare .md-zeit { background: #fff; }
.md--gare .md-zeit__liste::before { background: #e3f4fc; }
.md--gare .md-zeit__punkt { min-width: 0; }
.md--gare .md-zeit__liste b { display: block; font: 700 1.15rem/1.25 var(--font-display); color: var(--md-tinte); margin-bottom: .3rem; }
.md--gare .md-titelkarte__link { border-bottom-color: #009FE3; }

/* 7. Im selben Haus */
.md--gare .pg-haus-sek { padding: clamp(3rem, 6vw, 5rem) 0; }
.md--gare .pg-haus { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem; padding: 1.5rem 1.75rem; border-radius: 16px; background: #fff; border: 1px solid #e3f4fc; text-decoration: none; }
.md--gare .pg-haus:hover { border-color: #009FE3; }
.md--gare .pg-haus:focus-visible { outline: 2px solid #009FE3; outline-offset: 2px; box-shadow: none; }
.md--gare .pg-haus img { display: block; height: 32px; width: auto; }
.md--gare .pg-haus p { margin: 0; font-size: 1.05rem; line-height: 1.5; color: var(--md-tinte); }
.md--gare .pg-haus__mehr { font-weight: 700; color: #009FE3; white-space: nowrap; }

/* 8. Schluss: Knopf «Lieber anrufen?» in Blau statt Lila */
.md--gare .md-knopf--linie { color: #009FE3; box-shadow: none; border: 1.5px solid #009FE3; transition: transform .25s ease, border-color .25s ease; }
.md--gare .md-knopf--linie:hover { box-shadow: none; border-color: #003C55; }

@media (max-width: 999px) {
 .md--gare .pg-kopf__raster { grid-template-columns: minmax(0, 1fr); }
 .md--gare .pg-kopf__bild img { aspect-ratio: 4 / 3; }
 .md--gare .pg-kopf__zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
 .md--gare .pg-tafel__buehne { grid-template-columns: minmax(0, 1fr); }
 .md--gare .pg-schirm { display: block; }
}

@media (max-width: 700px) {
 .md--gare .pg-sprachen__bilder { grid-template-columns: minmax(0, 1fr); }
 .md--gare .pg-haus { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
 .md--gare .pg-tafel__liste thead { display: none; }
 .md--gare .pg-tafel__liste, .md--gare .pg-tafel__liste tbody, .md--gare .pg-tafel__liste tr { display: block; }
 .md--gare .pg-tafel__liste tr { display: grid; grid-template-columns: 2.8rem 1fr; margin-bottom: .5rem; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .06); }
 .md--gare .pg-tafel__liste td { border-radius: 0 !important; padding: .55rem .7rem; }
 .md--gare .pg-tafel__liste .pg-gleis { grid-row: span 2; display: flex; align-items: center; justify-content: center; }
 .md--gare .pg-tafel__liste td:last-child { padding-top: 0; font-size: .9rem; }
 .md--gare .pg-tafel__liste td:not(.pg-gleis):not(:last-child) { padding-bottom: .25rem; }
 .md--gare .md-leiste { display: none; }
}

@media (prefers-reduced-motion: reduce) {
 .md--gare .pg-tafel__liste .pg-zeichen.is-klappt { animation: none; }
 .md--gare .pg-schirm__bild img { animation: none; }
}
