/* Mantrailer Baden – Mitgliederbereich. Nutzt die Theme-Farben (CSS-Variablen) mit Fallbacks. */
.mtb {
	--p: var(--mtb-primary, #be259e);
	--p-dark: var(--mtb-primary-dark, #8a2474);
	--a: var(--mtb-accent, #3a3340);
	--ink: var(--mtb-ink, #211c24);
	--muted: var(--mtb-muted, #6b6470);
	--line: var(--mtb-line, #ebe6ec);
	--soft: var(--mtb-soft, #f7f4f8);
	--r: 14px;
	color: var(--ink);
	font-size: 1rem;
}
.mtb *, .mtb *::before, .mtb *::after { box-sizing: border-box; }
.mtb h2, .mtb h3, .mtb h4 { margin: 0 0 .5rem; line-height: 1.25; }

/* Buttons */
.mtb-btn, .mtb .login-submit input[type=submit] {
	display: inline-flex; align-items: center; gap: .4em; justify-content: center;
	background: var(--p); color: #fff !important; border: 2px solid var(--p);
	padding: .65em 1.15em; border-radius: 999px; font-weight: 700; font-size: .95rem;
	text-decoration: none !important; cursor: pointer; transition: background .15s, transform .1s; line-height: 1.2;
}
.mtb-btn:hover, .mtb .login-submit input[type=submit]:hover { background: var(--p-dark); border-color: var(--p-dark); }
.mtb-btn:active { transform: translateY(1px); }
.mtb-btn:disabled { opacity: .6; cursor: wait; }
.mtb-btn--ghost { background: transparent; color: var(--p) !important; }
.mtb-btn--ghost:hover { background: var(--soft); color: var(--p-dark) !important; }
.mtb-btn--small { padding: .45em .85em; font-size: .85rem; }
.mtb-link, .mtb-link-danger { background: none; border: 0; padding: 0; color: var(--p); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
.mtb-link-danger { color: #b3261e; }
.mtb-inline { display: inline; margin: 0; }

/* Alerts */
.mtb-alert { padding: .85rem 1rem; border-radius: 10px; margin: 0 0 1rem; background: var(--soft); border-left: 4px solid var(--a); }
.mtb-alert--success { background: #edf7ef; border-color: #2e7d32; }
.mtb-alert--error { background: #fdeceb; border-color: #b3261e; }
.mtb-muted { color: var(--muted); font-size: .9rem; }
.mtb-warn { color: #b3261e; font-size: .85rem; }
.mtb-empty { padding: 2rem; text-align: center; background: var(--soft); border-radius: var(--r); color: var(--muted); }
.mtb-badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: var(--a); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; }
.mtb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Kopf + Tabs */
.mtb-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mtb-hello { font-size: 1.35rem; font-weight: 800; }
.mtb-head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.mtb-tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 2px solid var(--line); margin-bottom: 1.5rem; scrollbar-width: thin; }
.mtb-tabs a { white-space: nowrap; padding: .75rem 1rem; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.mtb-tabs a:hover { color: var(--ink); }
.mtb-tabs a.is-active { color: var(--p); border-color: var(--p); }
.mtb-filter { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.mtb-filter a { padding: .35rem .85rem; border-radius: 999px; background: var(--soft); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; }
.mtb-filter a.is-active { background: var(--p); color: #fff; }

/* Karten */
.mtb-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; }
.mtb-card-sum { cursor: pointer; font-weight: 700; color: var(--p); }
.mtb-narrow { max-width: 560px; }
.mtb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }

/* Termine */
.mtb-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.mtb-event { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .2s, transform .2s; scroll-margin-top: 120px; }
.mtb-event:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.mtb-event:target { outline: 3px solid var(--a); }
.mtb-event.is-cancelled { opacity: .7; }
.mtb-event.is-cancelled h3 { text-decoration: line-through; }
.mtb-event-img { aspect-ratio: 16/9; background-size: cover; background-position: center; }
.mtb-event-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.mtb-event-top { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.mtb-event h3 { font-size: 1.15rem; margin: .1rem 0; }
.mtb-type { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--p); background: color-mix(in srgb, var(--p) 12%, white); padding: .2rem .55rem; border-radius: 6px; }
.mtb-event--seminar .mtb-type, .mtb-event--kurs .mtb-type, .mtb-event--special .mtb-type { color: #fff; background: var(--a); }
.mtb-date-badge { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 12px; background: var(--p); color: #fff; font-size: .7rem; text-transform: uppercase; font-weight: 700; line-height: 1; margin-right: .35rem; }
.mtb-date-badge b { font-size: 1.35rem; }
.mtb-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .93rem; }
.mtb-meta li { display: flex; gap: .5rem; align-items: flex-start; }
.mtb-ico { width: 1.3em; flex: none; text-align: center; }
.mtb-counts { display: flex; gap: .9rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin: .25rem 0; padding: .5rem .7rem; background: var(--soft); border-radius: 8px; }
.mtb-counts strong { color: var(--ink); }
.mtb-full { color: #b3261e; font-weight: 700; }
.mtb-req { font-size: .88rem; padding: .5rem .7rem; border-left: 3px solid var(--a); background: color-mix(in srgb, var(--a) 8%, white); border-radius: 0 8px 8px 0; }
.mtb-desc summary, .mtb-request summary, .mtb-dog summary { cursor: pointer; font-weight: 700; color: var(--p); padding: .25rem 0; }
.mtb-request { border-top: 1px dashed var(--line); padding-top: .5rem; margin-top: auto; }
.mtb-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.mtb-note { font-size: .9rem; background: var(--soft); padding: .5rem .7rem; border-radius: 8px; }
.mtb-status { display: inline-block; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: var(--soft); }
.mtb-status--pending { background: #fff4d6; color: #7a5200; }
.mtb-status--confirmed { background: #e3f3e6; color: #1e6a2a; }
.mtb-status--declined, .mtb-status--cancelled { background: #fbe3e1; color: #9b1c14; }
.mtb-public-hint { margin-top: 1.25rem; color: var(--muted); font-size: .95rem; }

/* Formulare */
.mtb-form { display: grid; gap: .8rem; margin: .5rem 0 0; }
.mtb-form label, .mtb .login-username label, .mtb .login-password label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.mtb-form input[type=text], .mtb-form input[type=email], .mtb-form input[type=tel], .mtb-form input[type=password], .mtb-form input[type=number], .mtb-form input[type=date], .mtb-form input[type=month], .mtb-form select, .mtb-form textarea,
.mtb .login-username input, .mtb .login-password input {
	width: 100%; padding: .65rem .75rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: var(--ink);
}
.mtb-form input:focus, .mtb-form select:focus, .mtb-form textarea:focus, .mtb .login-username input:focus, .mtb .login-password input:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 20%, transparent); }
.mtb-form .mtb-check, .mtb-check { display: flex !important; gap: .55rem; align-items: flex-start; font-weight: 500; }
.mtb-check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--p); flex: none; }
.mtb-dogs { border: 0; padding: 0; margin: 0; display: grid; gap: .35rem; }
.mtb-dogs legend { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.mtb-grid { grid-template-columns: 1fr 1fr; }
.mtb-span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .mtb-grid { grid-template-columns: 1fr; } }

/* Login */
.mtb-login { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.mtb-login form p { margin: 0 0 .9rem; }
.mtb .login-remember label { display: flex; gap: .5rem; align-items: center; font-weight: 500; }

/* Tabellen */
.mtb-table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
.mtb-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.mtb-table th, .mtb-table td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.mtb-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mtb-table--num td:not(:first-child), .mtb-table--num th:not(:first-child) { text-align: right; }
.mtb-table tr.sum td { font-weight: 700; border-top: 2px solid var(--ink); }
@media (max-width: 640px) {
	.mtb-table:not(.mtb-table--num) thead { display: none; }
	.mtb-table:not(.mtb-table--num) tr { display: block; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; padding: .4rem; }
	.mtb-table:not(.mtb-table--num) td { display: flex; justify-content: space-between; gap: 1rem; border: 0; padding: .3rem .4rem; }
	.mtb-table:not(.mtb-table--num) td[data-l]::before { content: attr(data-l); font-weight: 700; color: var(--muted); }
}

/* Statistik */
.mtb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; margin: 1rem 0 1.5rem; }
.mtb-kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; font-size: .85rem; color: var(--muted); }
.mtb-kpi span { display: block; font-size: 2rem; font-weight: 800; color: var(--p); line-height: 1.1; }
.mtb-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: .35rem; align-items: end; height: 180px; padding: .5rem; background: var(--soft); border-radius: var(--r); }
.mtb-bar-col { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .25rem; }
.mtb-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.mtb-bars i { display: block; width: 28%; max-width: 12px; border-radius: 3px 3px 0 0; min-height: 2px; }
.mtb-bars i.r, .mtb-legend .r { background: color-mix(in srgb, var(--a) 55%, white); }
.mtb-bars i.c, .mtb-legend .c { background: var(--a); }
.mtb-bars i.a, .mtb-legend .a { background: var(--p); }
.mtb-bar-col small { font-size: .7rem; color: var(--muted); }
.mtb-legend { font-size: .82rem; color: var(--muted); display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.mtb-legend span { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-left: .4rem; }
.mtb-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }

/* Tagebuch */
.mtb-journal { display: grid; gap: 1rem; }
.mtb-entry { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.2rem; scroll-margin-top: 120px; }
.mtb-entry header { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.mtb-entry h4 { margin: .5rem 0 .25rem; font-size: 1.05rem; }
.mtb-entry-goals { background: var(--soft); border-radius: 8px; padding: .5rem .75rem; margin-top: .5rem; }
.mtb-entry footer { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .6rem; font-size: .9rem; }
.mtb-share { margin-left: auto; font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--soft); }
.mtb-share.is-shared { background: #e3f3e6; color: #1e6a2a; }

/* Nachrichten */
.mtb-thread { display: flex; flex-direction: column; gap: .6rem; max-height: 60vh; overflow-y: auto; padding: .5rem; margin-bottom: 1rem; background: var(--soft); border-radius: var(--r); }
.mtb-msg { max-width: 80%; padding: .6rem .85rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.mtb-msg.is-mine { align-self: flex-end; background: color-mix(in srgb, var(--p) 10%, white); border-color: color-mix(in srgb, var(--p) 25%, white); }
.mtb-msg-meta { font-size: .75rem; color: var(--muted); margin-bottom: .2rem; }

/* Intern */
.mtb-intern { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; }
.mtb-intern time { font-size: .85rem; color: var(--muted); }
.mtb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-top: 1rem; }
.mtb-gallery figure { margin: 0; }
.mtb-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.mtb-gallery figcaption { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.mtb-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.mtb-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.mtb-lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; cursor: pointer; }

/* Profil */
.mtb-dog { border-top: 1px solid var(--line); padding: .5rem 0; }

/* Kontakt */
.mtb-contact .mtb-form { margin: 0; }
.mtb ul.mtb-meta, .mtb ul.mtb-plain { padding-left: 0; margin-left: 0; }
.mtb ul.mtb-meta li { margin-bottom: 0; }

/* Passwort */
.mtb-pw-wrap { position: relative; display: block; }
.mtb-pw-wrap input { padding-right: 3rem !important; }
.mtb-pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; opacity: .55; border-radius: 8px; }
.mtb-pw-toggle.is-on, .mtb-pw-toggle:hover { opacity: 1; background: var(--soft); }
.mtb-pw-meter { height: 1.4rem; position: relative; font-size: .8rem; color: var(--muted); margin-top: -.35rem; }
.mtb-pw-meter::before { content: ""; display: block; height: 5px; border-radius: 3px; background: var(--line); }
.mtb-pw-meter::after { content: ""; position: absolute; left: 0; top: 0; height: 5px; border-radius: 3px; width: 0; transition: width .25s, background .25s; }
.mtb-pw-meter[data-score="1"]::after { width: 25%; background: #b3261e; }
.mtb-pw-meter[data-score="2"]::after { width: 50%; background: #d98e04; }
.mtb-pw-meter[data-score="3"]::after { width: 75%; background: #4c9a2a; }
.mtb-pw-meter[data-score="4"]::after { width: 100%; background: #1e7d32; }
.mtb-pw-meter span { display: block; padding-top: 7px; }
.mtb-login-links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .92rem; }

/* Smartphone & Tablet */
@media (max-width: 782px) {
	.mtb-tabs { margin-inline: -1.25rem; padding-inline: 1rem; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2rem), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 1rem, #000 calc(100% - 2rem), transparent); }
	.mtb-tabs a { padding: .85rem .9rem; }
	.mtb-head { margin-bottom: .5rem; }
	.mtb-hello { font-size: 1.2rem; }
	.mtb-login { padding: 1.4rem 1.2rem; border-radius: 12px; }
	.mtb-events { grid-template-columns: 1fr; gap: 1rem; }
	.mtb-card, .mtb-entry, .mtb-intern { padding: 1rem; }
	.mtb-msg { max-width: 92%; }
	.mtb-btn { min-height: 46px; }
	.mtb-actions .mtb-btn { flex: 1 1 calc(50% - .4rem); }
	.mtb-kpis { grid-template-columns: 1fr 1fr; gap: .6rem; }
	.mtb-kpi span { font-size: 1.6rem; }
	.mtb-chart { height: 150px; gap: .15rem; padding: .4rem .25rem; }
	.mtb-bar-col small { font-size: .6rem; }
	.mtb-request summary, .mtb-desc summary { padding: .5rem 0; }
	.mtb-check input { width: 1.3rem; height: 1.3rem; }
	.mtb-dogs .mtb-check { padding: .35rem 0; }
}
@media (min-width: 783px) and (max-width: 1100px) {
	.mtb-events { grid-template-columns: repeat(2, 1fr); }
}
.mtb input, .mtb select, .mtb textarea { font-size: max(16px, 1rem); } /* verhindert iOS-Zoom */

/* Datenschutz & Konto */
.mtb-privacy { margin-top: 1.25rem; }
.mtb-privacy-block { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.mtb-privacy-block:first-of-type { border-top: 0; margin-top: .25rem; padding-top: 0; }
.mtb-privacy h4 { margin: 0 0 .4rem; font-size: 1.05rem; }
.mtb-zip-pw { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .8rem 1rem; margin: .5rem 0 1rem; border-radius: 10px; background: color-mix(in srgb, var(--p) 8%, white); border: 1.5px dashed var(--p); }
.mtb-zip-pw code { font-size: 1.15rem; font-weight: 700; letter-spacing: .04em; background: #fff; padding: .3rem .6rem; border-radius: 6px; user-select: all; word-break: break-all; }
.mtb-danger-zone { margin-top: .6rem; }
.mtb-danger-zone summary { cursor: pointer; color: #b3261e; font-weight: 700; padding: .4rem 0; }
.mtb-btn--danger { background: #b3261e; border-color: #b3261e; }
.mtb-btn--danger:hover { background: #8c1c16; border-color: #8c1c16; }
.mtb-calpref { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem; margin: 0; display: grid; gap: .7rem; }
.mtb-calpref legend { font-weight: 700; padding: 0 .3rem; }
#mtb-calopts { display: grid; gap: .7rem; }
#mtb-calopts[hidden] { display: none; }

/* Karten */
.mtb-map { position: relative; display: block; height: 170px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background:
	linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 22px 22px,
	linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 22px 22px,
	linear-gradient(125deg, #f3f1f5 0%, #faf6f8 45%, #eef0f4 100%); text-decoration: none; }
.mtb-map::before { content: ""; position: absolute; inset: 0; background: linear-gradient(60deg, transparent 46%, rgba(255,255,255,.9) 46.5%, rgba(255,255,255,.9) 49%, transparent 49.5%), linear-gradient(150deg, transparent 58%, rgba(255,255,255,.8) 58.5%, rgba(255,255,255,.8) 60.5%, transparent 61%); pointer-events: none; }
.mtb-map.is-loaded::before { display: none; }
.mtb-map iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.mtb-map-consent, .mtb-map--nogeo { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; color: var(--ink); font: inherit; }
.mtb-map-pin { width: 30px; height: 30px; background: var(--p); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat; }
.mtb-map-cta { font-weight: 700; background: #fff; padding: .35rem .8rem; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.mtb-map-consent small { font-size: .72rem; color: var(--muted); background: rgba(255,255,255,.85); padding: .1rem .5rem; border-radius: 6px; }
.mtb-map-zoom { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: zoom-in; display: flex; align-items: flex-end; justify-content: flex-end; padding: .5rem; }
.mtb-map-zoom span { background: #fff; color: var(--ink); font-weight: 700; font-size: .8rem; padding: .3rem .65rem; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.mtb-maplb { position: fixed; inset: 0; z-index: 99999; background: rgba(15,12,16,.82); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.mtb-maplb-inner { background: #fff; border-radius: 16px; width: min(1000px, 100%); height: min(780px, 100%); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.mtb-maplb-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid #eee; }
.mtb-maplb-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #f1eef0; font-size: 1.5rem; cursor: pointer; flex: none; }
.mtb-maplb iframe { flex: 1; width: 100%; border: 0; }
.mtb-maplb-actions { display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid #eee; }
@media (max-width: 600px) { .mtb-maplb { padding: 0; } .mtb-maplb-inner { border-radius: 0; height: 100%; } .mtb-maplb-actions .mtb-btn { flex: 1 1 100%; } }
.mtb-maplb, .mtb-lightbox { --p: var(--mtb-primary, #be259e); --p-dark: var(--mtb-primary-dark, #8a2474); --soft: #f6f3f5; --line: #e4e0d8; --ink: #211c24; --muted: #6b6470; }
.mtb-map.mtb-map--nogeo { position: relative; inset: auto; height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; }
.mtb-map.mtb-map--nogeo { height: auto; padding: .7rem; flex-direction: row; gap: .5rem; background: var(--soft); }
.mtb-map.mtb-map--nogeo::before { display: none; }
.mtb-map.mtb-map--nogeo .mtb-map-pin { width: 22px; height: 22px; }
.mtb-map.mtb-map--nogeo .mtb-map-cta { box-shadow: none; color: var(--p); }

/* ===== Teams ===== */
.mtb-teams { display: grid; gap: .75rem; margin: 1rem 0 1.5rem; }
.mtb-teamcard { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "ico name go" "ico facts go"; align-items: center; gap: .15rem .9rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.mtb-teamcard:hover { border-color: var(--p); box-shadow: 0 8px 24px -14px rgba(0,0,0,.3); }
.mtb-teamcard-ico { grid-area: ico; font-size: 1.8rem; width: 3.2rem; height: 3.2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: color-mix(in srgb, var(--p) 10%, white); }
.mtb-teamcard > span:nth-child(2) { grid-area: name; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; font-size: 1.1rem; }
.mtb-teamcard small { color: var(--muted); font-size: .85rem; }
.mtb-teamcard-facts { grid-area: facts; display: flex; flex-wrap: wrap; gap: .3rem; }
.mtb-teamcard-facts em { font-style: normal; font-size: .78rem; background: var(--soft); padding: .15rem .5rem; border-radius: 999px; }
.mtb-teamcard-facts em.q { background: color-mix(in srgb, var(--p) 12%, white); color: var(--p-dark); font-weight: 700; }
.mtb-teamcard-go { grid-area: go; font-size: 1.8rem; color: var(--p); }
.mtb-team-head h2 { margin: .3rem 0 .1rem; }
.mtb-subnav { position: sticky; top: calc(var(--header-h, 72px) + 4px); z-index: 5; background: #fff; padding: .4rem 0; }
.mtb section[id] { scroll-margin-top: 140px; margin-bottom: 1.5rem; }
.mtb-goal { border-radius: var(--r); padding: 1rem 1.2rem; margin: 0 0 1.25rem; background: linear-gradient(120deg, var(--p), color-mix(in srgb, var(--p) 60%, #211c24)); color: #fff; }
.mtb-goal p { margin: .35rem 0; font-size: 1.05rem; }
.mtb-goal small { opacity: .8; }
.mtb-assess-m { border-left: 4px solid var(--line); }
.mtb-assess-m--erfolg { border-left-color: #1e7d32; }
.mtb-assess-m--rueckschritt { border-left-color: #b3261e; }
.mtb-assess-m--ziel { border-left-color: var(--p); }
.mtb-qual-steps { display: flex; gap: .3rem; flex-wrap: wrap; margin: .3rem 0 .6rem; }
.mtb-qual-steps span { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; background: var(--soft); color: var(--muted); }
.mtb-qual-steps span.is-done { background: color-mix(in srgb, var(--p) 18%, white); color: var(--p-dark); }
.mtb-qual-steps span.is-current { background: var(--p); color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 25%, white); }

/* ===== Trails ===== */
.mtb-trail { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.mtb-trail header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: .6rem; }
.mtb-trail h4 { margin: 0; font-size: 1.05rem; }
.mtb-trail time { font-size: .85rem; color: var(--muted); }
.mtb-trail-body { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 1rem; }
@media (max-width: 640px) { .mtb-trail-body { grid-template-columns: 1fr; } }
.mtb-trail-vis { display: grid; gap: .4rem; }
.mtb-trail-svg { width: 100%; height: auto; background: linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px) 0 0/20px 20px, linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px) 0 0/20px 20px, var(--soft); border-radius: 10px; color: var(--p); }
.mtb-trail-svg .s { fill: #1e7d32; stroke: #fff; stroke-width: 2; }
.mtb-trail-svg .e { fill: #211c24; stroke: #fff; stroke-width: 2; }
.mtb-trail-svg .bar line { stroke: #211c24; stroke-width: 2; }
.mtb-trail-svg .bar text { font-size: 10px; fill: #211c24; }
.mtb-profile-svg { width: 100%; height: auto; }
.mtb-profile-svg polygon { fill: color-mix(in srgb, var(--p) 15%, white); }
.mtb-profile-svg polyline { fill: none; stroke: var(--p); stroke-width: 2; }
.mtb-profile-svg text { font-size: 10px; fill: var(--muted); }
.mtb-trail-stats { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
@media (max-width: 480px) { .mtb-trail-stats { grid-template-columns: repeat(2, 1fr); } }
.mtb-trail-stats li { background: var(--soft); border-radius: 10px; padding: .45rem .55rem; font-size: .75rem; color: var(--muted); }
.mtb-trail-stats b { display: block; font-size: 1rem; color: var(--ink); }
.mtb-trail-weather { font-size: .9rem; }
.mtb-trail-team { background: color-mix(in srgb, var(--p) 7%, white); border-radius: 10px; padding: .6rem .8rem; margin: .5rem 0; }
.mtb-trail-team p { margin: .3rem 0 0; }
.mtb-trail-teams { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .4rem; }
.mtb-trail-teams li { background: var(--soft); border-radius: 8px; padding: .45rem .65rem; font-size: .9rem; }
.mtb-stars { color: #e0a100; letter-spacing: .05em; white-space: nowrap; }
.mtb-stars span { color: var(--line); }
.mtb-trail-list { display: grid; gap: .5rem; }
.mtb-trail-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: #fff; }
.mtb-trail-row span { color: var(--muted); font-size: .9rem; }
.mtb-trail-list-title { margin-top: 2rem; }

/* Recorder (Smartphone) */
.mtb-recorder { max-width: 640px; }
.mtb-rec-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem; display: grid; gap: .9rem; }
.mtb-rec-card h3, .mtb-rec-card h4 { margin: 0; }
.mtb-rec-card label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
.mtb-rec-card input[type=text], .mtb-rec-card input[type=number], .mtb-rec-card select, .mtb-rec-card textarea { width: 100%; padding: .7rem .75rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: max(16px, 1rem); background: #fff; }
.mtb-rec-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.mtb-rec-big { width: 100%; min-height: 58px; font-size: 1.15rem !important; }
.mtb-rec-live { text-align: center; position: relative; }
.mtb-rec-dot { width: 14px; height: 14px; border-radius: 50%; background: #d50000; margin: 0 auto; animation: mtbPulse 1.2s infinite; }
@keyframes mtbPulse { 0% { box-shadow: 0 0 0 0 rgba(213,0,0,.5); } 100% { box-shadow: 0 0 0 14px rgba(213,0,0,0); } }
.mtb-rec-label { margin: 0; font-weight: 700; color: #d50000; }
.mtb-rec-big-num { font-size: 3.2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.mtb-rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; font-size: .75rem; color: var(--muted); }
.mtb-rec-grid b { display: block; font-size: 1.25rem; color: var(--ink); }
.mtb-rec-summary { background: var(--soft); padding: .6rem .8rem; border-radius: 10px; margin: 0; font-weight: 600; }
.mtb-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.mtb-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem .8rem; font: inherit; font-size: .9rem; cursor: pointer; min-height: 40px; }
.mtb-chip.on { background: var(--p); border-color: var(--p); color: #fff; }
.mtb-mini { font-size: .85rem; font-weight: 700; }
.mtb-inline-label { display: flex !important; align-items: center; gap: .5rem; margin-top: .4rem; font-weight: 500 !important; }
.mtb-inline-label input { max-width: 110px; }
.mtb-star-input { display: flex; gap: .15rem; }
.mtb-star-input button { border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--line); cursor: pointer; padding: .1rem; min-width: 44px; min-height: 44px; }
.mtb-star-input button.on { color: #e0a100; }
.mtb-rec-teams { display: grid; gap: .5rem; }
.mtb-rec-team { border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .8rem; }
.mtb-rec-team.is-on { border-color: var(--p); background: color-mix(in srgb, var(--p) 4%, white); }
.mtb-rec-team-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .6rem; }
.mtb-rec-msg { min-height: 1.2em; margin: 0; font-weight: 600; }
.mtb-add-team select { margin-top: .2rem; }

/* ---------- Hundefoto / Avatar ---------- */
.mtb-ava { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; object-fit: cover; vertical-align: middle; background: color-mix(in srgb, var(--p) 10%, white); box-shadow: 0 0 0 2px #fff, 0 0 0 3px color-mix(in srgb, var(--p) 30%, white); }
.mtb-ava--ph { color: var(--p); }
.mtb-ava--ph svg { width: 66%; height: 66%; }
.mtb-ava--lg { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--p); }
.mtb-teamcard-ico { background: none; width: auto; height: auto; }
.mtb-dog summary { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; list-style: none; }
.mtb-dog summary::-webkit-details-marker { display: none; }
.mtb-dogs .mtb-check { align-items: center; }
.mtb-team-head { display: flex; align-items: center; gap: 1rem; }
.mtb-photo-field { display: flex; gap: 1rem; align-items: center; padding: .75rem; border: 1px dashed color-mix(in srgb, var(--p) 35%, white); border-radius: 14px; background: color-mix(in srgb, var(--p) 4%, white); }
.mtb-photo-field > div { flex: 1; min-width: 0; }
.mtb-photo-field input[type=file] { font-size: .9rem; width: 100%; padding: .5rem 0; }
.mtb-photo-preview { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
/* Admin */
.mtb-wrap .mtb-ava { margin-right: .4rem; }

/* ---------- Benutzer-Avatar, Benutzername ---------- */
.mtb-uava { border-radius: 50%; display: inline-block; vertical-align: middle; background: color-mix(in srgb, var(--p) 10%, white); flex: 0 0 auto; }
.mtb-hello-wrap { display: flex; align-items: center; gap: .6rem; }
.mtb-hello-ava { display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 4px color-mix(in srgb, var(--p) 45%, white); transition: transform .15s; }
.mtb-hello-ava:hover { transform: scale(1.06); }
.mtb-msg-meta { display: flex; align-items: center; gap: .35rem; }
.mtb-ident { margin-bottom: 1.25rem; }
.mtb-login-now { font-family: ui-monospace, Menlo, monospace; background: var(--soft); padding: .1rem .45rem; border-radius: 6px; }
.mtb-ava-current { display: flex; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.mtb-ava-current p { margin: 0; font-size: .92rem; color: var(--muted); }
.mtb-uava--lg { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--p); }
.mtb-ava-details > summary { list-style: none; display: inline-flex; cursor: pointer; }
.mtb-ava-details > summary::-webkit-details-marker { display: none; }
.mtb-ava-details[open] > summary { margin-bottom: .75rem; }
.mtb-ava-picker .mtb-muted { font-size: .85rem; }
.mtb-ava-filter { display: flex; gap: .4rem; margin: .4rem 0 .6rem; }
.mtb-ava-filter button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .85rem; cursor: pointer; }
.mtb-ava-filter button.is-on { background: var(--p); border-color: var(--p); color: #fff; }
.mtb-ava-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .45rem; max-height: 420px; overflow-y: auto; padding: .5rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overscroll-behavior: contain; }
.mtb-ava-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .3rem; border-radius: 12px; cursor: pointer; border: 2px solid transparent; transition: background .15s, border-color .15s; }
.mtb-ava-opt input { position: absolute; opacity: 0; pointer-events: none; }
.mtb-ava-opt img { width: 60px; height: 60px; display: block; border-radius: 50%; }
.mtb-ava-opt:hover { background: var(--soft); }
.mtb-ava-opt:has(input:checked) { border-color: var(--p); background: color-mix(in srgb, var(--p) 8%, white); }
.mtb-ava-opt:has(input:focus-visible) { outline: 2px solid var(--p); outline-offset: 2px; }
.mtb-ava-opt.is-taken { cursor: not-allowed; }
.mtb-ava-opt.is-taken img { filter: grayscale(1); opacity: .35; }
.mtb-ava-cap { font-size: .68rem; color: var(--muted); line-height: 1.1; }
.mtb-ava-opt.is-mine .mtb-ava-cap { color: var(--p); font-weight: 700; }
.mtb-ava-picker.only-free .is-taken { display: none; }
.mtb-ava-save { position: sticky; bottom: 0; background: linear-gradient(transparent, #fff 35%); padding-top: .75rem; }
@media (max-width: 480px) { .mtb-ava-grid { grid-template-columns: repeat(4, 1fr); max-height: 360px; } .mtb-ava-opt img { width: 54px; height: 54px; } }

/* Mehrere Trails je Team und Termin */
.mtb-trail-prog { display: inline-block; font-size: .72rem; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: #fff3d6; color: #8a5a00; white-space: nowrap; vertical-align: middle; }
.mtb-trail-prog.is-done { background: #e3f4e6; color: #1e6b33; }
.mtb-rec-overview { background: var(--soft); border-radius: 12px; padding: .6rem .8rem; margin: .2rem 0 .8rem; }
.mtb-rec-overview ul { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .3rem; }
.mtb-rec-overview li { display: flex; justify-content: space-between; gap: .5rem; align-items: center; font-size: .9rem; }
.mtb-ev-trails { margin: .6rem 0 0; padding: .6rem .8rem; border-radius: 12px; background: color-mix(in srgb, var(--p) 6%, white); font-size: .9rem; }
.mtb-ev-trails ul { list-style: none; margin: .3rem 0 0; padding: 0; display: grid; gap: .25rem; }
.mtb-ev-trails li { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.mtb-trail-group { margin: 0 0 1.25rem; }
.mtb-trail-group > h4 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .5rem; align-items: baseline; margin: 0 0 .5rem; font-size: 1rem; }
.mtb-trail-idx { margin: .2rem 0 .3rem; font-size: .8rem; font-weight: 700; color: var(--p); text-transform: uppercase; letter-spacing: .04em; }
.mtb-bk-trails { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; } .mtb-bk-trails a { text-decoration: none; }
.mtb-trail-group > h4 { display: block; } .mtb-trail-group > h4 .mtb-trail-prog { margin-left: .4rem; }

/* Chats: Trainer-Team oder einzelne Trainer */
.mtb-chat-tabs { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 1rem; }
.mtb-chat-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--mtb-line, #e6dbe3); background: #fff; color: inherit; text-decoration: none; font-weight: 600; font-size: .95rem; }
.mtb-chat-tab.is-active { background: var(--mtb-primary, #be259e); border-color: var(--mtb-primary, #be259e); color: #fff; }
.mtb-chat-tab img, .mtb-chat-tab svg { border-radius: 50%; }
.mtb-chat-new select { border-radius: 999px; padding: .4rem .8rem; border: 1px dashed var(--mtb-line, #d9c6d3); background: #fff; }
.mtb-ev-trainer { font-size: .92rem; color: var(--mtb-muted, #6b5d68); margin: .2rem 0 0; }

/* Abwesenheit / Pause (1.6) */
.mtb-alert--info { background: #fff7e6; border-color: #c98a00; }
.mtb-absence details { margin-top: .75rem; }
.mtb-absence details > summary { list-style: none; display: inline-flex; cursor: pointer; }
.mtb-absence details > summary::-webkit-details-marker { display: none; }
.mtb-absence .mtb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; margin-top: 1rem; }
@media (max-width: 600px) { .mtb-absence .mtb-grid2 { grid-template-columns: 1fr; } }
.mtb-dog-remove .mtb-muted { font-size: .85rem; }

/* Trainer-Bereich im Mitgliederbereich (1.6) */
.mtb-tr-head h2 { margin: 0 0 .2rem; }
.mtb-tr-head { margin-bottom: 1rem; }
.mtb-tr-event { margin-bottom: 1rem; }
.mtb-tr-event > header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.mtb-tr-event h3 { margin: .3rem 0 .1rem; }
.mtb-tr-event.has-pending { border-left: 4px solid #e0a100; }
.mtb-tr-event.is-cancelled { opacity: .75; }
.mtb-tr-counts { display: flex; gap: .4rem; flex-wrap: wrap; }
.mtb-tr-counts a { text-decoration: none; }
.mtb-tr-bookings { list-style: none; margin: .8rem 0; padding: 0; display: grid; gap: .6rem; }
.mtb-tr-bookings > li { border: 1px solid var(--line, #e7e1ea); border-radius: 12px; padding: .7rem .8rem; display: grid; gap: .5rem; }
.mtb-tr-bookings > li.is-pending { background: #fffaf0; }
.mtb-tr-who { display: flex; gap: .6rem; align-items: flex-start; }
.mtb-tr-decide > summary, .mtb-tr-edit > summary, .mtb-tr-new > summary { list-style: none; display: inline-flex; cursor: pointer; }
.mtb-tr-decide > summary::-webkit-details-marker, .mtb-tr-edit > summary::-webkit-details-marker, .mtb-tr-new > summary::-webkit-details-marker { display: none; }
.mtb-tr-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; margin-top: .4rem; }
.mtb-tr-edit[open] { flex-basis: 100%; }
.mtb-tr-new { margin-bottom: 1.2rem; }
.mtb-event-form, .mtb-tr-new .mtb-grid2, .mtb-tr-teams + * .mtb-grid2, .mtb-card .mtb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; margin-top: .9rem; }
.mtb-tr-more { border: 0; padding: 0; margin: 0; }
.mtb-tr-more legend { font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.mtb-away { display: inline-block; font-size: .82rem; color: #7a5200; background: #fff4d6; border-radius: 6px; padding: .05rem .45rem; margin-top: .2rem; }
.mtb-tr-msg { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 1rem; align-items: start; }
.mtb-tr-inbox ul { list-style: none; margin: .8rem 0 0; padding: 0; }
.mtb-tr-inbox li a { display: flex; gap: .5rem; align-items: center; padding: .5rem; border-radius: 10px; text-decoration: none; color: inherit; }
.mtb-tr-inbox li.is-active a, .mtb-tr-inbox li a:hover { background: color-mix(in srgb, var(--p) 10%, white); }
.mtb-tr-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem; }
.mtb-tr-team { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: inherit; margin: 0; }
.mtb-tr-team:hover { box-shadow: 0 6px 18px -10px rgba(0,0,0,.3); }
.mtb-assess header { margin-bottom: .3rem; }
@media (max-width: 700px) {
	.mtb-tr-msg { grid-template-columns: 1fr; }
	.mtb-event-form, .mtb-card .mtb-grid2 { grid-template-columns: 1fr; }
}

/* Verwaltung im Mitgliederbereich (Admin/Vertretung, 1.6) */
.mtb-tr-search { display: flex; gap: .5rem; margin: 0 0 .5rem; }
.mtb-tr-search input { flex: 1; }
.mtb-ld-list { display: grid; gap: .8rem; }
.mtb-ld-member { margin: 0; }
.mtb-ld-member > header { display: flex; gap: .7rem; align-items: flex-start; }
.mtb-ld-dogs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .7rem 0 .3rem; }
.mtb-chip { display: inline-flex; align-items: center; gap: .3rem; background: color-mix(in srgb, var(--p) 8%, white); border-radius: 999px; padding: .15rem .25rem .15rem .35rem; font-size: .9rem; }
.mtb-chip .mtb-inline { display: inline; margin: 0; }
.mtb-chip-x { border: 0; background: transparent; cursor: pointer; font-size: 1rem; line-height: 1; padding: .1rem .4rem; border-radius: 50%; color: #8a6f8c; }
.mtb-chip-x:hover { background: #f3dede; color: #b3261e; }
.mtb-ld-dogadd { display: inline-flex; gap: .3rem; }
.mtb-ld-dogadd input { width: 8.5rem; padding: .3rem .5rem; }
.mtb-ld-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .8rem; }
.mtb-ld-media figure { margin: 0; font-size: .8rem; }
.mtb-ld-media img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.mtb-tabs { overflow-x: auto; scrollbar-width: thin; }
