/* ==========================================================================
   Hair-Diary – Frontend Styles
   Alles unter .hd-app gescoped. Farben über CSS-Variablen überschreibbar
   (z. B. im Theme/Elementor Custom CSS).
   ========================================================================== */

.hd-app,
.hd-sidebar {
	--hd-accent:        #04342C; /* Dunkelgrün (Markenfarbe) */
	--hd-accent-2:      #1D9E75; /* Signalgrün */
	--hd-bg:            #ffffff;
	--hd-surface:       #ffffff;
	--hd-surface-alt:   #f7f6f4;
	--hd-border:        #e7e4df;
	--hd-text:          #1f2421;
	--hd-muted:         #7c7973;
	--hd-danger:        #b32d2e;
	--hd-radius:        14px;
	--hd-radius-sm:     10px;
	--hd-shadow:        0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05);

	max-width: 920px;
	margin: 0 auto;
	color: var(--hd-text);
	font-size: 16px;
	line-height: 1.55;
}

.hd-app *,
.hd-app *::before,
.hd-app *::after { box-sizing: border-box; }

.hd-app h2, .hd-app h3, .hd-app h4 { color: var(--hd-text); margin: 0 0 .5em; line-height: 1.25; }
.hd-app p { margin: 0 0 .8em; }
.hd-muted { color: var(--hd-muted); }

/* ---------- Karten ---------- */
.hd-card {
	background: var(--hd-surface);
	border: 1px solid var(--hd-border);
	border-radius: var(--hd-radius);
	padding: 20px;
	margin-bottom: 18px;
	box-shadow: var(--hd-shadow);
}
.hd-empty { text-align: center; color: var(--hd-muted); }

/* ---------- Header ---------- */
.hd-header {
	display: flex; justify-content: space-between; align-items: center;
	gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.hd-header-hello { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.15rem; }
.hd-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hd-accent-2); display: inline-block; }
.hd-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.hd-stat {
	background: var(--hd-surface-alt); border: 1px solid var(--hd-border);
	border-radius: var(--hd-radius-sm); padding: 8px 14px; text-align: center; min-width: 74px;
}
.hd-stat strong { display: block; font-size: 1.35rem; color: var(--hd-accent); line-height: 1.1; }
.hd-stat span { font-size: .78rem; color: var(--hd-muted); }

/* ---------- Navigation ---------- */
.hd-nav {
	display: flex; gap: 4px; flex-wrap: wrap;
	border-bottom: 1px solid var(--hd-border); margin-bottom: 20px;
}
.hd-nav-item {
	padding: 10px 16px; text-decoration: none; color: var(--hd-muted);
	font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px;
	border-radius: 8px 8px 0 0; transition: color .15s, border-color .15s, background .15s;
}
.hd-nav-item:hover { color: var(--hd-text); background: var(--hd-surface-alt); }
.hd-nav-active { color: var(--hd-accent); border-bottom-color: var(--hd-accent-2); }

/* ---------- Buttons ---------- */
.hd-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
	font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none;
	transition: transform .05s, background .15s, border-color .15s, color .15s; line-height: 1;
}
.hd-btn:active { transform: translateY(1px); }
.hd-btn-primary { background: var(--hd-accent); color: #fff; }
.hd-btn-primary:hover { background: var(--hd-accent-2); color: #fff; }
.hd-btn-ghost { background: transparent; border-color: var(--hd-border); color: var(--hd-text); }
.hd-btn-ghost:hover { background: var(--hd-surface-alt); }
.hd-btn-danger { background: transparent; border-color: #e6c9c9; color: var(--hd-danger); }
.hd-btn-danger:hover { background: #fbeeee; }
.hd-btn-sm { padding: 6px 12px; font-size: .85rem; }

/* ---------- Toolbar ---------- */
.hd-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.hd-toolbar h3 { margin: 0; }
.hd-back { text-decoration: none; color: var(--hd-muted); font-weight: 600; }
.hd-back:hover { color: var(--hd-text); }

/* ---------- Hinweise ---------- */
.hd-notice { padding: 12px 16px; border-radius: var(--hd-radius-sm); margin-bottom: 16px; font-size: .95rem; }
.hd-notice a { color: inherit; font-weight: 700; }
.hd-notice-success { background: #e8f6ef; color: #14603f; border: 1px solid #bfe6d3; }
.hd-notice-error   { background: #fbeeee; color: #8a2222; border: 1px solid #eecbcb; }
.hd-notice-info    { background: #eef3fb; color: #274b78; border: 1px solid #cdddf1; }

/* ---------- Formulare ---------- */
.hd-form .hd-field { margin-bottom: 16px; }
.hd-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.hd-field-check label { font-weight: 500; display: flex; align-items: flex-start; gap: 8px; }
.hd-app input[type=text],
.hd-app input[type=date],
.hd-app input[type=file],
.hd-app select,
.hd-app textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--hd-border);
	border-radius: var(--hd-radius-sm); font-size: 1rem; font-family: inherit;
	background: #fff; color: var(--hd-text);
}
.hd-app textarea { resize: vertical; }
.hd-app input:focus, .hd-app select:focus, .hd-app textarea:focus {
	outline: none; border-color: var(--hd-accent-2); box-shadow: 0 0 0 3px rgba(29,158,117,.15);
}
.hd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hd-fieldset { border: 1px solid var(--hd-border); border-radius: var(--hd-radius-sm); padding: 14px 16px; margin: 6px 0 16px; }
.hd-fieldset legend { font-weight: 700; padding: 0 6px; color: var(--hd-accent); }
.hd-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* Sterne-Bewertung */
.hd-stars { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.hd-stars input { position: absolute; opacity: 0; width: 0; height: 0; }
.hd-stars label {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
	color: var(--hd-border); transition: color .12s, background .12s;
}
.hd-star-ic { width: 24px; height: 24px; fill: none; }
.hd-stars input:checked ~ label,
.hd-stars label:hover,
.hd-stars label:hover ~ label { color: var(--hd-accent-2); background: var(--hd-surface-alt); }
.hd-stars input:checked ~ label .hd-star-ic,
.hd-stars label:hover .hd-star-ic,
.hd-stars label:hover ~ label .hd-star-ic { fill: currentColor; }
.hd-stars input:focus-visible ~ label { box-shadow: 0 0 0 3px rgba(29,158,117,.25); }

/* Produkte-Auswahl */
.hd-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 14px; }
.hd-product-group { background: var(--hd-surface-alt); border: 1px solid var(--hd-border); border-radius: var(--hd-radius-sm); padding: 12px; }
.hd-product-type { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hd-muted); font-weight: 700; margin-bottom: 8px; }
.hd-product-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; margin-bottom: 6px; font-size: .93rem; }

/* ---------- Timeline ---------- */
.hd-timeline { display: flex; flex-direction: column; gap: 12px; }
.hd-entry-card {
	display: flex; gap: 16px; align-items: stretch; text-decoration: none; color: inherit;
	background: var(--hd-surface); border: 1px solid var(--hd-border); border-radius: var(--hd-radius);
	padding: 16px; transition: border-color .15s, box-shadow .15s, transform .05s;
}
.hd-entry-card:hover { border-color: var(--hd-accent-2); box-shadow: var(--hd-shadow); }
.hd-entry-date {
	flex: 0 0 auto; min-width: 84px; font-weight: 700; color: var(--hd-accent);
	border-right: 1px solid var(--hd-border); padding-right: 14px; font-size: .95rem;
}
.hd-entry-body { flex: 1 1 auto; min-width: 0; }
.hd-entry-products { font-size: .9rem; color: var(--hd-muted); margin-top: 4px; }
.hd-entry-notes { font-size: .92rem; margin-top: 6px; }
.hd-entry-thumb { flex: 0 0 auto; }
.hd-entry-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--hd-radius-sm); }

/* Badges */
.hd-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.hd-badge {
	display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px;
	border-radius: 999px; background: var(--hd-surface-alt); color: var(--hd-muted); border: 1px solid var(--hd-border);
}
.hd-badge-wash { background: #e8f6ef; color: #14603f; border-color: #bfe6d3; }
.hd-badge-public { background: #eef3fb; color: #274b78; border-color: #cdddf1; }

/* ---------- Fotos ---------- */
.hd-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 12px; margin-bottom: 14px; }
.hd-photo { position: relative; }
.hd-photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--hd-radius-sm); display: block; }
.hd-photo-del {
	position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
	border: none; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
}
.hd-photo-del:hover { background: var(--hd-danger); }
.hd-inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.hd-inline-form textarea { flex: 1 1 240px; }

/* ---------- Luna ---------- */
.hd-luna-card, .hd-luna-intro { border-color: #e6ddf0; }
.hd-luna-intro { display: flex; gap: 16px; align-items: center; }
.hd-luna-avatar {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; background: var(--hd-accent);
	color: #fff; font-weight: 700; flex: 0 0 auto;
}
.hd-luna-avatar-lg { width: 56px; height: 56px; font-size: 1.4rem; }
.hd-luna-msg { padding: 10px 14px; border-radius: 12px; margin: 8px 0; max-width: 85%; }
.hd-luna-msg span { display: block; font-size: .72rem; font-weight: 700; opacity: .7; margin-bottom: 2px; }
.hd-luna-q { background: var(--hd-surface-alt); margin-left: auto; }
.hd-luna-a { background: #f3eefa; border: 1px solid #e6ddf0; }
.hd-luna-pending { font-size: .85rem; color: var(--hd-muted); font-style: italic; margin: 6px 0; }
.hd-luna-item { padding: 16px; }
.hd-luna-ref { font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--hd-accent-2); }
.hd-luna-history { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Routinen ---------- */
.hd-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.hd-routines { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.hd-routine-head { display: flex; align-items: center; gap: 10px; }
.hd-routine-head h4 { margin: 0; }
.hd-routine-steps { margin: 8px 0; padding-left: 20px; }
.hd-routine-steps li { margin-bottom: 4px; }
.hd-routine-actions { display: flex; gap: 8px; margin-top: 10px; }
.hd-routine-actions form { display: inline; }

/* ---------- Hair Twins ---------- */
.hd-twins { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 14px; }
.hd-twin-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.hd-twin-avatar {
	width: 46px; height: 46px; border-radius: 50%; background: var(--hd-accent-2); color: #fff;
	display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex: 0 0 auto;
}
.hd-twin-match { font-size: .82rem; color: var(--hd-muted); display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.hd-twin-bar { display: inline-block; width: 80px; height: 6px; background: var(--hd-border); border-radius: 999px; overflow: hidden; }
.hd-twin-bar span { display: block; height: 100%; background: var(--hd-accent-2); }
.hd-twin-attrs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.hd-twin-attrs span { font-size: .8rem; background: var(--hd-surface-alt); border: 1px solid var(--hd-border); border-radius: 999px; padding: 3px 10px; }
.hd-twin-routines { border-top: 1px solid var(--hd-border); padding-top: 10px; font-size: .9rem; }
.hd-twin-routines ul { list-style: none; padding: 0; margin: 6px 0 0; }
.hd-twin-routine-title { font-weight: 600; }
.hd-twin-routines ol { margin: 4px 0 10px; padding-left: 18px; color: var(--hd-muted); }

/* ---------- Consent / Danger ---------- */
.hd-consent { background: var(--hd-surface-alt); border: 1px solid var(--hd-border); border-radius: var(--hd-radius-sm); padding: 12px 14px; }
.hd-consent-time { display: block; font-size: .78rem; color: var(--hd-muted); margin-top: 6px; margin-left: 26px; }
.hd-danger-zone { border-color: #e6c9c9; background: #fdf7f7; }

/* ---------- Login (ausgeloggt) ---------- */
.hd-welcome { max-width: 460px; margin: 0 auto; text-align: center; }
.hd-login { text-align: left; margin-top: 16px; }
.hd-login .login-username, .hd-login .login-password { margin-bottom: 12px; }
.hd-login label { display: block; font-weight: 600; margin-bottom: 4px; }
.hd-login input[type=text], .hd-login input[type=password] { width: 100%; padding: 10px 12px; border: 1px solid var(--hd-border); border-radius: var(--hd-radius-sm); }
.hd-login .button, .hd-login input[type=submit] {
	background: var(--hd-accent); color: #fff; border: none; padding: 11px 20px;
	border-radius: 999px; font-weight: 600; cursor: pointer; width: 100%; font-size: 1rem;
}
.hd-register-link { margin-top: 14px; }
.hd-register-link a { color: var(--hd-accent-2); font-weight: 600; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.hd-grid-2 { grid-template-columns: 1fr; }
	.hd-header { flex-direction: column; align-items: flex-start; }
	.hd-entry-card { flex-direction: column; }
	.hd-entry-date { border-right: none; border-bottom: 1px solid var(--hd-border); padding-right: 0; padding-bottom: 8px; }
	.hd-nav { overflow-x: auto; flex-wrap: nowrap; }
	.hd-nav-item { white-space: nowrap; }
}

/* ==========================================================================
   Admin-Helfer (nur Backend)
   ========================================================================== */
.hd-admin .hd-admin-hint { background: #fff; border: 1px solid #dcdcde; border-left: 4px solid #1D9E75; padding: 10px 14px; margin: 12px 0; border-radius: 4px; }
.hd-admin .hd-admin-cols { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.hd-admin .hd-admin-col-main { flex: 1 1 520px; }
.hd-admin .hd-admin-col-side { flex: 0 0 300px; }
.hd-admin .hd-admin-box { background: #fff; border: 1px solid #dcdcde; border-radius: 6px; padding: 16px; margin-bottom: 16px; }
.hd-admin .hd-admin-box h2 { margin-top: 0; }
.hd-admin .hd-feedback-item { border-left: 4px solid #04342C; }
.hd-admin .hd-feedback-meta { font-size: .85rem; color: #646970; margin-bottom: 8px; }
.hd-admin .hd-feedback-question { font-size: 1.05rem; margin-bottom: 10px; }
.hd-admin .hd-feedback-photos { margin: 8px 0; }

/* ==========================================================================
   v1.1.0 – Bedürfnis-Chips, Produktempfehlungen, Admin-Medienauswahl
   ========================================================================== */

/* ---------- Bedürfnis-Chips (Profil) ---------- */
.hd-app .hd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-app .hd-chip { position: relative; cursor: pointer; margin: 0; }
.hd-app .hd-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.hd-app .hd-chip span {
	display: inline-block; padding: 7px 14px; border-radius: 999px;
	border: 1px solid var(--hd-border); background: var(--hd-surface-alt);
	font-size: .9rem; font-weight: 600; color: var(--hd-text); transition: background .12s, color .12s, border-color .12s;
}
.hd-app .hd-chip input:checked + span { background: var(--hd-accent); color: #fff; border-color: var(--hd-accent); }
.hd-app .hd-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(29,158,117,.25); }
.hd-app .hd-chip:hover span { border-color: var(--hd-accent-2); }

/* ---------- Produktempfehlungen ---------- */
.hd-app .hd-recs { border-color: #cfe8d8; }
.hd-app .hd-recs > h4 { display: flex; align-items: center; gap: 8px; }
.hd-app .hd-recs > h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hd-accent-2); display: inline-block; }
.hd-app .hd-rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.hd-app .hd-rec {
	display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--hd-border); border-radius: var(--hd-radius-sm); overflow: hidden;
	transition: border-color .15s, box-shadow .15s;
}
.hd-app .hd-rec:hover { border-color: var(--hd-accent-2); box-shadow: var(--hd-shadow); }
.hd-app .hd-rec-img { aspect-ratio: 4 / 3; background: var(--hd-surface-alt); }
.hd-app .hd-rec-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-app .hd-rec-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.hd-app .hd-rec-partner { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--hd-accent-2); }
.hd-app .hd-rec-name { font-weight: 600; line-height: 1.3; }
.hd-app .hd-rec-price { color: var(--hd-muted); font-size: .9rem; }
.hd-app .hd-rec-cta { margin-top: 8px; align-self: flex-start; }
.hd-app .hd-rec-hint { font-size: .78rem; color: var(--hd-muted); margin: 12px 0 0; }

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

/* ---------- Admin: Medienauswahl & Checkbox-Spalten ---------- */
.hd-admin .hd-media { margin-bottom: 10px; }
.hd-admin .hd-media-preview { margin-bottom: 8px; min-height: 0; }
.hd-admin .hd-media-preview img { max-width: 120px; height: auto; border: 1px solid #dcdcde; border-radius: 6px; display: block; }
.hd-admin .hd-media-remove { margin-left: 10px; color: #b32d2e; text-decoration: none; }
.hd-admin .hd-check-col { display: flex; flex-direction: column; gap: 5px; margin: 4px 0 14px; }
.hd-admin .hd-check-col label { font-size: .92rem; }
.hd-admin .hd-admin-box hr { border: none; border-top: 1px solid #e6e6e8; margin: 14px 0; }

/* ==========================================================================
   v1.2.0 – Auth, Kacheln, Seitenleiste, Community-Feed, Teilen
   ========================================================================== */

/* ---------- Login / Registrieren ---------- */
.hd-app .hd-auth-tabs { display: flex; gap: 6px; margin: 14px 0 18px; border-bottom: 1px solid var(--hd-border); }
.hd-app .hd-auth-tab { padding: 9px 16px; text-decoration: none; font-weight: 700; color: var(--hd-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.hd-app .hd-auth-tab.hd-auth-active { color: var(--hd-accent); border-bottom-color: var(--hd-accent-2); }
.hd-app .hd-auth-form { text-align: left; }
.hd-app .hd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Ansicht-Umschalter (Kacheln/Liste) ---------- */
.hd-app .hd-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.hd-app .hd-layout-toggle { display: inline-flex; border: 1px solid var(--hd-border); border-radius: 10px; overflow: hidden; }
.hd-app .hd-layout-btn { padding: 7px 12px; text-decoration: none; color: var(--hd-muted); font-size: 1.1rem; line-height: 1; background: var(--hd-surface); }
.hd-app .hd-layout-btn + .hd-layout-btn { border-left: 1px solid var(--hd-border); }
.hd-app .hd-layout-btn.hd-layout-active { background: var(--hd-accent); color: #fff; }

/* ---------- Kachelansicht (Instagram) ---------- */
.hd-app .hd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hd-app .hd-tile { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--hd-surface-alt); }
.hd-app .hd-tile-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.hd-app .hd-tile:hover .hd-tile-img { transform: scale(1.04); }
.hd-app .hd-tile-empty { background: linear-gradient(135deg, var(--hd-surface-alt), #efece7); }
.hd-app .hd-tile-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; text-align: center; }
.hd-app .hd-tile-stars { color: #f4b942; font-size: 1.1rem; }
.hd-app .hd-tile-note { font-size: .8rem; color: var(--hd-muted); line-height: 1.3; }
.hd-app .hd-tile-overlay { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 16px 10px 8px; background: linear-gradient(to top, rgba(0,0,0,.55), transparent); }
.hd-app .hd-tile-empty .hd-tile-overlay { background: linear-gradient(to top, rgba(0,0,0,.12), transparent); }
.hd-app .hd-tile-date { color: #fff; font-size: .8rem; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.hd-app .hd-tile-empty .hd-tile-date { color: var(--hd-text); text-shadow: none; }
.hd-app .hd-tile-wash { width: 8px; height: 8px; border-radius: 50%; background: var(--hd-accent-2); box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.hd-app .hd-tile-multi { position: absolute; top: 8px; right: 8px; color: #fff; font-size: .95rem; text-shadow: 0 1px 3px rgba(0,0,0,.5); }

/* ---------- Empfehlungen als Seitenleiste ---------- */
.hd-app .hd-layout-sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.hd-app .hd-layout-aside .hd-recs { position: sticky; top: 20px; margin-bottom: 0; }
.hd-app .hd-layout-aside .hd-rec-grid { grid-template-columns: 1fr; }
@media (max-width: 782px) {
	.hd-app .hd-layout-sidebar { grid-template-columns: 1fr; }
	.hd-app .hd-layout-aside .hd-recs { position: static; }
	.hd-app .hd-layout-aside .hd-rec-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Composer ---------- */
.hd-app .hd-composer textarea { width: 100%; border: 1px solid var(--hd-border); border-radius: var(--hd-radius-sm); padding: 12px; font-family: inherit; font-size: 1rem; resize: vertical; }
.hd-app .hd-composer-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.hd-app .hd-composer-photo { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--hd-muted); font-weight: 600; font-size: .92rem; }
.hd-app .hd-composer-photo input { display: none; }

/* ---------- Community-Feed ---------- */
.hd-app .hd-feed { display: flex; flex-direction: column; gap: 16px; }
.hd-app .hd-post { background: var(--hd-surface); border: 1px solid var(--hd-border); border-radius: var(--hd-radius); padding: 16px; box-shadow: var(--hd-shadow); }
.hd-app .hd-post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hd-app .hd-post-avatar img { width: 44px; height: 44px; border-radius: 50%; display: block; object-fit: cover; }
.hd-app .hd-post-meta { flex: 1 1 auto; line-height: 1.3; }
.hd-app .hd-post-meta strong { display: block; }
.hd-app .hd-post-time { font-size: .8rem; color: var(--hd-muted); }
.hd-app .hd-post-tag { background: var(--hd-surface-alt); border: 1px solid var(--hd-border); border-radius: 999px; padding: 1px 8px; font-size: .72rem; }
.hd-app .hd-post-del-form { margin: 0; }
.hd-app .hd-post-del { border: none; background: transparent; color: var(--hd-muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.hd-app .hd-post-del:hover { color: var(--hd-danger); }
.hd-app .hd-post-content { margin-bottom: 10px; white-space: normal; }
.hd-app .hd-post-image { margin: 0 -16px 10px; }
.hd-app .hd-post-image img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.hd-app .hd-post-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--hd-border); padding-top: 10px; }
.hd-app .hd-inline { display: inline; margin: 0; }
.hd-app .hd-post-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hd-border); background: var(--hd-surface); color: var(--hd-text); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .9rem; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.hd-app .hd-post-btn:hover { background: var(--hd-surface-alt); }
.hd-app .hd-like.hd-like-on { color: #e0245e; border-color: #f3b6c6; background: #fdeef2; }
.hd-app .hd-connect.hd-connect-on { color: #14603f; border-color: #bfe6d3; background: #e8f6ef; }

/* ---------- Teilen ---------- */
.hd-app .hd-share { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hd-app .hd-share-label { font-size: .82rem; color: var(--hd-muted); font-weight: 600; }
.hd-app .hd-share-btn { display: inline-flex; align-items: center; justify-content: center; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--hd-border); background: var(--hd-surface); color: var(--hd-text); font-size: .82rem; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.4; }
.hd-app .hd-share-btn:hover { background: var(--hd-surface-alt); border-color: var(--hd-accent-2); }
.hd-app .hd-share-native { font-size: 1rem; }
.hd-app .hd-share-copied { background: #e8f6ef !important; color: #14603f !important; border-color: #bfe6d3 !important; }
.hd-app .hd-share-card { display: flex; flex-direction: column; gap: 12px; }
.hd-app .hd-share-community { border-top: 1px solid var(--hd-border); padding-top: 12px; }
.hd-app .hd-share-community input[type=text] { flex: 1 1 220px; }

/* ---------- Twin-Verbinden ---------- */
.hd-app .hd-twin-connect-form { margin: 10px 0 0; }

/* ---------- Luna-Avatar als Bild ---------- */
.hd-app .hd-luna-avatar-img { padding: 0; overflow: hidden; }
.hd-app .hd-luna-avatar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 600px) {
	.hd-app .hd-grid { gap: 4px; }
	.hd-app .hd-toolbar-actions { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   v1.2.1 – Einstellbarer Radius, Überschriftengröße, Icon-Teilen, Header-Button
   ========================================================================== */

/* Button-Eckenradius über Einstellung steuerbar */
.hd-app .hd-btn { border-radius: var(--hd-btn-radius, 999px); }
.hd-app .hd-post-btn { border-radius: var(--hd-btn-radius, 999px); }

/* Überschriftengröße skalierbar */
.hd-app h2 { font-size: calc(1.5rem * var(--hd-heading-scale, 1)); }
.hd-app h3 { font-size: calc(1.2rem * var(--hd-heading-scale, 1)); }
.hd-app h4 { font-size: calc(1.05rem * var(--hd-heading-scale, 1)); }

/* Permanenter „Neuer Eintrag"-Button im Header */
.hd-app .hd-header-add { flex: 0 0 auto; }

/* Teilen: nur Icons, als runde Icon-Buttons */
.hd-app .hd-share { gap: 8px; }
.hd-app .hd-share-btn { width: 38px; height: 38px; padding: 0; border-radius: var(--hd-btn-radius, 999px); }
.hd-app .hd-share-btn svg { width: 18px; height: 18px; display: block; }
.hd-app .hd-share-whatsapp:hover { color: #25D366; border-color: #25D366; background: #fff; }
.hd-app .hd-share-facebook:hover { color: #1877F2; border-color: #1877F2; background: #fff; }
.hd-app .hd-share-pinterest:hover { color: #E60023; border-color: #E60023; background: #fff; }

/* Community-Teilen-Karte (immer letztes Element) */
.hd-app .hd-share-community-card .hd-share-community { border-top: none; padding-top: 0; }

/* ==========================================================================
   v1.3.0 – feste Größen, Trennlinie, Werbebanner
   ========================================================================== */

/* Empfehlungs-Überschrift fix 16px */
.hd-app .hd-recs > h4 { font-size: 16px; }

/* Tagebuch: Datum in der Liste auf 16px */
.hd-app .hd-entry-date { font-size: 16px; }

/* Trennlinie innerhalb des Eintrag-Containers */
.hd-app .hd-divider { border: none; border-top: 1px solid var(--hd-border); margin: 16px 0; }
.hd-app .hd-entry-detail .hd-photo-grid { margin-top: 12px; }
.hd-app .hd-entry-detail .hd-add-photo { margin-top: 10px; }
.hd-app .hd-entry-detail .hd-share { margin-top: 2px; }

/* Werbebanner im Feed */
.hd-app .hd-ad { position: relative; background: var(--hd-surface); border: 1px solid var(--hd-border); border-radius: var(--hd-radius); overflow: hidden; box-shadow: var(--hd-shadow); }
.hd-app .hd-ad-label { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgba(0,0,0,.55); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; }
.hd-app .hd-ad img { width: 100%; display: block; }
.hd-app .hd-ad-link { display: block; }
.hd-app .hd-ad-title { display: block; padding: 8px 12px; font-size: .85rem; color: var(--hd-muted); }

/* „Direkt teilen"-Feld beim Erstellen */
.hd-app .hd-share-onsave legend { color: var(--hd-accent); }

/* ==========================================================================
   v1.4.0 – Instagram-Shell (Sidebar/Tab-Bar) + Onboarding-Wizard
   ========================================================================== */

/* ---------- Shell-Layout: Desktop = Sidebar links + Main ---------- */
.hd-app.hd-shell {
	max-width: 1180px;
	display: grid;
	grid-template-columns: 236px 1fr;
	gap: 28px;
	align-items: start;
}
.hd-app.hd-shell .hd-content { margin-top: 4px; }
.hd-main { min-width: 0; }

/* Sidebar (Desktop) */
.hd-sidebar {
	position: sticky;
	top: 20px;
	align-self: start;
	padding: 4px 0;
}
.hd-sidebar-brand {
	display: flex; align-items: center; gap: 10px;
	padding: 6px 12px 16px; text-decoration: none;
	font-weight: 800; font-size: 1.15rem; color: var(--hd-accent);
}
.hd-sidebar-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hd-accent-2); display: inline-block; flex: 0 0 auto; }

/* Nav als vertikale Icon+Label-Liste (überschreibt die alte Tab-Optik) */
.hd-sidebar .hd-nav { display: flex; flex-direction: column; gap: 4px; border-bottom: none; margin-bottom: 0; }
.hd-sidebar .hd-nav-item {
	display: flex; align-items: center; gap: 13px;
	padding: 11px 12px; margin: 0; border: none; border-radius: 12px;
	color: var(--hd-text); font-weight: 600; font-size: .98rem;
	text-decoration: none; transition: background .12s, color .12s;
}
.hd-sidebar .hd-nav-item:hover { background: var(--hd-surface-alt); color: var(--hd-text); }
.hd-sidebar .hd-nav-item.hd-nav-active { background: var(--hd-surface-alt); color: var(--hd-accent); font-weight: 700; }
.hd-nav-ic { width: 22px; height: 22px; flex: 0 0 auto; }
.hd-nav-label { line-height: 1; }

/* Schlanke Topbar (nur mobil sichtbar) */
.hd-topbar { display: none; align-items: center; gap: 8px; padding: 8px 2px 12px; }
.hd-topbar-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.1rem; color: var(--hd-accent); }

/* ---------- Mobile: Sidebar wird zur unteren Tab-Bar ---------- */
@media (max-width: 900px) {
	.hd-app.hd-shell { display: block; max-width: 640px; }
	.hd-main { padding-bottom: 76px; }
	.hd-topbar { display: flex; position: sticky; top: 0; z-index: 40; background: var(--hd-bg); }

	.hd-sidebar {
		position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 50;
		padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
		background: var(--hd-surface); border-top: 1px solid var(--hd-border);
		box-shadow: 0 -2px 12px rgba(0,0,0,.05);
	}
	.hd-sidebar-brand { display: none; }
	.hd-sidebar .hd-nav { flex-direction: row; gap: 0; }
	.hd-sidebar .hd-nav-item {
		flex: 1 1 0; flex-direction: column; gap: 3px;
		padding: 8px 2px; border-radius: 10px; justify-content: center;
	}
	.hd-sidebar .hd-nav-item .hd-nav-label { display: none; }
	.hd-sidebar .hd-nav-item.hd-nav-active { background: transparent; }
	.hd-nav-ic { width: 25px; height: 25px; }
}

/* ---------- Onboarding-Wizard ---------- */
.hd-app.hd-onboarding-shell { max-width: 560px; }
.hd-onb {
	background: var(--hd-surface); border: 1px solid var(--hd-border);
	border-radius: var(--hd-radius); box-shadow: var(--hd-shadow);
	padding: 24px; margin-top: 28px;
}
.hd-onb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.hd-onb-brand { font-weight: 800; color: var(--hd-accent); }
.hd-onb-count { margin-left: auto; font-size: .8rem; color: var(--hd-muted); }
.hd-onb-progress { display: flex; gap: 6px; margin-bottom: 20px; }
.hd-onb-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--hd-border); transition: background .2s; }
.hd-onb-bar.is-done { background: var(--hd-accent-2); }
.hd-onb-title { margin-bottom: 4px; }
.hd-onb-sub { margin-bottom: 20px; font-size: .95rem; }
.hd-onb-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.hd-onb-twin { background: var(--hd-surface-alt); border: 1px solid var(--hd-border); border-radius: var(--hd-radius-sm); padding: 12px 14px; }
.hd-onb-skip { display: block; text-align: center; margin-top: 14px; color: var(--hd-muted); text-decoration: none; font-size: .9rem; }
.hd-onb-skip:hover { color: var(--hd-text); }

@media (max-width: 600px) {
	.hd-onb { padding: 18px; margin-top: 16px; }
}

/* ==========================================================================
   v1.5.0 – Avatare, einheitliche Icons, Onboarding-Video, Feinschliff
   ========================================================================== */

/* Runde Avatare */
.hd-avatar {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
	background: var(--hd-surface-alt); border: 1px solid var(--hd-border);
	font-weight: 700; color: var(--hd-accent);
}
.hd-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.hd-avatar-initial { text-transform: uppercase; }
.hd-avatar-lg { width: 84px; height: 84px; font-size: 1.9rem; }
.hd-brand-avatar { width: 30px; height: 30px; }
.hd-post-avatar .hd-avatar { width: 42px; height: 42px; }
.hd-twin-pic { width: 46px; height: 46px; }

/* Einheitliche Linien-Icons */
.hd-ic { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
.hd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.hd-btn svg { width: 18px; height: 18px; }
.hd-composer-photo svg { width: 18px; height: 18px; vertical-align: middle; }

/* Datei-Upload als Button */
.hd-file-btn { cursor: pointer; }
.hd-file-btn input[type=file] { display: none; }
.hd-file-hint { margin: .4rem 0 0; font-size: .85rem; }
.hd-avatar-field { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.hd-avatar-upload { display: flex; flex-direction: column; align-items: flex-start; }

/* Tagebuch-Kopf: Button + Umschalter */
.hd-toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hd-layout-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 34px; }
.hd-layout-btn svg { width: 20px; height: 20px; }

/* Like / Verbinden Zustände */
.hd-like svg { transition: fill .12s ease; }
.hd-like-on { color: #e0245e; }
.hd-like-on svg { fill: currentColor; }
.hd-connect-on { color: var(--hd-accent); }
.hd-post-del { display: inline-flex; align-items: center; justify-content: center; }
.hd-post-del svg { width: 18px; height: 18px; }

/* Onboarding-Video */
.hd-onb-video { margin: 0 0 18px; border-radius: var(--hd-radius-sm); overflow: hidden; background: #000; }
.hd-onb-video video { width: 100%; display: block; }
.hd-video-embed { position: relative; padding-top: 56.25%; }
.hd-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hd-video-link { display: inline-block; padding: 10px 14px; color: var(--hd-accent); font-weight: 600; text-decoration: none; }

/* ==========================================================================
   v1.6.0 – Mehr-Menü, zentrierte Sidebar, Upload-Feedback, Eintrags-UX
   ========================================================================== */

/* --- Sidebar vertikal mittig (Desktop) --- */
@media (min-width: 901px) {
	.hd-app.hd-shell { align-items: stretch; }
	.hd-sidebar {
		position: sticky; top: 20px;
		display: flex; flex-direction: column; justify-content: flex-start;
		padding: 4px 0 24px;
	}
	.hd-sidebar-brand { padding: 0 12px 20px; }
	.hd-nav-more-toggle { display: none !important; }
}

/* Profilbild in der Seitenleiste immer rund */
.hd-sidebar-brand .hd-avatar,
.hd-topbar-brand .hd-avatar { border-radius: 50%; overflow: hidden; }
.hd-sidebar-brand .hd-avatar img,
.hd-topbar-brand .hd-avatar img { border-radius: 50%; }

/* --- Empfehlungen: grüner Punkt entfernt, Button ohne Pfeil --- */
.hd-app .hd-recs > h4::before { content: none; }
.hd-app .hd-recs > h4 { gap: 0; }

/* --- Eintrags-Titel --- */
.hd-entry-title { font-weight: 700; font-size: 1.02rem; margin-bottom: 6px; color: var(--hd-text); }
.hd-tile-overlay { display: flex; flex-direction: column; gap: 2px; }
.hd-tile-title {
	font-weight: 700; font-size: .92rem; line-height: 1.25;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hd-tile-metaline { display: flex; align-items: center; gap: 8px; }
.hd-entry-detail-date { margin-top: -6px; font-size: .95rem; }

/* --- Neuer Eintrag: Step-Karten --- */
.hd-lead { max-width: 60ch; margin-bottom: 18px; }
.hd-entry-form { display: flex; flex-direction: column; gap: 18px; }
.hd-step-card { padding: 22px 24px; margin-bottom: 0; }
.hd-step-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.hd-step-head h4 { margin: 0 0 2px; }
.hd-step-head p { margin: 0; font-size: .92rem; }
.hd-step-num {
	flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--hd-accent); color: #fff; font-weight: 700; font-size: .92rem;
}
.hd-step-card .hd-field:last-child { margin-bottom: 0; }

/* Moderner Toggle-Schalter */
.hd-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; padding: 8px 0; }
.hd-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.hd-toggle-track {
	position: relative; width: 44px; height: 26px; border-radius: 999px;
	background: var(--hd-border); transition: background .15s; flex: 0 0 auto;
}
.hd-toggle-track::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
	border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.hd-toggle input:checked ~ .hd-toggle-track { background: var(--hd-accent-2); }
.hd-toggle input:checked ~ .hd-toggle-track::after { transform: translateX(18px); }
.hd-toggle input:focus-visible ~ .hd-toggle-track { box-shadow: 0 0 0 3px rgba(29,158,117,.25); }
.hd-toggle-label { font-size: .96rem; }
.hd-collapsible { margin-top: 12px; }

/* Sticky Aktionsleiste am Formularende */
.hd-form-bar {
	display: flex; justify-content: flex-end; gap: 12px; align-items: center;
	background: var(--hd-surface); border: 1px solid var(--hd-border);
	border-radius: var(--hd-radius); padding: 14px 18px;
	position: sticky; bottom: 12px; box-shadow: var(--hd-shadow);
}
@media (max-width: 900px) {
	.hd-form-bar { bottom: 80px; }
	.hd-step-card { padding: 18px; }
}

/* --- Upload: Dropzone, Vorschau, Progress --- */
.hd-upload { margin: 0 0 16px; }
.hd-upload-drop {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	padding: 26px 18px; text-align: center; cursor: pointer;
	border: 2px dashed var(--hd-border); border-radius: var(--hd-radius-sm);
	background: var(--hd-surface-alt); color: var(--hd-muted);
	transition: border-color .15s, background .15s, color .15s;
}
.hd-upload-drop:hover,
.hd-upload-drop.is-dragover { border-color: var(--hd-accent-2); color: var(--hd-text); background: #fff; }
.hd-upload-ic { width: 26px; height: 26px; }
.hd-upload-title { font-weight: 600; color: var(--hd-text); }
.hd-upload-hint { font-size: .85rem; }
.hd-upload-sm .hd-upload-drop { flex-direction: row; gap: 10px; padding: 12px 16px; text-align: left; }
.hd-upload-sm .hd-upload-hint { display: none; }

.hd-upload-preview {
	display: flex; align-items: center; gap: 14px;
	border: 1px solid var(--hd-border); border-radius: var(--hd-radius-sm);
	padding: 12px; background: var(--hd-surface);
}
.hd-upload-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--hd-radius-sm); flex: 0 0 auto; }
.hd-upload-info { flex: 1 1 auto; min-width: 0; }
.hd-upload-name { display: block; font-size: .9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-upload-status { display: block; font-size: .84rem; color: var(--hd-muted); margin-top: 2px; }
.hd-upload-status.is-ok { color: var(--hd-accent-2); font-weight: 600; }
.hd-upload-status.is-error { color: var(--hd-danger); }
.hd-upload-remove {
	flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--hd-surface-alt); border: 1px solid var(--hd-border); color: var(--hd-muted);
}
.hd-upload-remove:hover { color: var(--hd-danger); border-color: #e6c9c9; }
.hd-upload-done .hd-upload-preview { border-color: var(--hd-accent-2); }

.hd-progress { height: 6px; border-radius: 999px; background: var(--hd-border); overflow: hidden; margin: 6px 0 2px; }
.hd-progress-bar { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--hd-accent-2); transition: width .2s ease; }
.hd-progress-bar.is-uploading { transition: width 1.2s ease; }

/* Button-Zustand beim Absenden */
.hd-btn.is-busy { opacity: .75; pointer-events: none; }

/* ==========================================================================
   v1.6.1 – Off-Canvas, Eintrags-Reiter, Modus-Wahl, Ja/Nein-Toggle
   ========================================================================== */

/* --- Mobile: „Mehr“ öffnet ein Off-Canvas --- */
@media (max-width: 900px) {
	.hd-sidebar .hd-nav-more-item { display: none; }
	.hd-nav-more-toggle { background: none; border: none; cursor: pointer; font: inherit; color: var(--hd-text); }
}
@media (min-width: 901px) {
	.hd-nav-more-toggle,
	.hd-offcanvas { display: none !important; }
}

.hd-offcanvas { position: fixed; inset: 0; z-index: 60; }
.hd-offcanvas[hidden] { display: none; }
.hd-offcanvas-backdrop { position: absolute; inset: 0; background: rgba(15,20,18,.45); }
.hd-offcanvas-sheet {
	position: absolute; left: 0; right: 0; bottom: 0;
	background: var(--hd-surface, #fff);
	border-radius: 18px 18px 0 0;
	padding: 8px 12px calc(16px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -8px 30px rgba(0,0,0,.18);
	animation: hd-oc-up .18s ease-out;
}
@keyframes hd-oc-up { from { transform: translateY(16px); opacity: .6; } to { transform: none; opacity: 1; } }
.hd-offcanvas-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 10px 6px 12px; font-size: 1.05rem;
}
.hd-offcanvas-close {
	width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--hd-surface-alt, #f5f4f2); border: 1px solid var(--hd-border, #e7e4df); color: var(--hd-muted, #7c7973);
}
.hd-offcanvas-close:hover { color: var(--hd-text, #1f2421); }
.hd-offcanvas-nav { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; }
.hd-offcanvas-item {
	display: flex; align-items: center; gap: 14px;
	padding: 14px 10px; border-radius: 12px; text-decoration: none;
	color: var(--hd-text, #1f2421); font-weight: 600;
}
.hd-offcanvas-item:hover { background: var(--hd-surface-alt, #f5f4f2); }
.hd-offcanvas-item.hd-nav-active { color: var(--hd-accent, #04342C); background: var(--hd-surface-alt, #f5f4f2); }
.hd-offcanvas-item svg { width: 22px; height: 22px; }
html.hd-oc-open { overflow: hidden; }

/* --- Profilbild immer rund (auch Onboarding/Registrierung) --- */
.hd-avatar,
.hd-avatar img,
.hd-avatar-lg,
.hd-avatar-lg img,
.hd-brand-avatar,
.hd-brand-avatar img,
.hd-post-avatar .hd-avatar,
.hd-post-avatar img,
.hd-twin-pic,
.hd-twin-pic img { border-radius: 50% !important; }
.hd-avatar { overflow: hidden; }
.hd-avatar-field .hd-avatar-lg { flex: 0 0 auto; }

/* --- Ja/Nein-Toggle --- */
.hd-toggle-yesno { gap: 10px; padding-top: 4px; }
.hd-toggle-yesno .hd-toggle-off,
.hd-toggle-yesno .hd-toggle-on { font-size: .92rem; color: var(--hd-muted); font-weight: 600; }
.hd-toggle-yesno input:not(:checked) ~ .hd-toggle-off { color: var(--hd-text); }
.hd-toggle-yesno input:checked ~ .hd-toggle-on { color: var(--hd-accent); }

/* ==========================================================================
   v1.6.2 – Details-Dropdown, Toggle-Fix, schlichte Icon-Buttons
   ========================================================================== */

/* Datei-Input visuell verstecken (statt hidden – sonst löst Safari teils nicht aus) */
.hd-upload-input {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Schlichter Icon-Button (schwarz, ohne Fläche) */
.hd-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; padding: 0; cursor: pointer;
	background: none; border: none; border-radius: 10px;
	color: var(--hd-text, #1f2421); line-height: 1;
}
.hd-icon-btn:hover { background: var(--hd-surface-alt, #f5f4f2); }
.hd-icon-btn svg { width: 20px; height: 20px; display: block; }
.hd-offcanvas-close { width: 34px; height: 34px; background: none; border: none; color: var(--hd-text, #1f2421); }
.hd-offcanvas-close:hover { background: var(--hd-surface-alt, #f5f4f2); }

/* Ja/Nein-Toggle: Beschriftung neben dem Schalter, nichts überlappt */
.hd-toggle { position: relative; flex-wrap: nowrap; }
.hd-toggle-yesno { display: inline-flex; align-items: center; gap: 10px; }
.hd-toggle-yesno .hd-toggle-track {
	flex: 0 0 auto; width: 46px; min-width: 46px; height: 26px;
	background: #ddd9d3; border: 1px solid rgba(0,0,0,.06);
}
.hd-toggle-yesno .hd-toggle-off,
.hd-toggle-yesno .hd-toggle-on { flex: 0 0 auto; white-space: nowrap; }
.hd-toggle .hd-toggle-track::after { top: 2px; left: 2px; }
.hd-toggle input:checked ~ .hd-toggle-track::after { transform: translateX(20px); }

/* Details-Dropdown */
.hd-details-toggle {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	width: 100%; cursor: pointer; font: inherit; font-weight: 600;
	padding: 14px 18px; margin-bottom: 0;
	background: var(--hd-surface); border: 1px solid var(--hd-border);
	border-radius: var(--hd-radius); color: var(--hd-text);
	transition: border-color .12s, background .12s;
}
.hd-details-toggle:hover { border-color: var(--hd-accent-2); }
.hd-details-toggle.is-open { border-color: var(--hd-accent); background: var(--hd-surface-alt); }
.hd-details-ic { width: 20px; height: 20px; transition: transform .15s ease; color: var(--hd-accent); }
.hd-details-toggle.is-open .hd-details-ic { transform: rotate(180deg); }
.hd-details { display: flex; flex-direction: column; gap: 18px; }
.hd-details[hidden] { display: none; }

/* Step-Karten wieder als gestapelte Container */
.hd-entry-form .hd-step-card { display: block; }

/* ==========================================================================
   v1.6.3 – Tagebuch: Empfehlungen & Werbung fest in der rechten Spalte
   ========================================================================== */
.hd-app .hd-layout-sidebar { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.hd-app .hd-layout-main { min-width: 0; }
.hd-app .hd-layout-aside { min-width: 0; position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.hd-app .hd-layout-aside .hd-recs { position: static; margin-bottom: 0; }
/* In der schmalen Spalte Produkte untereinander */
@media (min-width: 901px) {
	.hd-app .hd-layout-aside .hd-rec-grid { grid-template-columns: 1fr; }
	.hd-app .hd-layout-aside .hd-rec { display: flex; gap: 12px; align-items: flex-start; }
	.hd-app .hd-layout-aside .hd-rec-img { flex: 0 0 64px; }
	.hd-app .hd-layout-aside .hd-rec-img img { width: 64px; height: 64px; object-fit: cover; }
	.hd-app .hd-layout-aside .hd-rec-body { flex: 1 1 auto; min-width: 0; }
}
/* Werbebanner in der Seitenleiste */
.hd-app .hd-layout-aside .hd-ad { margin: 0; }

@media (max-width: 900px) {
	.hd-app .hd-layout-sidebar { grid-template-columns: 1fr; }
	.hd-app .hd-layout-aside { position: static; }
}

/* ==========================================================================
   v1.6.4 – Theme-Button-Styles in Navigation & Off-Canvas zurücksetzen
   ========================================================================== */

/* „Mehr“ in der mobilen Leiste: kein Theme-Button-Look, nie als aktiv markiert */
.hd-sidebar .hd-nav-more-toggle,
.hd-sidebar .hd-nav-more-toggle:hover,
.hd-sidebar .hd-nav-more-toggle:focus,
.hd-sidebar .hd-nav-more-toggle:active,
.hd-sidebar .hd-nav-more-toggle[aria-expanded="true"] {
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	color: var(--hd-text, #1f2421) !important;
	padding: 8px 2px !important;
	border-radius: 10px !important;
	text-shadow: none !important;
	transform: none !important;
}
.hd-sidebar .hd-nav-more-toggle svg { color: currentColor !important; }

/* Schließen im Off-Canvas: nur schwarzes X, keine Fläche */
.hd-offcanvas .hd-offcanvas-close,
.hd-offcanvas .hd-offcanvas-close:hover,
.hd-offcanvas .hd-offcanvas-close:focus,
.hd-offcanvas .hd-offcanvas-close:active {
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	color: #1f2421 !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	border-radius: 50% !important;
	line-height: 1 !important;
	font-size: 0 !important;
}
.hd-offcanvas .hd-offcanvas-close:hover { background: rgba(0,0,0,.06) !important; }
.hd-offcanvas .hd-offcanvas-close svg {
	width: 22px !important;
	height: 22px !important;
	display: block !important;
	stroke: currentColor !important;
	fill: none !important;
}

/* ==========================================================================
   v1.7.1 – Upload-Breite, 4:5-Beiträge, Teilen-Sheet, Abmelden
   ========================================================================== */

/* --- Upload im Onboarding/Profil bricht nicht mehr aus --- */
.hd-avatar-field { flex-wrap: wrap; }
.hd-avatar-field .hd-upload { flex: 1 1 260px; min-width: 0; margin-bottom: 0; }
.hd-upload, .hd-upload-preview, .hd-upload-info { min-width: 0; max-width: 100%; }
.hd-upload-preview { flex-wrap: nowrap; }
.hd-upload-name { max-width: 100%; }
@media (max-width: 600px) {
	.hd-avatar-field { flex-direction: column; align-items: flex-start; }
	.hd-avatar-field .hd-upload { width: 100%; flex: 1 1 auto; }
}

/* Entfernen-Button: schlichtes schwarzes X statt farbiger Fläche */
.hd-upload .hd-upload-remove,
.hd-upload .hd-upload-remove:hover,
.hd-upload .hd-upload-remove:focus,
.hd-upload .hd-upload-remove:active {
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	color: #1f2421 !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 0 !important;
	padding: 0 !important;
	border-radius: 50% !important;
	font-size: 0 !important;
}
.hd-upload .hd-upload-remove:hover { background: rgba(0,0,0,.06) !important; }
.hd-upload .hd-upload-remove svg {
	width: 20px !important; height: 20px !important; display: block !important;
	stroke: currentColor !important; fill: none !important;
}

/* --- Aktivitäten: Beitragsbilder im 4:5-Hochformat --- */
.hd-post-image { background: var(--hd-surface-alt); }
.hd-post-image img {
	width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
}

/* --- Beitragsbreite begrenzen, rechts bleibt Platz für Werbung --- */
.hd-app .hd-layout-main .hd-composer,
.hd-app .hd-layout-main .hd-feed,
.hd-app .hd-layout-main > .hd-empty { max-width: 560px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) {
	.hd-app .hd-layout-main .hd-composer,
	.hd-app .hd-layout-main .hd-feed { max-width: 100%; }
}

/* --- Teilen: ein Button im Menü-Stil + Sheet --- */
.hd-share { display: inline-flex; }
.hd-share-open { display: inline-flex; align-items: center; gap: 8px; }
.hd-share-open svg { width: 20px; height: 20px; }
.hd-share-list { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; }
.hd-share-target {
	display: flex; align-items: center; gap: 14px; width: 100%;
	padding: 14px 10px; border-radius: 12px; text-decoration: none; cursor: pointer;
	background: none !important; border: none !important; box-shadow: none !important;
	color: var(--hd-text, #1f2421) !important; font: inherit; font-weight: 600; text-align: left;
}
.hd-share-target:hover { background: var(--hd-surface-alt, #f5f4f2) !important; }
.hd-share-target svg { width: 22px; height: 22px; flex: 0 0 auto; }

/* Like-Button im Menü-Stil */
.hd-post-btn { display: inline-flex; align-items: center; gap: 8px; }
.hd-post-btn svg { width: 20px; height: 20px; }

/* --- Abmelden im Profil --- */
.hd-logout-card h4 { margin-bottom: 4px; }
.hd-logout-card .hd-btn { margin-top: 4px; }
