/* ÄNGie Mitglieder – nutzt die Farben des ÄNGie-Themes (mit Ersatzwerten) */
.mg-card {
  --mg-navy: var(--navy-900, #0B2238); --mg-ink: var(--ink, #1B2A39); --mg-slate: var(--slate, #4A5B6C);
  --mg-green: var(--green-brand, #B0CB1F); --mg-green-600: var(--green-600, #4D6F12); --mg-green-700: var(--green-700, #3F5C0E);
  --mg-line: var(--line, rgba(11,34,56,.11)); --mg-line-strong: var(--line-strong, rgba(11,34,56,.18)); --mg-sage: var(--sage-50, #F5F8EC);
  background: var(--surface, #fff); border: 1px solid var(--mg-line); border-radius: var(--r-lg, 12px);
  padding: clamp(22px, 4vw, 36px); box-shadow: 0 30px 60px -48px rgba(11,34,56,.4); color: var(--mg-ink);
}
.mg-card + .mg-card { margin-top: 20px; }
.mg-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0 0 8px; }
.mg-card h3 { font-size: 1.125rem; margin: 0 0 12px; }
.mg-card p + p { margin-top: 10px; }
.mg-small { font-size: .875rem; color: var(--mg-slate); margin-top: 14px; }
.mg-link { color: var(--mg-green-600); font-weight: 600; text-decoration: none; }
.mg-link:hover { color: var(--mg-green-700); text-decoration: underline; }
.mg-intro { color: var(--mg-slate); margin-bottom: 22px; }

/* Formulare */
.mg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
.mg-field { display: flex; flex-direction: column; gap: 6px; }
.mg-field-titel { grid-column: 1 / -1; max-width: 220px; }
.mg-field-strasse { grid-column: 1 / -1; }
.mg-field label, .mg-login label { font-size: .9375rem; font-weight: 600; color: var(--mg-navy); }
.mg-field label span { color: var(--mg-green-700); }
.mg-field input, .mg-field select, .mg-login input[type=text], .mg-login input[type=password] {
  width: 100%; font: inherit; font-size: 1rem; color: var(--mg-ink); padding: 13px 15px; border-radius: var(--r-sm, 8px);
  border: 1.5px solid var(--mg-line-strong); background: var(--bg, #FCFDFC); box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.mg-field input:focus, .mg-field select:focus, .mg-login input:focus { outline: none; border-color: var(--mg-green-600); background: #fff; box-shadow: 0 0 0 4px rgba(176,203,31,.22); }
.mg-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: .9375rem; color: var(--mg-slate); line-height: 1.55; cursor: pointer; }
.mg-check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--mg-green-600); }
.mg-check a { color: var(--mg-green-700); font-weight: 600; }
.mg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mg-submit { margin-top: 24px; }
.mg-form .btn, .mg-login .btn, .mg-card .btn { border: 0; }

.mg-errors { background: #FDF0F0; border: 1px solid #F1C4C4; color: #7A1E1E; border-radius: var(--r-md, 10px); padding: 14px 18px; margin-bottom: 20px; font-size: .9375rem; }
.mg-errors ul { margin: 8px 0 0 18px; list-style: disc; }
.mg-success { background: #EAF5DD; border-color: rgba(62,155,58,.35); }
.mg-success h2 { color: #2D6E29; }

/* Login */
.mg-login form p { margin: 0 0 14px; }
.mg-login .login-username label, .mg-login .login-password label { display: block; margin-bottom: 6px; }
.mg-login .login-remember label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--mg-slate); }
.mg-login .login-remember input { accent-color: var(--mg-green-600); width: 18px; height: 18px; }
.mg-login .login-submit { margin-top: 18px; }

/* Gesperrter Inhalt */
.mg-locked { max-width: none; }
.mg-lock {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
  background: var(--mg-sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F5C0E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / 24px no-repeat;
}

/* Mein Bereich */
.mg-dashboard { display: grid; gap: 20px; }
.mg-dashboard .mg-card + .mg-card { margin-top: 0; }
.mg-welcome { background: linear-gradient(160deg, var(--blue-50, #EEF4FA), var(--sage-50, #F5F8EC)); }
.mg-welcome .is-style-eyebrow { margin-bottom: 10px; }
.mg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.mg-list { list-style: none; margin: 0; padding: 0; }
.mg-list li { border-top: 1px solid var(--mg-line); }
.mg-list li:last-child { border-bottom: 1px solid var(--mg-line); }
.mg-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 2px; color: var(--mg-navy); font-weight: 600; text-decoration: none; transition: color .2s, padding .2s; }
.mg-list a::after { content: "→"; color: var(--mg-green-600); transition: transform .2s; }
.mg-list a:hover { color: var(--mg-green-700); padding-left: 6px; }
.mg-list a:hover::after { transform: translateX(3px); }
.mg-badge { display: inline-block; padding: 4px 10px; margin: 0 6px 6px 0; border-radius: 999px; background: #fff; border: 1px solid var(--mg-line); font-size: .8125rem; font-weight: 600; color: var(--mg-green-700); }
.mg-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--mg-green); color: var(--mg-navy); font-size: .75rem; }

/* Menüpunkte zu geschützten Seiten */
.main-nav li.is-protected > a::after, .submenu li.is-protected > a::after {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 6px; opacity: .55; vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2238' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 600px) {
  .mg-grid { grid-template-columns: 1fr; }
}

/* Abstände des Themes im Inhaltsbereich für die Plugin-Boxen zurücksetzen */
.entry-content .mg-card h2, .entry-content .mg-card h3 { margin-top: 0; }
.entry-content .mg-card ul.mg-list { list-style: none; padding-left: 0; }
.entry-content .mg-card .mg-list li + li { margin-top: 0; }
.entry-content .mg-card a.mg-link, .entry-content .mg-list a { text-decoration: none; }
.entry-content .mg-dashboard { max-width: none; }
.mg-welcome h2 { margin-top: 6px; }
.mg-card .mg-groups { margin-top: 12px; }

/* Online-Beitrittserklärung */
.mg-beitritt { --mg-navy: var(--navy-900, #0B2238); --mg-slate: var(--slate, #4A5B6C); --mg-green-600: var(--green-600, #4D6F12); --mg-green-700: var(--green-700, #3F5C0E); --mg-line: var(--line, rgba(11,34,56,.11)); --mg-sage: var(--sage-50, #F5F8EC); }
.mg-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; counter-reset: mgstep; }
.entry-content .mg-steps { padding-left: 0; }
.mg-steps li { counter-increment: mgstep; margin: 0; }
.mg-steps a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 1px solid var(--mg-line); border-radius: 99px; background: #fff; color: var(--mg-navy); font-size: .875rem; font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s; }
.mg-steps a::before { content: counter(mgstep); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mg-sage); color: var(--mg-green-700); font-size: .75rem; }
.mg-steps a:hover { border-color: var(--mg-green-600); background: var(--mg-sage); }
fieldset.mg-section { margin: 0; min-width: 0; scroll-margin-top: 140px; }
fieldset.mg-section + fieldset.mg-section { margin-top: 20px; }
.mg-section > legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 20px; font-family: var(--font-display, inherit); font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 800; color: var(--mg-navy); letter-spacing: -.01em; }
.mg-section > legend + * { clear: both; }
.mg-section > legend small { font-family: var(--font-body, inherit); font-size: .875rem; font-weight: 500; color: var(--mg-slate); }
.mg-num { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--mg-navy); color: #fff; font-size: 1rem; }
.mg-wide { grid-column: 1 / -1; }
.mg-field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--mg-line-strong, rgba(11,34,56,.18)); border-radius: var(--r-sm, 8px); background: #FBFCFD; font: inherit; color: inherit; resize: vertical; }
.mg-field textarea:focus { outline: none; border-color: var(--mg-green-600); background: #fff; box-shadow: 0 0 0 4px rgba(176,203,31,.22); }
.mg-field input[readonly] { background: var(--mg-sage); color: var(--mg-slate); }
.mg-radio { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mg-radio legend { font-size: .9375rem; font-weight: 600; color: var(--mg-navy); margin-bottom: 4px; padding: 0; }
.mg-radio legend span { color: var(--mg-green-700); }
.mg-radio label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--mg-line); border-radius: var(--r-sm, 8px); cursor: pointer; font-size: .9375rem; line-height: 1.45; transition: border-color .2s, background .2s; }
.mg-radio label:hover { border-color: var(--mg-green-600); }
.mg-radio label:has(input:checked) { border-color: var(--mg-green-600); background: var(--mg-sage); }
.mg-radio input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--mg-green-600); }
.mg-field-praxisform .mg-radio { flex-direction: row; flex-wrap: wrap; }
.mg-field-praxisform .mg-radio legend { width: 100%; }
.mg-check.mg-toggle { padding: 14px 16px; border: 1px dashed var(--mg-line-strong, rgba(11,34,56,.18)); border-radius: var(--r-sm, 8px); background: var(--mg-sage); font-weight: 600; color: var(--mg-navy); }
.mg-pub { margin-top: 22px; }
.mg-pub[hidden] { display: none; }
.mg-inline-checks { display: flex; flex-wrap: wrap; gap: 0 28px; }
.mg-btn-text { background: none; border: 0; padding: 0; font: inherit; font-size: .875rem; font-weight: 600; color: var(--mg-green-600); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mg-btn-text:hover { color: var(--mg-green-700); }
.mg-note-box { margin-top: 16px; padding: 14px 16px; border-left: 4px solid #D9A400; background: #FFF8E1; border-radius: 0 var(--r-sm, 8px) var(--r-sm, 8px) 0; font-size: .9375rem; color: #4A3B00; line-height: 1.55; }
.mg-details { margin-top: 18px; border: 1px solid var(--mg-line); border-radius: var(--r-sm, 8px); }
.mg-details summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--mg-navy); }
.mg-details[open] summary { border-bottom: 1px solid var(--mg-line); }
.mg-details-body { max-height: 420px; overflow: auto; padding: 4px 18px 16px; font-size: .875rem; color: var(--mg-slate); line-height: 1.6; }
.mg-details-body h4 { font-size: .9375rem; color: var(--mg-navy); margin: 16px 0 6px; }
.mg-details-body p, .mg-details-body li { margin: 6px 0; }
.mg-creditor { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; margin: 0 0 18px; padding: 16px 18px; background: var(--mg-sage); border-radius: var(--r-sm, 8px); }
.mg-creditor div { margin: 0; }
.mg-creditor dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mg-green-700); }
.mg-creditor dd { margin: 2px 0 0; font-weight: 600; color: var(--mg-navy); }
.mg-mandate { font-size: .9375rem; line-height: 1.6; }
.mg-subhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 26px 0 14px !important; font-size: 1.0625rem !important; color: var(--mg-navy); }
.mg-subhead small { font-weight: 500; color: var(--mg-slate); font-size: .875rem; }
.mg-submit { margin-top: 24px; }
.mg-summary pre { white-space: pre-wrap; font-family: inherit; font-size: .9375rem; line-height: 1.6; margin: 0; background: none; padding: 0; border: 0; }
@media (max-width: 640px) { .mg-creditor { grid-template-columns: 1fr; } }
@media print {
  .site-header, .site-footer, .page-hero, .mg-print, .mg-steps { display: none !important; }
  .mg-card { box-shadow: none; border: 0; padding: 0; }
}
.entry-content ol.mg-steps { list-style: none; padding: 0; margin: 0 0 24px; }
.entry-content ol.mg-steps > li { margin: 0; padding: 0; }
.entry-content ol.mg-steps > li::before, .entry-content ol.mg-steps > li::marker { content: none; }
.mg-radio label { font-weight: 500; color: var(--ink, #1B2A39); }
.mg-radio label span { color: inherit; }
.mg-subhead small { font-family: var(--font-body, inherit); letter-spacing: 0; }

/* Meine Praxis (Mitgliederbereich) */
.mg-praxis-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.mg-praxis-head h3 { margin: 4px 0 0; }
.mg-badge.is-on { background: #EAF5DD; color: #2D6E29; }
.mg-flash { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; font-size: .9375rem; }
.mg-flash.is-ok { background: #EAF5DD; color: #2D6E29; }
.mg-flash.is-err { background: #FDF0F0; color: #7A1E1E; }
.mg-praxis-form { margin-top: 20px; }
.mg-foto { display: flex; gap: 20px; align-items: center; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--mg-line, rgba(11,34,56,.11)); }
.mg-foto-preview { flex: none; width: 96px; height: 120px; border-radius: 10px; overflow: hidden; background: var(--sage-100, #ECF2DA); display: grid; place-items: center; }
.mg-foto-preview img { width: 100%; height: 100%; object-fit: cover; }
.mg-foto-preview span { font: 800 1.5rem/1 var(--font-head, inherit); color: var(--green-700, #3F5C0E); }
.mg-foto-actions { display: grid; gap: 8px; }
.mg-foto-actions .mg-small { margin: 0; }
.mg-file { position: relative; display: inline-flex; width: max-content; }
.mg-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mg-file span { display: inline-flex; padding: 10px 16px; border: 1.5px solid var(--mg-line-strong, rgba(11,34,56,.18)); border-radius: 10px; font-weight: 600; color: var(--navy-900, #0B2238); background: #fff; }
.mg-file:hover span, .mg-file input:focus-visible + span { border-color: var(--green-600, #4D6F12); background: var(--sage-50, #F5F8EC); }
.mg-remove { font-size: .875rem; color: var(--slate, #4A5B6C); display: inline-flex; gap: 8px; align-items: center; }
.mg-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 20px; }
.mg-actions .btn { border: 0; cursor: pointer; }
.mg-field-mp-strasse, .mg-field-mp-praxis, .mg-field-mp-fach { grid-column: 1 / -1; }
@media (max-width: 520px) { .mg-foto { flex-direction: column; align-items: flex-start; } }

/* Inhalte für Mitglieder (Menü „Mitgliederbereich“) */
.mg-tile-wide { grid-column: 1 / -1; }
.entry-content .mg-tree, .mg-tree { list-style: none !important; margin: 0; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 24px; }
.mg-tree > li { margin: 0 !important; padding: 10px 0; border-bottom: 1px solid var(--mg-line, rgba(11,34,56,.11)); }
.mg-tree li::marker { content: none; }
.entry-content .mg-tree > li > a, .mg-tree > li > a { font-weight: 700; color: var(--navy-900, #0B2238); text-decoration: none; }
.mg-tree a:hover { color: var(--green-700, #3F5C0E); text-decoration: underline; }
.entry-content .mg-tree .sub-menu, .mg-tree .sub-menu { list-style: none !important; margin: 6px 0 0; padding: 0 0 0 12px !important; border-left: 2px solid var(--sage-100, #ECF2DA); }
.mg-tree .sub-menu li { margin: 0 !important; padding: 3px 0; }
.entry-content .mg-tree .sub-menu a, .mg-tree .sub-menu a { font-size: .9375rem; color: var(--slate, #4A5B6C); text-decoration: none; }

/* =========================================================
   Mitgliederbereich – Übersicht (Fassung 2)
   ========================================================= */
.mg-dash2 { --d-navy: var(--navy-900, #0B2238); --d-ink: var(--ink, #1B2A39); --d-slate: var(--slate, #4A5B6C); --d-green: var(--green-brand, #B0CB1F); --d-g6: var(--green-600, #4D6F12); --d-g7: var(--green-700, #3F5C0E); --d-sage: var(--sage-50, #F5F8EC); --d-sage1: var(--sage-100, #ECF2DA); --d-line: var(--line, rgba(11,34,56,.11)); display: grid; gap: clamp(28px, 4vw, 44px); }
.mg-dash2 .mg-eyebrow { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--d-g7); }
.mg-dash2 svg { width: 20px; height: 20px; flex: none; }

/* Begrüßung */
.mg-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg, 14px); background: var(--d-navy); color: #D9E3EC; }
.mg-hero::before { content: ""; position: absolute; right: -140px; top: -180px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(176,203,31,.22), transparent 65%); pointer-events: none; }
.mg-hero > * { position: relative; }
.mg-hero-who { display: flex; align-items: center; gap: 20px; min-width: 0; }
.mg-hero-ava { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: rgba(176,203,31,.18); border: 3px solid rgba(255,255,255,.18); font: 800 1.5rem/1 var(--font-head, inherit); color: var(--d-green); }
.mg-hero-ava img { width: 100%; height: 100%; object-fit: cover; }
.mg-hero .mg-eyebrow { color: var(--d-green); }
.entry-content .mg-hero h2 { margin: 4px 0 0; color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.mg-hero .mg-groups { margin: 10px 0 0; }
.mg-hero .mg-badge { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #E6EEF5; }
.mg-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-content .mg-hero-actions a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-size: .9375rem; font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s; }
.mg-hero-actions a svg { width: 18px; height: 18px; color: var(--d-green); }
.entry-content .mg-hero-actions a:hover { background: rgba(255,255,255,.14); border-color: var(--d-green); }

/* Bereiche */
.mg-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.entry-content .mg-block-head h2 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
.mg-block-head p { margin: 0; color: var(--d-slate); font-size: .9375rem; }
.entry-content .mg-sections, .mg-sections { list-style: none !important; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mg-sec { display: flex; flex-direction: column; margin: 0 !important; border: 1px solid var(--d-line); border-radius: var(--r-lg, 12px); background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.mg-sec:hover { border-color: var(--d-green); box-shadow: 0 22px 44px -32px rgba(11,34,56,.45); transform: translateY(-2px); }
.entry-content a.mg-sec-main, a.mg-sec-main { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 20px 20px 18px; text-decoration: none; color: inherit; }
.mg-sec-icon { grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--d-sage1); color: var(--d-g7); transition: background .2s, color .2s; }
.mg-sec-icon svg { width: 22px; height: 22px; }
.mg-sec:hover .mg-sec-icon { background: var(--d-green); color: var(--d-navy); }
.mg-sec-title { font-family: var(--font-head, inherit); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--d-navy); }
.mg-sec-count { font-size: .8125rem; color: var(--d-slate); }
.entry-content .mg-sec-links, .mg-sec-links { list-style: none !important; margin: 0; padding: 4px 20px 16px 80px !important; display: grid; gap: 2px; border-top: 1px solid var(--d-line); padding-top: 12px !important; }
.mg-sec-links li { margin: 0 !important; }
.entry-content .mg-sec-links a, .mg-sec-links a { display: block; padding: 5px 0; font-size: .9375rem; color: var(--d-slate); text-decoration: none; line-height: 1.4; transition: color .2s, transform .2s; }
.entry-content .mg-sec-links a:hover { color: var(--d-g7); transform: translateX(3px); }

/* Meine Praxis kompakt */
.mg-dash2 .mg-praxis { margin: 0; }
.mg-praxis-sum { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.mg-praxis-photo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--d-sage1); display: grid; place-items: center; font: 800 1.5rem/1 var(--font-head, inherit); color: var(--d-g7); }
.mg-praxis-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.entry-content .mg-praxis-info h3 { margin: 4px 0 2px; font-size: 1.25rem; }
.mg-praxis-meta { margin: 0; color: var(--d-slate); font-size: .9375rem; }
.mg-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .8125rem; font-weight: 600; color: var(--d-slate); }
.mg-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #B9C2CC; }
.mg-status.is-on { color: #2D6E29; }
.mg-status.is-on::before { background: #3E9B3A; box-shadow: 0 0 0 4px rgba(62,155,58,.15); }
.mg-praxis-edit { margin-top: 20px; border-top: 1px solid var(--d-line); }
.mg-praxis-edit > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 16px; border: 1.5px solid var(--d-line); border-radius: 10px; font-weight: 600; color: var(--d-navy); transition: border-color .2s, background .2s; }
.mg-praxis-edit > summary::-webkit-details-marker { display: none; }
.mg-praxis-edit > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.mg-praxis-edit[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.mg-praxis-edit > summary:hover { border-color: var(--d-g6); background: var(--d-sage); }
.mg-praxis-edit .mg-praxis-form { margin-top: 22px; }

/* Kleine Karten */
.mg-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.mg-dash2 .mg-card + .mg-card { margin-top: 0; }
.mg-mini { display: flex; flex-direction: column; }
.mg-mini-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--d-sage1); color: var(--d-g7); margin-bottom: 14px; }
.entry-content .mg-mini h3 { margin: 0; font-size: 1.125rem; }
.mg-mini > p { margin: 4px 0 10px; font-size: .875rem; color: var(--d-slate); overflow-wrap: anywhere; }
.mg-mini .mg-list { margin-top: auto; }
.mg-mini-admin { background: linear-gradient(160deg, #fff, var(--d-sage)); }
.mg-dash2 .mg-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 99px; background: var(--d-green); color: var(--d-navy); font-size: .75rem; font-weight: 800; }

@media (max-width: 1024px) { .entry-content .mg-sections, .mg-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .entry-content .mg-sections, .mg-sections { grid-template-columns: 1fr; }
  .mg-praxis-sum { grid-template-columns: auto 1fr; }
  .mg-praxis-actions { grid-column: 1 / -1; }
  .mg-hero-who { align-items: flex-start; }
  .mg-hero-ava { width: 60px; height: 60px; }
  .entry-content .mg-sec-links, .mg-sec-links { padding-left: 20px !important; }
}
/* Feinschliff */
.entry-content .mg-hero-actions a, .entry-content .mg-hero-actions a:visited { color: #fff !important; text-decoration: none !important; opacity: 1; }
.entry-content .mg-sec-links a, .entry-content .mg-sec-links a:visited { color: var(--d-slate) !important; text-decoration: none !important; }
.entry-content .mg-sec-links a:hover { color: var(--d-g7) !important; }
.entry-content a.mg-sec-main { text-decoration: none !important; }
.entry-content .mg-sections, .mg-sections { display: block; columns: 3 300px; column-gap: 16px; }
.mg-sec { break-inside: avoid; margin: 0 0 16px !important; }
.mg-sec:hover { transform: none; }
@media (max-width: 1024px) { .entry-content .mg-sections, .mg-sections { columns: 2 280px; } }
@media (max-width: 640px) { .entry-content .mg-sections, .mg-sections { columns: 1; } }
@media (max-width: 640px) { .mg-hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .entry-content .mg-hero-actions a { justify-content: center; padding: 10px; font-size: .875rem; } }

/* Zwei-Faktor-Status in „Mein Konto“ */
.mg-mini .mg-list .mg-badge { margin: 0 0 0 6px; padding: 1px 8px; font-size: .75rem; vertical-align: 1px; }
.mg-mini .mg-list .mg-badge-ok { background: #EAF5DD; border-color: #CFE6B5; color: #2D6E29; }
.mg-mini .mg-list .mg-badge-warn { background: #FDF1E3; border-color: #F2C998; color: #8A4B08; }
@media (max-width: 600px) {
  .mg-section > legend { display: block; position: relative; min-height: 36px; padding-left: 48px; padding-top: 5px; line-height: 1.3; }
  .mg-section > legend .mg-num { position: absolute; left: 0; top: 0; }
  .mg-section > legend small { white-space: nowrap; }
}

/* ---------- Praxissiegel ---------- */
/* Feste Vorschau-Größe: beim Wechsel rund/quer springt nichts. */
.mg-siegel { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.mg-siegel-preview { display: grid; place-items: center; height: 220px; padding: 14px; border-radius: 14px; background: var(--sage-50, #F5F8EC); }
.mg-siegel-preview img { display: block; width: 100%; max-width: 180px; height: auto; }
.mg-siegel.is-quer .mg-siegel-preview img { max-width: 100%; }
.mg-siegel .mg-eyebrow { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600, #4D6F12); }
.mg-siegel h3 { margin: 6px 0 8px; font-size: 1.25rem; }
.mg-siegel-body > p { color: var(--slate, #4A5B6C); }
.mg-siegel-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; }
.mg-siegel-opts label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid var(--line-strong, rgba(11,34,56,.18)); border-radius: 999px; font-size: .875rem; font-weight: 600; cursor: pointer; }
.mg-siegel-opts label:has(input:checked) { background: var(--navy-900, #0B2238); border-color: var(--navy-900, #0B2238); color: #fff; }
.mg-siegel-opts input { position: absolute; opacity: 0; pointer-events: none; }
.mg-siegel-opts label:has(input:focus-visible) { outline: 2px solid var(--green-600, #4D6F12); outline-offset: 2px; }
.mg-siegel-sep { width: 1px; height: 22px; margin: 0 4px; background: var(--line-strong, rgba(11,34,56,.18)); }
.mg-siegel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mg-siegel-code { margin-top: 18px; border-top: 1px solid var(--line, rgba(11,34,56,.11)); padding-top: 14px; }
.mg-siegel-code summary { cursor: pointer; font-weight: 600; color: var(--navy-900, #0B2238); }
.mg-siegel-code p { margin: 10px 0 8px; font-size: .875rem; color: var(--slate, #4A5B6C); }
.mg-siegel-code textarea { width: 100%; font: 12.5px/1.5 ui-monospace, Consolas, monospace; padding: 10px 12px; border: 1.5px solid var(--line-strong, rgba(11,34,56,.18)); border-radius: 10px; background: #F7F9FA; resize: vertical; }
.mg-siegel-code .btn { margin-top: 10px; }
.mg-siegel-link { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--sage-50, #F5F8EC); border: 1px solid var(--sage-100, #E9F0D2); }
.mg-siegel-link h4 { margin: 0 0 6px !important; font-size: 1rem; color: var(--navy-900, #0B2238); }
.mg-siegel-link p { margin: 0 0 10px !important; font-size: .9rem; color: var(--slate, #4A5B6C); }
.mg-siegel-link .mg-siegel-link-bsp { margin: 12px 0 6px !important; font-size: .8125rem; }
.mg-siegel-link-zeile { display: flex; gap: 8px; }
.mg-siegel-link-zeile input { flex: 1; min-width: 0; padding: 10px 12px; font: 12.5px/1.4 ui-monospace, Consolas, monospace; border: 1.5px solid var(--line-strong, rgba(11,34,56,.18)); border-radius: 10px; background: #fff; color: var(--ink, #1B2A39); }
.mg-siegel-link-zeile .btn { flex: none; --pad-y: 9px; --pad-x: 14px; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.mg-siegel-schritte { margin: 12px 0 14px; padding-left: 1.3em; display: grid; gap: 8px; font-size: .9375rem; color: var(--ink, #1B2A39); }
.mg-siegel-schritte li::marker { color: var(--green-600, #4D6F12); font-weight: 700; }
.mg-siegel-schritte strong { color: var(--navy-900, #0B2238); }
.mg-siegel-code code { font-size: .85em; padding: 1px 5px; border-radius: 4px; background: #EEF2F5; }
.mg-siegel-agentur { margin-top: 10px !important; font-size: .875rem; color: var(--slate, #4A5B6C); }
.mg-siegel-dsgvo { margin-top: 18px; padding: 18px 20px; border-radius: 12px; background: var(--blue-50, #EEF4FA); border: 1px solid #D3E1EE; }
.mg-siegel-dsgvo h4 { margin: 0 0 8px !important; font-size: 1.0625rem; color: var(--navy-900, #0B2238); }
.mg-siegel-dsgvo p, .mg-siegel-dsgvo li { font-size: .9rem; line-height: 1.6; color: var(--ink, #1B2A39); }
.mg-siegel-dsgvo p { margin: 8px 0 0 !important; }
.mg-siegel-dsgvo ul { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.mg-siegel-dsgvo li::marker { color: var(--green-600, #4D6F12); }
.mg-siegel-dsgvo strong { color: var(--navy-900, #0B2238); }
.mg-siegel-dsgvo-fuss { font-size: .8125rem !important; color: var(--slate, #4A5B6C) !important; }
.mg-siegel-more { margin-top: 16px; font-size: .9375rem; }
.mg-siegel-hint { margin-top: 6px; font-size: .8125rem; color: var(--slate, #4A5B6C); }
@media (max-width: 720px) {
	.mg-siegel { grid-template-columns: 1fr; }
	.mg-siegel-preview { max-width: 320px; height: 200px; }
}

/* Infoseite: Vorschau & Echtheitsprüfung */
.siegel-vorschau { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) repeat(2, minmax(0, 1.4fr)); gap: 16px; align-items: center; margin: 0; }
.siegel-v { display: grid; place-items: center; margin: 0; padding: 22px; min-height: 100%; border: 1px solid var(--line, rgba(11,34,56,.11)); border-radius: 16px; background: #fff; }
.siegel-v.is-dark { background: var(--sage-50, #F5F8EC); }
.siegel-v img { width: 100%; height: auto; max-width: 200px; }
.siegel-v-quer img { max-width: 336px; }
@media (max-width: 900px) { .siegel-vorschau { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .siegel-vorschau { grid-template-columns: 1fr; } .siegel-v-rund img { max-width: 180px; } }
.siegel-check { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line, rgba(11,34,56,.11)); background: #fff; }
.siegel-check strong { display: block; font-family: var(--font-head, inherit); font-size: 1.125rem; color: var(--navy-900, #0B2238); }
.siegel-check p { margin: 6px 0 0; color: var(--slate, #4A5B6C); }
.siegel-check-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 1.125rem/1 var(--font-head, sans-serif); background: var(--blue-100, #DCE8F4); color: var(--navy-900, #0B2238); }
.siegel-check.is-ok { border-color: var(--sage-300, #CADB8A); background: var(--sage-50, #F5F8EC); }
.siegel-check.is-ok .siegel-check-icon { background: var(--green-600, #4D6F12); color: #fff; }
.siegel-check.is-bad { border-color: #F1C7C2; background: #FDF4F2; }
.siegel-check.is-bad .siegel-check-icon { background: #A4231A; color: #fff; }
.siegel-praxis { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line, rgba(11,34,56,.11)); line-height: 1.45; }
.siegel-praxis b { font-family: var(--font-head, inherit); color: var(--navy-900, #0B2238); }
.siegel-praxis small { color: var(--slate, #4A5B6C); font-size: .875rem; }
.siegel-praxis-ava { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--sage-100, #E9F0D2); color: var(--green-600, #4D6F12); font: 700 1rem var(--font-head, sans-serif); }
.siegel-praxis-ava img { width: 100%; height: 100%; object-fit: cover; }
.siegel-stand { font-size: .8125rem; }
.mg-siegel .mg-siegel-actions .btn, .mg-siegel .mg-siegel-code .btn { --pad-y: 11px; --pad-x: 18px; font-size: .9375rem; font-weight: 700; text-decoration: none; }
.mg-siegel .btn-secondary { border: 1.5px solid var(--line-strong, rgba(11,34,56,.18)) !important; color: var(--navy-900, #0B2238) !important; background: #fff; }
.mg-siegel .btn-secondary:hover { border-color: var(--navy-900, #0B2238) !important; }

/* ---------- Hinweis: Öffnungszeiten fehlen ---------- */
.mg-hint { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: #FFF6E0; border: 1px solid #F1D48A; color: #4A3300; }
.mg-hint-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #8A5A00; color: #fff; font: 800 .9375rem/1 var(--font-head, sans-serif); }
.mg-hint strong { display: block; color: #3A2800; }
.mg-hint p { margin: 4px 0 12px; font-size: .9375rem; }
.mg-hint .btn { padding: 9px 16px; font-size: .9375rem; }
.mg-praxis-actions .btn { white-space: nowrap; }

/* ---------- Seite „Mein Praxiseintrag“ ---------- */
.mg-mp { --d-navy: var(--navy-900, #0B2238); --d-slate: var(--slate, #4A5B6C); --d-g6: var(--green-600, #4D6F12); --d-g7: var(--green-700, #3F5C0E); --d-sage: var(--sage-50, #F5F8EC); --d-sage1: var(--sage-100, #E9F0D2); --d-line: var(--line, rgba(11,34,56,.11)); display: grid; gap: 24px; }
.mg-mp .mg-eyebrow { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--d-g7); }
.mg-mp-back { margin: 0; }
.mg-mp-head h2 { margin: 4px 0 6px; font-family: var(--font-head, inherit); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--d-navy); }
.mg-mp-head p { margin: 0; color: var(--d-slate); }
.mg-mp .mg-flash { margin: 0; }
.mg-mp-preview { border: 1px solid var(--d-line); border-radius: 16px; background: var(--d-sage); padding: 16px; }
.mg-mp-preview-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; margin: 0 4px 14px; }
.entry-content .mg-mp-preview-bar h3 { margin: 0; font-size: 1rem; color: var(--d-navy); }
.mg-mp-entry { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 20px 40px -32px rgba(11,34,56,.5); }
.mg-mp-photo { background: var(--d-sage1); min-height: 260px; }
.mg-mp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.mg-mp-photo.is-initials { display: grid; place-items: center; }
.mg-mp-photo.is-initials span { font: 800 2.5rem/1 var(--font-head, inherit); color: var(--d-g7); opacity: .8; }
.mg-mp-body { padding: 24px 28px; }
.mg-mp-body p { margin: 0; }
.mg-mp-name { margin-top: 4px !important; font-family: var(--font-head, inherit); font-weight: 800; font-size: 1.5rem; line-height: 1.25; color: var(--d-navy); }
.mg-mp-fach { margin-top: 6px !important; font-weight: 600; color: var(--d-g7); }
.mg-mp-praxis { margin-top: 8px !important; }
.mg-mp-adr { margin-top: 8px !important; color: var(--d-slate); }
.entry-content .mg-mp-kontakt, .mg-mp-kontakt { list-style: none; margin: 14px 0 0 !important; padding: 12px 0 0 !important; border-top: 1px solid var(--d-line); display: grid; gap: 4px; font-size: .9375rem; overflow-wrap: anywhere; }
.mg-mp-kontakt li { margin: 0; }
.mg-mp-kontakt span { display: inline-block; min-width: 76px; color: var(--d-slate); }
.mg-mp-live { margin-top: 14px !important; }
.entry-content .mg-mp-form-card h3 { margin: 0 0 4px; }
.mg-mp .mg-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Öffnungszeiten */
.mg-zeiten { margin: 24px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--d-line, rgba(11,34,56,.11)); min-width: 0; }
.mg-zeiten legend { padding: 0; font-family: var(--font-head, inherit); font-weight: 700; font-size: 1.0625rem; color: var(--d-navy, #0B2238); }
.mg-optional { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--d-sage1, #E9F0D2); font: 600 .75rem/1.4 var(--font-body, inherit); color: var(--d-g7, #3F5C0E); vertical-align: 2px; }
.mg-zeiten-info { margin: 6px 0 14px; }
.mg-zeiten-grid { display: grid; grid-template-columns: 110px repeat(2, minmax(0, 1fr)); gap: 8px 16px; align-items: center; }
.mg-zeiten-col { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--d-slate, #4A5B6C); }
.mg-zeiten-tag { font-weight: 600; }
.mg-zeiten-range { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mg-zeiten-range input { flex: 1 1 0; min-width: 0; height: 42px; padding: 0 8px; border: 1.5px solid var(--line-strong, rgba(11,34,56,.18)); border-radius: 8px; font: inherit; background: #fff; }
.mg-zeiten-range input:focus { outline: 2px solid var(--d-g6, #4D6F12); outline-offset: 1px; }
.mg-zeiten-hinweis { display: block; margin-top: 14px; }
.mg-zeiten-hinweis span { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9375rem; }
.mg-zeiten-hinweis input { box-sizing: border-box; width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid var(--line-strong, rgba(11,34,56,.18)); border-radius: 10px; font: inherit; }
@media (max-width: 720px) {
	.mg-mp-entry { grid-template-columns: 1fr; }
	.mg-mp-photo { min-height: 0; aspect-ratio: 4 / 3; }
	.mg-mp-body { padding: 20px; }
	.mg-zeiten-grid { grid-template-columns: 1fr; gap: 6px; }
	.mg-zeiten-grid > span:first-child, .mg-zeiten-col { display: none; }
	.mg-zeiten-tag { margin-top: 10px; }
}
.entry-content .mg-mp-head h2 { margin: 4px 0 6px !important; }
.entry-content .mg-mp-kontakt li { padding-left: 0 !important; list-style: none !important; }
.entry-content .mg-mp-kontakt li::before, .entry-content .mg-mp-kontakt li::marker { content: none !important; display: none !important; }

/* ---------- Anmeldung, Code, Passwort (alles auf der Website) ---------- */
.mg-auth { max-width: 520px; }
.entry-content .mg-auth h2 { margin: 4px 0 8px; font-size: 1.5rem; }
.mg-auth .mg-eyebrow { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700, #3F5C0E); }
.mg-auth-form { display: grid; gap: 8px; margin: 16px 0 12px; }
.mg-auth-form label { font-weight: 600; font-size: .9375rem; margin-top: 6px; }
.mg-auth-form input:not([type=hidden]) { box-sizing: border-box; width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line-strong, rgba(11,34,56,.18)); border-radius: 10px; font: inherit; background: #fff; }
.mg-auth-form input:focus { outline: 2px solid var(--green-600, #4D6F12); outline-offset: 1px; }
.mg-auth-form .btn { justify-self: start; margin-top: 8px; }
.mg-auth-form .mg-small { margin: 0; }
.mg-code-input { font-size: 1.5rem !important; letter-spacing: .25em; text-align: center; font-variant-numeric: tabular-nums; }
.mg-auth .mg-errors, .mg-auth .mg-flash, .mg-card > .mg-errors:first-child, .mg-card > .mg-flash:first-child { margin: 0 0 16px; }

/* ---------- Profil & Sicherheit ---------- */
.mg-konto-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-content .mg-konto-nav a { padding: 8px 14px; border: 1.5px solid var(--line-strong, rgba(11,34,56,.18)); border-radius: 999px; font-size: .9375rem; font-weight: 600; color: var(--navy-900, #0B2238); text-decoration: none; transition: border-color .2s, background .2s; }
.entry-content .mg-konto-nav a:hover { border-color: var(--green-600, #4D6F12); background: var(--sage-50, #F5F8EC); }
.mg-konto .mg-card { margin: 0; scroll-margin-top: 110px; }
.entry-content .mg-konto .mg-card h3 { margin: 0 0 12px; font-size: 1.25rem; }
.mg-field-wide { grid-column: 1 / -1; }
.mg-field input[readonly] { background: #F4F6F8; color: var(--slate, #4A5B6C); }
.mg-konto .mg-actions { margin: 16px 0 0; }
.mg-2fa-status { padding: 12px 16px; border-radius: 10px; background: #F4F6F8; }
.mg-2fa-status.is-on { background: #EAF5DD; color: #1F4D1C; }
.mg-2fa-status.is-req { background: #FFF6E0; color: #4A3300; }
.mg-2fa-wahl { margin: 12px 0; padding: 0; border: 0; display: grid; gap: 8px; }
.mg-2fa-wahl legend { font-weight: 700; margin-bottom: 6px; }
.mg-2fa-confirm { max-width: 280px; }
.entry-content .mg-2fa-steps { margin: 16px 0; padding-left: 1.3em; display: grid; gap: 14px; }
.mg-2fa-qr { width: 200px; height: 200px; margin: 12px 0; padding: 10px; background: #fff; border: 1px solid var(--line, rgba(11,34,56,.11)); border-radius: 12px; }
.mg-2fa-qr svg { width: 100%; height: 100%; display: block; }
.mg-2fa-secret { font-size: 1rem; letter-spacing: .06em; overflow-wrap: anywhere; }
.mg-2fa-activate { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; align-items: center; }
.mg-2fa-activate input { width: 11em; height: 48px; padding: 0 12px; border: 1.5px solid var(--line-strong, rgba(11,34,56,.18)); border-radius: 10px; font: inherit; }
.mg-2fa-codes { margin-bottom: 18px; padding: 16px 20px; border: 2px solid #DBA617; border-radius: 12px; background: #FFF9E8; }
.entry-content .mg-2fa-codes h4 { margin: 0 0 6px; }
.entry-content .mg-2fa-codes ol { columns: 2; max-width: 380px; }
.mg-2fa-codes code { font-size: 1rem; }
@media print { body * { visibility: hidden; } .mg-2fa-codes, .mg-2fa-codes * { visibility: visible; } .mg-2fa-codes { position: absolute; left: 0; top: 0; } .mg-2fa-codes .btn { display: none; } }
.mg-card.mg-auth { max-width: 560px; }

/* Zugang aktivieren (Einladungscode) */
.mg-aktiv-eintrag { display: grid; gap: 2px; margin: 4px 0 8px; padding: 16px 18px; border-radius: 12px; background: var(--sage-50, #F5F8EC); border: 1px solid var(--sage-300, #CADB8A); }
.mg-aktiv-eintrag strong { font-family: var(--font-head, inherit); font-size: 1.125rem; color: var(--navy-900, #0B2238); }
.mg-aktiv-eintrag span { font-size: .9375rem; color: var(--slate, #4A5B6C); }
.mg-auth-form .mg-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.mg-auth-form .mg-check input { width: 20px !important; height: 20px !important; flex: none; margin-top: 2px; }
.mg-dash2 > .mg-flash { margin: 0; }

/* Beitritt: online oder per Post */
.mg-beitritt-weg { --mg-navy: var(--navy-900, #0B2238); --mg-line: var(--line, rgba(11,34,56,.11)); --mg-green-600: var(--green-600, #4D6F12); --mg-sage: var(--sage-50, #F5F8EC); }
.mg-weg { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.mg-weg legend { font-family: var(--font-display, inherit); font-size: 1.25rem; font-weight: 700; color: var(--mg-navy); margin-bottom: 12px; padding: 0; }
.mg-weg-optionen { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mg-weg-karte { position: relative; display: grid; gap: 6px; padding: 18px 20px 18px 52px; border: 1.5px solid var(--mg-line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.mg-weg-karte:hover { border-color: rgba(77,111,18,.45); }
.mg-weg-karte input { position: absolute; left: 20px; top: 21px; width: 18px; height: 18px; margin: 0; accent-color: var(--mg-green-600); }
.mg-weg-karte:has(input:checked) { border-color: var(--mg-green-600); background: var(--mg-sage); box-shadow: 0 0 0 3px rgba(77,111,18,.12); }
.mg-weg-karte:has(input:focus-visible) { outline: 2px solid var(--mg-green-600); outline-offset: 2px; }
.mg-weg-titel { font-weight: 700; color: var(--mg-navy); }
.mg-weg-titel em { font-style: normal; font-size: .75rem; font-weight: 600; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--mg-green-600); color: #fff; vertical-align: 2px; }
.mg-weg-text { font-size: .9rem; color: var(--slate, #4A5B6C); line-height: 1.5; }
.mg-post { margin-bottom: 28px; }
.mg-post h3 { margin-top: 0; }
.mg-post-schritte { margin: 0 0 18px; padding-left: 1.3em; display: grid; gap: 8px; }
.mg-post-adresse { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 18px 0; }
.mg-post-adresse > div { padding: 14px 16px; border-radius: 12px; background: var(--mg-sage); }
.mg-post-adresse address, .mg-post-adresse p { font-style: normal; margin: 4px 0 0; font-weight: 600; color: var(--mg-navy); }
/* Ohne :has()-Unterstützung bleiben beide Wege sichtbar. */
.mg-beitritt-weg:has(#mg-weg-online:checked) .mg-post { display: none; }
.mg-beitritt-weg:has(#mg-weg-post:checked) .mg-beitritt { display: none; }

/* KIM-Datenbank in Planung */
.mg-plan { display: inline-block; margin-right: 4px; padding: 1px 8px; border-radius: 99px; background: #E8EEF6; color: #1D3A5C; font-size: .75rem; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.mg-kim-hinweis { margin: 6px 0 0; }
.mg-hint-plan { background: #EEF3F9; border-color: #C9D7E8; color: #1D3A5C; margin-top: 16px; }
.mg-hint-plan .mg-hint-icon { background: #1D3A5C; font-family: Georgia, serif; font-style: italic; }
.mg-hint-plan strong { color: #0B2238; }
.mg-hint-plan p { margin-bottom: 0; }

/* Kennzeichnung Admin-/Geschäftsstellen-Konto */
.mg-admin-flag { margin: 10px 0 0; font-size: .875rem; color: #E6EEF5; line-height: 1.5; }
.mg-hero .mg-admin-flag a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mg-hero .mg-badge.mg-badge-admin, .mg-badge-admin { background: #C8102E; border-color: #C8102E; color: #fff; margin-right: 8px; letter-spacing: .02em; }

/* Praxiseintrag löschen */
.mg-mp-loeschen { border-color: #F1C9C9; background: #FFFBFB; margin-top: 24px; }
.mg-mp-loeschen h3 { margin-top: 0; color: #8A1F1F; }
.mg-btn-danger, .btn.mg-btn-danger { background: #fff; color: #B42318; border: 1.5px solid #E4A9A9; box-shadow: none; }
.mg-btn-danger:hover, .btn.mg-btn-danger:hover { background: #B42318; border-color: #B42318; color: #fff; }

/* ---------- Echtheitsprüfung als Urkunde ---------- */
.zert-wrap { margin: 0 0 clamp(40px, 6vw, 72px); max-width: none; scroll-margin-top: 100px; }
.zert-verweis { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding: 14px 16px; border-radius: 12px; font-weight: 600; text-decoration: none; color: var(--navy-900, #0B2238); background: var(--sage-50, #F5F8EC); border: 1px solid var(--sage-300, #CADB8A); }
.zert-verweis span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green-600, #4D6F12); color: #fff; font-weight: 800; }
.zert-verweis.is-bad { background: #FDF4F2; border-color: #F1C7C2; }
.zert-verweis.is-bad span { background: #A4231A; }
.zert { container: zert / inline-size; --z-navy: var(--navy-900, #0B2238); --z-gruen: var(--green-brand, #B0CB1F); --z-tinte: #4D6F12;
	position: relative; isolation: isolate; overflow: hidden; padding: clamp(10px, 1.6vw, 16px); border-radius: 18px;
	background: linear-gradient(135deg, #FBFCF6 0%, #F2F6E4 45%, #EEF4FA 100%); box-shadow: 0 30px 70px -40px rgba(11,34,56,.55), 0 0 0 1px rgba(11,34,56,.08); color: var(--ink, #1B2A39); font-family: var(--font-body, inherit); }
.zert-grund { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: none; stroke: var(--z-tinte); stroke-width: .5; opacity: .14; }
.zert-rahmen { position: relative; border: 1.5px solid rgba(77,111,18,.45); border-radius: 12px; padding: 0 clamp(18px, 3.4vw, 40px); outline: 1px solid rgba(77,111,18,.25); outline-offset: 4px; }
.zert svg { max-width: none; }
.zert-band { display: block; width: calc(100% + 2 * clamp(18px, 3.4vw, 40px)); height: 26px; margin: 0 calc(-1 * clamp(18px, 3.4vw, 40px)); fill: none; stroke: var(--z-tinte); stroke-width: .9; opacity: .55; }
.zert-band.unten { transform: scaleY(-1); }
.zert-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; padding: 14px 0 0; }
.zert-eyebrow { font: 700 .75rem/1.2 var(--font-head, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: var(--z-tinte); }
.zert-nr { font-size: .8125rem; color: var(--slate, #4A5B6C); letter-spacing: .04em; }
.zert-nr b { font: 600 .8125rem/1 ui-monospace, "SF Mono", Consolas, monospace; color: var(--z-navy); letter-spacing: .08em; }
.zert-mitte { display: grid; grid-template-columns: minmax(180px, 250px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: 18px 0 22px; }
.zert-emblem { position: relative; aspect-ratio: 1; width: 100%; }
.zert-rosette, .zert-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.zert-rosette { fill: none; stroke-width: 1; }
.zert-rosette .l0 { stroke: var(--z-tinte); }
.zert-rosette .l1 { stroke: var(--z-navy); }
.zert-rosette .l2 { stroke: #6E8F1F; }
.zert-rosette .l3 { stroke: var(--z-tinte); stroke-width: .7; }
.zert-ring text { font: 700 11.5px/1 var(--font-head, sans-serif); letter-spacing: .18em; fill: var(--z-navy); opacity: .72; }
.zert-scheibe { position: absolute; inset: 31%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #16395A, var(--z-navy) 70%); display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px rgba(77,111,18,.5), 0 10px 26px -10px rgba(11,34,56,.7); }
.zert-scheibe svg { width: 66%; height: auto; }
.zert-marke { position: absolute; right: 9%; bottom: 9%; width: 25%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--z-gruen); box-shadow: 0 0 0 3px #fff, 0 8px 18px -8px rgba(11,34,56,.6); }
.zert-marke svg { width: 58%; fill: none; stroke: var(--z-navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.zert-titel { margin: 0 !important; font: 700 .8125rem/1.2 var(--font-head, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--slate, #4A5B6C); }
.zert .zert-h { margin: 8px 0 0 !important; font: 800 clamp(1.4rem, 2.6vw, 1.9rem)/1.15 var(--font-head, sans-serif); letter-spacing: -.02em; color: var(--z-navy); max-width: none; }
.zert-p { margin: 14px 0 0 !important; font-size: .9375rem; line-height: 1.6; color: var(--slate, #4A5B6C); }
.zert-praxis { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.82); border: 1px solid rgba(11,34,56,.1); backdrop-filter: blur(2px); line-height: 1.45; }
.zert-praxis > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.zert-praxis b { font: 700 1.0625rem/1.3 var(--font-head, sans-serif); color: var(--z-navy); }
.zert-praxis small { color: var(--slate, #4A5B6C); font-size: .875rem; }
.zert-ava { flex: none; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--sage-100, #E9F0D2); color: var(--z-tinte); font: 700 1rem var(--font-head, sans-serif); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(77,111,18,.35); }
.zert-ava img { width: 100%; height: 100%; object-fit: cover; }
.zert-fuss { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px 24px; align-items: center; padding: 14px 0 12px; border-top: 1px dashed rgba(77,111,18,.4); }
.zert-fuss small { display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate, #4A5B6C); }
.zert-fuss b { display: block; margin-top: 3px; font: 700 .9375rem/1.3 var(--font-head, sans-serif); color: var(--z-navy); font-variant-numeric: tabular-nums; }
.zert-status { display: inline-flex !important; align-items: center; gap: 8px; }
.zert-punkt { width: 9px; height: 9px; border-radius: 50%; background: #3C9A35; box-shadow: 0 0 0 3px rgba(60,154,53,.22); }
.zert-holo { position: relative; overflow: hidden; width: 92px; height: 56px; border-radius: 10px; display: grid; place-content: center; text-align: center; line-height: 1; color: rgba(11,34,56,.75);
	background: conic-gradient(from 210deg, #D6E78E, #9FD8E8, #C7B8F0, #F3C9D9, #F6E7A8, #D6E78E); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 4px 12px -6px rgba(11,34,56,.4); }
.zert-holo span:first-child { font: 800 1rem/1 var(--font-head, sans-serif); letter-spacing: -.01em; }
.zert-holo span:last-child { font: 700 .625rem/1.2 var(--font-head, sans-serif); letter-spacing: .14em; }
.zert-holo::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 120%, rgba(255,255,255,.0) 0 3px, rgba(255,255,255,.35) 3px 4px); mix-blend-mode: overlay; }
.zert-holo::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent); transform: skewX(-18deg); }
.zert-mikro { margin: 8px 0 0 !important; overflow: hidden; white-space: nowrap; font: 600 6px/1 var(--font-head, sans-serif); letter-spacing: .12em; color: var(--z-tinte); opacity: .6; text-align: center; }
.zert-stempel, .zert-stempel-ok { position: absolute; right: calc(120px + 4%); bottom: 11%; padding: 6px 16px; border: 3px solid currentColor; border-radius: 8px; font: 800 1.125rem/1 var(--font-head, sans-serif); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-12deg); pointer-events: none; }
.zert-stempel { color: rgba(164,35,26,.78); }
.zert-stempel-ok { color: rgba(77,111,18,.5); font-size: 1.5rem; padding: 6px 18px; mix-blend-mode: multiply; }

/* Ungültig: entsättigt, rote Marke */
.zert.is-bad { background: linear-gradient(135deg, #FBF8F7, #F4EEEC); }
.zert.is-bad .zert-grund, .zert.is-bad .zert-band { stroke: #8A97A3; }
.zert.is-bad .zert-rosette { filter: grayscale(1); opacity: .55; }
.zert.is-bad .zert-rahmen { border-color: rgba(164,35,26,.3); outline-color: rgba(164,35,26,.18); }
.zert.is-bad .zert-marke { background: #A4231A; } .zert.is-bad .zert-marke svg { stroke: #fff; }
.zert.is-bad .zert-scheibe { filter: grayscale(.8); }
.zert.is-bad .zert-punkt { background: #A4231A; box-shadow: 0 0 0 3px rgba(164,35,26,.2); }
.zert.is-bad .zert-holo { filter: grayscale(1); opacity: .5; }

/* Animation */
@media (prefers-reduced-motion: no-preference) {
	.zert .zert-linie { stroke-dasharray: 1; stroke-dashoffset: 1; }
	.zert.is-an .zert-linie { animation: zert-zeichnen 2.4s cubic-bezier(.4,.1,.2,1) forwards; }
	.zert.is-an .zert-rosette .l1 { animation-delay: .25s; } .zert.is-an .zert-rosette .l2 { animation-delay: .5s; } .zert.is-an .zert-rosette .l3 { animation-delay: .1s; animation-duration: 1.6s; }
	.zert-rosette { animation: zert-drehen 120s linear infinite; }
	.zert-ring { animation: zert-drehen 90s linear infinite reverse; }
	.zert-scheibe, .zert-marke { opacity: 0; transform: scale(.6); }
	.zert.is-an .zert-scheibe { animation: zert-auf .7s .6s cubic-bezier(.2,1.4,.4,1) forwards; }
	.zert.is-an .zert-marke { animation: zert-auf .6s 1.4s cubic-bezier(.2,1.6,.4,1) forwards; }
	.zert-marke path { stroke-dasharray: 1; stroke-dashoffset: 1; }
	.zert.is-an .zert-marke path { animation: zert-zeichnen .5s 1.85s ease-out forwards; }
	.zert-holo::after { animation: zert-glanz 4.5s 2.2s ease-in-out infinite; }
	.zert-stempel, .zert-stempel-ok { opacity: 0; }
	.zert.is-an .zert-stempel, .zert.is-an .zert-stempel-ok { animation: zert-stempel .45s 2.1s cubic-bezier(.3,1.5,.5,1) forwards; }
	.zert.is-ok .zert-punkt { animation: zert-puls 2s ease-in-out infinite; }
	.zert.is-bad .zert-rosette, .zert.is-bad .zert-ring { animation: none; }
}
@keyframes zert-zeichnen { to { stroke-dashoffset: 0; } }
@keyframes zert-drehen { to { transform: rotate(360deg); } }
@keyframes zert-auf { to { opacity: 1; transform: none; } }
@keyframes zert-glanz { 0% { left: -60%; } 45%, 100% { left: 130%; } }
@keyframes zert-stempel { from { opacity: 0; transform: rotate(-12deg) scale(1.8); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes zert-puls { 50% { box-shadow: 0 0 0 6px rgba(60,154,53,0); } }

@container zert (max-width: 640px) {
	.zert-mitte { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.zert-emblem { max-width: 210px; }
	.zert-praxis { text-align: left; }
	.zert-fuss { grid-template-columns: 1fr 1fr; }
	.zert-holo { grid-column: 1 / -1; justify-self: center; }
	.zert-stempel, .zert-stempel-ok { top: 12%; right: 5%; font-size: .9rem; }
	.zert-stempel-ok { font-size: 1.1rem; }
}
@media print { .zert { box-shadow: none; } }

/* Herkunfts-Prüfung */
.zert-web { margin-top: 2px; }
.zert-web b { color: var(--z-navy); font-weight: 600; }
.zert-tipp { margin: 12px 0 0 !important; padding: 10px 14px; border-radius: 10px; background: rgba(238,244,250,.9); border: 1px solid #D3E1EE; font-size: .875rem; line-height: 1.5; color: #12324F; }
.zert-tipp strong { color: var(--z-navy); }
.zert-warnung { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #FDF0EE; border: 1.5px solid #E7A59D; color: #6E1A12; font-size: .9rem; line-height: 1.5; }
.zert-warnung strong { display: block; color: #A4231A; }
.zert-warnung b { font-family: ui-monospace, Consolas, monospace; font-size: .875em; }
.zert-stempel-warn { display: none; }
.zert.is-warn .zert-stempel-ok { display: none; }
.zert.is-warn .zert-stempel-warn { display: block; color: rgba(164,35,26,.78); }
.zert.is-warn .zert-tipp { display: none; }
