/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/


/* Dark-Mode */
:root {
    --background-color: #ffffff;
    --text-color: #000000;
}

body {
    background-color: var(--background-color) !important;
    color: var(--text-color) !important;
    transition: background-color 0.3s ease, color 0.3s ease; /* Weicher Übergang */
}

.dark-mode {
    --background-color: #121212;
    --text-color: #ffffff;
}

.dark-mode .maincontent,
.dark-mode .maincontent p,
.dark-mode .maincontent div,
.dark-mode .elementor-widget-container p,
.dark-mode .elementor-heading-title,
.dark-mode .elementor-icon-list-text,
.dark-mode .elementor-icon-list-text a,
.dark-mode #font-size-control button,
.dark-mode .elementor-toc__header-title {
    color: #ffffff !important;
}
.dark-mode .maincontent a,
.dark-mode .maincontent p a {
    color: #00BCD4 !important;
}
.dark-mode .elementor-widget-table-of-contents a {
    color: #999999 !important;
}
.dark-mode .elementor-toc__list-item-text.elementor-item-active,
.dark-mode a.elementor-toc__list-item-text:hover {
    color: #ffffff !important;
}

.dark-mode .elementor-share-btn__icon svg,
.dark-mode .elementor-icon-list-icon svg,
.dark-mode .elementor-toc__list-item-text-wrapper svg,
.dark-mode .elementor-toc__toggle-button svg,
.dark-mode .jet-search__popup-trigger-icon svg {
    fill: var(--text-color) !important;
}
.dark-mode .elementor-divider-separator {
    border-block-start: #ffffff !important;
}

.dark-mode .elementor-widget-table-of-contents,
.dark-mode .header {
   --box-background-color: #222222 !important;
   background: #222222 !important;
}

.dark-mode .side-menu .line {
   background: #ffffff !important;
}

/* Container für den Schalter und das Label */
.switch-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Abstand zwischen Text und Switch */
    font-size: 12px; /* Schriftgröße für das Label */
    font-family: Arial, sans-serif; /* Lesbare Schriftart */
    color: var(--text-color); /* Dynamische Farbe je nach Modus */
}

/* Schiebe-Button */

/* Basis-Styles für den kleineren Switch */
.dark-mode-switch {
    position: relative;
    display: inline-block;
    width: 40px; /* Breite des Switchers */
    height: 20px; /* Höhe des Switchers */
}

.dark-mode-switch input {
    display: none; /* Versteckt das Checkbox-Input */
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc; /* Hintergrund im Light Mode */
    border-radius: 20px; /* Runde Ecken */
    transition: background-color 0.3s ease;
}

/* Punkt innerhalb des Switchers */
.slider:before {
    content: "";
    position: absolute;
    height: 16px; /* Größe des Punktes */
    width: 16px;
    left: 2px; /* Startposition des Punktes */
    bottom: 2px;
    background-color: white; /* Punkt im Light Mode */
    border-radius: 50%; /* Runde Form */
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center; /* Zentrierte Inhalte */
    overflow: hidden; /* Icons bleiben im Kreis begrenzt */
}

/* SVG-Icons für Sonne und Mond */
.cs-icon-light-mode,
.cs-icon-dark-mode {
    position: absolute;
    width: 10px; /* Größe der Icons */
    height: 10px;
    pointer-events: none; /* Klicks durchlassen */
    transition: opacity 0.3s ease, fill 0.3s ease;
}

/* Sonne: links im Punkt sichtbar im Light Mode */
.cs-icon-light-mode {
    left: 4px; /* Abstand nach links innerhalb des Punktes */
    top: 50%; /* Vertikale Zentrierung */
    transform: translateY(-50%);
    fill: black; /* Standardfarbe im Light Mode */
    opacity: 1; /* Sichtbar im Light Mode */
}

/* Mond: rechts im Punkt sichtbar im Dark Mode */
.cs-icon-dark-mode {
    right: 4px; /* Abstand nach rechts innerhalb des Punktes */
    top: 50%; /* Vertikale Zentrierung */
    transform: translateY(-50%);
    fill: white; /* Standardfarbe im Dark Mode */
    opacity: 0; /* Unsichtbar im Light Mode */
}

/* Aktivierter Zustand (Dark Mode) */
input:checked + .slider {
    background-color: #555; /* Helleres Grau im Dark Mode */
}

input:checked + .slider:before {
    transform: translateX(20px); /* Punkt nach rechts verschieben */
    background-color: black; /* Punkt wird schwarz im Dark Mode */
}

/* Icons im Dark Mode */
input:checked + .slider .cs-icon-light-mode {
    opacity: 0; /* Sonne ausblenden */
}

input:checked + .slider .cs-icon-dark-mode {
    opacity: 1; /* Mond einblenden */
}

/* Farbänderung bei Hover */
.slider:hover .cs-icon-light-mode {
    fill: #555; /* Leicht dunkleres Grau bei Hover im Light Mode */
}

.slider:hover .cs-icon-dark-mode {
    fill: #ddd; /* Helles Grau bei Hover im Dark Mode */
}




/* Ab hier Schriftgrößenanpassung */
#font-size-control {
    display: flex;
    gap: 10px;
    margin: 0;
}

#font-size-control button {
    padding: 0;
    font-size: 13px;
    border: 0;
    border-radius: 3px;
    background-color: transparent;
    color: #17252AB3;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#font-size-control button:hover {
    background-color: #ffffff;
    color: #333333;
}

/* Dynamische Schriftgrößen- und Zeilenhöhenvariablen */
:root {
    --base-font-size: 18px; /* Ausgangsschriftgröße */
    --font-size-scale: 1; /* Skalierungsfaktor für Schriftgröße */
}

.maincontent,
.maincontent p {
    font-size: calc(var(--base-font-size) * var(--font-size-scale)) !important; /* Dynamische Schriftgröße */
    line-height: calc(var(--base-font-size) * var(--font-size-scale) + 10px) !important; /* Zeilenhöhe = Schriftgröße + 10px */
    transition: font-size 0.3s ease, line-height 0.3s ease; /* Weicher Übergang */
}
/* Überschriften dynamisch skalieren */
.maincontent h1 {
    font-size: calc(2 * var(--base-font-size) * var(--font-size-scale)) !important; /* z. B. 2.5x der Basisgröße */
    line-height: calc(2 * var(--base-font-size) * var(--font-size-scale) + 10px) !important;
}

.maincontent h2 {
    font-size: calc(1.65 * var(--base-font-size) * var(--font-size-scale)) !important; /* z. B. 2x der Basisgröße */
    line-height: calc(1.65 * var(--base-font-size) * var(--font-size-scale) + 10px) !important;
}

.maincontent h3 {
    font-size: calc(1.25 * var(--base-font-size) * var(--font-size-scale)) !important; /* z. B. 1.75x der Basisgröße */
    line-height: calc(1.25 * var(--base-font-size) * var(--font-size-scale) + 10px) !important;
}

.maincontent h4 {
    font-size: calc(1 * var(--base-font-size) * var(--font-size-scale)) !important; /* z. B. 1.5x der Basisgröße */
    line-height: calc(1 * var(--base-font-size) * var(--font-size-scale) + 10px) !important;
}

.maincontent h5 {
    font-size: calc(1 * var(--base-font-size) * var(--font-size-scale)) !important; /* z. B. 1.25x der Basisgröße */
    line-height: calc(1 * var(--base-font-size) * var(--font-size-scale) + 10px) !important;
}

.maincontent h6 {
    font-size: calc(1 * var(--base-font-size) * var(--font-size-scale)) !important; /* z. B. 1x der Basisgröße */
    line-height: calc(1 * var(--base-font-size) * var(--font-size-scale) + 10px) !important;
}

/* Übergänge für Überschriften */
.maincontent h1, .maincontent h2, .maincontent h3, .maincontent h4, .maincontent h5, .maincontent h6 {
    transition: font-size 0.3s ease; /* Weicher Übergang */
}