/* ==========================================================================
   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; /* Rot – nur für Fehlertexte */
	/* Pink-Tonleiter für alle pinken Buttons (Löschen, Gefällt mir, …) */
	--hd-pink:          #e0245e; /* Schrift im Ruhezustand, Fläche beim Hover */
	--hd-pink-soft:     #fdeef2; /* Fläche im Ruhezustand */
	--hd-pink-strong:   #b81a49; /* dunkler beim Klicken */
	--hd-control-h:     48px; /* gemeinsame Höhe aller Eingabe- und Auswahlfelder */
	--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;
	/* Riegel gegen horizontales Scrollen der ganzen Seite: ein zu breites
	   Element im Inneren soll nicht das Fenster verschieben. Bewusst "clip"
	   und nicht "hidden" – hidden würde den Container zum Scrollbereich
	   machen und die sticky Seitenleiste am Mitlaufen hindern. */
	overflow-x: clip;
	/* Lange Produktlinks und Wörter ohne Trennstelle brechen statt zu schieben. */
	overflow-wrap: break-word;
	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 !important; align-items: center; justify-content: center; white-space: nowrap !important;
	padding: 10px 18px !important; border-radius: 999px !important; border: 1px solid transparent;
	font-weight: 600 !important; font-size: .95rem !important; cursor: pointer; text-decoration: none;
	transition: transform .05s, background .15s, border-color .15s, color .15s; line-height: 1 !important;
}
.hd-btn:active { transform: translateY(1px); }
.hd-btn-primary { background: var(--hd-accent) !important; color: #fff !important; }
.hd-btn-primary:hover { background: var(--hd-accent-strong, var(--hd-accent-2)) !important; color: #fff !important; }
.hd-btn-ghost { background: transparent !important; border-color: var(--hd-border); color: var(--hd-text) !important; }
.hd-btn-ghost:hover { background: var(--hd-surface-alt) !important; }
.hd-btn-danger { background: var(--hd-pink-soft) !important; border-color: transparent; color: var(--hd-pink) !important; }
.hd-btn-danger:hover,
.hd-btn-danger:focus-visible { background: var(--hd-pink) !important; border-color: transparent; color: #fff !important; }
.hd-btn-sm { padding: 6px 12px !important; font-size: .85rem !important; }

/* ---------- 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; }
/* Farben über die Einstellungen anpassbar; die Werte hier sind die Vorgaben. */
.hd-notice-success {
	background: var(--hd-note-success-bg, #e8f6ef);
	color: var(--hd-note-success-text, #14603f);
	border: 1px solid var(--hd-note-success-border, #bfe6d3);
}
.hd-notice-error {
	background: var(--hd-note-error-bg, #fbeeee);
	color: var(--hd-note-error-text, #8a2222);
	border: 1px solid var(--hd-note-error-border, #eecbcb);
}
.hd-notice-info {
	background: var(--hd-note-info-bg, #eef3fb);
	color: var(--hd-note-info-text, #274b78);
	border: 1px solid var(--hd-note-info-border, #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=email],
.hd-app input[type=password],
.hd-app input[type=url],
.hd-app input[type=tel],
.hd-app input[type=search],
.hd-app input[type=number],
.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,
.hd-photo-del:focus-visible { background: var(--hd-pink); color: #fff; }
.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; }
/* Die Beschriftungen brechen nicht um – auf schmalen Handys rutscht
   stattdessen der letzte Knopf in die nächste Zeile. */
.hd-routine-actions { display: flex; flex-wrap: wrap; align-items: center; 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: var(--hd-pink-soft, #fdeef2); background: #fffafb; }

/* ---------- 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 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); position: relative; }
.hd-app .hd-rec-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; 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; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.hd-app .hd-rec-price-old { color: var(--hd-muted); text-decoration: line-through; font-size: .85rem; }
.hd-app .hd-rec-price-now { color: var(--hd-text); font-weight: 700; }
.hd-app .hd-rec-price-now.is-deal { color: var(--hd-pink); }
.hd-app .hd-rec-badge {
	position: absolute; top: 8px; left: 8px; z-index: 2;
	background: var(--hd-pink); color: #fff;
	font-size: .78rem; font-weight: 700; line-height: 1;
	padding: 5px 9px; border-radius: 999px;
	box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.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 { background: var(--hd-pink); color: #fff; }
.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: var(--hd-pink); border-color: transparent; background: var(--hd-pink-soft); }
.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) !important; }
.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 !important; 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: var(--hd-pink); }
.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; flex-wrap: wrap; 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,
.hd-upload-remove:focus-visible { background: var(--hd-pink); border-color: transparent; color: #fff; }
.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) {
	/* Nur das Navigationsmenü verschwindet am Desktop – das Teilen-Sheet
	   nutzt dieselbe Grundklasse und muss sichtbar bleiben. */
	.hd-nav-more-toggle,
	.hd-offcanvas-menu { 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).
 *
 * Zwei Dinge haben hier zusammengewirkt und die ganze Seite seitlich
 * verschiebbar gemacht:
 * 1. Das Theme setzt eine eigene Breite auf input[type="file"]. Dieser
 *    Selektor ist spezifischer als die Einzelklasse, also blieb das Feld
 *    über 1000 Pixel breit statt 1 Pixel.
 * 2. Kein Vorfahr war positioniert. Ein absolut positioniertes Element sucht
 *    sich dann den Viewport als Bezug – es lag also ausserhalb der App und
 *    wurde von deren Begrenzung nicht erfasst.
 * Deshalb beides: ein positionierter Rahmen und Masse, die das Theme nicht
 * mehr überschreiben kann.
 */
.hd-upload { position: relative; }
.hd-upload .hd-upload-input,
.hd-app .hd-upload-input {
	position: absolute !important;
	left: 0 !important; top: 0 !important;
	width: 1px !important; height: 1px !important;
	min-width: 0 !important; max-width: 1px !important;
	padding: 0 !important; margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important; border: 0 !important;
}

/* 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 !important; align-items: center; gap: 14px;
	width: 100% !important; cursor: pointer; font: inherit !important; font-weight: 600 !important;
	padding: 4px 0 !important; margin-bottom: 0;
	background: none !important; border: 0; border-radius: 0 !important;
	color: var(--hd-muted) !important;
	transition: color .12s;
}
.hd-details-toggle:hover,
.hd-details-toggle:focus-visible { background: none !important; color: var(--hd-text) !important; }
/* Linien links und rechts vom Text, bis an den Rand */
.hd-details-rule { flex: 1 1 auto; height: 1px; background: var(--hd-border); }
.hd-details-label { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; }
.hd-details-ic {
	width: 20px; height: 20px;
	stroke: currentColor; fill: none;
	color: inherit;
}
/* Plus wird zu Minus: der senkrechte Strich dreht weg */
.hd-details-ic .hd-ic-bar-v { transform-origin: 50% 50%; transition: transform .18s ease, opacity .18s ease; }
.hd-details-toggle.is-open .hd-details-ic .hd-ic-bar-v { transform: rotate(90deg); opacity: 0; }
.hd-details-less { display: none; }
.hd-details-toggle.is-open .hd-details-more { display: none; }
.hd-details-toggle.is-open .hd-details-less { display: inline; }
@media (prefers-reduced-motion: reduce) {
	.hd-details-ic .hd-ic-bar-v { transition: none; }
}
.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; }
	/* Produktkarte gestapelt: grosses Bild oben, Text darunter. */
	.hd-app .hd-layout-aside .hd-rec { display: block; }
	.hd-app .hd-layout-aside .hd-rec-img {
		width: 100%;
		aspect-ratio: 1 / 1;
		padding: 0;
		overflow: hidden;
	}
	.hd-app .hd-layout-aside .hd-rec-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
	.hd-app .hd-layout-aside .hd-rec-body { 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,
.hd-upload .hd-upload-remove:focus-visible {
	background: var(--hd-pink, #e0245e) !important;
	color: #fff !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 !important; align-items: center; gap: 14px; width: 100% !important;
	padding: 14px 10px !important; border-radius: 12px !important; text-decoration: none; cursor: pointer;
	background: none !important; border: none !important; box-shadow: none !important;
	color: var(--hd-text, #1f2421) !important; font: inherit !important; font-weight: 600 !important; 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; }

/* ==========================================================================
   v1.7.5 – Videos in den Aktivitäten
   ========================================================================== */
/* Beitragsvideo wie das Beitragsbild im 4:5-Hochformat */
.hd-app .hd-post-video { margin: 0 -16px 10px; background: #000; }
.hd-app .hd-post-video video {
	width: 100%;
	aspect-ratio: 4 / 5;
	/* cover wie beim Beitragsbild: die Kachel ist immer gefuellt. Querformat
	   wird dafuer oben und unten beschnitten. */
	object-fit: cover;
	object-position: center;
	display: block;
	background: #000;
}

/* Vorschau im Composer */
.hd-upload-video {
	width: 64px; height: 64px; flex: 0 0 auto;
	border-radius: var(--hd-radius-sm);
	object-fit: cover; background: #000;
}
.hd-upload-video[hidden] { display: none; }

/* ==========================================================================
   v1.8.0 – Medien-Karussell, Videos mit Autoplay im Viewport
   ========================================================================== */
.hd-app .hd-media {
	position: relative;
	margin: 0 -16px 10px;
	background: var(--hd-surface-alt);
	overflow: hidden;
}
.hd-app .hd-media-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.hd-app .hd-media-track::-webkit-scrollbar { display: none; }
.hd-app .hd-media-slide {
	flex: 0 0 100%;
	scroll-snap-align: center;
	position: relative;
	min-width: 0;
}
.hd-app .hd-media-img,
.hd-app .hd-media-video video {
	width: 100%;
	aspect-ratio: 4 / 5;
	display: block;
	background: #000;
}
.hd-app .hd-media-img { object-fit: cover; }
/* Videos wie Bilder: die Kachel ist immer gefuellt. */
.hd-app .hd-media-video { position: relative; }
.hd-app .hd-media-video video { object-fit: cover; object-position: center; }

/* Ton-Schalter oben rechts */
.hd-app .hd-media-sound {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 34px;
	height: 34px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	cursor: pointer;
	backdrop-filter: blur(4px);
	transition: background .15s ease;
}
.hd-app .hd-media-sound:hover { background: rgba(0, 0, 0, .75); }
.hd-app .hd-media-sound .hd-ic { width: 18px; height: 18px; stroke: #fff; }
.hd-app .hd-media-sound .hd-sound-on { display: none; }
.hd-app .hd-media-sound.is-on .hd-sound-off { display: none; }
.hd-app .hd-media-sound.is-on .hd-sound-on { display: flex; }

/* Zaehler oben links */
.hd-app .hd-media-count {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .02em;
	backdrop-filter: blur(4px);
}

/* Pfeile */
.hd-app .hd-media-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 32px;
	height: 32px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	color: #111;
	cursor: pointer;
	opacity: 0;
	transition: opacity .15s ease;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.hd-app .hd-media-nav .hd-ic { width: 18px; height: 18px; stroke: #111; }
.hd-app .hd-media-prev { left: 10px; }
.hd-app .hd-media-next { right: 10px; }
.hd-app .hd-media:hover .hd-media-nav,
.hd-app .hd-media-nav:focus-visible { opacity: 1; }
.hd-app .hd-media-nav[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) {
	/* Auf Touch-Geraeten wird gewischt – Pfeile waeren nur im Weg. */
	.hd-app .hd-media-nav { display: none; }
}

/* Punkte */
.hd-app .hd-media-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 6px;
	pointer-events: none;
}
.hd-app .hd-media-dot {
	pointer-events: auto;
	width: 6px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
	box-shadow: 0 0 2px rgba(0, 0, 0, .4);
	cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.hd-app .hd-media-dot.is-active { background: #fff; transform: scale(1.3); }

/* Medien im Eintrag laufen innerhalb der Karte, nicht randlos */
.hd-app .hd-media-entry {
	margin: 14px 0;
	border-radius: var(--hd-radius-sm);
}

/* Verwaltungsleiste unter dem Karussell im Eintrag */
.hd-app .hd-photo-manage { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.hd-app .hd-photo-manage-item {
	position: relative; width: 64px; height: 64px;
	border-radius: var(--hd-radius-sm); overflow: hidden;
	background: var(--hd-surface-alt);
}
.hd-app .hd-photo-manage-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-app .hd-photo-manage-ph {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; color: var(--hd-muted);
}
.hd-app .hd-photo-manage-badge {
	position: absolute; left: 4px; bottom: 4px;
	display: flex; align-items: center; justify-content: center;
	width: 18px; height: 18px; border-radius: 50%;
	background: rgba(0, 0, 0, .6);
}
.hd-app .hd-photo-manage-badge .hd-ic { width: 11px; height: 11px; stroke: #fff; fill: #fff; }
.hd-app .hd-photo-manage-item .hd-photo-del {
	position: absolute; top: 3px; right: 3px;
	width: 20px; height: 20px; padding: 0;
	display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer;
}
.hd-app .hd-photo-manage-item .hd-photo-del .hd-ic { width: 12px; height: 12px; stroke: #fff; }

/* Mehrfachauswahl: Miniaturen im Upload-Feld */
.hd-upload-thumbs { display: flex; gap: 6px; flex: 0 0 auto; }
.hd-upload-thumbs[hidden] { display: none; }
.hd-upload-thumbs img,
.hd-upload-thumbs .hd-upload-thumb-more {
	width: 44px; height: 44px; border-radius: var(--hd-radius-sm);
	object-fit: cover; background: var(--hd-surface-alt); display: block;
}
.hd-upload-thumbs .hd-upload-thumb-more {
	display: flex; align-items: center; justify-content: center;
	font-size: .8rem; font-weight: 600; color: var(--hd-muted);
}
.hd-poster-fields { display: none; }

/* ==========================================================================
   v1.8.2 – Teilen-Sheet am Desktop, Play-Symbol bei pausierten Videos
   ========================================================================== */
/* Am Desktop steht das Sheet mittig als Dialog statt am unteren Rand. */
@media (min-width: 901px) {
	.hd-offcanvas:not(.hd-offcanvas-menu) .hd-offcanvas-sheet {
		top: 50%;
		bottom: auto;
		left: 50%;
		right: auto;
		transform: translate(-50%, -50%);
		width: min(380px, calc(100vw - 40px));
		border-radius: 16px;
		box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
	}
}

/* Play-Symbol erscheint, sobald ein Video steht. */
.hd-app .hd-media-playmark {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(.85);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease, transform .15s ease;
	backdrop-filter: blur(2px);
}
.hd-app .hd-media-playmark .hd-ic {
	width: 26px;
	height: 26px;
	margin-left: 3px;
	stroke: #fff;
	fill: #fff;
}
.hd-app [data-hd-video].is-paused .hd-media-playmark {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* ==========================================================================
   v1.9.0 – Routinen im Profil, Liken ohne Neuladen, Einstiegstour
   ========================================================================== */
/* Routinen stehen am Desktop im Profil, mobil weiterhin unter „Mehr“. */
@media (min-width: 901px) {
	.hd-app .hd-nav-mobile-only { display: none !important; }
}

/* Karte, die im Profil auf die Routinen verlinkt */
.hd-app .hd-profile-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	margin-bottom: 16px;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.hd-app .hd-profile-link:hover {
	border-color: var(--hd-accent-2);
	box-shadow: var(--hd-shadow);
}
.hd-app .hd-profile-link-ic {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--hd-surface-alt);
}
.hd-app .hd-profile-link-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hd-app .hd-profile-link-text .hd-muted { font-size: .86rem; }
.hd-app .hd-profile-link-arrow { flex: 0 0 auto; color: var(--hd-muted); display: flex; }

/* Herz beim Liken kurz betonen */
.hd-app .hd-like.is-pulsing .hd-ic { animation: hd-like-pulse .32s ease; }
@keyframes hd-like-pulse {
	0%   { transform: scale(1); }
	45%  { transform: scale(1.28); }
	100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
	.hd-app .hd-like.is-pulsing .hd-ic { animation: none; }
}

/* Textlink-Button: sieht aus wie ein Link, ist aber ein Button. Jeder
   Zustand einzeln und mit !important, weil das Theme Buttons einfärbt. */
.hd-app .hd-guide-restart { margin: -8px 0 18px; }
.hd-app .hd-linkbtn,
.hd-app .hd-linkbtn:hover,
.hd-app .hd-linkbtn:focus,
.hd-app .hd-linkbtn:active {
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	width: auto !important;
	min-width: 0 !important;
	font: inherit;
	font-size: .86rem !important;
	font-weight: 400 !important;
	color: var(--hd-muted) !important;
	text-decoration: underline;
	cursor: pointer;
}
.hd-app .hd-linkbtn:hover { color: var(--hd-text) !important; }

/* ==========================================================================
   v1.9.2 – Details-Umschalter ohne Theme-Button-Look
   ========================================================================== */
/* Manche Themes stylen jedes <button>; hier soll nur Text mit Linien stehen. */
.hd-app .hd-details-toggle,
.hd-app .hd-details-toggle:hover,
.hd-app .hd-details-toggle:focus,
.hd-app .hd-details-toggle:active {
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	transform: none !important;
	border-radius: 0 !important;
	padding: 4px 0 !important;
	min-height: 0 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}
.hd-app .hd-details-toggle .hd-details-ic {
	stroke: currentColor !important;
	fill: none !important;
	stroke-width: 1.8 !important;
}

/* ==========================================================================
   v1.9.3 – Hair-Twins, Schalter, Kontrollkästchen, Upload-Feld
   ========================================================================== */

/* --- Hair-Twins: Verbinden schließt die Kachel unten ab --- */
.hd-app .hd-twins { align-items: stretch; }
.hd-app .hd-twin { display: flex; flex-direction: column; }
.hd-app .hd-twin-head { align-items: center; }
/* Alles vor dem Button wächst, der Button selbst wird nach unten gedrückt. */
.hd-app .hd-twin-connect-form { margin: auto 0 0; padding-top: 12px; }
.hd-app .hd-twin-connect-form .hd-connect { width: 100%; justify-content: center; }

/* --- Upload-Feld: Icon und Text auf einer Zeile, mittig --- */
.hd-app .hd-upload-drop {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-align: center;
}
.hd-app .hd-upload-hint:empty { display: none; }
/* Die kompakte Variante (Composer, Profilbild) bleibt linksbündig. */
.hd-app .hd-upload-sm .hd-upload-drop { justify-content: flex-start; text-align: left; padding: 12px 16px; }

/* --- Haarwaschtag: Zustand in der Überschrift, darunter nur der Schalter --- */
.hd-app .hd-wash-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}
/* Sieht aus wie die Beschriftung daneben („Datum“), ist aber klickbar. */
.hd-app .hd-wash-head {
	display: block;
	cursor: pointer;
	font-weight: 600;
	color: var(--hd-text);
	margin-bottom: 6px;
}
.hd-app .hd-wash-on { display: none; }
.hd-app .hd-wash-input:checked ~ .hd-wash-head .hd-wash-off { display: none; }
.hd-app .hd-wash-input:checked ~ .hd-wash-head .hd-wash-on { display: inline; }

/* Trägt zusätzlich .hd-toggle, damit Größe, Farbe und Knopfversatz exakt
   dem Schalter aus dem Community-Bereich entsprechen. */
.hd-app .hd-wash-switch { cursor: pointer; margin-bottom: 0; }
.hd-app .hd-wash-input:checked ~ .hd-wash-switch .hd-toggle-track { background: var(--hd-accent-2); }
.hd-app .hd-wash-input:checked ~ .hd-wash-switch .hd-toggle-track::after { transform: translateX(20px); }
.hd-app .hd-wash-input:focus-visible ~ .hd-wash-switch .hd-toggle-track {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--hd-accent-2) 30%, transparent);
}

/* --- Kontrollkästchen und Radios in der Akzentfarbe statt Systemblau --- */
.hd-app input[type="checkbox"],
.hd-app input[type="radio"] {
	accent-color: var(--hd-accent);
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	cursor: pointer;
}
/* Visuell ausgeblendete Eingaben (Schalter, Sterne, Chips) bleiben unsichtbar. */
.hd-app .hd-toggle input[type="checkbox"],
.hd-app .hd-stars input[type="radio"],
.hd-app .hd-chip input[type="checkbox"],
.hd-app .hd-chip input[type="radio"],
.hd-app .hd-wash-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

/* --- Produktauswahl: mehr Luft zwischen den Einträgen --- */
.hd-app .hd-product-group { padding: 14px 14px 10px; }
.hd-app .hd-product-check {
	align-items: center;
	gap: 10px;
	margin-bottom: 0;
	padding: 7px 0;
	line-height: 1.35;
}
.hd-app .hd-product-check + .hd-product-check { border-top: 1px solid var(--hd-border); }

/* --- „Mehr Details erfassen“ in Textfarbe statt Grau --- */
.hd-app .hd-details-toggle { color: var(--hd-text) !important; }
.hd-app .hd-details-toggle:hover,
.hd-app .hd-details-toggle:focus-visible { color: var(--hd-text) !important; }

/* ==========================================================================
   v1.9.4 – Profilbild zentriert, Routinen im Tagebuch, Hover-Farbe
   ========================================================================== */

/* --- Hair-Twins: beim Überfahren bleibt die Schriftfarbe stehen --- */
.hd-app .hd-twin-connect-form .hd-connect,
.hd-app .hd-twin-connect-form .hd-connect:hover,
.hd-app .hd-twin-connect-form .hd-connect:focus,
.hd-app .hd-twin-connect-form .hd-connect:active { color: var(--hd-text) !important; }
.hd-app .hd-twin-connect-form .hd-connect.hd-connect-on,
.hd-app .hd-twin-connect-form .hd-connect.hd-connect-on:hover,
.hd-app .hd-twin-connect-form .hd-connect.hd-connect-on:focus,
.hd-app .hd-twin-connect-form .hd-connect.hd-connect-on:active { color: var(--hd-accent) !important; }
/* „Verbunden“ folgt der eingestellten Akzentfarbe statt einem festen Grün. */
.hd-app .hd-connect.hd-connect-on {
	border-color: var(--hd-accent);
	background: var(--hd-surface-alt);
}

/* --- Profilbild: Upload mittig unter dem Bild --- */
.hd-app .hd-avatar-field {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
}
.hd-app .hd-avatar-field .hd-avatar-upload {
	align-items: center;
	width: 100%;
	max-width: 320px;
}
.hd-app .hd-avatar-field .hd-upload { width: 100%; flex: 0 1 auto; margin-bottom: 0; }
.hd-app .hd-avatar-field .hd-upload-drop { justify-content: center; text-align: center; }

/* --- Routinen-Kurzfassung im Tagebuch --- */
.hd-app .hd-routine-summary { margin-bottom: 16px; }
.hd-app .hd-routine-summary-head {
	display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px;
}
.hd-app .hd-routine-summary-head h4 { margin: 0; }
.hd-app .hd-routine-summary-all {
	margin-left: auto; font-size: .86rem; font-weight: 600;
	color: var(--hd-accent); text-decoration: none;
}
.hd-app .hd-routine-summary-all:hover { text-decoration: underline; }
.hd-app .hd-routine-summary-empty { margin: 4px 0 12px; font-size: .92rem; }
.hd-app .hd-routine-summary-list { list-style: none; margin: 8px 0 0; padding: 0; }
.hd-app .hd-routine-summary-list li + li { border-top: 1px solid var(--hd-border); }
.hd-app .hd-routine-summary-item {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 0; text-decoration: none; color: inherit;
}
.hd-app .hd-routine-summary-item:hover .hd-routine-summary-arrow { transform: translateX(2px); }
.hd-app .hd-routine-summary-ic {
	flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%;
	background: var(--hd-surface-alt); color: var(--hd-text);
}
.hd-app .hd-routine-summary-ic .hd-ic { width: 18px; height: 18px; }
.hd-app .hd-routine-summary-text {
	flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px;
}
.hd-app .hd-routine-summary-text strong { font-size: .96rem; line-height: 1.3; }
.hd-app .hd-routine-summary-text .hd-muted {
	font-size: .84rem; line-height: 1.35;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hd-app .hd-routine-summary-tag {
	flex: 0 0 auto; font-size: .72rem; font-weight: 700;
	letter-spacing: .04em; text-transform: uppercase;
	color: var(--hd-muted); background: var(--hd-surface-alt);
	border-radius: 999px; padding: 3px 9px;
}
.hd-app .hd-routine-summary-arrow {
	flex: 0 0 auto; display: flex; color: var(--hd-muted);
	transition: transform .12s ease;
}
.hd-app .hd-routine-summary-arrow .hd-ic { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
	.hd-app .hd-routine-summary-arrow { transition: none; }
}

/* ==========================================================================
   v1.9.5 – Upload-Feld einheitlich, leeres Tagebuch mit Einstieg
   ========================================================================== */

/*
 * Manche Themes setzen <label> auf display:block. Dann greifen weder
 * flex-direction noch gap, und Icon und Text kleben aneinander – genau das
 * war im Eintragsformular zu sehen. Deshalb hier hart durchgesetzt.
 */
.hd-app .hd-upload-drop {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 12px !important;
	padding: 14px 18px;
	text-align: left;
	justify-content: flex-start;
}
.hd-app .hd-upload-ic {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
}
.hd-app .hd-upload-title { line-height: 1.3; }

/* Leeres Tagebuch: Text und Einstieg untereinander, mittig */
.hd-app .hd-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 28px 20px;
}
.hd-app .hd-empty p { margin: 0; }

/* ==========================================================================
   v1.9.7 – Aktivitäten: Schriftfarbe der Buttons bleibt beim Überfahren
   ========================================================================== */
/*
 * Themes färben Buttons beim Überfahren gern um. In den Aktivitäten soll sich
 * nur die Fläche ändern, die Schrift behält ihre Farbe – auch im Zustand
 * „geliked“ oder „verbunden“.
 */
.hd-app .hd-post-btn,
.hd-app .hd-post-btn:hover,
.hd-app .hd-post-btn:focus,
.hd-app .hd-post-btn:focus-visible,
.hd-app .hd-post-btn:active { color: var(--hd-text) !important; }

.hd-app .hd-like.hd-like-on { color: var(--hd-pink) !important; }
.hd-app .hd-like.hd-like-on:hover,
.hd-app .hd-like.hd-like-on:focus,
.hd-app .hd-like.hd-like-on:active { color: #fff !important; }

.hd-app .hd-connect.hd-connect-on,
.hd-app .hd-connect.hd-connect-on:hover,
.hd-app .hd-connect.hd-connect-on:focus,
.hd-app .hd-connect.hd-connect-on:active { color: var(--hd-accent) !important; }

/* Teilen ebenso. Der Löschen-Button bleibt ausgenommen: Sein Rot beim
   Überfahren ist eine bewusste Warnung, kein Theme-Effekt. */
.hd-app .hd-share-open,
.hd-app .hd-share-open:hover,
.hd-app .hd-share-open:focus,
.hd-app .hd-share-open:active { color: var(--hd-text) !important; }

/* ==========================================================================
   v2.0.0 – Anmeldung, Passwort, Werbeeinwilligung, Benutzername
   ========================================================================== */

/* Benutzername klein unter der Wortmarke */
.hd-app .hd-sidebar-brandtext { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.hd-app .hd-sidebar-user {
	font-size: .78rem;
	font-weight: 500;
	color: var(--hd-muted);
	letter-spacing: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Passwort vergessen */
.hd-app .hd-lostpass { margin: 10px 0 0; text-align: center; font-size: .9rem; }
.hd-app .hd-lostpass a { color: var(--hd-muted); text-decoration: underline; }
.hd-app .hd-lostpass a:hover { color: var(--hd-text); }

/* Rückmeldung beim Passwortabgleich */
.hd-app .hd-pw-match { display: block; margin-top: 6px; font-size: .84rem; min-height: 1.1em; }
.hd-app .hd-pw-match.is-ok { color: var(--hd-accent-2); font-weight: 600; }
.hd-app .hd-pw-match.is-error { color: var(--hd-danger, #b32d2e); }

/* Einwilligungen: Zeitstempel und Hinweis unter dem Häkchen */
.hd-app .hd-consent-time { display: block; margin-top: 4px; font-size: .82rem; color: var(--hd-muted); }

/*
 * Die Routinen-Karte im Profil trug eine engere Innenfläche als die Karten
 * darunter – jetzt einheitlich.
 */
.hd-app .hd-profile-link { padding: 20px; margin-bottom: 18px; }

/* ==========================================================================
   v2.0.1 – Formulare: einheitliche Felder, mehr Luft
   ========================================================================== */

/* Anmeldung und Registrierung: mehr Abstand zwischen den Elementen */
.hd-app .hd-login { margin-top: 22px; }
.hd-app .hd-login .login-username,
.hd-app .hd-login .login-password { margin-bottom: 18px; }
.hd-app .hd-login label { margin-bottom: 6px; }
/* Dieselbe Optik wie in den übrigen Formularen. */
.hd-app .hd-login input[type=text],
.hd-app .hd-login input[type=email],
.hd-app .hd-login input[type=password] {
	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 .hd-login .login-remember { margin: 0 0 18px; }
.hd-app .hd-login .login-submit { margin: 0; }

/* „Passwort vergessen?“ sitzt jetzt unter dem Passwortfeld */
.hd-app .hd-lostpass { margin: -8px 0 18px; text-align: right; font-size: .88rem; }
.hd-app .hd-lostpass a { color: var(--hd-muted); text-decoration: underline; }
.hd-app .hd-lostpass a:hover { color: var(--hd-text); }

.hd-app .hd-auth-form .hd-field { margin-bottom: 20px; }
.hd-app .hd-auth-form .hd-actions { margin-top: 18px; }
.hd-app .hd-register-link { margin-top: 20px; text-align: center; }
.hd-app .hd-welcome .hd-auth-tabs { margin-bottom: 20px; }

/* ==========================================================================
   v2.0.3 – Höhere Auswahlfelder, sichtbarer Schalter-Hintergrund
   ========================================================================== */

/*
 * Eingabe- und Auswahlfelder teilen sich eine Höhe.
 *
 * Vorher hatten die Auswahlfelder eine eigene Mindesthöhe, während die
 * Eingabefelder ihre Höhe vom Theme bekamen – nebeneinander sah das krumm aus.
 * Jetzt bestimmt eine Variable beide. Die Klasse ist gedoppelt, damit die Regel
 * über den Theme-Regeln steht.
 */
.hd-app.hd-app input[type=text],
.hd-app.hd-app input[type=email],
.hd-app.hd-app input[type=password],
.hd-app.hd-app input[type=url],
.hd-app.hd-app input[type=tel],
.hd-app.hd-app input[type=search],
.hd-app.hd-app input[type=number],
.hd-app.hd-app input[type=date],
.hd-app.hd-app select {
	box-sizing: border-box !important;
	height: var(--hd-control-h, 48px) !important;
	min-height: var(--hd-control-h, 48px) !important;
	max-height: var(--hd-control-h, 48px) !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	line-height: 1.3 !important;
	font-size: 1rem !important;
}
.hd-app.hd-app input[type=text],
.hd-app.hd-app input[type=email],
.hd-app.hd-app input[type=password],
.hd-app.hd-app input[type=url],
.hd-app.hd-app input[type=tel],
.hd-app.hd-app input[type=search],
.hd-app.hd-app input[type=number],
.hd-app.hd-app input[type=date] {
	padding-left: 14px !important;
	padding-right: 14px !important;
}
.hd-app.hd-app select {
	padding-left: 14px !important;
	padding-right: 38px !important;
}
/* Etwas mehr Luft zwischen Beschriftung und Feld */
.hd-app .hd-field label { margin-bottom: 8px; }
.hd-app .hd-grid-2 { gap: 18px; }
.hd-app .hd-form .hd-field { margin-bottom: 20px; }

/* Schalter: hellgrauer Grund, damit er sich von der weißen Karte abhebt */
.hd-app .hd-toggle-track {
	background: #e2dfda;
	border: 1px solid rgba(0, 0, 0, .06);
}
.hd-app .hd-toggle input:checked ~ .hd-toggle-track,
.hd-app .hd-wash-input:checked ~ .hd-wash-switch .hd-toggle-track {
	background: var(--hd-accent-2);
	border-color: transparent;
}

/* ==========================================================================
   v2.0.4 – Haarwaschtag-Schalter exakt wie der Community-Schalter
   ========================================================================== */
/*
 * Die Pille des Haarwaschtag-Schalters blieb unsichtbar: Etwas von außen
 * hat die Breite des Elements einkassiert, sodass nur der Knopf zu sehen war.
 * Deshalb hier Geometrie und Farben vollständig festgeschrieben – identisch
 * zum Schalter „Als Beitrag in den Aktivitäten posten“.
 */
.hd-app .hd-wash-switch {
	display: inline-flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 8px 0 !important;
	margin-bottom: 0 !important;
	background: none !important;
	border: 0 !important;
	cursor: pointer;
}
.hd-app .hd-wash-switch .hd-toggle-track {
	display: block !important;
	position: relative !important;
	flex: 0 0 auto !important;
	width: 44px !important;
	min-width: 44px !important;
	max-width: 44px !important;
	height: 26px !important;
	border-radius: 999px !important;
	background: #e2dfda !important;
	border: 1px solid rgba(0, 0, 0, .06) !important;
	box-shadow: none;
	transition: background .15s;
}
.hd-app .hd-wash-switch .hd-toggle-track::after {
	content: "" !important;
	position: absolute !important;
	top: 2px !important;
	left: 2px !important;
	width: 20px !important;
	height: 20px !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2) !important;
	transition: transform .15s;
	transform: translateX(0);
}
.hd-app .hd-wash-input:checked ~ .hd-wash-switch .hd-toggle-track {
	background: var(--hd-accent-2) !important;
	border-color: transparent !important;
}
.hd-app .hd-wash-input:checked ~ .hd-wash-switch .hd-toggle-track::after {
	transform: translateX(20px) !important;
}

/* ==========================================================================
   v2.5.1 – Löschen-Button im Beitragskopf: Hover wie bei den übrigen Icons
   ========================================================================== */
/*
 * Themes legen auf jedes <button> ihre Buttonfläche – beim Löschen-Icon
 * erschien dadurch ein farbiges Quadrat. Gleiche Behandlung wie beim
 * Schließen-Icon im Off-Canvas und beim Entfernen im Upload-Feld.
 */
.hd-app .hd-post-del,
.hd-app .hd-post-del:hover,
.hd-app .hd-post-del:focus,
.hd-app .hd-post-del:focus-visible,
.hd-app .hd-post-del:active {
	width: 34px;
	height: 34px;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0 !important;
	border-radius: 50% !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	transform: none !important;
	color: var(--hd-muted) !important;
	transition: background-color .12s ease, color .12s ease;
}
.hd-app .hd-post-del:hover,
.hd-app .hd-post-del:focus-visible {
	background-color: var(--hd-pink, #e0245e) !important;
	color: #fff !important;
}
.hd-app .hd-post-del .hd-ic {
	width: 18px;
	height: 18px;
	stroke: currentColor !important;
	fill: none !important;
}

/* Feedback-Karte im Profil */
.hd-app .hd-note-card .hd-form { margin-top: 4px; }
.hd-app .hd-note-hint { font-size: .82rem; margin: 10px 0 0; }

/* ==========================================================================
 * Pinke Buttons: ein Stil in allen Ansichten
 *
 * Das Theme färbt <button> selbst ein und bringt dabei Rand, Schatten und
 * einen eigenen Hover-Ton mit. Deshalb zuerst eine Grundlinie für jeden
 * Button im Frontend – auch für Seitenleiste, Off-Canvas, Teilen-Sheet und
 * Tour, die per JS an <body> hängen und damit außerhalb von .hd-app liegen.
 * Danach die pinke Familie: Fläche in gedecktem Pink, kein Rand, beim Hover
 * ein kräftigeres Pink.
 * ========================================================================== */

/* --- Grundlinie: keine Theme-Dekoration auf Buttons --- */
.hd-app button,
.hd-app input[type="submit"],
.hd-app a.hd-btn,
.hd-sidebar button,
.hd-sidebar a.hd-btn,
.hd-offcanvas button,
.hd-offcanvas .hd-share-target,
[data-hd-share-sheet] button,
[data-hd-share-sheet] .hd-share-target,
.hd-hint button,
.hd-hint a.hd-btn,
.hd-chat button,
.hd-chat .hd-btn {
	-webkit-appearance: none !important;
	appearance: none !important;
	border: 0 !important;
	background-image: none !important;
	text-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	transform: none !important;
	font-family: inherit !important;   /* Schrift der Seite, nicht die Systemschrift für Knöpfe */
}

/* Maße, Schrift und Farbe der Knopf-Familien (.hd-btn*, Senden, "Luna
   fragen", Teilen-Ziele, Details-Umschalter) tragen an ihren Regeln überall
   "!important". Grund: Themes stylen <button> und [type="submit"] direkt –
   Hello Elementor lädt nach dem Plugin, das Elementor-Kit hängt eine Klasse
   davor. Beides schlägt eine einzelne Klasse im Ruhezustand, verliert aber
   gegen ":hover". Die Folge waren Knöpfe, die beim Überfahren Größe und
   Schriftstärke wechselten, und <button>, die anders aussahen als <a> mit
   derselben Klasse. Weil ALLE Regeln einer Familie die Markierung tragen,
   bleibt ihre Rangfolge untereinander wie zuvor. Neue Regeln für diese
   Familien brauchen sie deshalb auch. */

/* Die beiden bewusst umrandeten Familien behalten ihre Kontur. */
.hd-app .hd-post-btn,
.hd-app .hd-btn-ghost,
.hd-sidebar .hd-btn-ghost,
.hd-offcanvas .hd-btn-ghost,
.hd-hint .hd-btn-ghost {
	border: 1px solid var(--hd-border) !important;
}

/* Die Pfeile im Karussell brauchen ihren Schatten, um auf dem Bild zu sitzen. */
.hd-app .hd-media-nav { box-shadow: 0 1px 4px rgba(0, 0, 0, .2) !important; }

/* --- Gefüllte Akzent-Buttons: Speichern, Neuer Eintrag, Zum Produkt … --- */
.hd-app .hd-btn-primary,
.hd-app a.hd-btn-primary:link,
.hd-app a.hd-btn-primary:visited,
.hd-sidebar .hd-btn-primary,
.hd-offcanvas .hd-btn-primary,
.hd-hint .hd-btn-primary,
.hd-hint a.hd-btn-primary:link,
.hd-hint a.hd-btn-primary:visited {
	background: var(--hd-accent) !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #fff !important;
	transition: background-color .12s ease;
}
.hd-app .hd-btn-primary:hover,
.hd-app .hd-btn-primary:focus,
.hd-app .hd-btn-primary:focus-visible,
.hd-app .hd-btn-primary:active,
.hd-sidebar .hd-btn-primary:hover,
.hd-offcanvas .hd-btn-primary:hover,
.hd-hint .hd-btn-primary:hover {
	background: var(--hd-accent-strong, var(--hd-accent-2)) !important;
	background-image: none !important;
	border: 0 !important;
	color: #fff !important;
}
.hd-app .hd-btn-primary:active,
.hd-sidebar .hd-btn-primary:active,
.hd-offcanvas .hd-btn-primary:active,
.hd-hint .hd-btn-primary:active {
	background: var(--hd-accent-press, var(--hd-accent-strong, var(--hd-accent-2))) !important;
	color: #fff !important;
}

/* --- Pinke Familie: Löschen, Verwerfen, Gefällt mir --- */
.hd-app .hd-btn-danger,
.hd-app .hd-btn-danger:link,
.hd-app .hd-btn-danger:visited,
.hd-app .hd-like.hd-like-on {
	background: var(--hd-pink-soft, #fdeef2) !important;
	background-image: none !important;
	border-color: transparent !important;
	box-shadow: none !important;
	color: var(--hd-pink, #e0245e) !important;
	transition: background-color .12s ease, color .12s ease;
}
.hd-app .hd-btn-danger:hover,
.hd-app .hd-btn-danger:focus,
.hd-app .hd-btn-danger:focus-visible,
.hd-app .hd-btn-danger:active,
.hd-app .hd-like.hd-like-on:hover,
.hd-app .hd-like.hd-like-on:focus-visible {
	background: var(--hd-pink, #e0245e) !important;
	background-image: none !important;
	border-color: transparent !important;
	color: #fff !important;
}

/* Icon-Varianten: Ruhezustand ruhig, Hover in derselben Tonleiter. */
.hd-app .hd-post-del:hover,
.hd-app .hd-post-del:focus-visible,
.hd-app .hd-upload-remove:hover,
.hd-app .hd-upload-remove:focus-visible,
.hd-upload .hd-upload-remove:hover,
.hd-upload .hd-upload-remove:focus-visible {
	background-color: var(--hd-pink, #e0245e) !important;
	border-color: transparent !important;
	color: #fff !important;
}
.hd-app .hd-photo-del:hover,
.hd-app .hd-photo-del:focus-visible,
.hd-app .hd-photo-manage-item .hd-photo-del:hover {
	background: var(--hd-pink, #e0245e) !important;
	color: #fff !important;
}

/* Gedrückt: eine Stufe dunkler als der Hover. */
.hd-app .hd-btn-danger:active,
.hd-app .hd-like.hd-like-on:active,
.hd-app .hd-post-del:active,
.hd-app .hd-upload-remove:active,
.hd-upload .hd-upload-remove:active,
.hd-app .hd-photo-del:active {
	background: var(--hd-pink-strong, #b81a49) !important;
	background-color: var(--hd-pink-strong, #b81a49) !important;
	color: #fff !important;
}

/* ==========================================================================
 * Produktempfehlungen als Karussell
 * Gleicher Aufbau wie die Beiträge mit mehreren Fotos: eine Karte im Bild,
 * Zähler und Pfeile in der Kopfzeile, Endlosschleife mit ruhigem Wechsel.
 * ========================================================================== */
.hd-app .hd-recs-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
.hd-app .hd-recs-head > h4 { margin: 0; }
.hd-app .hd-recs-count {
	font-size: .78rem;
	font-weight: 600;
	color: var(--hd-muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.hd-app .hd-recs-nav {
	margin-left: auto;
	display: inline-flex;
	gap: 6px;
	flex: 0 0 auto;
}
/* Die Pfeile sitzen hier in der Kopfzeile, nicht über dem Bild. */
.hd-app .hd-recs-prev,
.hd-app .hd-recs-next {
	position: static;
	transform: none;
	opacity: 1;
	width: 28px;
	height: 28px;
	background: var(--hd-surface-alt) !important;
	box-shadow: none !important;
}
.hd-app .hd-recs-prev:hover,
.hd-app .hd-recs-next:hover { background: var(--hd-border) !important; }
.hd-app .hd-recs-prev .hd-ic,
.hd-app .hd-recs-next .hd-ic { width: 16px; height: 16px; stroke: var(--hd-text); }

/* Der Grid-Container wird zur Schiene. */
.hd-app .hd-recs-carousel .hd-rec-grid {
	display: flex;
	grid-template-columns: none;
	gap: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.hd-app .hd-recs-carousel .hd-rec-grid::-webkit-scrollbar { display: none; }
.hd-app .hd-recs-carousel .hd-rec {
	flex: 0 0 100%;
	scroll-snap-align: center;
	min-width: 0;
}

/* Ohne Karussell bleibt die Überschrift wie gehabt. */
.hd-app .hd-recs:not(.hd-recs-carousel) .hd-recs-head { margin-bottom: 10px; }

/* Bei den Fotos sind die Pfeile auf Touch-Geräten im Weg, weil sie über dem
   Bild liegen. In der Kopfzeile der Empfehlungen stören sie nicht – dort
   bleiben sie sichtbar, auch wenn gewischt werden kann. */
@media (hover: none) {
	.hd-app .hd-recs-prev,
	.hd-app .hd-recs-next { display: inline-flex; }
}

/* Produktbild als Link – gleiches Ziel wie „Zum Produkt". */
.hd-app .hd-rec-imglink {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	cursor: pointer;
}

/* ==========================================================================
 * Luna-Panel – bereichsübergreifender Chat
 * Liegt nach <body> verschoben, deshalb bekommt es die Farbvariablen über
 * die Zuweisung in inline_style() eigens mit.
 * ========================================================================== */
.hd-chat[hidden] { display: none; }
.hd-chat {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	justify-content: flex-end;
}
.hd-chat-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 17, .42);
}
.hd-chat-sheet {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: min(420px, 100vw);
	overflow-x: hidden;
	background: var(--hd-surface, #fff);
	box-shadow: -8px 0 30px rgba(0, 0, 0, .14);
}
html.hd-chat-open { overflow: hidden; }

.hd-chat-head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) 34px;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--hd-border, #e7e4df);
	flex: 0 0 auto;
}
.hd-chat-title {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	min-width: 0;
	flex: 1 1 auto;
	overflow: hidden;
}
.hd-chat-title strong,
.hd-chat-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-chat-title strong { font-size: 1rem; }
.hd-chat-sub { font-size: .76rem; color: var(--hd-muted, #7c7973); }
/*
 * Das Panel liegt ausserhalb von .hd-app, dort greifen die Button-Regeln des
 * Themes. Beim Hovern änderte es Grösse und Innenabstand, und der Knopf sprang.
 * Deshalb ist hier jede Eigenschaft festgenagelt, die seine Box verändern kann –
 * identisch in allen Zuständen. Sichtbar ändert sich nur die Fläche.
 */
.hd-chat .hd-chat-close,
.hd-chat .hd-chat-close:link,
.hd-chat .hd-chat-close:visited,
.hd-chat .hd-chat-close:hover,
.hd-chat .hd-chat-close:focus,
.hd-chat .hd-chat-close:focus-visible,
.hd-chat .hd-chat-close:active {
	box-sizing: border-box !important;
	position: static !important;
	inset: auto !important;
	float: none !important;
	transform: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 auto !important;
	align-self: center !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	min-height: 34px !important;
	max-width: 34px !important;
	max-height: 34px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	outline-offset: 2px;
	font-size: 0 !important;
	line-height: 1 !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	color: var(--hd-text, #1f2421) !important;
	cursor: pointer;
	transition: background-color .12s ease;
}
.hd-chat .hd-chat-close:hover,
.hd-chat .hd-chat-close:focus-visible { background-color: rgba(0, 0, 0, .06) !important; }
.hd-chat .hd-chat-close .hd-ic {
	width: 20px !important;
	height: 20px !important;
	display: block !important;
	stroke: currentColor !important;
	fill: none !important;
	transform: none !important;
}

.hd-chat-avatar { width: 36px; height: 36px; flex: 0 0 auto; }

.hd-chat-ctx {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 10px 16px 0;
	padding: 5px 6px 5px 11px;
	border-radius: 999px;
	background: var(--hd-surface-alt, #f7f6f4);
	font-size: .78rem;
	color: var(--hd-text, #1f2421);
	align-self: flex-start;
	max-width: calc(100% - 32px);
}
.hd-chat-ctx[hidden] { display: none; }
.hd-chat-ctx-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-chat-ctx-drop {
	display: inline-flex; align-items: center; justify-content: center;
	width: 20px; height: 20px; padding: 0; flex: 0 0 auto;
	border: 0; border-radius: 50%; background: none; cursor: pointer;
	color: var(--hd-muted, #7c7973);
}
.hd-chat-ctx-drop:hover { background: var(--hd-border, #e7e4df); }
.hd-chat-ctx-drop svg { width: 13px; height: 13px; }

.hd-chat-log {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	-webkit-overflow-scrolling: touch;
}
.hd-chat-note {
	margin: 0;
	font-size: .86rem;
	color: var(--hd-muted, #7c7973);
	line-height: 1.5;
}
.hd-chat-note.is-error { color: var(--hd-pink, #e0245e); font-weight: 600; }
.hd-chat-consent { font-size: .88rem; line-height: 1.5; }
.hd-chat-consent p { margin: 0 0 10px; }

.hd-chat-msg { display: flex; flex-direction: column; gap: 3px; max-width: 86%; }
.hd-chat-msg.is-me { align-self: flex-end; align-items: flex-end; }
.hd-chat-who { font-size: .7rem; font-weight: 700; color: var(--hd-muted, #7c7973); }
.hd-chat-bubble {
	padding: 9px 13px;
	border-radius: var(--hd-radius-sm, 10px);
	font-size: .92rem;
	line-height: 1.5;
	background: var(--hd-surface-alt, #f7f6f4);
	color: var(--hd-text, #1f2421);
}
.hd-chat-bubble p { margin: 0 0 8px; }
.hd-chat-bubble p:last-child { margin-bottom: 0; }
.hd-chat-msg.is-me .hd-chat-bubble {
	background: var(--hd-accent, #04342C);
	color: #fff;
}

/* Wartepunkte, solange die Antwort unterwegs ist */
.hd-chat-dots { display: inline-flex; gap: 4px; align-items: center; height: 1.1em; }
.hd-chat-slow { display: block; margin-top: .35rem; font-size: .76rem; color: var(--hd-muted, #7c7973); }
.hd-chat-dots i {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--hd-muted, #7c7973);
	animation: hd-chat-blink 1.1s infinite ease-in-out;
}
.hd-chat-dots i:nth-child(2) { animation-delay: .18s; }
.hd-chat-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes hd-chat-blink {
	0%, 80%, 100% { opacity: .25; }
	40% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.hd-chat-dots i { animation: none; opacity: .5; }
}

.hd-chat-form {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 12px 16px 0;
	flex: 0 0 auto;
	border-top: 1px solid var(--hd-border, #e7e4df);
}
.hd-chat-form textarea {
	flex: 1 1 auto;
	min-width: 0;
	resize: none;
	max-height: 110px;
	padding: 10px 12px;
	/* Mindestens 16px: alles darunter lässt iOS beim Fokus in die Seite
	   hineinzoomen, und das Panel steht danach verschoben und beschnitten. */
	font-size: 16px;
	line-height: 1.4;
	font-family: inherit;
	border: 1px solid var(--hd-border, #e7e4df);
	border-radius: var(--hd-radius-sm, 10px);
	background: var(--hd-surface, #fff);
	color: var(--hd-text, #1f2421);
}
.hd-chat-send,
.hd-chat-send:hover,
.hd-chat-send:focus,
.hd-chat-send:active {
	flex: 0 0 auto;
	padding: 10px 4px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	font: inherit !important;
	font-weight: 700 !important;
	color: var(--hd-text, #1f2421) !important;
	cursor: pointer;
	line-height: 1.4 !important;
}
.hd-chat-send:hover { text-decoration: underline; }
.hd-chat-send[disabled] { opacity: .4; cursor: default; text-decoration: none; }
.hd-chat-bubble .hd-chat-link {
	color: var(--hd-pink, #c2185b); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; word-break: normal;
}
.hd-chat-bubble .hd-chat-link::after { content: " ↗"; font-weight: 400; }
.hd-chat-foot {
	margin: 8px 16px 14px;
	font-size: .72rem;
	line-height: 1.45;
	color: var(--hd-muted, #7c7973);
	flex: 0 0 auto;
}

/* Auslöser in den Bereichen – ein Wort, kein eigener Kasten */
.hd-chat-trigger {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 5px 12px 5px 10px !important;
	border: 1px solid var(--hd-border, #e7e4df);
	border-radius: 999px !important;
	background: none !important;
	color: var(--hd-muted, #7c7973) !important;
	font-size: .8rem !important;
	font-weight: 600 !important;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap !important;
	line-height: 1.5 !important;
}
.hd-chat-trigger:hover {
	background: var(--hd-surface-alt, #f7f6f4) !important;
	color: var(--hd-text, #1f2421) !important;
}
.hd-chat-trigger .hd-ic { width: 15px; height: 15px; flex: 0 0 auto; }

/* Auf dem Handy sitzt das Panel unten und lässt oben etwas Luft */
@media (max-width: 600px) {
	.hd-chat { align-items: flex-end; }
	.hd-chat-sheet {
		max-width: 100vw;
		/* dvh folgt der eingeblendeten Tastatur, vh nicht – deshalb beides. */
		height: 92vh;
		height: 92dvh;
		border-radius: var(--hd-radius, 14px) var(--hd-radius, 14px) 0 0;
		box-shadow: 0 -8px 30px rgba(0, 0, 0, .16);
	}
}

/* Luna ist der einzige Knopf in der Navigation – alle anderen Punkte sind
   Links. Zwei Dinge würden sie sonst dauerhaft hervorgehoben aussehen lassen:
   das Theme färbt Knöpfe ein, und ein Knopf behält nach dem Tippen den Fokus.
   Hervorgehoben wird nur, solange das Panel offen ist.

   Wichtig: die Leiste wird auf dem Handy per JavaScript nach <body> verschoben
   und liegt dann ausserhalb von .hd-app. Deshalb hängen diese Regeln an
   .hd-sidebar – die Klasse wandert mit. */
.hd-sidebar.hd-sidebar button.hd-nav-item,
.hd-sidebar.hd-sidebar button.hd-nav-item:hover,
.hd-sidebar.hd-sidebar button.hd-nav-item:focus,
.hd-sidebar.hd-sidebar button.hd-nav-item:focus-visible,
.hd-sidebar.hd-sidebar button.hd-nav-item:active {
	font: inherit;
	font-weight: 600;
	font-size: .98rem;
	cursor: pointer;
	text-align: inherit;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	transform: none !important;
	color: var(--hd-text) !important;
}

/* Am Desktop trägt eine Fläche den Zustand … */
@media (min-width: 901px) {
	.hd-sidebar.hd-sidebar button.hd-nav-item:hover {
		background-color: var(--hd-surface-alt) !important;
	}
	.hd-sidebar.hd-sidebar button.hd-nav-item.hd-nav-active,
	.hd-sidebar.hd-sidebar button.hd-nav-item.hd-nav-active:hover {
		background-color: var(--hd-surface-alt) !important;
		color: var(--hd-accent) !important;
		font-weight: 700;
	}
}

/* … in der Tab-Bar nur die Farbe. Dort bleibt :hover nach dem Tippen hängen,
   deshalb darf er gar nichts färben. */
@media (max-width: 900px) {
	.hd-sidebar.hd-sidebar button.hd-nav-item,
	.hd-sidebar.hd-sidebar button.hd-nav-item:hover,
	.hd-sidebar.hd-sidebar button.hd-nav-item:focus,
	.hd-sidebar.hd-sidebar button.hd-nav-item:active {
		background-color: transparent !important;
	}
	.hd-sidebar.hd-sidebar button.hd-nav-item.hd-nav-active {
		background-color: transparent !important;
		color: var(--hd-accent) !important;
	}
}

/* Auslöserzeile unter einem Eintrag */
.hd-app .hd-chat-triggerbar { margin: 0 0 16px; }

/* Verlauf löschen – als Textknopf in der Fußzeile des Panels */
.hd-chat-wipe,
.hd-chat-wipe:hover,
.hd-chat-wipe:focus,
.hd-chat-wipe:active {
	display: inline;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0 !important;
	width: auto !important;
	font: inherit;
	font-size: inherit !important;
	font-weight: 400 !important;
	line-height: inherit;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: var(--hd-muted, #7c7973) !important;
	text-decoration: underline;
	cursor: pointer;
}
.hd-chat-wipe:hover { color: var(--hd-pink, #e0245e) !important; }

/* Einstieg auf der Luna-Seite */
.hd-app .hd-luna-open p { margin: 0 0 12px; }

/* Unsichtbare Beschriftungen – manche Themes bringen die Klasse nicht mit */
.hd-app .screen-reader-text,
.hd-chat .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

/* ==========================================================================
 * Färbreihe: Karte, Schnellschritt, Verlauf und Vergleich
 * ========================================================================== */

/* --- Karte über dem Tagebuch --- */
.hd-app .hd-colorcard {
	display: flex;
	align-items: center;
	gap: 14px;
	position: relative;
	border-left: 4px solid var(--hd-accent-2);
	margin-bottom: 16px;
}
.hd-app .hd-colorcard.is-recolor { border-left-color: var(--hd-pink); }
.hd-app .hd-colorcard-img {
	flex: 0 0 auto;
	width: 62px;
	height: 62px;
	border-radius: var(--hd-radius-sm);
	overflow: hidden;
}
.hd-app .hd-colorcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-app .hd-colorcard-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
	flex: 1 1 auto;
}
.hd-app .hd-colorcard-meta { font-size: .82rem; color: var(--hd-muted); }
.hd-app .hd-colorcard-dismiss { margin: 0; position: absolute; top: 8px; right: 8px; }
.hd-app .hd-colorcard-x,
.hd-app .hd-colorcard-x:hover,
.hd-app .hd-colorcard-x:focus {
	display: inline-flex; align-items: center; justify-content: center;
	width: 28px; height: 28px; padding: 0;
	border: 0 !important; border-radius: 50% !important;
	background: none !important; background-color: transparent !important;
	box-shadow: none !important;
	color: var(--hd-muted) !important;
	cursor: pointer;
}
.hd-app .hd-colorcard-x:hover { background-color: rgba(0, 0, 0, .06) !important; }
.hd-app .hd-colorcard-x .hd-ic { width: 15px; height: 15px; }

/* --- Frage im Eintragsformular --- */
.hd-app .hd-color-ask { margin-top: 12px; }
.hd-app .hd-coloring-fields { margin-top: 10px; }
.hd-app .hd-color-hint { font-size: .84rem; margin: 0 0 10px; }

/* --- Schnellschritt --- */
.hd-app .hd-shot { display: flex; flex-direction: column; gap: 10px; }
.hd-app .hd-shot-hint { font-size: .84rem; margin: 0; }
.hd-app .hd-shot-stage,
.hd-app .hd-shot-preview {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: var(--hd-radius-sm);
	overflow: hidden;
	background: #000;
}
.hd-app .hd-shot-video,
.hd-app .hd-shot-preview img[data-hd-shot-img] {
	width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Die Schablone: das vorherige Foto, durchscheinend darüber */
.hd-app .hd-shot-ghost {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .38;
	pointer-events: none;
	mix-blend-mode: luminosity;
}
.hd-app .hd-shot-trigger {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	width: 56px; height: 56px;
	border-radius: 50% !important;
	border: 3px solid rgba(255, 255, 255, .9) !important;
	background: rgba(255, 255, 255, .28) !important;
	cursor: pointer;
}
.hd-app .hd-shot-trigger:hover { background: rgba(255, 255, 255, .45) !important; }
.hd-app .hd-shot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hd-app .hd-shot-canvas { display: none; }

/* Die drei Antworten */
.hd-app .hd-holds { display: flex; gap: 8px; flex-wrap: wrap; }
.hd-app .hd-hold { position: relative; }
.hd-app .hd-hold input { position: absolute; opacity: 0; width: 0; height: 0; }
.hd-app .hd-hold span {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid var(--hd-border);
	border-radius: 999px;
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
}
.hd-app .hd-hold input:checked + span {
	background: var(--hd-accent);
	border-color: var(--hd-accent);
	color: #fff;
}
.hd-app .hd-hold input:focus-visible + span { outline: 2px solid var(--hd-accent-2); outline-offset: 2px; }

/* --- Kopf der Reihe --- */
.hd-app .hd-colorhead { display: flex; align-items: center; gap: 16px; }
.hd-app .hd-colorhead-count {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 72px; height: 72px;
	border-radius: 50%;
	background: var(--hd-surface-alt);
}
.hd-app .hd-colorhead-count strong { font-size: 1.6rem; line-height: 1; color: var(--hd-accent); }
.hd-app .hd-colorhead-count span { font-size: .72rem; color: var(--hd-muted); }
.hd-app .hd-colorhead-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* --- Vergleich --- */
.hd-app .hd-compare h4 { margin: 0 0 12px; }
.hd-app .hd-compare-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: var(--hd-radius-sm);
	overflow: hidden;
	background: var(--hd-surface-alt);
	touch-action: none;
	cursor: ew-resize;
	user-select: none;
}
.hd-app .hd-compare-stage img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/*
 * Beschnitt über clip-path statt über die Breite eines Rahmens: so bleibt das
 * obere Bild immer so breit wie die Bühne und wird beim Schieben nicht
 * gestaucht.
 */
.hd-app .hd-compare-clip {
	position: absolute;
	inset: 0;
	width: 100%;
	clip-path: inset(0 50% 0 0);
}
.hd-app .hd-compare-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	margin-left: -1px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
	pointer-events: none;
}
.hd-app .hd-compare-handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px; height: 34px;
	margin: -17px 0 0 -17px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .28);
}
.hd-app .hd-compare-tag {
	position: absolute;
	bottom: 10px;
	font-size: .72rem;
	font-weight: 700;
	color: #fff;
	background: rgba(0, 0, 0, .55);
	border-radius: 999px;
	padding: 3px 10px;
	pointer-events: none;
}
.hd-app .hd-compare-tag.is-a { left: 10px; }
.hd-app .hd-compare-tag.is-b { right: 10px; }
.hd-app .hd-compare-range { width: 100%; margin-top: 12px; }

/* --- Stationen --- */
.hd-app .hd-colorsteps {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}
.hd-app .hd-colorstep-item { margin: 0; }
.hd-app .hd-colorstep-item img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--hd-radius-sm);
	display: block;
	margin-bottom: 6px;
}
.hd-app .hd-colorstep-item figcaption {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: .8rem;
	color: var(--hd-muted);
}
.hd-app .hd-colorstep-item figcaption strong { color: var(--hd-text); font-size: .86rem; }
.hd-app .hd-hold-tag {
	align-self: flex-start;
	font-size: .7rem;
	font-weight: 700;
	border-radius: 999px;
	padding: 2px 8px;
	background: var(--hd-surface-alt);
}
.hd-app .hd-hold-tag.is-good { background: #e8f6ef; color: #14603f; }
.hd-app .hd-hold-tag.is-fading { background: #fdf6e7; color: #8a5a00; }
.hd-app .hd-hold-tag.is-faded { background: var(--hd-pink-soft); color: var(--hd-pink-strong); }

/* --- Nachfärben --- */
.hd-app .hd-recolor { border-left: 4px solid var(--hd-pink); }
.hd-app .hd-recolor h4 { margin: 0 0 4px; }
.hd-app .hd-recolor p { margin: 0 0 12px; }
.hd-app .hd-recolor-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hd-app .hd-recolor-img {
	width: 52px; height: 52px; flex: 0 0 auto;
	border-radius: var(--hd-radius-sm); overflow: hidden;
}
.hd-app .hd-recolor-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-app .hd-recolor-row > a { margin-left: auto; }
.hd-app .hd-colorclose { margin: 18px 0 0; }

/* ==========================================================================
 * Anlass eines Eintrags: Kacheln oben, Abschnitte darunter
 * ========================================================================== */
.hd-app .hd-typepick {
	border: 0;
	padding: 0;
	margin: 0 0 16px;
}
.hd-app .hd-typepick legend {
	padding: 0;
	margin-bottom: 10px;
	font-weight: 700;
	font-size: .95rem;
}
.hd-app .hd-typegrid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.hd-app .hd-typetile { position: relative; display: block; }
.hd-app .hd-typetile input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.hd-app .hd-typetile-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 100%;
	padding: 16px 10px;
	text-align: center;
	border: 1px solid var(--hd-border);
	border-radius: var(--hd-radius-sm);
	background: var(--hd-surface);
	color: var(--hd-muted);
	cursor: pointer;
	transition: border-color .12s ease, color .12s ease, background-color .12s ease;
}
.hd-app .hd-typetile-body .hd-ic { width: 24px; height: 24px; }
.hd-app .hd-typetile-label { font-size: .84rem; font-weight: 600; line-height: 1.25; }
.hd-app .hd-typetile:hover .hd-typetile-body { border-color: var(--hd-accent-2); color: var(--hd-text); }
.hd-app .hd-typetile input:checked + .hd-typetile-body {
	border-color: var(--hd-accent);
	background: var(--hd-accent);
	color: #fff;
}
.hd-app .hd-typetile input:focus-visible + .hd-typetile-body {
	outline: 2px solid var(--hd-accent-2);
	outline-offset: 2px;
}

/* Abschnitte, die nur zu einem Anlass gehören */
.hd-app .hd-typeblock { margin-top: 14px; }
.hd-app .hd-typeblock[hidden] { display: none; }

/* Anlass in der Zeitleiste */
.hd-app .hd-badge-type {
	background: var(--hd-surface-alt);
	color: var(--hd-muted);
}
.hd-app .hd-badge-type.is-color { background: var(--hd-pink-soft); color: var(--hd-pink-strong); }
.hd-app .hd-badge-type.is-treatment { background: #f3eefb; color: #4a2f78; }
.hd-app .hd-badge-type.is-wash { background: #eef4fb; color: #27527d; }

/* Waschrhythmus – die erste echte Erkenntnis aus dem Tagebuch */
.hd-app .hd-rhythm {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: .86rem;
	color: var(--hd-muted);
	margin: 0 0 14px;
}
.hd-app .hd-rhythm strong { color: var(--hd-text); font-size: 1rem; }

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

/* Das Datumsfeld steht allein und muss die Zeile nicht füllen */
.hd-app .hd-field-date input[type="date"] { max-width: 220px; }

/* ==========================================================================
 * Frage nach dem Teilen – einmal nach dem Speichern
 * ========================================================================== */
.hd-app .hd-shareask {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	border-left: 4px solid var(--hd-accent-2);
	margin-bottom: 16px;
}
.hd-app .hd-shareask-img {
	flex: 0 0 auto;
	width: 62px;
	height: 62px;
	border-radius: var(--hd-radius-sm);
	overflow: hidden;
}
.hd-app .hd-shareask-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-app .hd-shareask-body { flex: 1 1 auto; min-width: 0; }
.hd-app .hd-shareask-body > strong { display: block; }
.hd-app .hd-shareask-body > p { margin: 2px 0 10px; font-size: .88rem; }
.hd-app .hd-shareask-form {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	margin: 0 0 10px;
}
.hd-app .hd-shareask-form input[type="text"] { flex: 1 1 200px; min-width: 0; }
.hd-app .hd-shareask-foot {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	font-size: .84rem;
}
.hd-app .hd-shareask-foot form { margin: 0; }
.hd-app .hd-shareask-skip { color: var(--hd-muted); text-decoration: none; font-weight: 600; }
.hd-app .hd-shareask-skip:hover { color: var(--hd-text); }
.hd-app .hd-shareask-mute,
.hd-app .hd-shareask-mute:hover,
.hd-app .hd-shareask-mute:focus,
.hd-app .hd-shareask-mute:active {
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	width: auto !important;
	min-width: 0 !important;
	font: inherit;
	font-size: inherit !important;
	font-weight: 400 !important;
	color: var(--hd-muted) !important;
	text-decoration: underline;
	cursor: pointer;
}
.hd-app .hd-shareask-mute:hover { color: var(--hd-text) !important; }

@media (max-width: 600px) {
	.hd-app .hd-shareask { flex-direction: column; }
	.hd-app .hd-shareask-img { width: 100%; height: 140px; }
}

/* ==========================================================================
   v3.5.0 – E-Mail-Bestätigung: Hinweis und gesperrte Stellen
   ========================================================================== */

/* Hinweis über der Ansicht. Nimmt die Farben der Info-Meldungen, damit er
   sich mit den Einstellungen im Backend mitfärbt. */
.hd-app .hd-confirm {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	margin-bottom: 16px;
	border-radius: var(--hd-radius-sm);
	background: var(--hd-note-info-bg, #eef3fb);
	color: var(--hd-note-info-text, #274b78);
	border: 1px solid var(--hd-note-info-border, #cdddf1);
	font-size: .93rem;
}
.hd-app .hd-confirm-text { flex: 1 1 auto; min-width: 0; }
.hd-app .hd-confirm-text strong { display: block; margin-bottom: 2px; font-weight: 700; }
.hd-app .hd-confirm-form { flex: 0 0 auto; margin: 0; }
/* Der Knopf im Hinweis nimmt die Farben des Hinweises – nur vertauscht:
   seine Fläche hat die Schriftfarbe des Hinweises, seine Schrift dessen
   Hintergrundfarbe. So bleibt er lesbar, egal welche Farben im Backend für
   die Hinweise eingestellt sind (vorher: helle Schrift auf weißem Knopf).
   Alle Zustände einzeln und mit !important, weil das Theme Buttons färbt. */
.hd-app .hd-confirm .hd-btn,
.hd-app .hd-confirm .hd-btn:hover,
.hd-app .hd-confirm .hd-btn:focus,
.hd-app .hd-confirm .hd-btn:active {
	background: var(--hd-note-info-text, #274b78) !important;
	background-image: none !important;
	color: var(--hd-note-info-bg, #eef3fb) !important;
	border: 0 !important;
	box-shadow: none !important;
	font-weight: 700 !important;
	white-space: nowrap !important;
}
.hd-app .hd-confirm .hd-btn:hover { opacity: .88; }
.hd-app .hd-confirm .hd-btn:focus-visible { outline: 2px solid var(--hd-note-info-text, #274b78); outline-offset: 2px; }

/* Die Variante für Bestandskonten im Profil: gleiche Form, leiser. */
.hd-app .hd-confirm-soft {
	background: var(--hd-surface-alt);
	color: var(--hd-text);
	border-color: var(--hd-border);
}
.hd-app .hd-confirm-soft .hd-btn,
.hd-app .hd-confirm-soft .hd-btn:hover,
.hd-app .hd-confirm-soft .hd-btn:focus,
.hd-app .hd-confirm-soft .hd-btn:active {
	background: var(--hd-surface, #fff) !important;
	color: var(--hd-text, #1f2421) !important;
	border: 1px solid var(--hd-border) !important;
}
.hd-app .hd-confirm-soft .hd-btn:focus-visible { outline-color: var(--hd-text, #1f2421); }
@media (max-width: 600px) {
	.hd-app .hd-confirm { flex-direction: column; align-items: stretch; }
	.hd-app .hd-confirm .hd-btn { width: 100% !important; }
}

/* Stellen, die erst nach der Bestätigung offen sind. */
.hd-app .hd-locked {
	margin: 0;
	padding: 10px 12px;
	border-radius: var(--hd-radius-sm);
	background: var(--hd-surface-alt);
	color: var(--hd-muted);
	font-size: .9rem;
}
.hd-app .hd-post-btn[disabled],
.hd-app .hd-post-btn[disabled]:hover {
	opacity: .5;
	cursor: not-allowed;
}

/* ==========================================================================
   v3.6.2 – Erklärung am Feld: das kleine "i"
   ========================================================================== */
.hd-app .hd-help { margin: 0 0 8px; }
.hd-app .hd-help > summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	-webkit-tap-highlight-color: transparent;
}
.hd-app .hd-help > summary::-webkit-details-marker { display: none; }
.hd-app .hd-help > summary::marker { content: ""; }
.hd-app .hd-help-i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid var(--hd-border-strong, #c9c5bd);
	color: var(--hd-muted);
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-weight: 700;
	font-size: 12px;
	line-height: 1;
	transition: border-color .12s ease, color .12s ease, background-color .12s ease;
}
/* Dezent: grau im Ruhezustand, beim Überfahren und geöffnet nur etwas dunkler. */
.hd-app .hd-help > summary:hover .hd-help-i,
.hd-app .hd-help[open] .hd-help-i {
	border-color: var(--hd-muted);
	color: var(--hd-text);
	background: var(--hd-surface-alt);
}
/* Rahmen nur bei Tastaturbedienung, nicht nach einem Klick. */
.hd-app .hd-help > summary:focus:not(:focus-visible) { outline: none; }
.hd-app .hd-help > summary:focus-visible { outline: 2px solid var(--hd-muted); outline-offset: 3px; border-radius: 4px; }
.hd-app .hd-help-text {
	margin-top: 8px;
	padding: 12px 14px;
	border-radius: var(--hd-radius-sm);
	background: var(--hd-surface-alt);
	color: var(--hd-text);
	font-size: .88rem;
	line-height: 1.5;
}
.hd-app .hd-help-text p { margin: 0 0 6px; }
.hd-app .hd-help-text p:last-child { margin-bottom: 0; }
.hd-app .hd-help-text ul { margin: 0 0 6px; padding-left: 18px; list-style: disc; }
.hd-app .hd-help-text li { margin: 0 0 4px; }
@media (prefers-reduced-motion: reduce) {
	.hd-app .hd-help-i { transition: none; }
}

/* ==========================================================================
   v3.7.0 – Begleitung: Karte "Erste Schritte" und Hinweise am Ort
   ========================================================================== */

/* Die Farbe der Begleitung: Karte, Punkt in der Navigation, Ring und Knopf
   der Hinweise. Fest eingetragen, damit sie überall gleich ist – auch dort,
   wo Elemente an <body> hängen und die Variablen der App nicht erben. */

/* ---------- Erste Schritte ---------- */
.hd-app .hd-start { padding: 16px 18px; }
.hd-app .hd-start-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hd-app .hd-start-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.hd-app .hd-start-title strong { font-size: 1.02rem; font-weight: 700; }
.hd-app .hd-start-count { font-size: .84rem; color: var(--hd-muted); }
.hd-app .hd-start-hide { margin: 0; flex: 0 0 auto; }
.hd-app .hd-start-bar {
	height: 6px;
	border-radius: 999px;
	background: var(--hd-surface-alt);
	overflow: hidden;
	margin-bottom: 8px;
}
.hd-app .hd-start-bar span {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--hd-guide, #DD6F8B);
	transition: width .3s ease;
}
.hd-app .hd-start-list { list-style: none; margin: 0; padding: 0; }
.hd-app .hd-start-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 0;
	margin: 0;
	border-top: 1px solid var(--hd-border);
}
.hd-app .hd-start-list li:first-child { border-top: 0; }
.hd-app .hd-start-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1.5px solid var(--hd-border-strong, #c9c5bd);
	color: #fff;
}
.hd-app .hd-start-check svg { width: 13px; height: 13px; stroke-width: 2.6; }
.hd-app .hd-start-list .is-done .hd-start-check {
	background: var(--hd-guide, #DD6F8B);
	border-color: var(--hd-guide, #DD6F8B);
}
.hd-app .hd-start-list .is-next .hd-start-check { border-color: var(--hd-guide, #DD6F8B); }
.hd-app .hd-start-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.hd-app .hd-start-label { font-weight: 600; }
.hd-app .hd-start-text small { font-size: .84rem; color: var(--hd-muted); }
.hd-app .hd-start-list .is-done .hd-start-label { font-weight: 400; color: var(--hd-muted); text-decoration: line-through; }
.hd-app .hd-start-list .hd-btn { flex: 0 0 auto; white-space: nowrap !important; }
/* Offene Aufgaben, die noch nicht dran sind: ein schlichter Link statt eines zweiten Knopfs. */
.hd-app .hd-start-link,
.hd-app .hd-start-link:link,
.hd-app .hd-start-link:visited,
.hd-app button.hd-start-link,
.hd-app button.hd-start-link:hover,
.hd-app button.hd-start-link:focus,
.hd-app button.hd-start-link:active {
	flex: 0 0 auto;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	width: auto !important;
	min-width: 0 !important;
	font: inherit;
	font-size: .86rem !important;
	font-weight: 600 !important;
	color: var(--hd-muted) !important;
	text-decoration: underline;
	white-space: nowrap;
	cursor: pointer;
}
.hd-app .hd-start-link:hover,
.hd-app button.hd-start-link:hover { color: var(--hd-text) !important; }
@media (max-width: 600px) {
	.hd-app .hd-start-list li { flex-wrap: wrap; }
	/* Der Text bleibt neben dem Haken (22px + 12px Abstand) – nur der Knopf
	   rutscht in die nächste Zeile. */
	.hd-app .hd-start-text { flex: 1 1 0; min-width: calc(100% - 34px); }
	.hd-app .hd-start-list .hd-btn,
	.hd-app .hd-start-list .hd-start-link { margin-left: 34px; }
}
@media (prefers-reduced-motion: reduce) {
	.hd-app .hd-start-bar span { transition: none; }
}

/* ---------- Hinweis am Ort ----------
   Hängt an <body>, liegt also außerhalb von .hd-app – deshalb ohne dieses
   Präfix. Die Farbvariablen bekommt er über die Liste in inline_style(). */
.hd-hint,
.hd-hint * { box-sizing: border-box; }
.hd-hint {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 58;                     /* über der Tab-Leiste (50), unter Menü und Chat */
	width: min(300px, calc(100vw - 24px));
	padding: 14px 16px 14px;
	border-radius: var(--hd-radius, 14px);
	background: var(--hd-text, #1f2421);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
	opacity: 0;
	transform: scale(.96);
	transition: opacity .18s ease, transform .18s ease;
}
.hd-hint.is-visible { opacity: 1; transform: scale(1); }
.hd-hint-eyebrow {
	display: block;
	margin: 0 24px 3px 0;
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--hd-guide, #DD6F8B);
}
.hd-hint-title { display: block; font-weight: 700; font-size: 1rem; line-height: 1.3; margin: 0 24px 4px 0; color: #fff; }
.hd-hint-text { margin: 0 0 12px; font-size: .9rem; color: rgba(255, 255, 255, .86); }
.hd-hint-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.hd-hint .hd-hint-ok,
.hd-hint .hd-hint-ok:hover,
.hd-hint .hd-hint-ok:focus,
.hd-hint .hd-hint-ok:active {
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	background-color: transparent !important;
	box-shadow: none !important;
	width: auto !important;
	min-width: 0 !important;
	font: inherit;
	font-size: .86rem !important;
	font-weight: 600 !important;
	color: rgba(255, 255, 255, .8) !important;
	text-decoration: underline;
	cursor: pointer;
}
.hd-hint .hd-hint-ok:hover { color: #fff !important; }
.hd-hint .hd-hint-close,
.hd-hint .hd-hint-close:hover,
.hd-hint .hd-hint-close:focus,
.hd-hint .hd-hint-close:active {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px !important;
	height: 26px !important;
	min-width: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-shadow: none !important;
	color: rgba(255, 255, 255, .7) !important;
	cursor: pointer;
}
.hd-hint .hd-hint-close:hover { background: rgba(255, 255, 255, .14) !important; color: #fff !important; }
.hd-hint .hd-hint-close svg { width: 14px; height: 14px; }
.hd-hint .hd-btn { text-decoration: none; display: inline-flex !important; align-items: center; border-radius: 999px !important; padding: 7px 14px !important; font-size: .86rem !important; font-weight: 700 !important; cursor: pointer; }
.hd-hint .hd-btn-primary,
.hd-hint a.hd-btn-primary:link,
.hd-hint a.hd-btn-primary:visited {
	background: var(--hd-guide, #DD6F8B) !important;
	color: #fff !important;
}
.hd-hint .hd-btn-primary:hover,
.hd-hint .hd-btn-primary:focus,
.hd-hint .hd-btn-primary:active { background: var(--hd-guide-strong, #c9587a) !important; color: #fff !important; }
.hd-hint :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Der Pfeil: ein gedrehtes Quadrat an der Kante, die zum Ziel zeigt. */
.hd-hint-arrow {
	position: absolute;
	width: 12px;
	height: 12px;
	background: var(--hd-text, #1f2421);
	transform: rotate(45deg);
}
.hd-hint[data-side="bottom"] .hd-hint-arrow { top: -6px; margin-left: -6px; }
.hd-hint[data-side="top"] .hd-hint-arrow { bottom: -6px; margin-left: -6px; }
.hd-hint[data-side="right"] .hd-hint-arrow { left: -6px; margin-top: -6px; }
.hd-hint[data-side="left"] .hd-hint-arrow { right: -6px; margin-top: -6px; }

/* Das Ziel, auf das der Hinweis zeigt: ein ruhiger Ring, der zweimal pulst. */
/* Der Ring liegt INNEN am Ziel (negativer Abstand). Außen würde ihn alles
   abschneiden, was seitlich beschneidet – die Seitenleiste, .hd-app selbst
   oder ein Container des Themes. Innen kann ihm das nicht passieren. */
.hd-hint-target {
	border-radius: var(--hd-radius-sm, 10px);
	outline: 2px solid var(--hd-guide, #DD6F8B);
	outline-offset: -2px;
	animation: hd-hint-pulse 1.4s ease-in-out 2;
}
@keyframes hd-hint-pulse {
	0%, 100% { outline-color: var(--hd-guide, #DD6F8B); }
	50%      { outline-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
	.hd-hint { transition: none; transform: none; }
	.hd-hint-target { animation: none; }
}

/* ---------- Punkt an Profil und "Mehr" ----------
   Zeigt: im Profil warten noch erste Schritte. Ohne .hd-app davor, weil die
   Leiste auf dem Handy an <body> hängt und das Mehr-Menü ebenfalls. */
.hd-nav-icwrap {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
}
.hd-nav-badge {
	position: absolute;
	top: -3px;
	right: -4px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--hd-guide, #DD6F8B);
	/* Schmaler heller Rand, damit der Punkt sich vom Icon abhebt. */
	box-shadow: 0 0 0 2px var(--hd-bg, #fff);
	pointer-events: none;
}

/* ==========================================================================
   v3.9.14 – Feed-Knöpfe: Zahlen erst ab 1, Symbol statt Text
   ========================================================================== */
.hd-app [data-hd-like-count]:empty,
.hd-app [data-hd-cm-count]:empty { display: none; }
.hd-app .hd-post-btn.hd-post-icon { padding-left: 11px; padding-right: 11px; }
.hd-app .hd-cm-open svg { width: 20px; height: 20px; }

/* ==========================================================================
   v3.9.12 / 3.9.14 – Kommentare im Sheet (wie bei Instagram)
   Das Sheet hängt an <body>, also außerhalb von .hd-app.
   ========================================================================== */
.hd-cm-sheet { color: var(--hd-text, #1f2421); font-family: inherit; }
.hd-cm-sheet [hidden] { display: none !important; }
.hd-cm-sheet .hd-offcanvas-sheet {
	display: flex; flex-direction: column;
	height: min(78vh, 760px); max-height: calc(100dvh - 32px);
	padding: 0;
	transition: transform .2s ease;
	animation: hd-cm-up .28s cubic-bezier(.2, .8, .2, 1);
}
@keyframes hd-cm-up { from { transform: translateY(100%); } to { transform: none; } }
@media (min-width: 901px) {
	.hd-offcanvas.hd-cm-sheet .hd-offcanvas-sheet {
		width: min(560px, calc(100vw - 40px));
		height: min(80vh, 720px);
		border-radius: 18px;
		overflow: hidden;
		animation: hd-cm-pop .2s ease-out;
	}
	@keyframes hd-cm-pop { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
	.hd-cm-sheet .hd-cm-grab { visibility: hidden; height: 8px; padding: 0; }
}

/* Griff und Kopf */
.hd-cm-sheet .hd-cm-grab { display: flex; justify-content: center; padding: 10px 0 2px; touch-action: none; }
.hd-cm-sheet .hd-cm-grab span { width: 42px; height: 4px; border-radius: 999px; background: var(--hd-border, #e7e4df); }
.hd-cm-sheet .hd-cm-head {
	position: relative; display: flex; align-items: center; justify-content: center;
	padding: 6px 56px 12px; border-bottom: 1px solid var(--hd-border, #e7e4df);
	touch-action: none;
}
.hd-cm-sheet .hd-cm-title { font-size: 1.05rem; font-weight: 700; }
.hd-cm-sheet .hd-cm-head .hd-offcanvas-close { position: absolute; right: 12px; top: 50%; margin-top: -21px; }

/* Liste */
.hd-cm-sheet .hd-cm-block { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.hd-cm-sheet .hd-cm-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 20px; -webkit-overflow-scrolling: touch; }
.hd-cm-sheet .hd-cm-block.is-loading .hd-cm-scroll::before {
	content: ""; display: block; width: 26px; height: 26px; margin: 40px auto;
	border-radius: 50%; border: 3px solid var(--hd-border, #e7e4df); border-top-color: var(--hd-accent-2, #1D9E75);
	animation: hd-cm-spin .8s linear infinite;
}
@keyframes hd-cm-spin { to { transform: rotate(360deg); } }
.hd-cm-sheet .hd-cm-empty { display: none; text-align: center; padding: 48px 20px; color: var(--hd-muted, #7c7973); }
.hd-cm-sheet .hd-cm-empty strong { display: block; color: var(--hd-text, #1f2421); font-size: 1.1rem; margin-bottom: 4px; }
.hd-cm-sheet .hd-cm-block.is-ready-list .hd-cm-list:empty + .hd-cm-empty { display: block; }

.hd-cm-sheet .hd-cm-list,
.hd-cm-sheet .hd-cm-replies { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.hd-cm-sheet .hd-cm { margin: 0; padding: 0; transition: opacity .15s; }
.hd-cm-sheet .hd-cm::before { content: none; }
.hd-cm-sheet .hd-cm.is-removing { opacity: .35; }

.hd-cm-sheet .hd-cm-row { display: flex; align-items: flex-start; gap: 12px; }
.hd-cm-sheet .hd-cm-avatar { flex: 0 0 36px; line-height: 0; }
.hd-cm-sheet .hd-cm-avatar .hd-avatar,
.hd-cm-sheet .hd-cm-avatar .hd-luna-avatar { width: 36px; height: 36px; font-size: .9rem; line-height: 1; }
.hd-cm-sheet .hd-cm-avatar img { border-radius: 50% !important; }
.hd-cm-sheet .hd-cm-main { flex: 1 1 auto; min-width: 0; }
.hd-cm-sheet .hd-cm-text { font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.hd-cm-sheet .hd-cm-text p { margin: 0 0 4px; }
.hd-cm-sheet .hd-cm-text p:last-child { margin-bottom: 0; }
.hd-cm-sheet .hd-cm-text a { color: var(--hd-accent-2, #1D9E75); font-weight: 600; }
.hd-cm-sheet .hd-cm-name { font-weight: 700; }
.hd-cm-sheet .hd-cm-at { color: var(--hd-accent-2, #1D9E75); font-weight: 600; }
.hd-cm-sheet .hd-cm-badge {
	display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
	background: var(--hd-pink-soft, #fdeef2); color: var(--hd-pink, #e0245e);
	font-size: .66rem; font-weight: 700; letter-spacing: .04em; line-height: 1.5; vertical-align: 1px;
}
.hd-cm-sheet .hd-cm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin-top: 4px; font-size: .8rem; color: var(--hd-muted, #7c7973); }
.hd-cm-sheet .hd-cm-likes { font-weight: 700; }

/* Kleine Textknöpfe: Themes sollen hier weder Fläche noch Rahmen malen. */
.hd-cm-sheet .hd-cm-act,
.hd-cm-sheet .hd-cm-toggle,
.hd-cm-sheet .hd-cm-like,
.hd-cm-sheet .hd-cm-send,
.hd-cm-sheet .hd-cm-cancel,
.hd-cm-sheet .hd-cm-emoji {
	background: transparent !important; border: 0 !important; box-shadow: none !important;
	min-height: 0 !important; width: auto; margin: 0; cursor: pointer;
}
.hd-cm-sheet .hd-cm-act:focus-visible,
.hd-cm-sheet .hd-cm-toggle:focus-visible,
.hd-cm-sheet .hd-cm-like:focus-visible,
.hd-cm-sheet .hd-cm-send:focus-visible,
.hd-cm-sheet .hd-cm-cancel:focus-visible,
.hd-cm-sheet .hd-cm-emoji:focus-visible { outline: 2px solid var(--hd-accent-2, #1D9E75); outline-offset: 2px; border-radius: 6px; }
.hd-cm-sheet .hd-cm-act { padding: 0 !important; font: inherit; font-weight: 700; color: var(--hd-muted, #7c7973) !important; }
.hd-cm-sheet .hd-cm-act:hover { color: var(--hd-text, #1f2421) !important; }
.hd-cm-sheet .hd-cm-del:hover { color: var(--hd-pink, #e0245e) !important; }

.hd-cm-sheet .hd-cm-like { flex: 0 0 auto; padding: 4px 2px !important; line-height: 0; color: var(--hd-muted, #7c7973) !important; }
.hd-cm-sheet .hd-cm-like .hd-ic { width: 18px; height: 18px; }
.hd-cm-sheet .hd-cm-like:hover,
.hd-cm-sheet .hd-cm-like.hd-like-on,
.hd-cm-sheet .hd-cm-like.hd-like-on:hover { color: var(--hd-pink, #e0245e) !important; }
.hd-cm-sheet .hd-cm-like.hd-like-on svg { fill: currentColor; }
.hd-cm-sheet .hd-cm-like[disabled] { opacity: .5; cursor: default; }
.hd-cm-sheet .hd-cm-like.is-pulsing .hd-ic { animation: hd-like-pulse .32s ease; }

/* Antworten eingerückt unter ihrem Kommentar. */
.hd-cm-sheet .hd-cm-thread { margin: 10px 0 0 48px; }
.hd-cm-sheet .hd-cm-toggle { display: inline-flex; align-items: center; gap: 12px; padding: 0 !important; font-size: .82rem; font-weight: 700; color: var(--hd-muted, #7c7973) !important; }
.hd-cm-sheet .hd-cm-toggle:hover { color: var(--hd-text, #1f2421) !important; }
.hd-cm-sheet .hd-cm-line { display: inline-block; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.hd-cm-sheet .hd-cm-replies { margin-top: 14px; }
.hd-cm-sheet .hd-cm-replies .hd-cm-avatar { flex-basis: 28px; }
.hd-cm-sheet .hd-cm-replies .hd-cm-avatar .hd-avatar,
.hd-cm-sheet .hd-cm-replies .hd-cm-avatar .hd-luna-avatar { width: 28px; height: 28px; font-size: .75rem; }

/* Luna schreibt … */
.hd-cm-sheet .hd-cm-typing .hd-cm-text { color: var(--hd-muted, #7c7973); font-style: italic; }
.hd-cm-sheet .hd-cm-dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 4px; }
.hd-cm-sheet .hd-cm-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .3; animation: hd-cm-dot 1s infinite ease-in-out; }
.hd-cm-sheet .hd-cm-dots i:nth-child(2) { animation-delay: .15s; }
.hd-cm-sheet .hd-cm-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes hd-cm-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* Fuß: Emojis und Eingabe */
.hd-cm-sheet .hd-cm-foot {
	flex: 0 0 auto; border-top: 1px solid var(--hd-border, #e7e4df);
	background: var(--hd-surface, #fff);
	padding: 6px 14px calc(12px + env(safe-area-inset-bottom, 0px));
}
.hd-cm-sheet .hd-cm-form { margin: 0; }
.hd-cm-sheet .hd-cm-emojis { display: flex; justify-content: space-between; gap: 4px; padding: 2px 4px 8px; }
.hd-cm-sheet .hd-cm-emoji { padding: 4px !important; font-size: 1.55rem; line-height: 1; border-radius: 10px; transition: transform .12s; }
.hd-cm-sheet .hd-cm-emoji:hover { transform: scale(1.15); }
.hd-cm-sheet .hd-cm-compose { display: flex; align-items: center; gap: 10px; }
.hd-cm-sheet .hd-cm-compose > .hd-cm-avatar { flex-basis: 40px; }
.hd-cm-sheet .hd-cm-compose > .hd-cm-avatar .hd-avatar { width: 40px; height: 40px; }
.hd-cm-sheet .hd-cm-field {
	flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-end; gap: 6px;
	border: 1px solid var(--hd-border, #e7e4df); border-radius: 22px;
	padding: 0 8px 0 16px; background: var(--hd-surface, #fff);
	transition: border-color .12s;
}
.hd-cm-sheet .hd-cm-field:focus-within { border-color: var(--hd-accent-2, #1D9E75); }
.hd-cm-sheet .hd-cm-field textarea {
	flex: 1 1 auto; min-width: 0; width: auto; box-sizing: border-box;
	min-height: 42px; height: 42px; max-height: 140px; resize: none; overflow-y: hidden;
	padding: 10px 0 !important; margin: 0; border: 0 !important; border-radius: 0;
	background: transparent !important; box-shadow: none !important; outline: none !important;
	color: var(--hd-text, #1f2421); font: inherit; font-size: 16px; line-height: 1.4;
}
.hd-cm-sheet .hd-cm-send {
	flex: 0 0 auto; align-self: center; padding: 8px 6px !important;
	font: inherit; font-size: .95rem; font-weight: 700; color: var(--hd-accent-2, #1D9E75) !important;
	opacity: .4; pointer-events: none; transition: opacity .12s;
}
.hd-cm-sheet .hd-cm-form.is-ready .hd-cm-send { opacity: 1; pointer-events: auto; }
.hd-cm-sheet .hd-cm-form.is-busy .hd-cm-send { opacity: .4; pointer-events: none; }
.hd-cm-sheet .hd-cm-replying {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	margin: 2px 0 8px; padding: 6px 8px 6px 12px; border-radius: 10px;
	background: var(--hd-surface-alt, #f7f6f4); color: var(--hd-muted, #7c7973); font-size: .84rem;
}
.hd-cm-sheet .hd-cm-cancel { padding: 2px !important; line-height: 0; color: var(--hd-muted, #7c7973) !important; }
.hd-cm-sheet .hd-cm-cancel .hd-ic { width: 16px; height: 16px; }
.hd-cm-sheet .hd-cm-note { margin: 2px 2px 8px; font-size: .84rem; color: var(--hd-muted, #7c7973); }
.hd-cm-sheet .hd-cm-hint { display: none; margin: 6px 0 0 50px; font-size: .78rem; color: var(--hd-muted, #7c7973); }
.hd-cm-sheet .hd-cm-form:focus-within .hd-cm-hint { display: block; }
.hd-cm-sheet .hd-cm-form.is-ready .hd-cm-hint { display: none; }
.hd-cm-sheet .hd-cm-locked { margin: 8px 4px; font-size: .88rem; color: var(--hd-muted, #7c7973); text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.hd-cm-sheet .hd-cm-dots i,
	.hd-cm-sheet .hd-cm-block.is-loading .hd-cm-scroll::before { animation: none; }
	.hd-cm-sheet .hd-cm-like.is-pulsing .hd-ic { animation: none; }
}

/* ==========================================================================
   v3.9.15 – Mobile Leiste oben: volle Breite, Nutzername, Plus
   ========================================================================== */
.hd-topbar-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.hd-topbar-user {
	font-size: .78rem; font-weight: 500; color: var(--hd-muted); letter-spacing: 0;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Rund, in der Akzentfarbe, nur das Plus – bewusst anders als das
   umrandete Plus „Neuer Eintrag“ in der Tab-Leiste. */
.hd-topbar-add {
	margin-left: auto; flex: 0 0 auto;
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; border-radius: 50%;
	background: var(--hd-accent); color: #fff !important; text-decoration: none !important;
	box-shadow: 0 2px 8px rgba(0,0,0,.12);
	transition: transform .12s, background .12s;
}
.hd-topbar-add:hover,
.hd-topbar-add:focus-visible { background: var(--hd-accent-strong, var(--hd-accent)); color: #fff !important; }
.hd-topbar-add:active { transform: scale(.94); }
.hd-topbar-add .hd-ic { width: 20px; height: 20px; stroke-width: 2.4; }
@media (max-width: 900px) {
	/*
	 * Die Leiste reicht über die ganze Breite des Bildschirms. Safari färbt
	 * den Bereich über der Leiste (Statusleiste) nur dann in ihrer Farbe,
	 * wenn sie die volle Breite hat – sonst scheinen dort die Beiträge durch.
	 */
	.hd-app .hd-topbar {
		margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
		padding: 8px calc(50vw - 50% + 2px) 10px;
		background: var(--hd-bg, #fff);
		transition: box-shadow .15s;
	}
	/* Angedockt: weiße Fläche auch über der Leiste, feine Linie darunter. */
	.hd-app .hd-topbar.is-stuck { box-shadow: 0 1px 0 var(--hd-border); }
	.hd-app .hd-topbar.is-stuck::before {
		content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
		height: 200px; background: var(--hd-bg, #fff); pointer-events: none;
	}
}

/* 3.9.17: Das Plus erscheint erst, wenn die Leiste beim Scrollen oben
   andockt – es ploppt mit einem kleinen Federn auf und dreht sich dabei
   in Position. Ganz oben steht das Feld „Beitrag posten“ ohnehin im Bild. */
.hd-topbar .hd-topbar-add {
	opacity: 0; visibility: hidden; pointer-events: none;
	transform: scale(.3) rotate(-90deg);
	transition:
		transform .42s cubic-bezier(.34, 1.56, .64, 1),
		opacity .2s ease,
		visibility 0s linear .42s,
		background .12s;
}
.hd-topbar.is-stuck .hd-topbar-add {
	opacity: 1; visibility: visible; pointer-events: auto;
	transform: none;
	transition:
		transform .42s cubic-bezier(.34, 1.56, .64, 1),
		opacity .2s ease,
		visibility 0s,
		background .12s;
}
.hd-topbar.is-stuck .hd-topbar-add:active { transform: scale(.92); }
@media (prefers-reduced-motion: reduce) {
	.hd-topbar .hd-topbar-add,
	.hd-topbar.is-stuck .hd-topbar-add { transform: none; transition: opacity .15s, visibility 0s; }
}

/* ==========================================================================
   v3.9.18 – Neuer Eintrag Schritt für Schritt
   ========================================================================== */
.hd-app .hd-wiz { max-width: 640px; margin: 0 auto; }
.hd-app .hd-wiz-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 22px; }
.hd-app .hd-wiz-progress { flex: 1 1 auto; margin: 0; }
.hd-app .hd-wiz-count { flex: 0 0 auto; font-size: .8rem; color: var(--hd-muted); font-weight: 600; }
.hd-app .hd-wiz:not(.is-wizard) .hd-wiz-head { display: none; }
.hd-app .hd-wiz-step[hidden] { display: none !important; }
.hd-app .hd-wiz-title { font-size: calc(1.4rem * var(--hd-heading-scale, 1)); margin: 0 0 6px; }
.hd-app .hd-wiz-lead { margin: 0 0 18px; }
.hd-app .hd-wiz-step > .hd-wiz-title + .hd-card,
.hd-app .hd-wiz-step > .hd-wiz-title + .hd-typepick { margin-top: 16px; }
.hd-app .hd-wiz .hd-typepick { border: 0; padding: 0; margin: 0 0 18px; }
.hd-app .hd-wiz .hd-typegrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hd-app .hd-wiz .hd-typetile-body { padding: 28px 12px; gap: 12px; border-radius: var(--hd-radius); }
.hd-app .hd-wiz .hd-typetile-body .hd-ic { width: 28px; height: 28px; }
.hd-app .hd-wiz .hd-typetile-label { font-size: .98rem; }
.hd-app .hd-wiz .hd-typetile input:checked + .hd-typetile-body { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-1px); }
.hd-app .hd-wiz .hd-typetile-body { transition: border-color .12s, color .12s, background-color .12s, transform .15s, box-shadow .15s; }

/* Schritte gleiten herein */
.hd-app .hd-wiz-step.is-enter-next { animation: hd-wiz-in-next .32s cubic-bezier(.2, .8, .2, 1); }
.hd-app .hd-wiz-step.is-enter-back { animation: hd-wiz-in-back .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes hd-wiz-in-next { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes hd-wiz-in-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* Leiste unten: links X bzw. Zurück als runder Knopf, rechts Weiter/Speichern */
.hd-app .hd-wiz-bar { justify-content: space-between; flex-wrap: nowrap; margin-top: 18px; }
.hd-app .hd-wiz-icon {
	flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--hd-surface-alt) !important; color: var(--hd-text) !important;
	border: 1px solid var(--hd-border) !important; text-decoration: none !important; cursor: pointer; padding: 0 !important;
}
.hd-app .hd-wiz-icon:hover { background: var(--hd-border) !important; }
.hd-app .hd-wiz-icon .hd-ic { width: 20px; height: 20px; }
.hd-app .hd-wiz-icon[hidden],
.hd-app .hd-wiz-bar [hidden] { display: none !important; }
.hd-app .hd-wiz-bar .hd-btn { margin-left: auto; }
.hd-app .hd-wiz-next .hd-ic { width: 18px; height: 18px; }
.hd-app .hd-wiz-bar .hd-btn.is-disabled,
.hd-app .hd-wiz-bar .hd-btn:disabled { opacity: .4 !important; cursor: not-allowed; box-shadow: none !important; }

/* Bezeichnung über Kachelgruppen */
.hd-app .hd-label { display: block; font-weight: 600; margin-bottom: 8px; }
.hd-app .hd-label-note { font-weight: 500; font-size: .78rem; color: var(--hd-muted); margin-left: 4px; }

/* Produktkacheln mit Bild */
.hd-app .hd-ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.hd-app .hd-ptile { position: relative; display: block; margin: 0; }
.hd-app .hd-ptile input { position: absolute; opacity: 0; width: 0; height: 0; }
.hd-app .hd-ptile-body {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%;
	padding: 12px 10px 12px; text-align: center; cursor: pointer;
	background: var(--hd-surface); border: 1.5px solid var(--hd-border); border-radius: var(--hd-radius-sm);
	transition: border-color .12s, background-color .12s, transform .12s;
}
.hd-app .hd-ptile:hover .hd-ptile-body { border-color: var(--hd-accent-2); }
.hd-app .hd-ptile-img {
	width: 72px; height: 72px; border-radius: 12px; overflow: hidden; flex: 0 0 auto;
	display: flex; align-items: center; justify-content: center;
	background: var(--hd-surface-alt); color: var(--hd-muted);
}
.hd-app .hd-ptile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-app .hd-ptile-img .hd-ic { width: 28px; height: 28px; }
.hd-app .hd-ptile-name { font-size: .82rem; font-weight: 600; line-height: 1.25; color: var(--hd-text); max-width: 100%; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.hd-app .hd-ptile-brand { font-size: .72rem; color: var(--hd-muted); }
.hd-app .hd-ptile-check {
	position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--hd-accent); color: #fff; opacity: 0; transform: scale(.4);
	transition: opacity .15s, transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.hd-app .hd-ptile-check .hd-ic { width: 13px; height: 13px; stroke-width: 3; }
.hd-app .hd-ptile input:checked + .hd-ptile-body { border-color: var(--hd-accent); background: var(--hd-pink-soft); }
.hd-app .hd-ptile input:checked + .hd-ptile-body .hd-ptile-check { opacity: 1; transform: none; }
.hd-app .hd-ptile input:focus-visible + .hd-ptile-body { outline: 2px solid var(--hd-accent-2); outline-offset: 2px; }
.hd-app .hd-ptile-other .hd-ptile-img { background: var(--hd-surface-alt); }

/* Teilen-Schritt */
.hd-app .hd-share-preview { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 16px; }
.hd-app .hd-share-preview strong { display: block; }
.hd-app .hd-share-preview-img { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex: 0 0 auto; }
.hd-app .hd-share-preview-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-app .hd-sharepick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.hd-app .hd-sharechoice { position: relative; display: block; margin: 0; }
.hd-app .hd-sharechoice input { position: absolute; opacity: 0; width: 0; height: 0; }
.hd-app .hd-sharechoice-body {
	display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; height: 100%;
	padding: 22px 12px; border: 1.5px solid var(--hd-border); border-radius: var(--hd-radius);
	background: var(--hd-surface); cursor: pointer; transition: border-color .12s, background-color .12s;
}
.hd-app .hd-sharechoice-body .hd-ic { width: 28px; height: 28px; color: var(--hd-accent); }
.hd-app .hd-sharechoice-body span { font-size: .8rem; color: var(--hd-muted); }
.hd-app .hd-sharechoice input:checked + .hd-sharechoice-body { border-color: var(--hd-accent); background: var(--hd-pink-soft); }
.hd-app .hd-sharechoice input:focus-visible + .hd-sharechoice-body { outline: 2px solid var(--hd-accent-2); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.hd-app .hd-wiz-step.is-enter-next,
	.hd-app .hd-wiz-step.is-enter-back { animation: none; }
}

/* ==========================================================================
   v3.9.18 – Erfolgsmoment nach dem Speichern
   Hängt an <body>; die Farben kommen über die Variablen aus .hd-app nicht
   mit, deshalb mit Rückfallwerten.
   ========================================================================== */
html.hd-done-open { overflow: hidden; }
.hd-done { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; font-family: inherit; }
.hd-done-backdrop {
	position: absolute; inset: 0; background: rgba(255,255,255,.9);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	opacity: 0; transition: opacity .3s ease;
}
.hd-done.is-on .hd-done-backdrop { opacity: 1; }
.hd-done-stage { position: relative; width: min(380px, 100%); text-align: center; }
.hd-done-card { position: relative; z-index: 1; }
.hd-done-badge {
	width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%;
	background: var(--hd-accent, #dd6f8b);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 14px 34px rgba(221, 111, 139, .38);
	transform: scale(0);
}
.hd-done.is-on .hd-done-badge { animation: hd-done-pop .55s cubic-bezier(.34, 1.56, .64, 1) .05s forwards; }
@keyframes hd-done-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
.hd-done-check { width: 56px; height: 56px; }
.hd-done-check path {
	fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round;
	stroke-dasharray: 40; stroke-dashoffset: 40;
}
.hd-done.is-on .hd-done-check path { animation: hd-done-draw .4s ease-out .45s forwards; }
@keyframes hd-done-draw { to { stroke-dashoffset: 0; } }
.hd-done-title { margin: 0 0 6px; font-size: 1.7rem; font-weight: 800; color: #1f2421; }
.hd-done-line,
.hd-done-extra { margin: 0 0 4px; color: #5d5a55; font-size: 1rem; line-height: 1.45; }
.hd-done-title,
.hd-done-line,
.hd-done-extra { opacity: 0; transform: translateY(10px); }
.hd-done.is-on .hd-done-title { animation: hd-done-up .4s ease-out .6s forwards; }
.hd-done.is-on .hd-done-line,
.hd-done.is-on .hd-done-extra { animation: hd-done-up .4s ease-out .75s forwards; }
@keyframes hd-done-up { to { opacity: 1; transform: none; } }

/* Lunas Frage */
.hd-done-luna {
	margin-top: 22px; padding: 16px; border-radius: 18px; text-align: left;
	background: #fff; border: 1px solid #f0e3e7; box-shadow: 0 10px 30px rgba(0,0,0,.08);
	opacity: 0; transform: translateY(14px);
}
.hd-done.is-on .hd-done-luna { animation: hd-done-up .45s ease-out 1.15s forwards; }
.hd-done-luna-q { display: flex; align-items: flex-start; gap: 12px; }
.hd-done-luna-q p { margin: 2px 0 0; font-size: .98rem; line-height: 1.4; color: #1f2421; }
.hd-done-luna-q strong { display: block; }
.hd-done .hd-done-luna-avatar { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; }
.hd-done .hd-done-luna-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-done-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.hd-done-actions .hd-btn { flex: 1 1 0; justify-content: center; }

/* Konfetti: Tropfen, Herzen, Glitzer, Punkte */
.hd-done-burst { position: absolute; left: 50%; top: 48px; width: 0; height: 0; z-index: 2; pointer-events: none; }
.hd-done-bit {
	position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; opacity: 0;
	color: var(--hd-accent, #dd6f8b);
}
.hd-done-bit:nth-child(3n) { color: #f2b8c6; }
.hd-done-bit:nth-child(4n) { color: #c9a227; }
.hd-done-bit.is-drop { border-radius: 50% 0 50% 50%; background: currentColor; transform: rotate(-45deg); }
.hd-done-bit.is-dot { border-radius: 50%; background: currentColor; width: 8px; height: 8px; }
.hd-done-bit.is-heart::before { content: "♥"; font-size: 16px; line-height: 12px; }
.hd-done-bit.is-spark::before { content: "✦"; font-size: 15px; line-height: 12px; }
.hd-done.is-on .hd-done-bit { animation: hd-done-fly 1.15s cubic-bezier(.15, .7, .3, 1) var(--d, .3s) forwards; }
@keyframes hd-done-fly {
	0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0); }
	15% { opacity: 1; }
	70% { opacity: 1; }
	100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r)); }
}

.hd-done.is-leaving { transition: opacity .35s ease; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
	.hd-done-badge { transform: none; }
	.hd-done-check path { stroke-dashoffset: 0; }
	.hd-done-title, .hd-done-line, .hd-done-extra, .hd-done-luna { opacity: 1; transform: none; }
	.hd-done.is-on .hd-done-badge,
	.hd-done.is-on .hd-done-check path,
	.hd-done.is-on .hd-done-title,
	.hd-done.is-on .hd-done-line,
	.hd-done.is-on .hd-done-extra,
	.hd-done.is-on .hd-done-luna { animation: none; }
	.hd-done-burst { display: none; }
}
/* Knöpfe im Erfolgsmoment – außerhalb von .hd-app, deshalb eigens. */
.hd-done .hd-btn {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 11px 18px !important; border-radius: var(--hd-btn-radius, 999px) !important;
	border: 0 !important; font: inherit; font-size: .95rem !important; font-weight: 700 !important;
	cursor: pointer; text-decoration: none !important; box-shadow: none; text-transform: none !important; letter-spacing: 0 !important;
}
.hd-done .hd-btn-primary { background: var(--hd-accent, #dd6f8b) !important; color: #fff !important; }
.hd-done .hd-btn-primary:hover { background: var(--hd-accent-strong, var(--hd-accent, #c85a76)) !important; }
.hd-done .hd-btn-ghost { background: #f4eff0 !important; color: #1f2421 !important; }
.hd-done .hd-btn-ghost:hover { background: #ebe3e5 !important; }
.hd-done .hd-btn .hd-ic { width: 18px; height: 18px; }

/* Bezug im Chat („Gefärbt ×“): Themes malen den kleinen Knopf sonst als
   große Fläche in der Knopffarbe. */
.hd-chat .hd-chat-ctx-drop,
.hd-chat .hd-chat-ctx-drop:focus {
	width: 20px !important; height: 20px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
	display: inline-flex !important; align-items: center; justify-content: center;
	border: 0 !important; border-radius: 50% !important; box-shadow: none !important;
	background: transparent !important; color: var(--hd-muted, #7c7973) !important; line-height: 1 !important;
}
.hd-chat .hd-chat-ctx-drop:hover { background: var(--hd-border, #e7e4df) !important; color: var(--hd-text, #1f2421) !important; }
.hd-chat .hd-chat-ctx-drop svg { width: 13px; height: 13px; display: block; }

/* 3.9.20: Tagebuch – „Neuer Eintrag“ und der Umschalter Kacheln/Liste
   in einer Zeile, der Umschalter ganz rechts – auch am Handy. */
.hd-app .hd-toolbar-diary { flex-wrap: nowrap; }
.hd-app .hd-toolbar-diary .hd-toolbar-actions { width: auto; margin-left: auto; flex: 0 0 auto; justify-content: flex-end; }
.hd-app .hd-wiz-count { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* ==========================================================================
   Style-Studio (ab 3.10.0)
   ========================================================================== */
.hd-app .hd-studio-head { margin-bottom: 14px; }
.hd-app .hd-studio-head h3 { margin: 0 0 4px; }
.hd-app .hd-studio-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.hd-app .hd-studio-stagewrap { position: sticky; top: 16px; }
.hd-app .hd-studio-stage { position: relative; border-radius: var(--hd-radius, 14px); overflow: hidden; background: var(--hd-surface-alt, #f6f3f1); }
.hd-app .hd-studio-drop {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
	min-height: 360px; padding: 28px 20px; cursor: pointer; border: 2px dashed var(--hd-border); border-radius: inherit;
	color: var(--hd-muted); transition: border-color .15s, background .15s;
}
.hd-app .hd-studio-drop:hover,
.hd-app .hd-studio-drop.is-over { border-color: var(--hd-accent); background: color-mix(in srgb, var(--hd-accent) 6%, transparent); }
.hd-app .hd-studio-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hd-app .hd-studio-drop strong { color: var(--hd-text); font-size: 1.05rem; }
.hd-app .hd-studio-drop-ic { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center; background: var(--hd-accent); color: #fff; margin-bottom: 4px; }
.hd-app .hd-studio-drop-ic .hd-ic { width: 30px; height: 30px; }
.hd-app .hd-studio-canvas { position: relative; line-height: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hd-app .hd-studio-canvas[hidden],
.hd-app .hd-studio [hidden] { display: none !important; }
.hd-app .hd-studio-canvas canvas { display: block; width: 100%; height: auto; }
.hd-app .hd-studio-canvas .hd-studio-after { position: absolute; inset: 0; }
.hd-app .hd-studio-split { position: absolute; top: 0; bottom: 0; width: 0; left: 50%; cursor: ew-resize; outline: none; }
.hd-app .hd-studio-split::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.hd-app .hd-studio-split > span { position: absolute; top: 50%; left: -19px; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.hd-app .hd-studio-split > span::before,
.hd-app .hd-studio-split > span::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px; border: solid #333; border-width: 0 0 2px 2px; }
.hd-app .hd-studio-split > span::before { left: 9px; transform: rotate(45deg); }
.hd-app .hd-studio-split > span::after { right: 9px; transform: rotate(-135deg); }
.hd-app .hd-studio-split:focus-visible > span { box-shadow: 0 0 0 3px var(--hd-accent); }
.hd-app .hd-studio-tag { position: absolute; top: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: .75rem; font-weight: 600; line-height: 1.3; pointer-events: none; }
.hd-app .hd-studio-tag.is-before { left: 10px; }
.hd-app .hd-studio-tag.is-after { right: 10px; }
.hd-app .hd-studio-busy { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; background: rgba(255,255,255,.72); backdrop-filter: blur(2px); color: var(--hd-text); font-weight: 600; line-height: 1.4; text-align: center; padding: 20px; }
.hd-app .hd-studio-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--hd-accent) 25%, transparent); border-top-color: var(--hd-accent); animation: hd-studio-spin .8s linear infinite; }
@keyframes hd-studio-spin { to { transform: rotate(360deg); } }
.hd-app .hd-studio-error { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--hd-radius-sm, 10px); background: var(--hd-pink-soft, #fde8ee); color: var(--hd-text); }
.hd-app .hd-studio-privacy { margin: 10px 2px 0; font-size: .82rem; color: var(--hd-muted); }

.hd-app .hd-studio-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hd-app .hd-studio-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.hd-app .hd-studio-filter { border: 1px solid var(--hd-border); background: transparent; color: var(--hd-text); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; cursor: pointer; line-height: 1.2; }
.hd-app .hd-studio-filter.is-on { background: var(--hd-text); border-color: var(--hd-text); color: #fff; }
.hd-app .hd-studio-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); gap: 10px 6px; max-height: 420px; overflow-y: auto; padding: 4px 2px; scrollbar-width: thin; }
.hd-app .hd-studio-chips.is-hinting .hd-studio-chip { animation: hd-studio-pulse 1.6s ease-in-out 2; }
@keyframes hd-studio-pulse { 50% { transform: scale(1.08); } }
.hd-app .hd-studio-chipbtn { white-space: normal; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 2px; border: 0; background: none; cursor: pointer; color: var(--hd-text); text-align: center; border-radius: 10px; min-width: 0; }
.hd-app .hd-studio-chipbtn:hover { background: var(--hd-surface-alt); }
.hd-app .hd-studio-chipbtn:focus { outline: none; box-shadow: none; }
.hd-app .hd-studio-chipbtn:focus-visible { outline: 2px solid var(--hd-accent); outline-offset: 1px; }
.hd-app .hd-studio-chipbtn.is-on { background: none; border: 0; }
.hd-app .hd-studio-chip { display: block; width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); transition: transform .12s; }
.hd-app .hd-studio-chip.is-big { width: 52px; height: 52px; }
.hd-app .hd-studio-chipbtn.is-on .hd-studio-chip { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--hd-accent); }
.hd-app .hd-studio-chipname { font-size: .72rem; font-weight: 600; line-height: 1.15; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: normal; word-break: normal; hyphens: auto; -webkit-hyphens: auto; white-space: normal; }
.hd-app .hd-studio-chipcode { font-size: .7rem; color: var(--hd-muted); font-variant-numeric: tabular-nums; line-height: 1; }
.hd-app .hd-studio-pick { display: grid; grid-template-columns: 1fr; gap: 10px 14px; align-items: center; padding: 14px; border: 1px solid var(--hd-border); border-radius: var(--hd-radius, 14px); background: var(--hd-surface, #fff); }
.hd-app .hd-studio-pick-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hd-app .hd-studio-pick-head strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.hd-app .hd-studio-pick-head .hd-muted { display: block; font-variant-numeric: tabular-nums; }
/* Peroxid-Gehalt: fünf Stufen; der Verlauf der Schiene zeigt die Aufhellkraft. */
.hd-app .hd-studio-dev { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 2px; margin: 0; }
.hd-app .hd-studio-dev-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hd-app .hd-studio-dev-head label { font-size: .85rem; font-weight: 600; color: var(--hd-muted); margin: 0; }
.hd-app .hd-studio-dev-head output { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--hd-text); }
.hd-app .hd-studio-dev input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 2px 0 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; cursor: pointer; }
.hd-app .hd-studio-dev input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #5b3b26, #a87a48 50%, #ecd7a4); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.hd-app .hd-studio-dev input[type=range]::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #5b3b26, #a87a48 50%, #ecd7a4); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.hd-app .hd-studio-dev input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%; background: var(--hd-accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.hd-app .hd-studio-dev input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--hd-accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.hd-app .hd-studio-dev input[type=range]:focus { outline: none; }
.hd-app .hd-studio-dev input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--hd-accent-2) 55%, transparent); }
.hd-app .hd-studio-dev input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--hd-accent-2) 55%, transparent); }
/* Beschriftung exakt unter den Raststellen: negative Ränder heben die Breite auf, die Mitte sitzt auf der Raste. */
.hd-app .hd-studio-dev-ticks { display: flex; justify-content: space-between; padding: 0 11px; }
.hd-app .hd-studio-dev-ticks button { flex: 0 0 2.6em; width: 2.6em; display: flex; justify-content: center; white-space: nowrap; padding: 2px 0; margin: 0 -1.3em; border: 0; background: none; color: var(--hd-muted); font: inherit; font-size: .78rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.hd-app .hd-studio-dev-ticks button.is-on { color: var(--hd-text); font-weight: 700; }
.hd-app .hd-studio-dev-hint { margin: 4px 0 0; font-size: .85rem; color: var(--hd-text); }
.hd-app .hd-studio-dev-tip { margin: 6px 0 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--hd-accent-2) 10%, var(--hd-surface, #fff)); font-size: .85rem; line-height: 1.4; }
.hd-app .hd-studio-dev-tip[hidden] { display: none; }
.hd-app .hd-studio-dev-try { display: inline; padding: 0; margin: 0; border: 0; background: none; color: var(--hd-accent); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.hd-app .hd-studio-dev-try[hidden] { display: none; }
.hd-app .hd-studio-buy { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hd-app .hd-studio-shop { gap: 8px; }
.hd-app .hd-studio-shop .hd-ic { width: 18px; height: 18px; }
.hd-app .hd-studio-price { color: var(--hd-muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.hd-app .hd-studio-tryrow { display: flex; align-items: center; gap: 8px; margin: 2px 0 12px; }
.hd-app .hd-studio-tryrow .hd-studio-try { margin: 0; flex: 1; min-width: 0; }
.hd-app .hd-studio-buylink { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--hd-accent); color: #fff !important; font-weight: 600; font-size: .88rem; text-decoration: none; flex: 0 0 auto; }
.hd-app .hd-studio-buylink:hover { background: var(--hd-accent-strong, var(--hd-accent)); }
.hd-app .hd-studio-buylink .hd-ic { width: 16px; height: 16px; }
.hd-app .hd-studio-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-app .hd-studio-actions .hd-btn,
.hd-app .hd-studio-teaser-link a { gap: 8px; }
.hd-app .hd-studio-actions .hd-ic { width: 18px; height: 18px; }
.hd-app .hd-studio-postform { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--hd-border); border-radius: var(--hd-radius, 14px); background: var(--hd-surface, #fff); }
.hd-app .hd-studio-postform label { font-weight: 600; }
.hd-app .hd-studio-postform textarea { width: 100%; box-sizing: border-box; }
.hd-app .hd-studio-postbtns { display: flex; justify-content: flex-end; gap: 8px; }
.hd-app .hd-studio-note { font-size: .82rem; color: var(--hd-muted); margin: 0; }

/* Farbfinder mit Luna (3.12.0): Chat-Verlauf, Antwortkacheln, Ergebniskarten. */
.hd-app .hd-finder-cta { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 10px 14px; border: 1px solid var(--hd-border); border-radius: var(--hd-radius, 14px); background: var(--hd-surface, #fff); color: var(--hd-text); text-decoration: none; }
.hd-app .hd-finder-cta:hover { border-color: var(--hd-accent); }
.hd-app .hd-finder-cta-text { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.hd-app .hd-finder-cta-text strong { font-size: .98rem; }
.hd-app .hd-finder-cta .hd-muted { font-size: .84rem; }
.hd-app .hd-finder-cta .hd-ic { width: 20px; height: 20px; color: var(--hd-muted); flex: 0 0 auto; }
.hd-app .hd-finder-cta .hd-luna-avatar { width: 40px; height: 40px; min-width: 40px; flex: 0 0 40px; border-radius: 50%; }
.hd-app .hd-finder-cta .hd-luna-avatar img { width: 40px !important; height: 40px !important; max-width: none; border-radius: 50%; object-fit: cover; }
.hd-app .hd-finder { max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.hd-app .hd-finder-head { display: flex; flex-direction: column; gap: 8px; }
.hd-app .hd-finder-head h3 { margin: 0; }
.hd-app .hd-finder-backlink { display: inline-flex; align-items: center; gap: 4px; color: var(--hd-muted); font-size: .88rem; text-decoration: none; width: fit-content; }
.hd-app .hd-finder-backlink .hd-ic { width: 16px; height: 16px; }
.hd-app .hd-finder-progress { height: 6px; border-radius: 3px; background: var(--hd-surface-alt, #eee); overflow: hidden; }
.hd-app .hd-finder-progress span { display: block; height: 100%; width: 0; background: var(--hd-accent); border-radius: 3px; transition: width .35s ease; }
.hd-app .hd-finder-thread { display: flex; flex-direction: column; gap: 10px; }
.hd-app .hd-finder-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; animation: hd-finder-in .25s ease both; }
.hd-app .hd-finder-msg.is-user { align-self: flex-end; }
.hd-app .hd-finder-msg-av { flex: 0 0 32px; }
.hd-app .hd-finder-msg-av .hd-luna-avatar, .hd-app .hd-finder-msg-av .hd-luna-avatar img { width: 32px; height: 32px; font-size: .85rem; border-radius: 50%; object-fit: cover; }
.hd-app .hd-finder-msg-av img { border-radius: 50%; }
.hd-app .hd-finder-bubble { padding: 10px 14px; border-radius: 18px; line-height: 1.45; font-size: .95rem; }
.hd-app .hd-finder-msg.is-luna .hd-finder-bubble { background: var(--hd-surface-alt, #f3f3f3); color: var(--hd-text); border-bottom-left-radius: 6px; }
.hd-app .hd-finder-msg.is-user .hd-finder-bubble { background: var(--hd-accent); color: #fff; border-bottom-right-radius: 6px; display: flex; align-items: center; gap: 8px; }
.hd-app .hd-finder-msg-img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.hd-app .hd-finder-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.hd-app .hd-finder-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--hd-muted); opacity: .4; animation: hd-finder-dot 1s infinite; }
.hd-app .hd-finder-typing i:nth-child(2) { animation-delay: .15s; }
.hd-app .hd-finder-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hd-finder-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes hd-finder-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hd-app .hd-finder-answers { display: flex; flex-direction: column; gap: 10px; padding-left: 40px; }
.hd-app .hd-finder-start { align-self: flex-start; }
/* Keine blaue Browser-/Theme-Kontur beim Antippen; nur bei Tastatur ein Ring in Markenfarbe. */
.hd-app .hd-finder button:focus,
.hd-app .hd-finder a:focus,
.hd-app .hd-finder-cta:focus { outline: none !important; box-shadow: none !important; }
.hd-app .hd-finder-start:focus, .hd-app .hd-finder-start:active { background: var(--hd-accent); border-color: var(--hd-accent); }
.hd-app .hd-finder button:focus-visible,
.hd-app .hd-finder a:focus-visible,
.hd-app .hd-finder-cta:focus-visible { outline: 2px solid var(--hd-accent); outline-offset: 2px; }
.hd-app .hd-finder-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.hd-app .hd-finder-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 10px; border: 1px solid #e6e6e6; border-radius: 14px; background: #f2f2f2; color: var(--hd-text); cursor: pointer; text-align: left; font: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.hd-app .hd-finder-tile:hover:not([disabled]) { border-color: var(--hd-accent); background: #ececec; box-shadow: 0 2px 10px rgba(0,0,0,.08); transform: translateY(-1px); }
.hd-app .hd-finder-tile-img { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #e8e8e8; }
.hd-app .hd-finder-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-app .hd-finder-tile-text { font-weight: 600; font-size: .9rem; padding: 0 4px; }
.hd-app .hd-finder-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-app .hd-finder-pill { position: relative; padding: 10px 16px; border: 1px solid #e6e6e6; border-radius: 999px; background: #f2f2f2; color: var(--hd-text); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; }
.hd-app .hd-finder-pill:hover:not([disabled]) { border-color: var(--hd-accent); background: #ececec; }
.hd-app .hd-finder-tile[disabled], .hd-app .hd-finder-pill[disabled] { opacity: .38; cursor: not-allowed; }
.hd-app .hd-finder-off { margin: 0; font-size: .82rem; color: var(--hd-muted); }
.hd-app .hd-finder-tools { display: flex; gap: 18px; padding-left: 40px; }
.hd-app .hd-finder-tools[hidden] { display: none; }
.hd-app .hd-finder-result { display: flex; flex-direction: column; gap: 12px; }
.hd-app .hd-finder-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.hd-app .hd-finder-sumchip { padding: 4px 10px; border-radius: 999px; background: var(--hd-surface-alt, #f3f3f3); font-size: .8rem; }
.hd-app .hd-finder-count { margin: 0; font-weight: 700; }
.hd-app .hd-finder-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.hd-app .hd-finder-card { display: flex; flex-direction: column; border: 1px solid var(--hd-border); border-radius: 14px; overflow: hidden; background: var(--hd-surface, #fff); }
.hd-app .hd-finder-card[hidden] { display: none; }
.hd-app .hd-finder-card-img { position: relative; aspect-ratio: 4 / 5; background: var(--hd-surface-alt, #f3f3f3); }
.hd-app .hd-finder-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-app .hd-finder-card-img.is-chip { aspect-ratio: 16 / 9; }
.hd-app .hd-finder-card-ba { position: absolute; top: 8px; left: 0; right: 0; display: flex; justify-content: space-evenly; color: #fff; font-size: .72rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); pointer-events: none; }
.hd-app .hd-finder-card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.hd-app .hd-finder-card-head { display: flex; align-items: center; gap: 8px; }
.hd-app .hd-finder-card-head .hd-studio-chip { width: 28px; height: 28px; }
.hd-app .hd-finder-card-head strong { display: block; font-size: .92rem; line-height: 1.2; }
.hd-app .hd-finder-card-head .hd-muted { font-size: .78rem; font-variant-numeric: tabular-nums; }
.hd-app .hd-finder-dev { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--hd-accent) 12%, var(--hd-surface, #fff)); color: var(--hd-accent); font-size: .78rem; font-weight: 700; }
.hd-app .hd-finder-far { font-size: .75rem; color: var(--hd-muted); }
.hd-app .hd-finder-card-acts { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.hd-app .hd-finder-card-acts .hd-btn { padding: 6px 12px; font-size: .82rem; min-height: 0; }
.hd-app .hd-finder-buy { font-size: .82rem; font-weight: 700; color: var(--hd-accent); }
.hd-app .hd-finder-more { align-self: center; }
.hd-app .hd-finder-tip { margin: 0; font-size: .88rem; color: var(--hd-muted); }
.hd-app .hd-finder-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-app .hd-finder-saved { margin: 0; font-size: .8rem; color: var(--hd-muted); min-height: 1em; }
.hd-app .hd-finder-note { font-size: .78rem; color: var(--hd-muted); margin: 8px 0 0; }
.hd-app .hd-studio-filter.is-foryou { font-weight: 700; }
@media (max-width: 600px) {
	.hd-app .hd-finder-cta { gap: 10px; padding: 8px 12px; margin: 10px 0 2px; }
	.hd-app .hd-finder-cta .hd-luna-avatar, .hd-app .hd-finder-cta .hd-luna-avatar img { width: 34px !important; height: 34px !important; min-width: 34px; flex-basis: 34px; }
	.hd-app .hd-finder-cta-text strong { font-size: .92rem; }
	.hd-app .hd-finder-cta .hd-muted { font-size: .8rem; }
	.hd-app .hd-finder-answers, .hd-app .hd-finder-tools { padding-left: 0; }
	.hd-app .hd-finder-tiles { grid-template-columns: repeat(2, 1fr); }
	.hd-app .hd-finder-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.hd-app .hd-finder-card-acts .hd-btn { width: 100%; justify-content: center; }
	.hd-app .hd-finder-msg { max-width: 94%; }
}
@media (prefers-reduced-motion: reduce) {
	.hd-app .hd-finder-msg, .hd-app .hd-finder-typing i { animation: none; }
	.hd-app .hd-finder-tile { transition: none; }
}

/* Hinweise aufs Studio: im neuen Eintrag, in der Färbreihe, unter Beiträgen. */
.hd-app .hd-studio-teaser-link { margin: 4px 0 14px; font-size: .9rem; }
.hd-app .hd-studio-teaser-link a { display: inline-flex; align-items: center; color: var(--hd-accent); font-weight: 600; text-decoration: none; }
.hd-app .hd-studio-teaser-link .hd-ic { width: 18px; height: 18px; flex: 0 0 auto; }
.hd-app .hd-studio-teaser { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--hd-text); }
.hd-app .hd-studio-teaser:hover { border-color: var(--hd-accent); }
.hd-app .hd-studio-teaser-ic { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: linear-gradient(135deg, #5a2a12, #a24a20 55%, #e0b890); color: #fff; flex: 0 0 auto; }
.hd-app .hd-studio-teaser-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.hd-app .hd-studio-teaser-text span { color: var(--hd-muted); font-size: .9rem; }
.hd-app .hd-studio-teaser-go .hd-ic { width: 20px; height: 20px; color: var(--hd-muted); }
.hd-app .hd-studio-try { display: flex; align-items: center; gap: 10px; margin: 0 16px 10px; padding: 8px 12px; border-radius: 999px; background: var(--hd-surface-alt); color: var(--hd-text); text-decoration: none; font-size: .88rem; }
.hd-app .hd-studio-try .hd-studio-chip { width: 26px; height: 26px; }
.hd-app .hd-studio-try span:not(.hd-studio-chip) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-app .hd-studio-try .hd-ic { width: 18px; height: 18px; color: var(--hd-muted); }
.hd-app .hd-studio-try:hover { background: color-mix(in srgb, var(--hd-accent) 10%, var(--hd-surface-alt)); }

@media (max-width: 900px) {
	.hd-app .hd-studio-grid { grid-template-columns: 1fr; gap: 14px; }
	.hd-app .hd-studio-stagewrap { position: static; }
	.hd-app .hd-studio-drop { min-height: 260px; }
	/* Am Handy: Farben als waagerechte Reihe direkt unter dem Foto. */
	.hd-app .hd-studio.has-photo .hd-studio-chips,
	.hd-app .hd-studio-chips { display: flex; grid-template-columns: none; overflow-x: auto; overflow-y: hidden; max-height: none; gap: 4px; padding: 4px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
	.hd-app .hd-studio-chipbtn { flex: 0 0 80px; scroll-snap-align: start; }
	.hd-app .hd-studio-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 0 2px; }
	.hd-app .hd-studio-filters::-webkit-scrollbar { display: none; }
	.hd-app .hd-studio-filter { flex: 0 0 auto; }
	.hd-app .hd-studio-pick { grid-template-columns: 1fr; }
	.hd-app .hd-studio-actions .hd-btn { flex: 1 1 calc(50% - 8px); }
}
@media (prefers-reduced-motion: reduce) {
	.hd-app .hd-studio-spinner,
	.hd-app .hd-studio-chips.is-hinting .hd-studio-chip { animation: none; }
}
