/*
Theme Name:        Exclusive Travel & Bus
Theme URI:         https://www.exclusive.co.at/
Author:            Pavlovic Reisebüro & Busunternehmen KG
Description:       Block-Theme (Full Site Editing) für Exclusive Travel & Bus Vienna – übernimmt Farben, Layout und Funktionen der bisherigen statischen Website (Fahrzeug-Slideshows, Styling für Fluent Forms, Sprachumschalter für Polylang).
Requires at least: 6.6
Tested up to:      7.1
Requires PHP:      8.0
Version:           2.0.0
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       gp-reisen
Tags:              full-site-editing, block-patterns, custom-colors, custom-logo, editor-style, translation-ready, wide-blocks
*/

/* ------------------------------------------------------------------
   Kopfzeile (Navigation) – entspricht #header der alten Seite
------------------------------------------------------------------ */
.gp-topbar {
	position: relative;
	z-index: 20;
	min-height: 4em;
}

.gp-topbar .wp-block-navigation {
	letter-spacing: 2px;
	font-weight: 400;
}

.gp-topbar .wp-block-navigation a {
	text-decoration: none;
}

.gp-topbar .wp-block-navigation .wp-block-navigation-item__content:hover,
.gp-topbar .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.gp-topbar .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent);
}

/* Dropdown wie "dropotron": halbtransparent dunkel, abgerundet */
.gp-topbar .wp-block-navigation .wp-block-navigation__submenu-container {
	background: rgba(32, 32, 32, 0.85) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0 0 4px 4px;
	padding: 0.75em 0;
	min-width: 13em;
}

.gp-topbar .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.35em 1.2em;
}

/* ------------------------------------------------------------------
   Banner mit Logo – entspricht #banner
------------------------------------------------------------------ */
.gp-banner {
	position: relative;
	box-shadow: inset 0 12px 12px -12px rgba(0, 0, 0, 0.5);
}

.gp-banner .wp-block-site-logo img {
	margin-inline: auto;
	height: auto;
}

/* Sprachumschalter (Flaggen) rechts unter dem Banner */
.gp-lang-switch {
	display: flex;
	justify-content: flex-end;
	gap: 0.4em;
	margin: 0;
	padding: 0.5em 1em 0;
	list-style: none;
}

.gp-lang-switch li {
	margin: 0;
}

.gp-lang-switch a {
	display: inline-flex;
	opacity: 0.65;
	transition: opacity 0.2s;
}

.gp-lang-switch a:hover,
.gp-lang-switch .is-current a {
	opacity: 1;
}

.gp-lang-switch img {
	width: 24px;
	height: auto;
}

/* ------------------------------------------------------------------
   Inhaltsbereich – entspricht .wrapper.style2
------------------------------------------------------------------ */
.gp-main {
	box-shadow: inset 0 12px 12px -12px rgba(0, 0, 0, 0.5);
}

.gp-section + .gp-section {
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Liste mit » als Aufzählungszeichen (Fahrzeugausstattung) */
ul.is-style-arrow {
	list-style: none;
	padding-left: 1.4em;
}

ul.is-style-arrow > li {
	position: relative;
	margin-bottom: 0.15em;
}

ul.is-style-arrow > li::before {
	content: "»";
	position: absolute;
	left: -1.2em;
	color: var(--wp--preset--color--primary);
	font-weight: 700;
}

/* Kontaktbox auf der Startseite */
.gp-contact-box {
	text-align: center;
	font-size: 0.9em;
	overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------
   Galerie-Stil "Slideshow" (Überblendung wie auf der alten Seite)
   Greift erst, wenn das Script geladen ist – im Editor bleibt die
   Galerie normal sichtbar und bearbeitbar.
------------------------------------------------------------------ */
.wp-block-gallery.is-style-slideshow.gp-slideshow--ready {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 0 !important;
	overflow: hidden;
	border-radius: 4px;
}

.wp-block-gallery.is-style-slideshow.gp-slideshow--ready > figure.wp-block-image {
	grid-area: 1 / 1;
	width: 100% !important;
	margin: 0 !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity 2s ease, visibility 0s linear 2s;
}

.wp-block-gallery.is-style-slideshow.gp-slideshow--ready > figure.wp-block-image.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 2s ease, visibility 0s;
	z-index: 1;
}

.wp-block-gallery.is-style-slideshow.gp-slideshow--ready > figure.wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.wp-block-gallery.is-style-slideshow.is-style-slideshow--wide.gp-slideshow--ready > figure.wp-block-image img,
.wp-block-gallery.is-style-slideshow.alignwide.gp-slideshow--ready > figure.wp-block-image img,
.wp-block-gallery.is-style-slideshow.alignfull.gp-slideshow--ready > figure.wp-block-image img {
	aspect-ratio: 16 / 7;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-gallery.is-style-slideshow.gp-slideshow--ready > figure.wp-block-image {
		transition: none;
	}
}

/* ------------------------------------------------------------------
   Formulare: Plugin "Fluent Forms" im Stil der alten Website
------------------------------------------------------------------ */
.fluentform {
	--gp-ff-border: #c5ccd6;
}

.fluentform .ff-el-group {
	margin-bottom: 1.1rem;
}

.fluentform .ff-el-input--label label {
	font-weight: 400;
	color: var(--wp--preset--color--text);
}

.fluentform .ff-el-is-required.asterisk-right label::after {
	color: inherit;
}

.fluentform .ff-el-form-control {
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid var(--gp-ff-border);
	border-radius: 4px;
	padding: 0.55em 0.7em;
	box-shadow: none;
}

.fluentform .ff-el-form-control:focus {
	border-color: var(--wp--preset--color--header);
	outline: 2px solid var(--wp--preset--color--header);
	outline-offset: 1px;
	background: #f5f9ff;
}

/* Abschnittsüberschriften ("Persönliche Informationen" …) */
.fluentform .ff-el-section-break {
	margin-top: 1.5rem;
}

.fluentform .ff-el-section-break .ff-el-section-title {
	font-size: 1.15em;
	font-weight: 600;
	letter-spacing: 1px;
	color: var(--wp--preset--color--text);
	margin-bottom: 0.2em;
}

.fluentform .ff-el-section-break hr {
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.15);
	margin: 0.4em 0 1em;
}

/* Checkboxen / Datenschutz */
.fluentform .ff-el-form-check-label {
	font-weight: 300;
}

.fluentform .ff-el-tc,
.fluentform .ff_t_c {
	font-size: 0.95em;
}

/* Senden-Button wie die Buttons der alten Seite */
.fluentform .ff-btn-submit,
.fluentform .ff-btn-submit:not(.ff_btn_no_style) {
	font: inherit;
	letter-spacing: 1px;
	padding: 0.7em 2em;
	border-radius: 4px;
	border: 2px solid var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
	color: #fff;
	transition: background 0.2s, border-color 0.2s;
}

.fluentform .ff-btn-submit:hover,
.fluentform .ff-btn-submit:focus-visible {
	background: var(--wp--preset--color--header);
	border-color: var(--wp--preset--color--header);
	color: #fff;
	opacity: 1;
}

.fluentform .ff_submit_btn_wrapper {
	text-align: center;
	border-top: 1px solid rgba(0, 0, 0, 0.15);
	padding-top: 1.2rem;
	margin-top: 1rem;
}

/* Meldungen */
.ff-message-success {
	background: #e7f6ec;
	color: #13612e;
	border: 1px solid #9fd8b3;
	border-radius: 4px;
	box-shadow: none;
	padding: 1em 1.2em;
	font-size: 1.15em;
}

.fluentform .ff-el-is-error .ff-el-form-control {
	border-color: #b42318;
}

.fluentform .text-danger,
.fluentform .error {
	color: #b42318;
	font-size: 0.85em;
}

/* ------------------------------------------------------------------
   Fußzeile – entspricht #footer
------------------------------------------------------------------ */
.gp-footer {
	font-size: 0.85em;
	text-align: center;
}

.gp-footer a,
.gp-footer a:visited {
	color: inherit;
}

.gp-footer__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.2em 1.5em;
	margin: 0 0 0.6em;
	padding: 0;
	list-style: none;
}

.gp-footer__row li {
	margin: 0;
}

.gp-footer__legal {
	opacity: 0.55;
	margin-top: 1.5em;
}

/* Abstände der Hauptbereiche */
.gp-topbar { padding-top: 0.6em; padding-bottom: 0.6em; }
.gp-banner { padding-top: 4em; padding-bottom: 3em; }
.gp-main { padding-top: 2.5em; padding-bottom: 4em; }
.gp-main--front { padding-top: 0; }
.gp-main .wp-block-post-title { text-align: center; margin-bottom: 1.5em; }
.gp-footer { padding-top: 3em; padding-bottom: 2em; }

/* ==================================================================
   Feinabgleich mit der alten Website (v1.1)
================================================================== */

strong, b { font-weight: 700; }

/* Navigationsleiste: weiße Schrift, eine Zeile, 64px hoch */
.gp-topbar {
	min-height: 64px;
	padding-top: 0;
	padding-bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gp-topbar,
.gp-topbar .wp-block-navigation,
.gp-topbar .wp-block-navigation .wp-block-navigation-item__content,
.gp-topbar .wp-block-navigation .wp-block-navigation-item__content:visited {
	color: #fff;
}

.gp-topbar .wp-block-navigation {
	font-size: 1.05rem;
	letter-spacing: 2px;
	--wp--style--block-gap: 1.8em;
	gap: 1.8em;
}

.gp-topbar .wp-block-navigation .wp-block-navigation-item__content:hover,
.gp-topbar .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent);
}

/* Pfeil beim Untermenü wie im Original ausblenden */
.gp-topbar .wp-block-navigation .wp-block-navigation__submenu-icon {
	display: none;
}

/* Flaggen rechts in der Leiste, untereinander */
.gp-topbar .gp-lang-switch {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	flex-direction: column;
	gap: 4px;
	padding: 0;
	margin: 0 !important;
}

.gp-topbar .gp-lang-switch a { opacity: 1; }
.gp-topbar .gp-lang-switch img { width: 20px; display: block; }

@media (max-width: 600px) {
	.gp-topbar .gp-lang-switch { flex-direction: row; right: auto; left: 12px; }
}

/* Banner: kompakt wie im Original */
.gp-banner {
	padding-top: 1.4rem;
	padding-bottom: 1.4rem;
}

/* Startseite: Slideshow 1500px breit, flach (5:1), mit Schatten, direkt unter dem Banner */
.gp-main--front > .wp-block-post-content > .wp-block-gallery.is-style-slideshow:first-child {
	max-width: 1500px !important;
	margin-top: 0 !important;
	margin-bottom: 2.2rem;
	border-radius: 0;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}

.gp-main--front > .wp-block-post-content > .wp-block-gallery.is-style-slideshow.gp-slideshow--ready:first-child > figure.wp-block-image img {
	aspect-ratio: 5 / 1;
	object-position: center 75%;
}

/* Startseite: Inhalt schmal (ca. 800px) wie das Original */
.gp-main--front .wp-block-columns.alignwide {
	max-width: 820px !important;
	gap: 5rem;
}

/* Kontaktbox mit weißem Rahmen und Schatten */
.gp-contact-box {
	background: #f2f2f2;
	border: 5px solid #fff;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
	padding: 0.4em 1em 0.8em;
	font-size: 1em;
	overflow-wrap: normal;
}

.gp-contact-box h3 {
	margin-top: 0.2em;
	margin-bottom: 0.4em;
	font-size: 1.4em;
}

.gp-contact-box p {
	line-height: 1.8;
}

/* Fußzeile: weiße Schrift */
.gp-footer,
.gp-footer a,
.gp-footer a:visited {
	color: #fff !important;
}

.gp-footer { font-size: 0.8rem; }

/* ==================================================================
   v1.2: Menü einzeilig, Flottenbilder klein mit Rahmen, Listen dezent
================================================================== */

.gp-topbar > .wp-block-navigation {
	max-width: none !important;
	width: auto;
	margin-inline: auto !important;
	flex-wrap: nowrap;
}

.gp-topbar .wp-block-navigation .wp-block-navigation-item__content {
	white-space: nowrap;
}

/* Flotte: Bilder ca. 300 px breit, weißer Rahmen + Schatten wie im Original */
.gp-vehicle .wp-block-gallery.is-style-slideshow {
	max-width: 310px;
	margin-inline: auto !important;
	margin-bottom: 1.5rem;
}

.gp-vehicle .wp-block-gallery.is-style-slideshow.gp-slideshow--ready {
	border: 5px solid #fff;
	border-radius: 2px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
}

.gp-vehicle .wp-block-gallery.is-style-slideshow.gp-slideshow--ready > figure.wp-block-image img {
	aspect-ratio: 3 / 2;
}

/* Ausstattungslisten: » unauffällig, kaum Einzug */
ul.is-style-arrow {
	padding-left: 0.9em;
}

ul.is-style-arrow > li {
	margin-bottom: 0;
}

ul.is-style-arrow > li::before {
	left: -0.9em;
	color: inherit;
	font-weight: 300;
}

/* v1.3: keine Lücke zwischen Kopfbereich, Inhalt und Fußzeile */
.wp-site-blocks > *,
.wp-site-blocks > header > *,
.wp-site-blocks > footer > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}
