/* Handy-Ansicht v3 (26.10.2026, inc/mobile-v3.php). Nur unter 768 px und nur mit body.sod-m3.
   Vorbild: Prototyp "Shield of Dogs Mobile". Umschalten: Design > Mobile Ansicht. */

/* Am Computer nie sichtbar */
@media (min-width: 768px) {
  .sod-m3-tabs, .sod-m3-actionbar, .sod-m3-sheet, .sod-m3-backdrop, .sod-m3-home, .sod-m3-chips, .sod-m3-quick { display: none !important; }
}

@media (max-width: 767px) {

body.sod-m3 {
  --m3-bg: #06111a; --m3-surface: #0e2030; --m3-line: rgba(255, 255, 255, .08);
  --m3-text: #f8fafc; --m3-muted: #b5c3d0; --m3-dim: #94a3b8; --m3-gold: #f3c74f; --m3-gold-d: #e4a91f;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
body.sod-m3.sod-m3-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }

/* ---------- Leiste unten ---------- */
.sod-m3-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9980;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
  background: rgba(6, 17, 26, .97); border-top: 1px solid var(--m3-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.sod-m3-tabs-hidden { display: none; }
/* "Mehr" steht oben rechts (header.php). 4 Reiter: Start, Schicksale, Pate, Spenden. */
.sod-m3-tabs-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.25fr) minmax(0, 1fr); }
/* 6 Reiter: Start, Schicksale, Pate, Spenden, Teaming, Shop – etwas kleinere Schrift. */
.sod-m3-tabs-6 { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr); padding-left: 2px; padding-right: 2px; }
.sod-m3-tabs-6 .sod-m3-tab { font-size: 11px; letter-spacing: -.02em; }
@media (max-width: 359px) { .sod-m3-tabs-6 .sod-m3-tab { font-size: 10px; } }
/* 7 Plaetze (mit "Teaming" aus dem SOD-Plugin): Start, Schicksale, Pate, Spenden, Teaming, Shop, Mehr */
.sod-m3-tabs-7 { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.15fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.15fr) minmax(0, 1fr); padding-left: 1px; padding-right: 1px; }
.sod-m3-tabs-7 .sod-m3-tab { font-size: 10px; letter-spacing: -.03em; }
@media (max-width: 359px) { .sod-m3-tabs-7 .sod-m3-tab { font-size: 9px; } }
.sod-m3-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 52px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--m3-dim) !important; text-decoration: none !important;
  font: 600 12px/1.1 Inter, system-ui, sans-serif; letter-spacing: -.01em; text-align: center; white-space: nowrap;
}
.sod-m3-tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sod-m3-tab.is-on { color: var(--m3-gold) !important; font-weight: 700; }
.sod-m3-tab:active { transform: scale(.96); }
.sod-m3-ring {
  width: 54px; height: 54px; border-radius: 50%; margin-top: -26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--m3-gold); color: #06111a; box-shadow: 0 6px 18px rgba(243, 199, 79, .35);
}
.sod-m3-tab-cta > span:last-child { color: var(--m3-gold); font-weight: 700; }
/* Shop: goldener Knopf, der innerhalb der Leiste bleibt (nur "Pate werden" ragt heraus). */
.sod-m3-tab-shop .sod-m3-ring { width: 44px; height: 32px; margin-top: 0; border-radius: 10px; box-shadow: none; }
.sod-m3-tab-shop .sod-m3-ring svg { width: 20px; height: 20px; }

/* Aktionsleiste (Hundeseite mit offener Patenschaft, Schicksal-Detail) */
.sod-m3-actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9980;
  display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: 10px;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(6, 17, 26, .97); border-top: 1px solid var(--m3-line);
}
.sod-m3-actionbar a {
  display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 14px;
  font: 800 16px/1.2 Inter, system-ui, sans-serif; text-decoration: none !important; text-align: center;
}
.sod-m3-actionbar-main { flex-direction: column; gap: 2px; background: var(--m3-gold); color: #06111a !important; padding: 6px 12px; }
.sod-m3-actionbar-main small { font-size: 13px; font-weight: 600; color: #3b2a05; }
.sod-m3-actionbar { grid-template-columns: minmax(0, 1fr) 60px; }
.sod-m3-actionbar a { min-height: 60px; }
.sod-m3-actionbar-alt { border: 1.5px solid rgba(248, 250, 252, .35); color: var(--m3-text) !important; }
.sod-m3-actionbar-alt svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hilfe-Knopf und Teilen-Knopf ueber die Leiste heben; Kopfzeilen-Knoepfe sind unten */
body.sod-m3 #sod-support { bottom: calc(88px + env(safe-area-inset-bottom)) !important; }
body.sod-m3.sod-m3-bar #sod-support { bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
body.sod-m3 .sodsh-fab, body.sod-m3 #sod-discord-fab { display: none !important; }
.sod-m3-item[hidden] { display: none !important; }
body.sod-m3 .nav-actions .btn-ghost, body.sod-m3 .nav-actions .btn-secondary { display: none !important; }

/* ---------- "Mehr"-Menue (Schublade von unten) ---------- */
.sod-m3-sheet[hidden], .sod-m3-backdrop[hidden] { display: none !important; }
.sod-m3-backdrop { position: fixed; inset: 0; z-index: 9985; background: rgba(0, 0, 0, .55); }
.sod-m3-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; max-height: 88vh; max-height: 88dvh;
  display: flex; flex-direction: column; border-radius: 22px 22px 0 0;
  background: var(--m3-bg); color: var(--m3-text); border-top: 1px solid rgba(255, 255, 255, .12);
  font-family: Inter, system-ui, sans-serif; box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
  animation: sod-m3-up .25s ease-out;
}
@keyframes sod-m3-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sod-m3-sheet { animation: none; } }
.sod-m3-sheet-head { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--m3-line); }
.sod-m3-sheet-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
.sod-m3-sheet-head img { width: 38px; height: 38px; object-fit: contain; }
.sod-m3-sheet-head div { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.sod-m3-sheet-head strong { font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.sod-m3-sheet-head span { font-size: 12px; color: var(--m3-muted); }
.sod-m3-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: var(--m3-text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sod-m3-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sod-m3-sheet-body { overflow-y: auto; padding: 6px 16px calc(20px + env(safe-area-inset-bottom)); }
.sod-m3-h { margin: 16px 0 8px; padding: 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--m3-dim); }
.sod-m3-lang { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sod-m3-lang .lang-btn {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, .18); color: var(--m3-text) !important; text-decoration: none !important;
  font: 700 15px Inter, system-ui, sans-serif; background: transparent;
}
.sod-m3-lang .lang-btn.active { background: var(--m3-gold); border-color: var(--m3-gold); color: #06111a !important; }
.sod-m3-group { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--m3-surface); border: 1px solid var(--m3-line); }
.sod-m3-item {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 16px;
  color: var(--m3-text) !important; text-decoration: none !important; font-size: 16px; font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.sod-m3-item:first-child { border-top: 0; }
.sod-m3-item > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--m3-gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sod-m3-item > span { flex: 1 1 auto; min-width: 0; }
.sod-m3-item small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--m3-dim); }
.sod-m3-item .sod-m3-chev { stroke: var(--m3-dim); }
.sod-m3-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 18px; font-size: 13px; }
.sod-m3-legal a { color: var(--m3-dim) !important; text-decoration: none !important; min-height: 44px; display: inline-flex; align-items: center; }
body.sod-m3-sheet-open { overflow: hidden; }

/* ---------- Gemeinsame Bausteine ---------- */
.sod-m3-btn-gold, .sod-m3-btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box;
  min-height: 54px; border-radius: 14px; text-decoration: none !important;
  font: 800 17px/1 Inter, system-ui, sans-serif;
}
.sod-m3-btn-gold { background: var(--m3-gold); color: #06111a !important; }
.sod-m3-btn-gold svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sod-m3-btn-outline { border: 1.5px solid rgba(248, 250, 252, .35); color: var(--m3-text) !important; font-weight: 700; font-size: 16px; min-height: 52px; }
/* Nur der Balken-span: dieselbe Klasse sitzt auch am body (Aktionsleiste) und darf ihn nicht auf 6px kappen. */
span.sod-m3-bar { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
span.sod-m3-bar i { display: block; height: 100%; background: var(--m3-gold); border-radius: 3px; }
.sod-m3-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px; scrollbar-width: none; }
.sod-m3-chips::-webkit-scrollbar { display: none; }
.sod-m3-chip {
  flex: 0 0 auto; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .18); background: transparent; color: var(--m3-text);
  font: 600 14px Inter, system-ui, sans-serif;
}
.sod-m3-chip.is-on { background: var(--m3-gold); border-color: var(--m3-gold); color: #06111a; font-weight: 700; }
.sod-m3-chips-count { align-self: center; margin-left: auto; flex: 0 0 auto; font-size: 13px; color: var(--m3-muted); }
.sod-m3-hide { display: none !important; }

/* ---------- Startseite ---------- */
body.sod-m3 .sodh { padding: 28px 0 10px; }
body.sod-m3 .sodh-in { gap: 0; }
body.sod-m3 .sodh-media, body.sod-m3 .sod-rescue { display: none !important; }
body.sod-m3 .sodh-title { font-size: 36px; line-height: 1.08; }
body.sod-m3 .sodh-lead { font-size: 16px; margin-top: 16px; }
body.sod-m3 .sodh-ctas { flex-direction: column; margin-top: 22px; }
body.sod-m3 .sodh-btn { justify-content: center; width: 100%; box-sizing: border-box; height: 54px; border-radius: 14px; font-size: 17px; font-weight: 800; }
body.sod-m3 .sodh-btn-gold { background: var(--m3-gold); }
body.sod-m3 .sodh-btn-collar { display: none; }
body.sod-m3 .sodh-text { display: flex; flex-direction: column; }
body.sod-m3 .sodh-trust { order: 1; margin: 20px 0 0; text-align: center; font-size: 14px; font-weight: 600; color: #dce8ef; }
body.sod-m3 .sodh-ctas { order: 2; margin-top: 10px; }
body.sod-m3 .sodh-title .sodh-eyebrow { font-size: 13px; }
body.sod-m3 .ob-hero { min-height: 0; padding: 32px 0 8px; }
body.sod-m3 .ob-hero > img { display: none; }
body.sod-m3 .ob-hero .hero-circle, body.sod-m3 .ob-hero .ob-scroll, body.sod-m3 .ob-hero .ob-hero-content > div { display: none !important; }
body.sod-m3 .ob-hero-headline { font-size: 34px; line-height: 1.1; }
/* Schlanke Startseite: schwere Abschnitte bleiben am Handy aus (Ladezeit, Fokus auf Patenschaft). */
body.sod-m3 .video-highlight, body.sod-m3 .support-paths, body.sod-m3 .ob-quote, body.sod-m3 .ob-story,
body.sod-m3 .ob-letter, body.sod-m3 .galerie, body.sod-m3 .tiktok-section { display: none !important; }

.sod-m3-home { padding: 10px 16px 8px; background: var(--m3-bg); color: var(--m3-text); font-family: Inter, system-ui, sans-serif; }
.sod-m3-ctas { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.sod-m3-trust { margin: 0 0 2px; text-align: center; font-size: 14px; font-weight: 600; color: #dce8ef; }
.sod-m3-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center;
  padding: 16px 12px; border-radius: 18px; background: var(--m3-surface); border: 1px solid var(--m3-line);
}
.sod-m3-stats > div { display: flex; flex-direction: column; gap: 4px; }
.sod-m3-stats > div + div { border-left: 1px solid rgba(255, 255, 255, .1); }
.sod-m3-stats strong { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--m3-text); }
.sod-m3-stats strong.is-gold { color: var(--m3-gold); }
.sod-m3-stats span { font-size: 13px; line-height: 1.3; color: var(--m3-muted); }
.sod-m3-row-head { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 12px; }
.sod-m3-row-head h2, .sod-m3-title { margin: 0; font-size: 21px !important; font-weight: 800; letter-spacing: -.01em; color: var(--m3-text); }
.sod-m3-title { margin: 26px 0 12px; }
.sod-m3-row-head a, body.sod-m3 .sodst-more-head a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font-size: 15px; font-weight: 600; color: var(--m3-gold) !important; text-decoration: none !important; }
.sod-m3-row-head { align-items: center; margin: 18px 0 6px; }
.sod-m3-swipe {
  display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.sod-m3-swipe::-webkit-scrollbar { display: none; }
.sod-m3-dog {
  flex: 0 0 156px; scroll-snap-align: start; display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden; background: var(--m3-surface); border: 1px solid var(--m3-line);
  color: var(--m3-text) !important; text-decoration: none !important;
}
.sod-m3-dog img { width: 156px; height: 156px; object-fit: cover; display: block; }
.sod-m3-dog-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.sod-m3-dog-body strong { font-size: 15px; font-weight: 700; }
.sod-m3-dog-body small { font-size: 13px; color: var(--m3-muted); }
.sod-m3-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sod-m3-steps li { display: flex; gap: 14px; align-items: flex-start; }
.sod-m3-num { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--m3-gold); color: var(--m3-gold); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.sod-m3-steps li > span:last-child { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; font-size: 14px; line-height: 1.5; color: var(--m3-muted); }
.sod-m3-steps strong { font-size: 16px; color: var(--m3-text); }
.sod-m3-teaming {
  display: flex; align-items: center; gap: 14px; margin: 22px 0 6px; padding: 14px 16px; border-radius: 18px;
  background: var(--m3-surface); border: 1px solid var(--m3-line); color: var(--m3-text) !important; text-decoration: none !important;
}
.sod-m3-teaming img { width: 92px; height: auto; flex: none; background: #fff; border-radius: 10px; padding: 6px 8px; box-sizing: border-box; }
.sod-m3-teaming span { display: flex; flex-direction: column; gap: 3px; font-size: 13px; line-height: 1.45; color: var(--m3-muted); }
.sod-m3-teaming strong { font-size: 15px; color: var(--m3-text); }
.sod-m3-teaming-members { font-style: normal; font-weight: 700; color: var(--m3-text); }
body.sod-m3 .sodst-teaser-section { padding-top: 8px; }

/* ---------- Seitenkoepfe kompakt ---------- */
body.sod-m3 .page-hero { padding: 24px 0 14px; }
body.sod-m3 .page-hero h1 { font-size: 30px; line-height: 1.1; }
body.sod-m3 .page-hero p:last-child { font-size: 15px; }
body.sod-m3 .teaming-band { padding: 10px 0; }
body.sod-m3 .teaming-inner { padding: 14px 16px; border-radius: 18px; }
body.sod-m3 .teaming-title { font-size: 18px; }
body.sod-m3 .teaming-text { font-size: 14px; }

/* ---------- Patenschaft und Spenden: zuerst die Aktion, Teaming darunter ---------- */
body.sod-m3 main:has(> #patenschaft), body.sod-m3 main:has(#spenden-widget) { display: flex; flex-direction: column; }
body.sod-m3 main:has(> #patenschaft) > *, body.sod-m3 main:has(#spenden-widget) > * { order: 3; }
body.sod-m3 main:has(> #patenschaft) > .page-hero, body.sod-m3 main:has(#spenden-widget) > .page-hero { order: 0; }
body.sod-m3 main:has(> #patenschaft) > #patenschaft, body.sod-m3 main:has(#spenden-widget) > section:has(#spenden-widget) { order: 1; }
body.sod-m3 main:has(> #patenschaft) > .teaming-band, body.sod-m3 main:has(#spenden-widget) > .teaming-band { order: 2; }
body.sod-m3 main:has(> #patenschaft) > .page-hero p:last-child, body.sod-m3 main:has(#spenden-widget) > .page-hero p:last-child {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0;
}
body.sod-m3 #patenschaft.section, body.sod-m3 main:has(#spenden-widget) > section:has(#spenden-widget) { padding-top: 8px; }

/* ---------- Patenschaft: Liste mit Filter ---------- */
body.sod-m3 #patenschaft .section-header { margin-bottom: 14px; }
body.sod-m3 #patenschaft .section-title { font-size: 22px; }
body.sod-m3 #patenschaft .section-header > p:first-child { display: none; }
body.sod-m3 #patenschaft .section-header { text-align: left; }
body.sod-m3 #patenschaft .section-subtitle { font-size: 15px; line-height: 1.5; text-align: left; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.sod-m3 #patenschaft .sod-dogs-grid { display: flex !important; flex-direction: column; gap: 12px !important; }
body.sod-m3 #patenschaft .dog-card {
  display: grid !important; grid-template-columns: 118px minmax(0, 1fr); border-radius: 18px !important; overflow: hidden;
  background: var(--m3-surface) !important; border: 1px solid var(--m3-line) !important;
}
body.sod-m3 #patenschaft .dog-card[hidden] { display: none !important; }
body.sod-m3 #patenschaft .dog-card-media { position: relative; min-height: 150px; height: 100%; }
body.sod-m3 #patenschaft .dog-card-image, body.sod-m3 #patenschaft .dog-card-video { display: block; height: 100%; aspect-ratio: auto !important; }
body.sod-m3 #patenschaft .dog-card-image img, body.sod-m3 #patenschaft .dog-card-video-frame { width: 118px; height: 100%; min-height: 150px; max-height: none !important; object-fit: cover; }
body.sod-m3 #patenschaft .dog-card-badge-wrap { position: absolute; left: 6px; right: 6px; top: 6px; }
body.sod-m3 #patenschaft .badge { padding: 4px 8px !important; font-size: 11px !important; white-space: normal; line-height: 1.2; max-width: 100%; }
/* Abzeichen bleibt im Bild (lange Texte zweizeilig), der Teilen-Knopf sitzt darunter. */
body.sod-m3 #patenschaft .dog-card-media .sodsh-card-btn { top: 52px; right: 6px; }
body.sod-m3 #patenschaft .sod-dog-thumb-strip, body.sod-m3 #patenschaft .dog-card-meta, body.sod-m3 #patenschaft .dog-card-section,
body.sod-m3 #patenschaft .dog-card-desc, body.sod-m3 #patenschaft .dog-card-sub, body.sod-m3 #patenschaft .sod-support-progress-head span,
body.sod-m3 #patenschaft .dog-card-detail-button, body.sod-m3 #patenschaft .dog-card-footer .btn-secondary:not(.dog-card-inquiry-button) { display: none !important; }
body.sod-m3 #patenschaft .dog-card-body { padding: 12px 12px 4px 14px !important; display: flex; flex-direction: column; gap: 8px; }
body.sod-m3 #patenschaft .dog-card-name { font-size: 18px !important; font-weight: 800; }
body.sod-m3 #patenschaft .sod-support-progress { margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; }
body.sod-m3 #patenschaft .sod-support-progress-head { margin-bottom: 6px !important; font-size: 13px; }
body.sod-m3 #patenschaft .sod-support-progress p { margin: 6px 0 0 !important; font-size: 13px; line-height: 1.4; }
body.sod-m3 #patenschaft .dog-card-footer { grid-column: 2; padding: 0 12px 12px 14px !important; display: flex; flex-direction: column; gap: 6px; }
body.sod-m3 #patenschaft .dog-card-footer .btn { width: 100%; box-sizing: border-box; min-height: 44px; border-radius: 12px !important; font-size: 14px !important; font-weight: 800 !important; justify-content: center; padding: 8px 12px !important; }
body.sod-m3 #patenschaft .dog-card-footer a[href*="sod_amount=5"] { background: var(--m3-gold) !important; border-color: var(--m3-gold) !important; color: #06111a !important; }
body.sod-m3 #patenschaft .dog-card-footer a[href*="sod_amount=full"] { background: transparent !important; border: 1.5px solid rgba(248, 250, 252, .35) !important; color: var(--m3-text) !important; font-weight: 700 !important; }
body.sod-m3 #patenschaft .dog-card-footer .is-disabled { opacity: .7; }
body.sod-m3 .sod-dogs-filter-row { gap: 8px; }
body.sod-m3 .sod-dogs-tags { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none; }
body.sod-m3 .sod-dogs-tags::-webkit-scrollbar { display: none; }
body.sod-m3 .sod-dogs-tag { flex: 0 0 auto; min-height: 36px; }

/* ---------- Vermittlung: kompakte Karten in zwei Spalten ---------- */
body.sod-m3 #vermittlung .sod-dogs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
/* 17.11.2026: Bereich nicht breiter als das Handy (sonst 608 px durch Kartenbreite in .sod-combined) */
body.sod-m3 .sod-combined > .combined-panel { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
body.sod-m3 #vermittlung .sod-dogs-grid > * { min-width: 0; }
/* 17.11.2026: Auswahlkarten "Hund adoptieren" / "Pate werden" am Handy aus (Handy-Leiste führt direkt hin) */
body.sod-m3 .sod-combined .combined-pathways, body.sod-m3 .sod-combined .combined-lead strong { display: none !important; }
/* 18.11.2026: Abzeichen "Verfügbar" am Handy aus (Hundekarten und Hundeseite); andere Abzeichen bleiben */
body.sod-m3 .badge.badge-verfuegbar { display: none !important; }
body.sod-m3 #vermittlung .dog-card { border-radius: 18px !important; }
body.sod-m3 #vermittlung .dog-card .sod-dog-thumb-strip, body.sod-m3 #vermittlung .dog-card .dog-card-meta, body.sod-m3 #vermittlung .dog-card .dog-card-section,
body.sod-m3 #vermittlung .dog-card .dog-card-desc, body.sod-m3 #vermittlung .dog-card .sod-support-progress, body.sod-m3 #vermittlung .dog-card .dog-card-sub { display: none !important; }
body.sod-m3 #vermittlung .dog-card-image, body.sod-m3 #vermittlung .dog-card-video { aspect-ratio: 4 / 5 !important; }
body.sod-m3 #vermittlung .dog-card-image img, body.sod-m3 #vermittlung .dog-card-video-frame { max-height: none !important; }
body.sod-m3 #vermittlung .dog-card-body { padding: 10px 12px 4px !important; }
body.sod-m3 #vermittlung .dog-card-name { font-size: 17px !important; }
body.sod-m3 #vermittlung .dog-card-footer { padding: 6px 10px 12px !important; flex-direction: column; gap: 6px; }
body.sod-m3 #vermittlung .dog-card-footer .btn { min-height: 40px; padding: 8px 10px !important; font-size: 13px !important; }

/* ---------- Hundeseite: grosses Bild, Fakten als Chips, Formular mit grossen Feldern ---------- */
body.sod-m3 .sod-dog-detail-hero { margin: 0 -16px; border-radius: 0; }
body.sod-m3 .sod-dog-detail-hero img, body.sod-m3 .sod-dog-detail-hero-img { width: 100%; aspect-ratio: 1 / 1; max-height: 420px; object-fit: cover; border-radius: 0 !important; }
body.sod-m3 .sod-dog-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
body.sod-m3 .sod-dog-detail-fact { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 13px; }
body.sod-m3 .sod-dog-detail-fact span { color: var(--m3-dim); }
body.sod-m3 .sod-dog-detail-fact span::after { content: ":"; }
body.sod-m3 .sod-dog-detail-fact strong { font-weight: 600; }
body.sod-m3 .sod-dog-detail-cta { display: flex; flex-direction: column; gap: 8px; }
body.sod-m3 .sod-dog-detail-cta .btn { width: 100%; box-sizing: border-box; justify-content: center; min-height: 48px; border-radius: 12px !important; }
body.sod-m3 .sod-dog-detail-cta a[href*="sod_transparency_report"] { display: none !important; }
body.sod-m3 .sod-sponsor-signup { padding: 18px 16px; border-radius: 18px; }
body.sod-m3 .sod-sponsor-signup h2 { font-size: 24px; letter-spacing: -.02em; }
body.sod-m3 .sod-sponsor-signup .grid-2 { grid-template-columns: 1fr; }
body.sod-m3 .sod-sponsor-signup .form-input { min-height: 52px; border-radius: 12px; font-size: 16px; }
body.sod-m3 .sod-sponsor-amount-card { padding: 16px; border-radius: 16px; }
body.sod-m3 .sod-sponsor-amount-input input { font-size: 24px; font-weight: 800; min-height: 60px; }
.sod-m3-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.sod-m3-quick-label { grid-column: 1 / -1; margin: 0 0 2px; font-size: 13px; font-weight: 700; color: var(--m3-muted); }
.sod-m3-quick button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .18); background: transparent; color: var(--m3-text); font: 800 20px/1 Inter, system-ui, sans-serif;
}
.sod-m3-quick button small { font-size: 11px; font-weight: 600; color: var(--m3-dim); }
.sod-m3-quick button.is-on { background: var(--m3-gold); border-color: var(--m3-gold); color: #06111a; }
.sod-m3-quick button.is-on small { color: #3b2a05; }
body.sod-m3 .sod-sponsor-payment-option { display: flex; gap: 12px; align-items: flex-start; min-height: 60px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .18); margin: 0 0 8px; }
body.sod-m3 .sod-sponsor-payment-option:has(input:checked) { border-color: var(--m3-gold); background: rgba(243, 199, 79, .1); }
body.sod-m3 .sod-sponsor-payment-option input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--m3-gold); flex: none; }
body.sod-m3 .sod-sponsor-signup input[type="checkbox"] { width: 24px; height: 24px; flex: none; margin: 0; accent-color: var(--m3-gold); }
body.sod-m3 .sod-sponsor-signup label:has(input[type="checkbox"]) { min-height: 44px; padding: 8px 0; cursor: pointer; font-size: 15px; line-height: 1.5; }
.sod-m3-formhead { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: rgba(243, 199, 79, .1); border: 1px solid rgba(243, 199, 79, .3); }
.sod-m3-formhead img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.sod-m3-formhead span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sod-m3-formhead small { font-size: 13px; color: var(--m3-muted); }
.sod-m3-formhead strong { font-size: 18px; font-weight: 800; color: var(--m3-text); }
.sod-m3-optional { margin: 4px 0 14px; border-radius: 14px; border: 1.5px dashed rgba(255, 255, 255, .2); }
.sod-m3-optional summary { min-height: 52px; padding: 0 14px; display: flex; align-items: center; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--m3-text); list-style: none; }
.sod-m3-optional summary::-webkit-details-marker { display: none; }
.sod-m3-optional summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--m3-gold); }
.sod-m3-optional[open] summary::after { content: "–"; }
.sod-m3-optional > p, .sod-m3-optional > fieldset { margin: 0 14px 14px !important; }
body.sod-m3 .sod-sponsor-signup-form button[type="submit"] { width: 100%; justify-content: center; min-height: 56px; border-radius: 14px; font-size: 17px; font-weight: 800; }

/* ---------- Spenden: Formular zuerst, grosse Kacheln ---------- */
body.sod-m3 .donation-layout { display: flex !important; flex-direction: column; gap: 28px; }
body.sod-m3 .donation-layout > .donation-side { order: -1; }
body.sod-m3 .donation-widget { padding: 20px 16px !important; border-radius: 20px !important; }
body.sod-m3 .donation-widget .type-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
body.sod-m3 .donation-widget .type-tab { min-height: 44px; border-radius: 11px; }
body.sod-m3 .donation-widget .amounts { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
body.sod-m3 .donation-widget .amount-btn { min-height: 64px !important; border-radius: 16px !important; font-size: 22px !important; font-weight: 800 !important; }
body.sod-m3 .donation-widget .payment-methods { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
body.sod-m3 .donation-widget .pay-method { min-height: 52px !important; border-radius: 14px !important; font-size: 15px !important; }
body.sod-m3 .donation-widget #widget-cta { min-height: 56px; font-size: 17px !important; border-radius: 14px !important; }

/* ---------- Schicksale ---------- */
/* Feed: ueber der Leiste statt dahinter */
body.sod-m3 .sodf-stage { bottom: calc(72px + env(safe-area-inset-bottom)); }
body.sod-m3.sodf-body { padding-bottom: 0; }
body.sod-m3 .sodf-admin-note { top: 62px; }
body.sod-m3 .sodf-dots small { font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .78); white-space: pre-line; }
body.sod-m3 .sodf-dots { bottom: 10px; }
body.sod-m3 .sodf-info { bottom: 84px; }
/* Klassische Liste (falls Feed aus) */
body.sod-m3 .sodst-tabs { display: flex; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
body.sod-m3 .sodst-tabs::-webkit-scrollbar { display: none; }
body.sod-m3 .sodst-tabs button { flex: 0 0 auto; min-height: 40px; }
body.sod-m3 .sodst-overview .sodst-grid { grid-template-columns: 1fr; gap: 12px; }
/* Einzelne Geschichte: grosses Titelbild */
body.sod-m3 .sodst-hero { min-height: 60vh; }
body.sod-m3 .sodst-hero-body { padding: 20px 18px; }
body.sod-m3 .sodst-chapter { scroll-margin-top: 80px; }

}

/* Handy: das Menue steckt komplett unter "Mehr" in der Leiste unten, darum kein zweites Menue (Hamburger) oben. */
@media (max-width: 767px) {
  body.sod-m3 .nav-hamburger { display: none !important; }
}

/* Handy: Shop-Knopf oben rechts statt Hamburger (header.php). Am Computer nie sichtbar. */
.sod-m3-topshop { display: none; }
@media (max-width: 767px) {
  body.sod-m3 .sod-m3-topshop { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 7px 13px; border-radius: 99px; border: 1px solid rgba(243, 199, 79, .55); color: #f3c74f; font-size: .85rem; font-weight: 700; text-decoration: none; line-height: 1; }
  body.sod-m3 .sod-m3-topshop svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  body.sod-m3 .sod-m3-topshop:active { background: rgba(243, 199, 79, .12); }
}

/* Handy: "Mehr"-Menue oben rechts (header.php), neben dem Shop-Knopf. Am Computer nie sichtbar. */
.sod-m3-topmore { display: none; }
@media (max-width: 767px) {
  /* Damit Shop und "Mehr" neben dem Logo Platz haben: Shop oben nur als Symbol (Text bleibt fuer Screenreader). */
  body.sod-m3 .sod-m3-topshop { padding: 0; width: 36px; height: 36px; justify-content: center; }
  body.sod-m3 .sod-m3-topshop span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.sod-m3 .sod-m3-topshop svg { width: 18px; height: 18px; }
  body.sod-m3 .sod-m3-topmore { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 auto; padding: 0 12px; height: 36px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #f8fafc; font: 700 .85rem/1 Inter, system-ui, sans-serif; cursor: pointer; }
  body.sod-m3 .sod-m3-topshop + .sod-m3-topmore { margin-left: 8px; }
  body.sod-m3 .sod-m3-topmore svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  body.sod-m3 .sod-m3-topmore[aria-expanded="true"], body.sod-m3 .sod-m3-topmore:active { background: rgba(255, 255, 255, .14); }
  /* 25.11.2026: "Mehr" oben statt in der Leiste; Shop-Knopf oben größer, golden und mit Text. */
  .sod-m3-tabs-a #sod-m3-more { display: none; }
  body.sod-m3 .nav-actions { display: none; }
  body.sod-m3 .sod-m3-topshop { width: auto; height: 40px; padding: 0 12px; gap: 6px; background: #f3c74f; border-color: #f3c74f; color: #06111a; font-size: .9rem; }
  body.sod-m3 .sod-m3-topshop + .sod-m3-topmore { margin-left: 0; padding: 0 8px; gap: 5px; font-size: .8rem; }
  body.sod-m3 .sod-m3-topshop span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  body.sod-m3 .sod-m3-topshop svg { width: 20px; height: 20px; }
  body.sod-m3 .sod-m3-topshop:active { background: #e0b43c; }
  body.sod-m3 .sod-m3-topmore { height: 40px; }
}
@media (max-width: 369px) {
  /* Schmale Handys: "Mehr" oben nur als Symbol (Name per aria-label). */
  body.sod-m3 .sod-m3-topmore span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.sod-m3 .sod-m3-topshop + .sod-m3-topmore { width: 40px; padding: 0; justify-content: center; }
}
/* Bosnisch: "Prodavnica"/"Više" sind länger – "Mehr" oben nur als Symbol, Shop etwas kompakter (25.11.2026). */
@media (max-width: 767px) {
  html[lang^="bs"] body.sod-m3 .sod-m3-topshop { padding: 0 10px; font-size: .85rem; }
  html[lang^="bs"] body.sod-m3 .sod-m3-topmore span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html[lang^="bs"] body.sod-m3 .sod-m3-topshop + .sod-m3-topmore { width: 40px; padding: 0; justify-content: center; }
}

/* Handy: Hundeseite – ein Hochkant-Video (z. B. Kira) drückte die Grid-Spalte auf ~800 px, alles rechts abgeschnitten. */
@media (max-width: 767px) {
  .sod-dog-detail { grid-template-columns: minmax(0, 1fr) !important; }
  .sod-dog-detail > * { min-width: 0; }
}


/* Variante A (11.11.2026): ruhige Leiste – Start, Schicksale, goldenes "Helfen", Shop, Mehr.
   Gold sind nur der aktive Punkt und "Helfen"; Pate werden, Spenden und Teaming in der Helfen-Auswahl. */
@media (max-width: 767px) {
  .sod-m3-tabs-a { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); padding-left: 4px; padding-right: 4px; }
  .sod-m3-tabs-a.sod-m3-tabs-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.25fr) minmax(0, 1fr); }
  .sod-m3-tabs-a.sod-m3-tabs-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); }
  .sod-m3-tabs-a .sod-m3-tab { font-size: 12px; letter-spacing: -.01em; }
  /* 25.11.2026: 6 Knöpfe (Start, Schicksale, Helfen, Adoptieren, Shop, Mehr) in einer Zeile, sonst bricht "Mehr" um und der Hilfe-Knopf liegt auf "Shop". */
  .sod-m3-tabs-a.sod-m3-tabs-6 { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)); padding-left: 2px; padding-right: 2px; }
  .sod-m3-tabs-a.sod-m3-tabs-6 .sod-m3-tab { font-size: 10.5px; letter-spacing: -.02em; }
  .sod-m3-tabs-a.sod-m3-tabs-6 .sod-m3-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  /* Shop-Knopf hervorgehoben: größeres Symbol und Schrift (Wunsch 25.11.2026). */
  .sod-m3-tabs-a.sod-m3-tabs-6 { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); }
  .sod-m3-tabs-a .sod-m3-tab-shop svg { width: 30px; height: 30px; }
  .sod-m3-tabs-a .sod-m3-tab.sod-m3-tab-shop { font-size: 12.5px; font-weight: 700; }
  .sod-m3-tabs-a .sod-m3-ring { width: 50px; height: 50px; margin-top: -22px; box-shadow: 0 4px 12px rgba(243, 199, 79, .25); }
  .sod-m3-tabs-a .sod-m3-ring svg { width: 26px; height: 26px; }
  .sod-m3-help-sheet .sod-m3-sheet-head { padding-top: 20px; }
  .sod-m3-help-sheet .sod-m3-sheet-head strong { font-size: 17px; letter-spacing: 0; }
  .sod-m3-help-sheet .sod-m3-sheet-body { padding-top: 14px; }
}
