/*
Theme Name: Gesund Beschwingt
Description: Schlankes Child-Theme für gesund-beschwingt.at
Author: Gesund Beschwingt
Template: twentytwentyfive
Version: 0.2.0
Text Domain: gesund-beschwingt
*/


/* ---------------------------------------------------------
   Contact Form 7
   --------------------------------------------------------- */

.wpcf7 {
	max-width: 820px;
}

.wpcf7 form > p {
	margin-top: 0;
	margin-bottom: 12px;
}

.wpcf7 label {
	display: block;
	font-weight: 500;
	line-height: 1.35;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	margin-top: 8px;
	padding: 11px 14px;
	border: 1px solid #CFC8C0;
	border-radius: 6px;
	background: #FFFFFF;
	color: #302B27;
	font: inherit;
}

.wpcf7 textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 95px;
	margin-top: 8px;
	padding: 12px 14px;
	border: 1px solid #CFC8C0;
	border-radius: 6px;
	background: #FFFFFF;
	color: #302B27;
	font: inherit;
	resize: vertical;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
	border-color: #F3930D;
	outline: 3px solid rgba(243,147,13,0.28);
	outline-offset: 2px;
}

.wpcf7 input[type="submit"] {
	min-height: 48px;
	padding: 12px 24px;
	border: 0;
	border-radius: 8px;
	background: #F3930D;
	color: #302B27;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.wpcf7 input[type="submit"]:hover {
	filter: brightness(0.96);
}

.gb-form-hinweis {
	margin-top: 10px;
	margin-bottom: 14px;
	font-size: 15px;
	line-height: 1.5;
	color: #6E6863;
}

.wpcf7-response-output {
	margin: 20px 0 0 !important;
	padding: 12px 16px !important;
	border-radius: 6px;
}


/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

footer.wp-block-template-part > .wp-block-group a,
.wp-site-blocks > footer a {
	color: #FFFFFF;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 700px) {
	.wpcf7 {
		max-width: 100%;
	}

	.wpcf7 input[type="text"],
	.wpcf7 input[type="email"],
	.wpcf7 input[type="tel"] {
		min-height: 50px;
	}

	.wpcf7 textarea {
		min-height: 160px;
	}
}


/* Kontaktformular kompakter */
.wpcf7 .cf-turnstile,
.wpcf7 [class*="turnstile"] {
	margin-bottom: 14px;
}


/* ---------------------------------------------------------
   Kontaktkarten - gleiche Hoehe
   --------------------------------------------------------- */

.gb-contact-cards {
	align-items: stretch;
}

.gb-contact-cards > .wp-block-column {
	display: flex;
}

.gb-contact-cards .gb-contact-card {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	margin: 0;
}

@media (max-width: 781px) {
	.gb-contact-cards > .wp-block-column {
		display: block;
	}

	.gb-contact-cards .gb-contact-card {
		height: auto;
	}
}


/* ---------------------------------------------------------
   Globaler Direktkontakt / Messenger
   --------------------------------------------------------- */

.gb-direct-contact {
	position: fixed;
	right: 22px;
	top: 50%;
	z-index: 9999;
	transform: translateY(-50%);
	font-family: inherit;
}

.gb-direct-contact > summary {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 13px 16px;
	border: 0;
	border-radius: 999px;
	background: #F3930D;
	color: #302B27;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 22px rgba(48, 43, 39, 0.18);
	list-style: none;
}

.gb-direct-contact > summary::-webkit-details-marker {
	display: none;
}

.gb-direct-contact > summary:hover {
	filter: brightness(0.97);
}

.gb-direct-contact > summary:focus-visible {
	outline: 3px solid #302B27;
	outline-offset: 3px;
}

.gb-direct-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #302B27;
	color: #FFFFFF;
	font-size: 14px;
}

.gb-direct-contact-panel {
	position: absolute;
	right: 0;
	top: 50%;
	width: min(320px, calc(100vw - 40px));
	padding: 22px;
	border: 1px solid #E7E1DA;
	border-radius: 18px;
	background: #FFFDFB;
	color: #302B27;
	box-shadow: 0 12px 35px rgba(48, 43, 39, 0.20);
	transform: translateY(-50%);
	margin-right: 0;
}

.gb-direct-contact[open] > summary {
	visibility: hidden;
}

.gb-direct-contact-head {
	display: grid;
	gap: 4px;
	padding-bottom: 14px;
	border-bottom: 1px solid #E7E1DA;
}

.gb-direct-contact-head strong {
	font-size: 20px;
}

.gb-direct-contact-head span {
	font-size: 14px;
	color: #6E6863;
}

.gb-direct-person {
	margin-top: 17px;
}

.gb-direct-person > strong {
	display: block;
	margin-bottom: 9px;
}

.gb-direct-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gb-direct-links a {
	display: inline-block;
	padding: 8px 11px;
	border-radius: 999px;
	background: #F3930D;
	color: #302B27 !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.gb-direct-links a:hover {
	text-decoration: underline;
}

.gb-direct-links a:focus-visible {
	outline: 3px solid #302B27;
	outline-offset: 2px;
}

.gb-direct-contact-note {
	margin: 18px 0 0;
	padding-top: 14px;
	border-top: 1px solid #E7E1DA;
	font-size: 12px;
	line-height: 1.45;
	color: #6E6863;
}


/* Smartphone / Tablet */
@media (max-width: 781px) {

	.gb-direct-contact {
		top: auto;
		right: 16px;
		bottom: 18px;
		transform: none;
	}

	.gb-direct-contact-label {
		display: none;
	}

	.gb-direct-contact > summary {
		padding: 10px;
	}

	.gb-direct-contact-icon {
		width: 34px;
		height: 34px;
	}

	.gb-direct-contact-panel {
		position: absolute;
		right: 0;
		top: auto;
		bottom: 0;
		transform: none;
		width: min(310px, calc(100vw - 32px));
	}

	.gb-direct-contact[open] > summary {
		display: none;
	}
}


/* ---------------------------------------------------------
   Direktkontakt - Schliessen
   --------------------------------------------------------- */

.gb-direct-contact-panel {
	position: absolute;
}

.gb-direct-contact-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6E6863;
	font: inherit;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
}

.gb-direct-contact-close:hover {
	background: #F4F1EC;
	color: #302B27;
}

.gb-direct-contact-close:focus-visible {
	outline: 3px solid #F3930D;
	outline-offset: 2px;
}

.gb-direct-contact-head {
	padding-right: 38px;
}


/* Direktkontakt - weitere Kontaktmoeglichkeiten */
.gb-direct-other {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #E7E1DA;
}

.gb-direct-other > strong {
	display: block;
	margin-bottom: 9px;
}


/* ---------------------------------------------------------
   Globaler Telefonkontakt
   --------------------------------------------------------- */

.gb-direct-phone {
	position: fixed;
	right: 22px;
	top: calc(50% + 62px);
	z-index: 9999;
	font-family: inherit;
}

.gb-direct-phone > summary {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 13px 16px;
	border: 0;
	border-radius: 999px;
	background: #302B27;
	color: #FFFFFF;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 6px 22px rgba(48, 43, 39, 0.18);
	list-style: none;
}

.gb-direct-phone > summary::-webkit-details-marker {
	display: none;
}

.gb-direct-phone > summary:hover {
	filter: brightness(1.08);
}

.gb-direct-phone > summary:focus-visible {
	outline: 3px solid #F3930D;
	outline-offset: 3px;
}

.gb-direct-phone-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #F3930D;
	color: #302B27;
	font-size: 15px;
}

.gb-direct-phone-panel {
	position: absolute;
	right: 0;
	top: 50%;
	width: min(290px, calc(100vw - 40px));
	padding: 22px;
	border: 1px solid #E7E1DA;
	border-radius: 18px;
	background: #FFFDFB;
	color: #302B27;
	box-shadow: 0 12px 35px rgba(48, 43, 39, 0.20);
	transform: translateY(-50%);
}

.gb-direct-phone[open] > summary {
	visibility: hidden;
}

.gb-direct-phone-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6E6863;
	font: inherit;
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
}

.gb-direct-phone-close:hover {
	background: #F4F1EC;
	color: #302B27;
}

.gb-direct-phone-close:focus-visible {
	outline: 3px solid #F3930D;
	outline-offset: 2px;
}

.gb-direct-phone-head {
	display: grid;
	gap: 4px;
	padding-right: 38px;
	padding-bottom: 14px;
	border-bottom: 1px solid #E7E1DA;
}

.gb-direct-phone-head strong {
	font-size: 20px;
}

.gb-direct-phone-head span {
	font-size: 14px;
	color: #6E6863;
}

.gb-direct-phone-person {
	display: grid;
	gap: 6px;
	margin-top: 17px;
}

.gb-direct-phone-person a {
	display: inline-block;
	width: fit-content;
	padding: 9px 12px;
	border-radius: 999px;
	background: #F3930D;
	color: #302B27 !important;
	font-weight: 700;
	text-decoration: none;
}

.gb-direct-phone-person a:hover {
	text-decoration: underline;
}

.gb-direct-phone-person a:focus-visible {
	outline: 3px solid #302B27;
	outline-offset: 2px;
}


/* Smartphone / Tablet */
@media (max-width: 781px) {

	.gb-direct-phone {
		top: auto;
		right: 16px;
		bottom: 80px;
	}

	.gb-direct-phone-label {
		display: none;
	}

	.gb-direct-phone > summary {
		padding: 10px;
	}

	.gb-direct-phone-icon {
		width: 34px;
		height: 34px;
	}

	.gb-direct-phone-panel {
		position: absolute;
		right: 0;
		top: auto;
		bottom: 0;
		transform: none;
		width: min(290px, calc(100vw - 32px));
	}

	.gb-direct-phone[open] > summary {
		display: none;
	}
}


/* ---------------------------------------------------------
   Globale Kontaktbuttons - kompakte einheitliche Darstellung
   --------------------------------------------------------- */

.gb-direct-contact > summary,
.gb-direct-phone > summary {
	box-sizing: border-box;
	width: 142px;
	min-height: 52px;
	padding: 9px 12px;
}

.gb-direct-contact-label {
	max-width: 76px;
	line-height: 1.05;
	white-space: normal;
	text-align: left;
}

.gb-direct-phone-label {
	line-height: 1.05;
}

/* Mobil weiterhin nur die runden Symbole */
@media (max-width: 781px) {

	.gb-direct-contact > summary,
	.gb-direct-phone > summary {
		width: auto;
		min-height: auto;
	}

}


/* ---------------------------------------------------------
   Globale Kontaktwidgets - immer nur eines offen
   --------------------------------------------------------- */

.gb-widget-hidden {
	display: none !important;
}

/* ---------------------------------------------------------
   Startseite – Smartphone-Optimierung
   Stand 2026-09-09

   Gilt bewusst nur bis 600 px.
   Desktop und Tablet bleiben unverändert.
   --------------------------------------------------------- */

@media (max-width: 600px) {

        /*
         * Startseite: H1 kompakter.
         * Die im Block gesetzte Inline-Groesse wird hier bewusst
         * nur auf Smartphones ueberschrieben.
         */
        .page-id-5 h1.wp-block-heading {
                font-size: clamp(2rem, 9vw, 2.65rem) !important;
                line-height: 1.08 !important;
                overflow-wrap: normal;
                word-break: normal;
                hyphens: auto;
        }

        /*
         * Startseite: sehr grosse vertikale Abstaende reduzieren.
         * Nur direkte Inhaltssektionen der Startseite.
         */
        .page-id-5 .wp-block-post-content > .wp-block-group.alignfull {
                padding-top: 56px !important;
                padding-bottom: 56px !important;
        }

        /*
         * Hero etwas kompakter als die restlichen Abschnitte.
         */
        .page-id-5 .wp-block-post-content > .wp-block-group.alignfull:first-child {
                padding-top: 44px !important;
                padding-bottom: 52px !important;
        }

        /*
         * Buttons der Startseite auf kleinen Displays etwas kompakter.
         */
        .page-id-5 .wp-block-button__link {
                padding: 0.85rem 1.4rem;
                font-size: 1rem;
        }

        /*
         * Globale Kontaktbuttons mobil nebeneinander statt
         * uebereinander. Dadurch verdecken sie deutlich weniger Inhalt.
         */
        .gb-direct-contact {
                right: 72px;
                bottom: 16px;
        }

        .gb-direct-phone {
                right: 16px;
                bottom: 16px;
        }

        /*
         * Ausgeklappte Panels bleiben innerhalb des Displays.
         */
        .gb-direct-contact-panel,
        .gb-direct-phone-panel {
                width: min(290px, calc(100vw - 32px));
        }
}

/* ---------------------------------------------------------
   Globaler Direktkontakt – Smartphone Panel
   Stand 2026-09-09

   Messenger-Dialog wird am Viewport statt am runden Button
   ausgerichtet. Telefonwidget bleibt unveraendert.
   --------------------------------------------------------- */

@media (max-width: 600px) {

        .gb-direct-contact-panel {
                position: fixed !important;
                left: 16px !important;
                right: 16px !important;
                top: auto !important;
                bottom: 78px !important;

                width: auto !important;
                max-width: none !important;
                max-height: calc(100dvh - 110px);

                box-sizing: border-box;
                overflow-y: auto;
                overflow-x: hidden;

                transform: none !important;
        }

        /*
         * Messenger-Schaltflaechen duerfen bei sehr schmalen
         * Displays sauber umbrechen.
         */
        .gb-direct-contact-panel a {
                max-width: 100%;
                box-sizing: border-box;
        }
}


/* ---------------------------------------------------------
   Hauptnavigation - aktuelle Seite
   --------------------------------------------------------- */

.wp-block-navigation-item__content[aria-current="page"] {
        color: #8A4A00;
        font-weight: 700;
        text-decoration-line: underline;
        text-decoration-color: #F3930D;
        text-decoration-thickness: 3px;
        text-underline-offset: 7px;
}

.wp-block-navigation-item__content:focus-visible {
        outline: 3px solid #F3930D;
        outline-offset: 4px;
        border-radius: 3px;
}


/* ---------------------------------------------------------
   Navigation / Kontaktwidgets - Reflow und starker Zoom
   Stand 2026-09-11

   Die WordPress-Overlay-Navigation wird bewusst bereits bei
   1000 px verwendet. Dadurch bleibt der Header auch bei
   vergroesserter Darstellung und mittleren Viewports nutzbar.
   --------------------------------------------------------- */

@media (max-width: 1000px) {

        /*
         * Desktop-Navigationsinhalt ausblenden.
         * Das WordPress-Overlay bleibt technisch unveraendert.
         */
        .wp-block-navigation__responsive-container:not(.is-menu-open) {
                display: none !important;
        }

        /*
         * Vorhandenen WordPress-Menue-Button anzeigen.
         */
        .wp-block-navigation__responsive-container-open {
                display: flex !important;
                align-items: center;
                justify-content: center;
                min-width: 44px;
                min-height: 44px;
        }

        /*
         * Geoeffnetes Overlay normal anzeigen.
         */
        .wp-block-navigation__responsive-container.is-menu-open {
                display: flex !important;
        }

        /*
         * Schliessen-Schaltflaeche mit ausreichend grosser
         * Bedienflaeche.
         */
        .wp-block-navigation__responsive-container-close {
                min-width: 44px;
                min-height: 44px;
        }

        /*
         * Die globalen Kontaktwidgets werden bereits in diesem
         * Bereich kompakt und nach unten verschoben.
         */
        .gb-direct-contact,
        .gb-direct-phone {
                top: auto;
                transform: none;
        }

        .gb-direct-contact {
                right: 76px;
                bottom: 18px;
        }

        .gb-direct-phone {
                right: 18px;
                bottom: 18px;
        }

        .gb-direct-contact-label,
        .gb-direct-phone-label {
                display: none;
        }

        .gb-direct-contact > summary,
        .gb-direct-phone > summary {
                box-sizing: border-box;
                width: auto;
                min-width: 52px;
                min-height: 52px;
                padding: 9px;
        }

        .gb-direct-contact-icon,
        .gb-direct-phone-icon {
                width: 34px;
                height: 34px;
        }
}


/*
 * Bei geoeffnetem WordPress-Menue muss der Navigationsinhalt
 * voll sichtbar bleiben.
 */
@media (max-width: 1000px) {

        .wp-block-navigation__responsive-container.is-menu-open
        .wp-block-navigation__responsive-container-content {
                display: flex;
        }

        .wp-block-navigation__responsive-container.is-menu-open
        .wp-block-navigation__container {
                display: flex;
        }
}

/* GB HERO TYPOGRAFIE
 * Einheitlicher Hero-Standard fuer Startseite,
 * Bioresonanz und Darmgesundheit.
 */
.gb-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.4rem) !important;
    line-height: 1.08 !important;
}

.gb-hero-lead {
    font-size: 20px !important;
    line-height: 1.65 !important;
}

/* GB HERO RASTER V1
 * Gemeinsamer Hero-Standard fuer
 * Start, Bioresonanz, Darmgesundheit und Ueber uns.
 */

.gb-standard-hero {
    padding-top: 56px !important;
    padding-right: 24px !important;
    padding-bottom: 56px !important;
    padding-left: 24px !important;
}

.gb-standard-hero .gb-standard-hero-columns {
    column-gap: 48px !important;
    row-gap: 36px !important;
    align-items: center !important;
}

.gb-standard-hero .gb-standard-hero-columns > .wp-block-column {
    flex-basis: calc(50% - 24px) !important;
}

.gb-standard-hero .gb-standard-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 781px) {
    .gb-standard-hero {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .gb-standard-hero .gb-standard-hero-columns {
        row-gap: 32px !important;
    }

    .gb-standard-hero .gb-standard-hero-columns > .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* GB STICKY HEADER V1
 * Hauptnavigation bleibt beim Scrollen sichtbar.
 */
.gb-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--wp--preset--color--gb-cream, #FFF8EF);
}

/*
 * Dezenter Schatten erst sinnvoll, wenn Inhalte unter dem
 * fixierten Header vorbeiscrollen.
 */
.gb-site-header {
    box-shadow: 0 1px 0 rgba(48, 43, 39, 0.08);
}

/*
 * WordPress Mobile-Navigation soll weiterhin oberhalb
 * aller Seiteninhalte liegen.
 */
.gb-site-header .wp-block-navigation__responsive-container.is-menu-open {
    z-index: 1001;
}

/* GB STICKY HEADER V2
 * Sticky muss auf dem aeusseren WordPress-Header-Template liegen.
 */

header.wp-block-template-part {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}

/* Innerer Header selbst muss nicht sticky sein. */
.gb-site-header {
    position: relative !important;
    top: auto !important;
}

/* Mobiles Overlay weiterhin ueber allem. */
header.wp-block-template-part
.wp-block-navigation__responsive-container.is-menu-open {
    z-index: 1001 !important;
}

/* GB WISSEN BLOG ACTIVE NAV V1
 * Die WordPress-Beitragsseite bekommt im Navigation-Block
 * kein aria-current="page". Deshalb explizite Markierung
 * ueber die Blog-Body-Klasse.
 */
body.blog
.wp-block-navigation-item__content[href="/wissen-blog/"] {
    color: #302B27;
    font-weight: 700;
    text-decoration-line: underline;
    text-decoration-color: #F3930D;
    text-decoration-thickness: 3px;
    text-underline-offset: 7px;
}

/* Accessibility: Bewegungen bei entsprechender Systemeinstellung reduzieren. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* GB POST 159 IMAGE LAYOUT V1
 * Herbstliches Ofengemuese
 * Nur Beitrag 159
 */
body.postid-159 figure.wp-block-image {
    width: 100%;
    max-width: 680px;
    margin: 1.75rem auto;
    text-align: center;
}

body.postid-159 figure.wp-block-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    margin: 0 auto;
}

@media (max-width: 767px) {
    body.postid-159 figure.wp-block-image {
        max-width: 100%;
        margin: 1.25rem auto;
    }
}

/* GB ERFAHRUNGSBERICHTE SEITE 39 H1 V1
 *
 * Nur die grosse Hero-Ueberschrift der Seite
 * /erfahrungsberichte/ (WordPress-ID 39).
 *
 * Kleinere Schrift, da die Textspalte nur 42 Prozent
 * der Hero-Breite einnimmt.
 *
 * Keine Trennung innerhalb des Wortes.
 */
body.page-id-39 h1.gb-hero-title {
    font-size: clamp(1.75rem, 2.9vw, 2.9rem) !important;
    line-height: 1.15 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
}

