/**
 * Twenty & Block-Theme ausblenden – nur AC-Layout sichtbar.
 */

html.ac-no-theme,
body.ac-no-theme,
body.ac-blank-template {
	margin: 0 !important;
	padding: 0 !important;
	background: var(--ac-bg, #fafbff) !important;
}

body.ac-no-theme #page,
body.ac-no-theme .site,
body.ac-no-theme .wp-site-blocks,
body.ac-blank-template #ac-main {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

/* Block-Themes: Twenty Twenty-Three / Four / Five */
body.ac-no-theme header.wp-block-template-part,
body.ac-no-theme footer.wp-block-template-part,
body.ac-no-theme .wp-site-blocks > header,
body.ac-no-theme .wp-site-blocks > footer,
body.ac-no-theme .wp-block-template-part.site-header,
body.ac-no-theme .wp-block-template-part.site-footer,
body.ac-no-theme nav.wp-block-navigation:not(.ac-header__nav),
body.ac-no-theme .wp-block-post-title,
body.ac-no-theme .wp-block-post-featured-image {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Klassische Themes: Twenty Twenty / Twenty Nineteen etc. */
body.ac-no-theme #masthead,
body.ac-no-theme #colophon,
body.ac-no-theme .site-header,
body.ac-no-theme .site-footer,
body.ac-no-theme .site-branding,
body.ac-no-theme .main-navigation,
body.ac-no-theme .entry-header,
body.ac-no-theme .post-thumbnail,
body.ac-no-theme .comments-area,
body.ac-no-theme .widget-area,
body.ac-no-theme aside,
body.ac-no-theme .sidebar {
	display: none !important;
}

/* Content-Bereich volle Breite */
body.ac-no-theme .entry-content,
body.ac-no-theme .page .entry-content,
body.ac-no-theme article .entry-content,
body.ac-no-theme .wp-block-post-content,
body.ac-blank-template .ac-main {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.ac-no-theme article,
body.ac-no-theme .hentry,
body.ac-no-theme .type-page {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Theme-Typografie nicht überschreiben lassen */
body.ac-no-theme .entry-content > *:not([class^="ac-"]):not([class*=" ac-"]) {
	max-width: none;
}

/* Admin-Leiste: kein extra Offset */
html.ac-no-theme {
	margin-top: 0 !important;
}

body.admin-bar.ac-no-theme .ac-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar.ac-no-theme .ac-header {
		top: 46px;
	}
}

@media screen and (min-width: 783px) {
	body.admin-bar.ac-no-theme {
		margin-top: 0 !important;
	}
}
