/* public.css – Gestaltung der öffentlichen Seiten (#630: Freigaben, Schnellablage, Notfallzugang) auf ihren eigenen Hosts; lädt nach Bootstrap und
   theme.css (Farben als --lh-*-Variablen), ohne main.css. Inline-Styles verbietet die Content-Security-Policy, daher steht alles hier. */
body {
	background: var(--lh-bg);
	color: var(--lh-text-body);
	font-family: "Inter", system-ui, sans-serif;
}

.PublicPage {
	max-width: 720px;
	margin: 0 auto;
	padding: 32px 16px 64px;
}

.PublicHeader {
	text-align: center;
	margin-bottom: 24px;
}

.PublicHeader h1 {
	font-family: var(--lh-font-display);
	font-size: 1.6rem;
	font-weight: 600;
	margin: 12px 0 4px;
	overflow-wrap: anywhere;
}

.PublicIcon {
	width: 56px;
	height: 56px;
	margin: 0 auto;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	background: rgba(var(--lh-accent-rgb), .12);
	color: var(--lh-accent);
}

.PublicIconEmergency {
	background: rgba(255, 122, 107, .14);
	color: var(--lh-red);
}

.PublicMuted {
	color: var(--lh-text-muted);
}

.PublicCard {
	background: var(--lh-surface);
	border: 1px solid var(--lh-border-subtle);
	border-radius: var(--lh-radius-card);
	padding: 16px 18px;
	margin-bottom: 12px;
}

/* Ablagefläche: ein Label um das versteckte Dateifeld, damit Tippen, Tastatur und Ziehen gleichermaßen gehen */
.PublicDrop {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 28px 16px;
	border: 2px dashed rgba(var(--lh-accent-rgb), .55);
	border-radius: var(--lh-radius-card);
	color: var(--lh-accent);
	text-align: center;
	cursor: pointer;
	transition: background .15s;
}

.PublicDrop i {
	font-size: 1.8rem;
}

.PublicDrop:hover,
.PublicDrop:focus-within,
.PublicDrop.Dragging {
	background: rgba(var(--lh-accent-rgb), .08);
}

.PublicDropText {
	font-weight: 500;
}

.PublicFileInput {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.PublicUploads {
	margin-top: 12px;
}

.PublicUpload {
	padding: 8px 0;
	border-bottom: 1px solid var(--lh-border-subtle);
}

.PublicUploadLine {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: .9rem;
}

.PublicUploadName {
	overflow-wrap: anywhere;
}

.PublicUploadState {
	white-space: nowrap;
	color: var(--lh-text-muted);
}

.PublicUploadState.Done {
	color: var(--lh-save);
}

.PublicUploadState.Failed {
	color: var(--lh-red);
}

.PublicProgress {
	height: 4px;
	margin-top: 6px;
	border-radius: 2px;
	background: var(--lh-border);
	overflow: hidden;
}

.PublicProgressBar {
	height: 100%;
	width: 0;
	background: var(--lh-accent);
	transition: width .2s;
}

.PublicListHeader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 24px 0 8px;
	min-height: 32px;
}

.PublicFileList,
.PublicContactList {
	list-style: none;
	padding: 0;
	margin: 0;
}

.PublicFile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--lh-border-subtle);
}

.PublicFileIcon {
	width: 20px;
	text-align: center;
	color: var(--lh-text-muted);
}

.PublicFileName {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
}

.PublicFileMeta {
	display: block;
	font-size: .8rem;
	color: var(--lh-text-muted);
}

.PublicFileActions {
	display: flex;
	gap: 6px;
}

.PublicContactName {
	font-family: var(--lh-font-display);
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 6px;
}

/* große Flächen zum Antippen, die Nummer gut lesbar */
.PublicPhone {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	margin-top: 6px;
	border-radius: var(--lh-radius-field);
	background: var(--lh-surface-raised);
	color: var(--lh-text);
	text-decoration: none;
}

.PublicPhone i {
	color: var(--lh-accent);
}

.PublicPhoneNumber {
	font-size: 1.1rem;
	font-weight: 500;
	flex: 1;
}