/* =====================================================================
   Modernisierung (25.11.2026) – wird NACH style.css geladen.
   Aktiv auf Seiten mit <html class="modern">.
   Strahlenstern aus dem Logo, normale Groß-/Kleinschreibung, Weißraum,
   runde Ecken, weiche Schatten, Hinweisleiste, Datums-Plakette.
   Standortfarbe: Kißlegg Akzent Rost / Fläche Blau, Wolfegg umgekehrt.
   ===================================================================== */
.modern {
  --m-blau: #134b66;
  --m-blau-mittel: #2c6481;
  --m-rost: #ac492e;
  --m-grau: #9a9a98;
  --m-sand: #f2e8df;        /* warmes Beige */
  --m-sand-2: #e8dacd;
  --m-hellblau: #dce8ee;    /* Blau, stark aufgehellt */
  --m-hellrost: #f6e9e4;
  --m-radius: 18px;
  --m-schatten: 0 1px 2px rgba(20, 30, 40, .04), 0 12px 32px rgba(20, 30, 40, .08);
  /* Standort Kißlegg */
  --m-akz: var(--m-rost);          /* Knöpfe, Termin-Karte, Telefon */
  --m-akz-hell: var(--m-hellrost);
  --m-gegen: var(--m-blau);        /* große Farbfläche „So finden Sie uns“ */
  --m-gegen-dach: #f3c6b8;
}
.modern[data-standort="wolfegg"] {
  --m-akz: var(--m-blau);
  --m-akz-hell: var(--m-hellblau);
  --m-gegen: var(--m-rost);
  --m-gegen-dach: #fbe1d8;
}

/* --- Typografie: normale Schreibweise statt Versalien --- */
.modern h1, .modern h2, .modern h3, .modern h4 { text-transform: none; font-weight: 500; letter-spacing: -.01em; color: var(--m-blau); }
.modern h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.05; }
.modern h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.modern .dachzeile { letter-spacing: .08em; font-size: .8rem; font-weight: 500; color: var(--m-blau-mittel); }
.modern body { color: #3a3a3a; }

/* --- Knöpfe: Pillenform in Standortfarbe --- */
.modern .knopf { border-radius: 999px; padding: 12px 24px; font-size: 15px; background: var(--m-akz); border-color: var(--m-akz); color: #fff; }
.modern .knopf:hover { background: transparent; color: var(--m-akz); }
.modern .knopf--rahmen { background: transparent; color: var(--m-akz); border-color: currentColor; }
.modern .knopf--rahmen:hover { background: var(--m-akz); border-color: var(--m-akz); color: #fff; }
.modern .knopf--klein { padding: 8px 18px; font-size: 14px; }
.modern .textlink { color: var(--m-akz); }

/* --- Hinweisleiste ganz oben --- */
.m-hinweis { background: var(--m-blau); color: #fff; font-size: 14px; line-height: 1.5; text-align: center; padding: .6rem 1.25rem; }
.m-hinweis strong { font-weight: 600; }
.m-hinweis a { color: #fff; }

/* --- Kopf --- */
.modern .hauptnav { background: #fff; border-bottom: 1px solid var(--linie); }
.modern .kopf__kontakt { font-family: "Jost", sans-serif; font-size: 15px; flex-direction: column; align-items: flex-start; gap: .2rem; flex-wrap: nowrap; }
.modern .kopf__kontakt .ico--voll, .modern .hauptnav__kontakt .ico--voll { color: var(--m-akz); }

/* --- Strahlenstern --- */
.m-motiv { display: block; }
@media (prefers-reduced-motion: no-preference) {
  /* nur die bunten Strahlen pendeln langsam um die Mitte, graue Streben bleiben stehen */
  .m-motiv__bunt { transform-box: view-box; transform-origin: 22.9px 23.3px; animation: m-pendeln 18s ease-in-out infinite; }
}
@keyframes m-pendeln { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(14deg); } 70% { transform: rotate(-14deg); } }
.m-ecke { position: absolute; width: 380px; height: 380px; right: -150px; bottom: -170px; opacity: .07; pointer-events: none; }

/* --- Startseite: Held --- */
.m-held { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(6rem, 12vw, 9rem);
  background: radial-gradient(circle at 78% 45%, rgba(19, 75, 102, .16) 0, rgba(19, 75, 102, .07) 22%, rgba(19, 75, 102, 0) 42%), var(--m-sand); }
.m-held__raster { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; }
.m-held h1 { margin-bottom: .35em; }
.m-held h1 span { color: var(--m-rost); }
.m-held__lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6; max-width: 34ch; color: #4a4a4a; margin-bottom: 1.75rem; }
.m-held__knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; }
.m-held__knoepfe .knopf--rahmen { color: var(--m-blau); }
.m-held__knoepfe .knopf--rahmen:hover { background: var(--m-blau); border-color: var(--m-blau); color: #fff; }
.m-held__grafik { position: relative; justify-self: center; width: min(100%, 340px); aspect-ratio: 1; }
.m-held__grafik .m-motiv { width: 100%; height: 100%; }
@media (max-width: 860px) {
  .m-held { background: radial-gradient(circle at 70px 130px, rgba(19, 75, 102, .16) 0, rgba(19, 75, 102, .06) 90px, rgba(19, 75, 102, 0) 170px), var(--m-sand); }
  .m-held__raster { grid-template-columns: 1fr; text-align: left; }
  .m-held__grafik { order: -1; width: 180px; justify-self: start; margin-bottom: -.5rem; }
}

/* --- Karten --- */
.m-info { margin-top: clamp(-6rem, -9vw, -4rem); position: relative; z-index: 2; }
.m-info .infoleiste__raster { gap: 1.5rem; }
.m-karte { background: #fff; border-radius: var(--m-radius); box-shadow: var(--m-schatten); padding: 1.75rem 1.9rem; }
.m-karte h2 { font-size: 1.25rem; margin-bottom: .75rem; display: flex; align-items: center; gap: .55rem; }
.m-karte h2 .ico { color: var(--m-akz); }
.m-karte p { color: #6a6a6a; font-size: 15px; }
.m-karte .zeiten { font-size: 15px; }
.m-karte .zeiten__zeile { line-height: 28px; }
.m-karte .zeiten dt { color: var(--m-blau); text-transform: none; }
.m-karte__tel { font: 500 1.6rem/1.2 "Jost", sans-serif; margin-bottom: .4rem !important; }
.m-karte__tel a { color: var(--m-akz); text-decoration: none; }
.modern .m-karte--akzent { background: var(--m-akz); color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.modern .m-karte--akzent h2 { justify-content: center; }
.m-karte--akzent h2, .m-karte--akzent h2 .ico, .m-karte--akzent p { color: #fff; }
.modern .m-karte--akzent .knopf { background: #fff; border-color: #fff; color: var(--m-akz); margin-top: .5rem; }
.modern .m-karte--akzent .knopf:hover { background: transparent; color: #fff; }

/* --- Abschnitte --- */
.m-abschnitt { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.m-abschnitt--blau { background: var(--m-hellblau); }
.m-kopf { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.m-kopf h2 { margin-bottom: .3em; }
.m-kopf p { color: #6a6a6a; }
.m-trenner { width: 40px; height: 40px; margin: 0 auto .9rem; }

/* Bild/Text im Wechsel */
.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.m-split__bild { position: relative; }
.m-split__bild img { width: 100%; height: auto; border-radius: var(--m-radius); box-shadow: var(--m-schatten); position: relative; z-index: 1; }
.m-split__bild .m-motiv { position: absolute; width: 220px; height: 220px; left: -70px; top: -70px; opacity: .18; }
.m-split p { font-size: 1.08rem; line-height: 1.75; }
.m-split .m-gruss { font: 500 1.25rem/1.4 "Jost", sans-serif; color: var(--m-akz); }
@media (max-width: 860px) { .m-split { grid-template-columns: 1fr; } .m-split__bild .m-motiv { width: 150px; height: 150px; left: -40px; top: -50px; } }

/* Digitale Praxis */
.m-digital { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.m-digital .m-karte { display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.m-digital .m-karte:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(20,30,40,.05), 0 18px 40px rgba(20,30,40,.12); }
.m-symbol { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--m-hellrost); color: var(--m-rost); margin-bottom: 1.1rem; }
.m-digital .m-karte:nth-child(even) .m-symbol { background: var(--m-hellblau); color: var(--m-blau); }
.m-symbol .ico { width: 28px; height: 28px; margin: 0; color: inherit; }
.m-digital h3 { font-size: 1.2rem; margin-bottom: .4em; }
.m-digital p { flex: 1; }
@media (max-width: 960px) { .m-digital { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .m-digital { grid-template-columns: 1fr; } }

/* Aktuelles mit Datums-Plakette */
.m-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.m-news article { background: #fff; border-radius: var(--m-radius); overflow: hidden; box-shadow: var(--m-schatten); display: flex; flex-direction: column; }
.m-news__bild { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--m-sand-2); overflow: hidden; }
.m-news__bild img { width: 100%; height: 100%; object-fit: cover; }
.m-news__bild--logo img { object-fit: contain; background: #fff; }
.m-news__bild--leer { background: var(--m-hellblau); }
.m-news__bild--leer .m-motiv { position: absolute; width: 60%; right: -12%; bottom: -30%; opacity: .35; }
.m-datum { position: absolute; left: 1rem; top: 1rem; z-index: 1; background: #fff; border-radius: 12px; padding: .35rem .7rem .45rem; text-align: center; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.m-datum b { display: block; font: 600 1.5rem/1 "Jost", sans-serif; color: var(--m-akz); }
.m-datum small { font: 500 .72rem/1.2 "Jost", sans-serif; text-transform: uppercase; letter-spacing: .06em; color: #6a6a6a; }
.m-news__text { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.m-news h3 { font-size: 1.2rem; margin-bottom: .75rem; flex: 1; }
.m-news h3 a { color: var(--m-blau); text-decoration: none; }
.m-news h3 a:hover { color: var(--m-akz); }
@media (max-width: 860px) { .m-news { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* Partner ruhiger */
.m-partner { padding: 2.5rem 0; }
.m-partner .partner li { border-left: 0; }
.m-partner .partner img { max-height: 90px; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.m-partner .partner img:hover { filter: none; opacity: 1; }

/* Standort als Farbfläche (Gegenfarbe des Standorts) */
.m-standort { background: var(--m-gegen); color: #fff; position: relative; overflow: hidden; }
.modern .m-standort h2, .m-standort .m-standort__adresse { color: #fff; }
.modern .m-standort .dachzeile { color: var(--m-gegen-dach); }
.m-standort__adresse { font: 500 1.35rem/1.5 "Jost", sans-serif; }
.m-standort .m-split__bild img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; }
.modern .m-standort .knopf { background: #fff; border-color: #fff; color: var(--m-gegen); }
.modern .m-standort .knopf:hover { background: transparent; color: #fff; }
.modern .m-standort .knopf--rahmen { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.modern .m-standort .knopf--rahmen:hover { background: #fff; color: var(--m-gegen); }
.m-standort .m-ecke { opacity: .12; }
.m-standort .m-ecke path[fill="var(--m-grau)"] { fill: #fff; }
.m-standort--ohne-bild .m-split { grid-template-columns: 1fr auto; }
.m-standort--ohne-bild .m-standort__stern { width: 220px; opacity: .9; }
.m-standort--ohne-bild .m-standort__stern path[fill="var(--m-grau)"] { fill: rgba(255,255,255,.55); }
.m-standort--ohne-bild .m-standort__stern path[fill="var(--m-rost)"] { fill: #fff; }
.m-standort--ohne-bild .m-standort__stern path[fill="var(--m-blau)"] { fill: #f3c6b8; }
@media (max-width: 860px) { .m-standort--ohne-bild .m-split { grid-template-columns: 1fr; } .m-standort--ohne-bild .m-standort__stern { width: 140px; } }

/* --- Fuß --- */
.modern .fuss { position: relative; overflow: hidden; background: var(--m-hellblau); border-top: 0; color: #4f6470; }
.modern .fuss h2.fuss__titel { font-size: 18px; text-transform: none; color: var(--m-blau); }
.modern .fuss a { color: #2f4652; }
.modern .fuss .fuss__telefon a { color: var(--m-akz); }
.modern .fuss .fuss__label { color: var(--m-akz); }
.modern .fuss__unten { border-top: 1px solid rgba(19,75,102,.15); }

/* Online-Rezeption-Knopf rund */
.modern .rezeption__knopf { border-radius: 999px; }

/* =========================== Unterseiten =========================== */
.modern .seitenkopf { background: var(--m-sand); color: var(--m-blau); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.modern .seitenkopf h1 { color: var(--m-blau); font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.modern .seitenkopf .dachzeile { color: var(--m-blau-mittel); }
.modern .seitenkopf--bild { min-height: 0; display: block; }
.modern .seitenkopf__bild { display: none; }
.modern .seitenkopf .m-ecke { width: 340px; height: 340px; right: -60px; bottom: -150px; opacity: .22; }
@media (max-width: 760px) { .modern .seitenkopf .m-ecke { width: 200px; height: 200px; right: -50px; bottom: -80px; } }

.modern .inhalt { color: #3a3a3a; }
.modern .inhalt h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.modern .inhalt h3 { font-size: 1.2rem; }
.modern .einleitung { font-size: 1.2rem; color: #4a4a4a; }
.modern .hinweis { background: var(--m-hellblau); border-left: 0; border-radius: var(--m-radius); padding: 1.25rem 1.5rem; }
.modern blockquote { border-left: 0; border-radius: var(--m-radius); background: var(--m-sand); }
.modern .hakenliste li::before { border-color: var(--m-akz); }

.modern .karte { border: 0; border-radius: var(--m-radius); box-shadow: var(--m-schatten); padding: 1.6rem 1.7rem; }
.modern .karte--meldung { padding: 0; }
.modern .karte__nr { color: var(--m-akz); }
.modern .karte--fragebogen .ico--gross { color: var(--m-akz); }
.modern .karte--meldung h3 a { color: var(--m-blau); }
.modern .karte__bild img { aspect-ratio: 16 / 10; }
.modern .artikel__bild img, .modern .zweispaltig img, .modern .kontakt__bild img { border-radius: var(--m-radius); }

.modern .kacheln { gap: 1.25rem; }
.modern .kachel { border: 0; border-radius: var(--m-radius); background: #fff; box-shadow: var(--m-schatten); color: var(--m-blau); transition: transform .2s, box-shadow .2s; }
.modern .kachel:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(20,30,40,.05), 0 18px 40px rgba(20,30,40,.12); }
.modern .kachel .ico--gross { color: var(--m-akz); }
.modern .kachel__titel { text-transform: none; font-weight: 500; font-size: 1.1rem; }

.modern .faq summary { color: var(--m-blau); font-weight: 500; }
.modern .kontaktliste dt { color: var(--m-blau); }
.modern .kontaktliste dt .ico { color: var(--m-akz); }
.modern .kontakt h2 .ico { color: var(--m-akz); }

/* Team: runde Ecken an den Fotos */
.modern .person__foto { border-radius: 14px; }
.modern .person__titel { color: var(--m-akz); }
.modern .person h3 { color: var(--m-blau); }

/* --- Smartphone: linksbündig lesen (statt alles mittig) --- */
@media (max-width: 760px) {
  .modern main { text-align: left; }
  .modern .m-kopf, .modern .seitenkopf__text { text-align: left; }
  .modern .m-kopf { text-align: center; }
  .modern .m-karte, .modern .m-digital .m-karte { align-items: flex-start; text-align: left; }
  .modern .m-karte--akzent { align-items: center; text-align: center; }
  .modern .zeiten { margin-left: 0; }
  .m-karte h2 { justify-content: flex-start; }
  .modern .m-karte--akzent h2 { justify-content: center; }
  .modern .infokarte, .modern .karte, .modern .kachel { text-align: left; align-items: flex-start; }
  .modern .kachel { text-align: center; align-items: center; }
  .modern .person { text-align: left; align-items: flex-start; }
  .modern .inhalt ul, .modern .inhalt ol, .modern .karte ul { list-style-position: outside; padding-left: 1.2em; }
  .modern .hakenliste li { padding-left: 1.8em; }
  .modern .hakenliste li::before { position: absolute; left: .2em; top: .45em; margin: 0; }
  .modern .knopfreihe { justify-content: flex-start; }
  .modern .kontakt h2, .modern .kontaktliste dt { justify-content: flex-start; }
  .modern .fuss { text-align: left; }
  .modern .fuss__unten .rahmen { justify-content: flex-start; text-align: left; }
}

/* Korrektur 3 */
/* Ärzt*innen in festen Reihen: mehrere Listen untereinander */
.team + .team { margin-top: 2.5rem; }
@media (max-width: 680px) { .team + .team { margin-top: 1.5rem; } }
/* Bürgermeister-Zitate wie das Vorstandszitat, versetzt */
.modern .zitate { margin: 1.5em 0; }
.modern .zitate .zitat { max-width: 82%; margin: 0 0 1.25rem; }
.modern .zitate .zitat--rechts { margin-left: auto; }
@media (max-width: 600px) { .modern .zitate .zitat { max-width: 92%; } }

/* Abstand über „Alle Meldungen“ (statt Inline-Style, wegen strenger CSP) */
.modern .m-alle { margin-top: 2rem; }
