/* Nextcloud 31 – öffentliche Freigaben (z. B. Postbox):
   Im Menü „+ Neu“ nur noch „Datei hochladen“ und „Ordner hochladen“ anbieten.
   Einfügen unter: Verwaltungseinstellungen › Design (Theming) › „Custom CSS“.
   Wirkt NUR auf Seiten öffentlicher Links (body#body-public),
   nicht in der normalen Dateien-App angemeldeter Nutzer (body#body-user). */

/* Neue Datei aus Vorlage: „Neue Textdatei“ (Text), ggf. Office-Dokumente, Zeichenflächen usw. */
body#body-public [data-cy-upload-picker-menu-entry^="template-new-"],
body#body-public li.action:has(> [data-cy-upload-picker-menu-entry^="template-new-"]),
/* „Ordnerbeschreibung hinzufügen“ (Text) */
body#body-public [data-cy-upload-picker-menu-entry="rich-workspace-init"],
body#body-public li.action:has(> [data-cy-upload-picker-menu-entry="rich-workspace-init"]),
/* „Neuer Ordner“ – Zeilen löschen, falls Mandanten Ordner anlegen dürfen sollen */
body#body-public [data-cy-upload-picker-menu-entry="newFolder"],
body#body-public li.action:has(> [data-cy-upload-picker-menu-entry="newFolder"]) {
	display: none !important;
}

/* ------------------------------------------------------------------
   Postbox (Dateiablage / File drop): „+ Hochladen“ in den Mittelpunkt,
   „Nutzungsbedingungen anzeigen“ klar erkennbar, aber zweitrangig.
   Markup Nextcloud 31: [data-cy-files-sharing-file-drop] .empty-content__action
   ------------------------------------------------------------------ */
body#body-public [data-cy-files-sharing-file-drop] .empty-content__action {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 14px !important;
}

/* Hochladen: oben, groß, Hauptfarbe */
body#body-public [data-cy-files-sharing-file-drop] .upload-picker {
	order: -1 !important;
}
body#body-public [data-cy-files-sharing-file-drop] [data-cy-upload-picker-add] {
	min-height: 56px !important;
	min-width: 260px !important;
	padding: 0 32px !important;
	border: 2px solid #000080 !important;
	border-radius: 28px !important;
	background-color: #000080 !important;
	color: #fff !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	box-shadow: 0 4px 14px rgba(0, 0, 128, .35) !important;
	cursor: pointer !important;
}
body#body-public [data-cy-files-sharing-file-drop] [data-cy-upload-picker-add] * {
	color: #fff !important;
	fill: #fff !important;
	font-size: inherit !important;
}
body#body-public [data-cy-files-sharing-file-drop] [data-cy-upload-picker-add]:hover {
	background-color: #0b1a6e !important;
}
body#body-public [data-cy-files-sharing-file-drop] [data-cy-upload-picker-add]:focus-visible,
body#body-public [data-cy-files-sharing-file-drop] .empty-content__action > button:focus-visible {
	outline: 3px solid #ffbf47 !important;
	outline-offset: 3px !important;
}

body#body-public [data-cy-files-sharing-file-drop] [data-cy-upload-picker-add] svg {
	width: 26px !important;
	height: 26px !important;
}

/* Nutzungsbedingungen: darunter, deutlich sichtbar als umrandete Schaltfläche, nicht in Hauptfarbe */
body#body-public [data-cy-files-sharing-file-drop] .empty-content__action > button {
	order: 1 !important;
	min-height: 44px !important;
	padding: 0 20px !important;
	border: 2px solid #000080 !important;
	border-radius: 22px !important;
	background-color: #fff !important;
	color: #000080 !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	height: auto !important;
	padding-block: 6px !important;
	line-height: 1.3 !important;
	box-shadow: none !important;
}
body#body-public [data-cy-files-sharing-file-drop] .empty-content__action > button * {
	color: #000080 !important;
}
body#body-public [data-cy-files-sharing-file-drop] .empty-content__action > button:hover {
	background-color: #eef1fb !important;
}

/* Hinweistext „Durch das Hochladen … Nutzungsbedingungen zu.“ gut lesbar */
body#body-public [data-cy-files-sharing-file-drop] .empty-content__description p {
	font-size: 17px !important;
	line-height: 1.5 !important;
	color: #1a1a1a !important;
}

/* Kleine Bildschirme: Schaltflächen auf volle Breite */
@media (max-width: 480px) {
	body#body-public [data-cy-files-sharing-file-drop] .upload-picker,
		body#body-public [data-cy-files-sharing-file-drop] [data-cy-upload-picker-add],
	body#body-public [data-cy-files-sharing-file-drop] .empty-content__action > button {
		width: 100% !important;
		min-width: 0 !important;
	}
}
