/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/
/* Test Auto-Deploy 2026-10-17 */

/* ==========================================================================
   h44s-Design: eckige Formen, Zitate, Trennlinien
   --------------------------------------------------------------------------
   Farben und Schriften kommen aus Avada (Optionen → Global Colors und
   Typography), hier nur, was Avada global nicht einstellen kann. Farben
   über die Palette (--awb-color5 = Akzent), damit sie Avada folgen.
   Avada lädt sein CSS nach diesem, deshalb :root:root.
   ========================================================================== */

:root:root {
	--form_border_radius: 0px;
	--flip_boxes_border_radius: 0px;
	--countdown_counter_border_radius: 0px;
	--pagination_border_radius: 0px;
	--gallery_border_radius: 0px;
}

/* Diese Variablen setzt Avada am Element statt auf :root. */
.fusion-body {
	--button-border-radius-top-left: 0px;
	--button-border-radius-top-right: 0px;
	--button-border-radius-bottom-left: 0px;
	--button-border-radius-bottom-right: 0px;
}

/* Keine runden Ecken, auch nicht an Elementen mit eigenem Radius im Builder.
   Bewusst global: Avatare, Social Icons und Radio-Buttons werden mit eckig. */
.fusion-body *,
.fusion-body *::before,
.fusion-body *::after {
	border-radius: 0 !important;
}

/* Zitate violett kursiv, die einzige Stelle mit farbigem Fließtext. */
.fusion-body blockquote,
.fusion-body blockquote p,
.fusion-body q,
.fusion-body cite {
	color: var(--awb-color5);
	font-style: italic;
}

/* Trennlinien in Akzentfarbe */
.fusion-body hr {
	border: 0;
	border-top: 1px solid var(--awb-color5);
}

/* Dark-/Lightmodus: weicher Wechsel beim Klick auf .dlm-toggle (scripts.js).
   1 s, im selben Takt wie die Welle im 3D-Gitter (grid-bg.js). */
.dlm-switching,
.dlm-switching *,
.dlm-switching *::before,
.dlm-switching *::after {
	transition: background-color 1s ease-in-out, color 1s ease-in-out, border-color 1s ease-in-out, fill 1s ease-in-out, stroke 1s ease-in-out !important;
}
@media (prefers-reduced-motion: reduce) {
	.dlm-switching,
	.dlm-switching *,
	.dlm-switching *::before,
	.dlm-switching *::after {
		transition: none !important;
	}
}

.dlm-toggle {
	cursor: pointer;
}

/* Elemente nur für einen Modus: .light nur hell, .dark nur dunkel (z. B.
   zwei Bilder nebeneinander, eins mit .light, eins mit .dark). Beim Klick
   auf .dlm-toggle blendet das neue Element im Takt der Farben ein.
   Nur das jeweils andere wird ausgeblendet, das sichtbare behält Avadas
   eigenes display. */
@media not all and (prefers-color-scheme: dark) {
	:root:not([data-theme="dark"]) .fusion-body .dark,
	:root[data-theme="dark"] .fusion-body .light {
		display: none !important;
	}
}
@media (prefers-color-scheme: dark) {
	:root[data-theme="light"] .fusion-body .dark,
	:root:not([data-theme="light"]) .fusion-body .light {
		display: none !important;
	}
}
.dlm-switching .fusion-body .dark,
.dlm-switching .fusion-body .light {
	animation: dlm-fade-in 1s ease-in-out;
}
@keyframes dlm-fade-in {
	from {
		opacity: 0;
	}
}
@media (prefers-reduced-motion: reduce) {
	.dlm-switching .fusion-body .dark,
	.dlm-switching .fusion-body .light {
		animation: none;
	}
}

/* Menü-Toggle: Bei offenem Off-Canvas ein X statt des Burger-Icons. Avada
   setzt awb-oc-active selbst auf jeden Link zum Off-Canvas, solange es offen
   ist. \f00d ist fa-times aus Avadas Font Awesome 5 (Solid). */
.menu-toggle.awb-oc-active::before {
	content: "\f00d";
}

/* 3D-Gitter im Hintergrund (grid-bg.js). Setzt html.h44s-grid-on:
   Die Seitenfarbe liegt dann auf <html>, Body und Avadas Wrapper werden
   durchsichtig, damit das Canvas dazwischen sichtbar ist. Container mit
   eigener Hintergrundfarbe im Builder decken es weiter ab. */
html.h44s-grid-on {
	background-color: var(--awb-color1);
}
html.h44s-grid-on body,
html.h44s-grid-on #boxed-wrapper,
html.h44s-grid-on #wrapper,
html.h44s-grid-on #main {
	background-color: transparent !important;
}
/* 100lvh: so hoch wie der Viewport mit eingeklappten Leisten. Ändert sich
   nicht, wenn Safari auf iOS die Leisten beim Scrollen ein- und ausblendet;
   100vh als Rückfall für ältere Browser. */
#h44s-grid {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	height: 100lvh;
	z-index: -1;
	pointer-events: none;
}

/* Szene mit Figur (Shortcode [h44s_szene], szene/szene.js). --szene-ratio
   setzt das Skript aus dem Hintergrundbild, sonst 16:9. Im Vollbild wird
   die Bühne mit Rand eingepasst. */
.h44s-szene {
	--szene-ratio: 1.7778;
	position: relative;
	width: 100%;
}
.h44s-szene-buehne {
	position: relative;
	width: 100%;
	aspect-ratio: var(--szene-ratio);
	overflow: hidden;
	background: var(--awb-color1);
	border: 1px solid var(--awb-color5);
	user-select: none;
	-webkit-user-select: none;
}
.h44s-szene canvas {
	display: block;
	width: 100%;
	height: 100%;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	outline: none;
}
.h44s-szene canvas:focus-visible {
	outline: 2px solid var(--awb-color5);
	outline-offset: -2px;
}
.h44s-szene:fullscreen {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
}
.h44s-szene:fullscreen .h44s-szene-buehne {
	width: min(100vw, calc(100vh * var(--szene-ratio)));
	border: 0;
}
.h44s-szene-blase {
	position: absolute;
	transform: translate(-50%, -100%);
	max-width: min(60%, 18em);
	width: max-content;
	padding: 0.4em 0.7em;
	background: var(--awb-color1);
	color: var(--awb-color8);
	border: 2px solid var(--awb-color8);
	font-size: clamp(12px, 1.6vw, 16px);
	line-height: 1.3;
	text-align: center;
	pointer-events: none;
	animation: h44s-szene-blase 0.2s ease-out;
}
.h44s-szene-blase[hidden] {
	display: none;
}
.h44s-szene-blase::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	margin-left: -6px;
	border: 6px solid transparent;
	border-top-color: var(--awb-color8);
}
/* Gedankenblase: gepunktet und kursiv, statt der Spitze zwei kleine
   Kästchen. Symbolblase (♪, !, zZz …): kurz, fett, in der Akzentfarbe. */
.h44s-szene-blase.ist-gedanke {
	margin-top: -16px; /* Platz für die Kästchen über dem Kopf */
	border-style: dotted;
	font-style: italic;
}
.h44s-szene-blase.ist-gedanke::before,
.h44s-szene-blase.ist-gedanke::after {
	content: "";
	position: absolute;
	left: 50%;
	box-sizing: border-box;
	border: 2px solid var(--awb-color8);
	background: var(--awb-color1);
}
.h44s-szene-blase.ist-gedanke::after {
	top: calc(100% + 3px);
	width: 8px;
	height: 8px;
	margin-left: -6px;
}
.h44s-szene-blase.ist-gedanke::before {
	top: calc(100% + 13px);
	width: 5px;
	height: 5px;
	margin-left: -1px;
}
.h44s-szene-blase.ist-emote {
	padding: 0.1em 0.45em;
	font-weight: 700;
	font-size: clamp(14px, 2vw, 20px);
	color: var(--awb-color5);
}

@keyframes h44s-szene-blase {
	from {
		opacity: 0;
		transform: translate(-50%, -80%);
	}
}
.h44s-szene-hinweis {
	position: absolute;
	left: 0;
	right: 0;
	top: 0.8em;
	margin: 0;
	text-align: center;
	font-size: clamp(11px, 1.4vw, 14px);
	color: var(--awb-color8);
	opacity: 0.7;
	pointer-events: none;
	transition: opacity 0.6s;
}
.h44s-szene-gestartet .h44s-szene-hinweis {
	opacity: 0;
}
.h44s-szene-voll {
	position: absolute;
	right: 0.5em;
	bottom: 0.5em;
	width: 2em;
	height: 2em;
	padding: 0;
	border: 1px solid var(--awb-color5);
	background: var(--awb-color1);
	cursor: pointer;
	opacity: 0.6;
}
.h44s-szene-voll:hover,
.h44s-szene-voll:focus-visible {
	opacity: 1;
}
/* Vier Ecken als Vollbild-Symbol */
.h44s-szene-voll::before {
	content: "";
	position: absolute;
	inset: 25%;
	background:
		linear-gradient(var(--awb-color8), var(--awb-color8)) left top / 35% 2px,
		linear-gradient(var(--awb-color8), var(--awb-color8)) left top / 2px 35%,
		linear-gradient(var(--awb-color8), var(--awb-color8)) right top / 35% 2px,
		linear-gradient(var(--awb-color8), var(--awb-color8)) right top / 2px 35%,
		linear-gradient(var(--awb-color8), var(--awb-color8)) left bottom / 35% 2px,
		linear-gradient(var(--awb-color8), var(--awb-color8)) left bottom / 2px 35%,
		linear-gradient(var(--awb-color8), var(--awb-color8)) right bottom / 35% 2px,
		linear-gradient(var(--awb-color8), var(--awb-color8)) right bottom / 2px 35%;
	background-repeat: no-repeat;
}
.h44s-szene-fehler {
	display: none;
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 1em;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.h44s-szene-ohne-webgl .h44s-szene-fehler {
	display: flex;
}
.h44s-szene-ohne-webgl canvas,
.h44s-szene-ohne-webgl .h44s-szene-hinweis,
.h44s-szene-ohne-webgl .h44s-szene-voll {
	display: none;
}
@media (prefers-reduced-motion: reduce) {
	.h44s-szene-blase {
		animation: none;
	}
}

/* Sprechblase der Figur auf dem 3D-Gitter (szene/gitter-figur.js), am
   Fenster statt an einer Bühne ausgerichtet. */
.h44s-gitter-blase {
	position: fixed;
	z-index: 50;
	max-width: min(80vw, 18em);
}

/* Name über der ausgewählten Figur, in der Szene (Shortcode, szene.js) und
   auf dem 3D-Gitter (szene/gitter-figur.js, am Fenster ausgerichtet). */
.h44s-szene-name,
.h44s-gitter-name {
	position: absolute;
	z-index: 50;
	transform: translate(-50%, -100%);
	padding: 0.1em 0.5em;
	background: var(--awb-color5);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	pointer-events: none;
}
.h44s-gitter-name {
	position: fixed;
}
.h44s-szene-name[hidden],
.h44s-gitter-name[hidden] {
	display: none;
}
