/******* Bearbeitbar im WP-Backend unter Custom CSS & JS *******/
/* ============================================================================
   BUSINESSTUNING.AT  –  1  Sonderfaelle (Grundlagen, Kopf- und Fusszeile)
   ----------------------------------------------------------------------------
   WICHTIG: Layout, Abstaende, Breiten, Farben und Schriften der Startseite
   stecken vollstaendig in den Elementor-Einstellungen (Container- und
   Widget-Regler, Site-Einstellungen). Diese Datei enthaelt nur, wofuer
   Elementor keinen Regler anbietet – also nichts, was man beim Bearbeiten
   von Inhalten oder Layout anfassen muss.

   Enthalten:
     1  Sanftes Scrollen und Sprungziele unter der festen Kopfzeile
     2  Auswahlfarbe und Tastatur-Fokus
     3  Ruecksicht auf reduzierte Bewegung
     4  Weichzeichner hinter der Kopfzeile
     5  Mobiles Menue ueber die volle Breite (Elementor-Fehler in 4.2)
     6  Unterseiten Impressum/Datenschutz (laufen ueber die Theme-Vorlage,
        nicht ueber Elementor)
   ============================================================================ */


/* --- 1  Sanftes Scrollen und Sprungziele ---------------------------------- */

:root { --bt-header-h: 6em; }

@media (max-width: 1366px) { :root { --bt-header-h: 5.6em; } }
@media (max-width: 900px)  { :root { --bt-header-h: 5.2em; } }
@media (max-width: 560px)  { :root { --bt-header-h: 4.5em; } }

html { scroll-behavior: smooth; }

body [id] { scroll-margin-top: calc(var(--bt-header-h) + 1.5em); }


/* --- 2  Auswahlfarbe und Fokus -------------------------------------------- */

::selection {
	background: var(--e-global-color-accent);
	color: var(--e-global-color-btblack);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--e-global-color-accent);
	outline-offset: 3px;
}


/* --- 3  Reduzierte Bewegung ----------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, ::before, ::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}


/* --- 4  Kopfzeile: Weichzeichner ------------------------------------------
   Elementor hat keinen Regler fuer backdrop-filter. Farbe, Hoehe, Rahmen und
   Abstaende der Kopfzeile stehen im Container. */

.bt-header {
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

/* Logos ohne zusaetzliche Zeilenhoehe des Umbruchs */
.bt-logo { line-height: 0; }


/* --- 5  Mobiles Menue ----------------------------------------------------- */

@media (max-width: 900px) {

	.bt-header .bt-nav,
	.bt-header .bt-nav > .elementor-widget-container {
		position: static !important;
	}

	.bt-nav .elementor-nav-menu--dropdown {
		position: absolute !important;
		top: 100%;
		left: 0;
		right: 0;
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		background-color: rgba(7, 9, 10, 0.97);
		border-top: 1px solid rgba(242, 240, 233, 0.12);
		-webkit-backdrop-filter: blur(16px);
		backdrop-filter: blur(16px);
	}

	.bt-nav .elementor-nav-menu--dropdown .elementor-item { white-space: normal; }
}


/* --- 6  Unterseiten (Impressum, Datenschutz) ------------------------------
   Diese beiden Seiten sind Gutenberg-Seiten und laufen ueber die
   Theme-Vorlage; nur dort gibt es <main class="site-main">. */

.site-main {
	max-width: 62.5em;
	margin-inline: auto;
	padding-block-start: calc(var(--bt-header-h) + 4em);
	padding-block-end: 6em;
	padding-inline: clamp(1.25em, 4.5vw, 4.5em);
}

.site-main .entry-title { margin-block: 0 2em; }

.site-main .page-content > * { max-width: 46em; }

.site-main .page-content > * + * { margin-block-start: 1em; }

.site-main .page-content h2 { margin-block-start: 2.5em; }

.site-main .page-content a { text-decoration: underline; }
