/* ===========================================================
   Düdofamily – App-Rahmen
   Kopfzeile, Menüs, Handy-Tabbar, Dialoge, Suche, Toasts,
   Seitenrahmen, Dashboard. Nur Tokens verwenden.
   Umbruch Handy/Desktop: 820px
   =========================================================== */

/* ---------- Seitenrahmen ---------- */
/* Globale Stile aus dem Website-Editor setzen body-Innenabstand (15/36px) –
   das neue Layout regelt Ränder selbst (Kopfzeile/Fußzeile randlos). */
body { min-height: 100vh; padding: 0 !important; }
.wp-site-blocks { padding-top: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > main,
.wp-site-blocks > .wp-block-group:not(.duedo-appbar):not(.duedo-footer) { margin-top: 0; }

.duedo-page {
	margin-top: var(--sp-5) !important;
	margin-bottom: var(--sp-6);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-1);
	border-radius: var(--r-lg) !important;
	max-width: 1100px;
	margin-inline: auto !important;
	width: calc(100% - 2 * var(--sp-4));
	box-sizing: border-box;
	background: var(--surface) !important;
}
/* Mitglieder-Seiten mit Listen/Formularen: mehr Breite als reiner Lesetext (720px) */
.duedo-page:has(.wp-block-post-content [class*="duedo-"]) > *,
.duedo-page:has(.wp-block-post-content [class*="duedo-"]) .wp-block-post-content > * { max-width: 980px; }
.duedo-page > .wp-block-post-title {
	font-size: clamp(1.8rem, 4vw, 2.4rem);
	margin-bottom: var(--sp-4);
}

/* ---------- Kopfzeile ---------- */
.duedo-appbar {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 90;
	height: var(--appbar-h);
	background: color-mix(in srgb, var(--surface) 90%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
	margin: 0 !important;
	padding: 0 !important;
}
.duedo-appbar-inner {
	max-width: 1200px;
	height: 100%;
	margin: 0 auto;
	padding: 0 var(--sp-4);
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	box-sizing: border-box;
}
.duedo-brand {
	display: inline-flex; align-items: center; gap: 10px;
	text-decoration: none; color: var(--heading) !important; flex: none;
}
.duedo-brand-mark {
	width: 36px; height: 36px; border-radius: 10px;
	background: var(--accent); color: var(--on-accent);
	display: grid; place-items: center;
	font: 400 1.1rem/1 var(--font-script);
}
.duedo-brand-name { font: 400 1.6rem/1 var(--font-script); }

/* Öffentliches Menü (Navigationsblock) */
.duedo-public-nav { margin-left: auto; display: flex; align-items: center; }
.duedo-public-nav .wp-block-navigation { margin: 0 !important; }
.duedo-public-nav .wp-block-navigation { font-size: var(--fs-sm); font-weight: 600; gap: var(--sp-1); }
.duedo-public-nav .wp-block-navigation-item__content {
	padding: 8px 12px !important; border-radius: var(--r-pill); color: var(--text) !important; text-decoration: none;
}
.duedo-public-nav .wp-block-navigation-item__content:hover { background: var(--accent-soft); color: var(--accent-strong) !important; }
.duedo-public-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--surface) !important; color: var(--heading) !important; }

/* Mitglieder-Menü */
.duedo-mainnav { display: flex; align-items: center; gap: 2px; margin-left: var(--sp-2); }
.duedo-mainnav > a,
.duedo-more-btn {
	display: inline-flex; align-items: center; gap: 6px;
	min-height: 40px; padding: 0 12px; border-radius: var(--r-pill);
	font: 600 var(--fs-sm)/1 var(--font-body); color: var(--text);
	text-decoration: none; background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.duedo-mainnav > a:hover,
.duedo-more-btn:hover,
.duedo-mainnav > a[aria-current] { background: var(--accent-soft); color: var(--accent-strong); }
.duedo-mainnav .duedo-i { width: 1.05em; height: 1.05em; }
.duedo-more { position: relative; display: flex; align-items: center; }
.duedo-more-panel {
	position: absolute; top: calc(100% + 8px); left: 0; z-index: 95;
	width: 540px; max-height: calc(100vh - 120px); overflow: auto;
	padding: var(--sp-3);
	display: grid; grid-template-columns: 1fr 1fr; gap: 2px var(--sp-3);
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
	box-shadow: var(--shadow-3);
	animation: duedo-pop .18s var(--ease);
}
.duedo-more-panel[hidden] { display: none; }
.duedo-more-panel .duedo-menu-h { grid-column: 1 / -1; }

.duedo-menu-h {
	font-size: var(--fs-xs) !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
	color: var(--text-muted); margin: var(--sp-3) var(--sp-2) var(--sp-1) !important;
}
.duedo-menu-link {
	display: flex; align-items: center; gap: var(--sp-3);
	min-height: var(--tap); padding: 8px 10px; border-radius: var(--r-sm);
	color: var(--heading) !important; text-decoration: none; font-weight: 600; font-size: var(--fs-sm);
}
.duedo-menu-link:hover, .duedo-menu-link[aria-current] { background: var(--accent-soft); }
.duedo-menu-ico {
	width: 36px; height: 36px; flex: none; border-radius: 10px;
	display: grid; place-items: center;
	background: var(--surface-2); color: var(--accent-strong); border: 1px solid var(--line);
}
.duedo-menu-txt { flex: 1; min-width: 0; }
.duedo-menu-txt small { display: block; font-weight: 400; color: var(--text-muted); font-size: var(--fs-xs); line-height: 1.35; }

.duedo-appbar-actions { margin-left: auto; display: flex; align-items: center; gap: var(--sp-2); }
.duedo-searchtrigger {
	display: flex; align-items: center; gap: var(--sp-2);
	min-height: 40px; min-width: 200px; padding: 0 10px 0 14px;
	border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface-2);
	color: var(--text-muted); font: 400 var(--fs-sm) var(--font-body); cursor: pointer;
}
.duedo-searchtrigger:hover { border-color: var(--accent); }
.duedo-searchtrigger kbd, .duedo-search-foot kbd {
	margin-left: auto; font: 600 11px var(--font-body); color: var(--text-muted);
	border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: var(--surface);
}
.duedo-iconbtn {
	width: var(--tap); height: var(--tap); flex: none;
	display: inline-grid; place-items: center; position: relative;
	border: 0; border-radius: 50%; background: transparent; color: var(--heading); cursor: pointer;
}
.duedo-iconbtn:hover { background: var(--accent-soft); }
.duedo-iconbtn .duedo-i { width: 22px; height: 22px; }
.duedo-avatarbtn { position: relative; border: 0; background: none; padding: 2px; border-radius: 50%; cursor: pointer; }
.duedo-avatar-count { position: absolute; top: -2px; right: -4px; box-shadow: 0 0 0 2px var(--surface); }
.duedo-avatar {
	--s: 36px;
	width: var(--s); height: var(--s); flex: none; border-radius: 50%; overflow: hidden;
	display: inline-grid; place-items: center;
	background: linear-gradient(135deg, var(--accent), var(--accent-strong));
	color: var(--on-accent); font: 700 calc(var(--s) * .38) / 1 var(--font-body);
}
.duedo-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Brotkrumen */
.duedo-crumbs {
	display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
	font-size: var(--fs-sm); color: var(--text-muted); margin: 0 0 var(--sp-2);
}
.duedo-crumbs a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; color: var(--accent-strong); padding: 4px 0; }
.duedo-crumbs a:hover { text-decoration: underline; }
.duedo-crumb-sep { width: 14px; height: 14px; opacity: .6; }
.duedo-back-to-dash { display: none; } /* ersetzt durch Brotkrumen + Tabbar */

/* ---------- Tabbar (nur Handy) ---------- */
.duedo-tabbar { display: none; }
.duedo-only-mobile { display: none !important; }

/* ---------- Dialoge (Basis) ---------- */
.duedo-dialog {
	border: 0; padding: 0; background: transparent; color: var(--text);
	max-width: none; max-height: none; overflow: visible;
}
.duedo-dialog::backdrop { background: rgba(24, 14, 12, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.duedo-dialog-card {
	background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-3);
	padding: var(--sp-5); animation: duedo-pop .2s var(--ease);
}
.duedo-dialog h2 { font: 700 var(--fs-lg)/1.3 var(--font-body); color: var(--heading); margin: 0 0 var(--sp-2); }
.duedo-dialog-actions { display: flex; gap: var(--sp-2); justify-content: flex-end; flex-wrap: wrap; margin-top: var(--sp-5); }
html:has(dialog[open]) { overflow: hidden; }

.duedo-confirm { width: min(440px, calc(100% - 32px)); margin: auto; }
.duedo-confirm p { margin: 0; line-height: 1.55; }
.duedo-confirm-ico {
	width: 48px; height: 48px; border-radius: 50%; margin-bottom: var(--sp-3);
	display: grid; place-items: center; background: var(--danger-soft); color: var(--danger);
}
.duedo-confirm-ico .duedo-i { width: 24px; height: 24px; }

/* Bottom-Sheet (Handy) / Popover (Desktop) */
.duedo-sheet { width: min(560px, calc(100% - 32px)); margin: 12vh auto auto; }
.duedo-sheet .duedo-dialog-card { max-height: 76vh; overflow: auto; }
.duedo-sheet h2 { font: 400 var(--fs-xl)/1.2 var(--font-script); margin-bottom: var(--sp-4); }
.duedo-sheet-grab { display: none; }
.duedo-sheet-cancel { width: 100%; margin-top: var(--sp-3); }
.duedo-quick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.duedo-quick a {
	display: flex; flex-direction: column; gap: 6px; padding: var(--sp-4);
	border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2);
	text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s;
}
.duedo-quick a:hover { border-color: var(--accent); transform: translateY(-2px); }
.duedo-quick b { color: var(--heading); font-size: var(--fs-sm); }
.duedo-quick small { color: var(--text-muted); font-size: var(--fs-xs); line-height: 1.4; }
.duedo-quick-ico {
	width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
	background: var(--accent); color: var(--on-accent);
}

.duedo-me { margin: calc(var(--appbar-h) + 8px) max(16px, calc((100vw - 1200px) / 2 + 16px)) auto auto; width: 380px; }
.duedo-me-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.duedo-me-head h2 { font: 700 var(--fs-lg)/1.2 var(--font-body); margin: 0; }
.duedo-me-head small { color: var(--text-muted); font-size: var(--fs-xs); }
.duedo-me-head .duedo-iconbtn { margin-left: auto; }
.duedo-me-list { display: flex; flex-direction: column; gap: 2px; padding-bottom: var(--sp-2); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-2); }
.duedo-me-list:last-child { border-bottom: 0; margin-bottom: 0; }
.duedo-setting { display: flex; align-items: center; gap: var(--sp-3); min-height: 52px; padding: 0 10px; color: var(--heading); font-weight: 600; font-size: var(--fs-sm); }
.duedo-setting > .duedo-i { color: var(--accent-strong); }
.duedo-setting > span { flex: 1; }
.duedo-seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px; }
.duedo-seg button {
	border: 0; background: none; min-height: 34px; padding: 0 12px; border-radius: var(--r-pill);
	font: 700 var(--fs-xs) var(--font-body); color: var(--text-muted); cursor: pointer;
}
.duedo-seg button[aria-pressed="true"] { background: var(--surface); color: var(--heading); box-shadow: var(--shadow-1); }

/* ---------- Suche ---------- */
.duedo-search { width: min(680px, calc(100% - 32px)); margin: 10vh auto auto; }
.duedo-search .duedo-dialog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 76vh; }
.duedo-search-head { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--line); margin: 0; }
.duedo-search-head > .duedo-i { color: var(--text-muted); width: 22px; height: 22px; }
.duedo-search-head input {
	flex: 1; border: 0 !important; box-shadow: none !important; background: none;
	min-height: 52px; font-size: var(--fs-lg); padding: 0; outline: none;
}
.duedo-search-head input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.duedo-search-results { overflow: auto; padding: var(--sp-2); flex: 1; min-height: 120px; }
.duedo-sr-h { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: var(--sp-3) var(--sp-2) var(--sp-1); }
.duedo-sr-item {
	display: flex; gap: var(--sp-3); align-items: center; padding: 10px var(--sp-2);
	border-radius: var(--r-sm); text-decoration: none; color: var(--text);
}
.duedo-sr-item:hover, .duedo-sr-item.is-sel { background: var(--accent-soft); }
.duedo-sr-item b { color: var(--heading); font-size: var(--fs-sm); display: block; }
.duedo-sr-item small { display: block; color: var(--text-muted); font-size: var(--fs-xs); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.duedo-sr-item mark, .duedo-search-snip mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.duedo-sr-item .duedo-menu-ico { width: 34px; height: 34px; }
.duedo-sr-all { display: flex; justify-content: center; padding: var(--sp-2); }
.duedo-sr-hint { text-align: center; color: var(--text-muted); padding: var(--sp-5) var(--sp-4); font-size: var(--fs-sm); }
.duedo-search-foot { display: flex; gap: var(--sp-4); padding: var(--sp-2) var(--sp-4); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-muted); }
.duedo-search-foot kbd { margin: 0 2px 0 0; }
.duedo-spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: duedo-spin .7s linear infinite; margin: var(--sp-5) auto; }
@keyframes duedo-spin { to { transform: rotate(360deg); } }

/* ---------- Toasts ---------- */
.duedo-toasts {
	position: fixed; left: 50%; bottom: var(--sp-5); transform: translateX(-50%); z-index: 200;
	display: flex; flex-direction: column; gap: var(--sp-2); width: min(460px, calc(100% - 24px)); pointer-events: none;
}
.duedo-toast {
	pointer-events: auto; display: flex; align-items: center; gap: var(--sp-3);
	padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-4); border-radius: var(--r-md);
	background: var(--dark); color: var(--on-dark); box-shadow: var(--shadow-3);
	font-size: var(--fs-sm); animation: duedo-pop .2s var(--ease);
}
:root[data-theme="dark"] .duedo-toast { background: #f3ece9; color: #241614; }
.duedo-toast .duedo-i { flex: none; }
.duedo-toast button {
	margin-left: auto; min-height: 36px; padding: 0 12px; border-radius: var(--r-pill);
	border: 0; background: rgba(255, 255, 255, .12); color: inherit; font: 700 var(--fs-xs) var(--font-body); cursor: pointer;
}

/* ---------- Fußzeile ---------- */
.duedo-footer {
	margin-top: var(--sp-7) !important;
	padding: var(--sp-6) var(--sp-4) !important;
	background: var(--dark);
	color: var(--on-dark-muted);
	font-size: var(--fs-sm);
}
.duedo-footer p { margin: var(--sp-1) auto !important; color: var(--on-dark-muted); }
.duedo-footer-brand { font: 400 1.8rem/1.2 var(--font-script) !important; color: var(--on-dark) !important; }
.duedo-footer a { color: var(--on-dark) !important; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--on-dark) 40%, transparent); }
.duedo-footer a:hover { text-decoration-color: currentColor; }

/* Alt-Menü (☰ Menü unten rechts) ist durch Kopfzeile/Tabbar ersetzt */
.duedo-fab, .duedo-fabmenu { display: none !important; }

/* ---------- Startseite (öffentlich) ---------- */
/* Ohne body-Innenabstand (s. Seitenrahmen) brauchen die Abschnitte unter dem Hero einen eigenen Seitenrand */
.home .wp-site-blocks > .wp-block-group:not(.duedo-appbar):not(.duedo-footer) { padding-inline: var(--sp-4); }
.wp-block-cover { border-radius: 0 0 var(--r-lg) var(--r-lg); overflow: hidden; }
.wp-block-cover .wp-block-heading { text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.duedo-home-blogs .wp-block-post-template > li > .wp-block-group {
	height: 100%; box-sizing: border-box; border: 1px solid var(--line); box-shadow: var(--shadow-1);
	border-radius: var(--r-md) !important; transition: transform .15s, box-shadow .15s;
}
.duedo-home-blogs .wp-block-post-template > li > .wp-block-group:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.duedo-home-blogs .wp-block-post-title a { text-decoration: none; color: var(--heading); }

/* ===========================================================
   DASHBOARD (/mitglieder/)
   =========================================================== */
.duedo-dash { --gap: var(--sp-5); }
.duedo-hello {
	position: relative; overflow: hidden; isolation: isolate;
	border-radius: var(--r-lg); color: #fff;
	padding: var(--sp-6) var(--sp-5); min-height: 200px;
	display: flex; flex-direction: column; justify-content: flex-end;
	box-shadow: var(--shadow-2); margin-bottom: var(--sp-2);
}
.duedo-hello > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.duedo-hello::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(100deg, rgba(36, 22, 20, .88) 0%, rgba(36, 22, 20, .6) 55%, rgba(36, 22, 20, .2) 100%);
}
.duedo-hello h2 { color: #fff !important; font: 400 clamp(1.9rem, 4vw, 2.8rem)/1.15 var(--font-script) !important; margin: 0 !important; }
.duedo-hello p { margin: var(--sp-1) 0 0 !important; color: rgba(255, 255, 255, .92) !important; max-width: 56ch; }
.duedo-hello-stats { display: flex; gap: var(--sp-5); flex-wrap: wrap; margin-top: var(--sp-4); }
.duedo-hello-stats b { display: block; font-size: var(--fs-xl); line-height: 1.1; color: #fff; }
.duedo-hello-stats span { font-size: var(--fs-xs); color: rgba(255, 255, 255, .85); }
.duedo-hello-search {
	display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); max-width: 460px;
	min-height: 48px; padding: 0 var(--sp-4); border-radius: var(--r-pill); border: 0; cursor: text;
	background: rgba(255, 255, 255, .95); color: #6b6b6b; font: 400 var(--fs-md) var(--font-body); text-align: left;
}

.duedo-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin: var(--sp-6) 0 var(--sp-3); }
.duedo-sec-head h2 { font: 400 var(--fs-xl)/1.2 var(--font-script) !important; margin: 0 !important; }
.duedo-sec-head a { font-size: var(--fs-sm); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }

.duedo-todos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--sp-3); }
.duedo-todo {
	display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4);
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1);
	text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.duedo-todo:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--accent-light); color: var(--text); }
.duedo-todo-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-strong); }
.duedo-todo-ico .duedo-i { width: 22px; height: 22px; }
.duedo-todo.is-warn .duedo-todo-ico { background: var(--warn-soft); color: var(--warn); }
.duedo-todo.is-ok .duedo-todo-ico { background: var(--ok-soft); color: var(--ok); }
.duedo-todo h3 { font: 700 var(--fs-md)/1.3 var(--font-body) !important; margin: 0 !important; color: var(--heading); }
.duedo-todo p { margin: 2px 0 var(--sp-2) !important; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.45; }
.duedo-todo .duedo-todo-cta { font-size: var(--fs-sm); font-weight: 700; color: var(--accent-strong); display: inline-flex; align-items: center; gap: 4px; }
.duedo-alldone { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--r-md); background: var(--ok-soft); color: var(--ok); font-weight: 600; }

.duedo-dash-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-5); }
.duedo-list-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); overflow: hidden; }
.duedo-ev { display: flex; gap: var(--sp-4); padding: var(--sp-3) var(--sp-4); align-items: center; text-decoration: none; color: var(--text); }
.duedo-ev + .duedo-ev, .duedo-feed + .duedo-feed { border-top: 1px solid var(--line); }
.duedo-ev:hover, .duedo-feed:hover { background: var(--surface-2); color: var(--text); }
.duedo-datebox { width: 56px; flex: none; text-align: center; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.duedo-datebox .m { display: block; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 2px 0; }
.duedo-datebox .d { display: block; font-size: 1.35rem; font-weight: 700; color: var(--heading); line-height: 1.3; }
.duedo-datebox .w { display: block; font-size: 11px; color: var(--text-muted); padding-bottom: 3px; }
.duedo-ev-body { flex: 1; min-width: 0; }
.duedo-ev-body b { display: block; color: var(--heading); font-size: var(--fs-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duedo-ev-meta { display: flex; gap: var(--sp-3); flex-wrap: wrap; font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
.duedo-ev-meta span { display: inline-flex; align-items: center; gap: 4px; }
.duedo-ev-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-strong); }
.duedo-list-empty { padding: var(--sp-5) var(--sp-4); text-align: center; color: var(--text-muted); font-size: var(--fs-sm); }

.duedo-feed { display: flex; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); align-items: center; text-decoration: none; color: var(--text); }
.duedo-feed-thumb { width: 48px; height: 48px; border-radius: 10px; flex: none; object-fit: cover; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; overflow: hidden; }
.duedo-feed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.duedo-feed-body { flex: 1; min-width: 0; }
.duedo-feed-body b { color: var(--heading); display: block; font-size: var(--fs-sm); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.duedo-feed-body small { color: var(--text-muted); font-size: var(--fs-xs); }
.duedo-feed-new { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

.duedo-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: var(--sp-3); }
.duedo-area {
	position: relative; display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4);
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1);
	text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.duedo-area:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--accent); color: var(--text); }
.duedo-area-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.duedo-area-ico .duedo-i { width: 22px; height: 22px; }
.duedo-area b { color: var(--heading); font-size: var(--fs-md); }
.duedo-area small { color: var(--text-muted); font-size: var(--fs-xs); line-height: 1.45; }
.duedo-area .duedo-count { position: absolute; top: 12px; right: 12px; }

.duedo-admin-strip {
	margin-top: var(--sp-6); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-lg);
	background: var(--surface-2); border: 1px dashed var(--accent-light);
	display: flex; gap: var(--sp-3) var(--sp-4); align-items: center; flex-wrap: wrap;
}
.duedo-admin-strip h2 { font: 700 var(--fs-lg)/1.2 var(--font-body) !important; margin: 0 !important; display: flex; align-items: center; gap: 8px; }
.duedo-admin-strip .duedo-admin-links { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-left: auto; }
.duedo-admin-strip .duedo-btn .duedo-count { margin-left: 2px; }

/* Dashboard volle Breite nutzen */
.duedo-page:has(.duedo-dash) { max-width: 1200px; }
.duedo-page:has(.duedo-dash) > .wp-block-post-title,
.duedo-page:has(.duedo-dash) > .duedo-crumbs { display: none; }
.duedo-page:has(.duedo-dash) > *,
.duedo-page:has(.duedo-dash) .wp-block-post-content > * { max-width: none !important; }
.duedo-page:has(.duedo-dash) > .wp-block-post-content { margin-top: 0 !important; }
.duedo-area b { hyphens: manual; overflow-wrap: break-word; }

/* ===========================================================
   HANDY (≤ 820px)
   =========================================================== */
@media (max-width: 820px) {
	:root { --appbar-h: 56px; }
	.duedo-mainnav, .duedo-searchtrigger, .duedo-only-desktop { display: none !important; }
	.duedo-only-mobile { display: revert !important; }
	.duedo-iconbtn.duedo-only-mobile { display: inline-grid !important; }
	.duedo-brand-name { font-size: 1.35rem; }
	.duedo-brand-mark { width: 32px; height: 32px; font-size: 1rem; }
	.duedo-appbar-inner { gap: var(--sp-2); padding: 0 var(--sp-2) 0 var(--sp-4); }
	.duedo-appbar-login span { display: none; }
	.duedo-appbar-login { width: var(--tap); padding: 0 !important; border-radius: 50%; }

	body.logged-in { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
	.duedo-tabbar {
		display: grid; grid-template-columns: repeat(5, 1fr);
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom);
		background: color-mix(in srgb, var(--surface) 94%, transparent);
		-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
		border-top: 1px solid var(--line);
	}
	.duedo-tabbar > a, .duedo-tabbar > button {
		position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
		font: 600 11px/1 var(--font-body); color: var(--text-muted); text-decoration: none;
		background: none; border: 0; cursor: pointer; min-height: var(--tap);
	}
	.duedo-tabbar .duedo-i { width: 24px; height: 24px; }
	.duedo-tabbar > a[aria-current] { color: var(--accent-strong); }
	.duedo-tabbar > a[aria-current] .duedo-i { stroke-width: 2.5; }
	.duedo-tabbar .duedo-count { position: absolute; top: 5px; left: calc(50% + 4px); box-shadow: 0 0 0 2px var(--surface); }
	.duedo-tab-plus { align-self: start; }
	.duedo-tab-plus > span {
		width: 56px; height: 56px; border-radius: 50%; margin-top: -20px;
		display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
		border: 4px solid var(--bg);
		box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 50%, transparent);
	}
	.duedo-tab-plus .duedo-i { width: 26px; height: 26px; }

	/* Seiten luftiger, aber ohne Doppel-Ränder */
	.duedo-page {
		width: 100%; margin-top: 0 !important; border-radius: 0 !important; border-left: 0; border-right: 0;
		padding: var(--sp-4) var(--sp-4) var(--sp-6) !important;
	}
	.duedo-footer { margin-top: var(--sp-5) !important; }

	/* Sheets von unten */
	.duedo-sheet, .duedo-me { width: 100%; max-width: 100%; margin: auto 0 0; }
	.duedo-sheet .duedo-dialog-card {
		border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 88vh;
		padding: var(--sp-2) var(--sp-4) calc(var(--sp-5) + env(safe-area-inset-bottom));
		animation: duedo-up .28s var(--ease);
	}
	.duedo-sheet-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 4px auto var(--sp-3); }

	/* Suche als Vollbild */
	.duedo-search { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; }
	.duedo-search .duedo-dialog-card { border-radius: 0; height: 100%; max-height: 100%; }
	.duedo-search-foot { display: none; }

	.duedo-toasts { bottom: calc(var(--tabbar-h) + var(--sp-3) + env(safe-area-inset-bottom)); }

	/* Dashboard */
	.duedo-hello { padding: var(--sp-5) var(--sp-4); min-height: 180px; border-radius: var(--r-md); }
	.duedo-hello-stats { gap: var(--sp-4); }
	.duedo-dash-cols { grid-template-columns: 1fr; gap: 0; }
	.duedo-todos {
		display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		scroll-padding-inline: var(--sp-4);
		margin: 0 calc(var(--sp-4) * -1); padding: 2px var(--sp-4) var(--sp-2);
	}
	.duedo-todos::-webkit-scrollbar { display: none; }
	.duedo-todo { flex: 0 0 84%; scroll-snap-align: start; }
	.duedo-todos > .duedo-todo:only-child { flex-basis: 100%; }
	.duedo-areas { grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
	.duedo-area { align-items: center; text-align: center; padding: var(--sp-3) var(--sp-1); }
	.duedo-area small { display: none; }
	.duedo-area b { font-size: var(--fs-xs); line-height: 1.3; }
	.duedo-area .duedo-count { top: 6px; right: 6px; }
	.duedo-admin-strip { padding: var(--sp-4); display: block; }
	.duedo-admin-strip h2 { margin-bottom: var(--sp-3) !important; }
	.duedo-admin-strip .duedo-admin-links { margin-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
	.duedo-admin-strip .duedo-admin-links > a { justify-content: flex-start; white-space: normal; text-align: left; line-height: 1.25; padding: 6px 10px; border-radius: var(--r-sm); min-height: 44px; }
	.duedo-sec-head { margin-top: var(--sp-5); }
	.duedo-ev > .duedo-btn { display: none; } /* ganze Zeile ist antippbar */
	.duedo-ev { gap: var(--sp-3); }
	.duedo-sec-head h2 { font-size: var(--fs-lg) !important; }
}
@media (max-width: 380px) {
	.duedo-quick { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .duedo-hide-sm { display: none; } }

/* Termin-Teaser der öffentlichen Startseite */
.duedo-event-teaser { max-width: 760px; margin: 0 auto; }
.duedo-event-teaser h2 { margin-bottom: var(--sp-4); }
