/* Rhoentravel - Kopfbereich (Topheader, Hauptkopf, Suchleiste, Zurueck-Knopf).
   Seit 07.10.2026 EINE Datei statt sechs Stellen. Zusammengefuehrt aus:
   Header v2, Header-Feinschliff, Header-Redesign (Airbnb), Zurueck-Knopf,
   Variante A und Topheader - in genau dieser Reihenfolge, damit sich die
   Wirkung nicht aendert. Entfallen sind nur Regeln fuer Elemente, die es
   nicht mehr gibt ("Werde Anbieter", "Merken"-Beschriftung, Unterstrich-
   Platzhalter, Einblenden des Menues).
   Der Kopf wird vom Server fertig ausgegeben (header.php) - kein
   nachtraegliches Einsetzen per Skript mehr. */

/* ===== Teil 1: Header v2 (Menue neben dem Logo, Knoepfe) ===== */
	@media (min-width: 901px) {
		.rb-header-inner {
			display: flex !important;
			align-items: center !important;
			gap: 28px !important;
		}
		.rb-nav {
			position: static !important;
			left: auto !important;
			top: auto !important;
			transform: none !important;
			display: block !important;
		}
		.rb-nav-menu { justify-content: flex-start !important; }
		.rb-header-actions {
			grid-column: auto !important;
			margin-left: auto !important;
		}
	}

	.rb-header-anbieter,
	.rb-header-newsletter {
		display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
		font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: 999px;
		font-family: var(--rb-font, 'Inter', sans-serif);
	}
	.rb-header-anbieter {
		background: #fff !important; color: #3B6D11 !important; border: 1.5px solid #95C11F !important;
	}
	.rb-header-newsletter {
		background: #95C11F !important; color: #16290a !important; border: none !important;
	}
	@media (max-width: 900px) {
		.rb-header-anbieter, .rb-header-newsletter { display: none !important; }
	}

/* ===== Teil 2: Logo (Feinschliff) ===== */
	.rb-logo {
		display: inline-flex; align-items: center;
		background-image: url("../img/logo-rhoentravel.png");
		background-repeat: no-repeat; background-position: left center; background-size: contain;
		width: 169px; height: 90px;
	}
	.rb-logo-box { display: none; }
	.rb-logo-text {
		position: absolute; width: 1px; height: 1px; overflow: hidden;
		clip: rect(0,0,0,0); white-space: nowrap;
	}
	.rb-header-actions { display: flex !important; }

	@media (max-width: 900px) {
		.rb-logo { width: 108px !important; height: 52px !important; }
	}

/* ===== Teil 3: Header-Redesign (Airbnb-Stil, Suchleiste) ===== */
	.rb-nav-menu { gap: 8px; background: #5F5E5A; border-radius: 14px; padding: 8px 12px; transition: transform 0.2s ease; }
	body.rt-gescrollt .rb-nav-menu { transform: scale(0.86); }
	.rb-nav-menu > li > a {
		display: flex !important; flex-direction: row; align-items: center; gap: 8px;
		font-weight: 600 !important; color: #ffffff !important; font-family: var(--rb-font) !important;
		padding: 10px 20px !important; border-radius: 10px !important;
	}
	.rb-nav-menu > li.current-menu-item > a {
		color: #ffffff !important; background: rgba(255,255,255,0.18) !important; border-radius: 10px !important;
	}
	.rb-nav-menu .sub-menu { z-index: 300; top: calc(100% + 4px) !important; }
	.rb-suche-anzahl { display: none !important; }
	.rb-suche-header { padding: 16px 24px !important; }
	.rb-suche-titel { margin: 0 !important; }
	.rb-nav-menu .sub-menu a {
		font-family: var(--rb-font) !important; font-size: 14px !important; color: var(--rb-ink) !important;
	}
	.rt-nav-icon { display: block; }
	.rb-search-toggle { display: none !important; align-items: center; justify-content: center; }
	.rb-search-panel { display: none !important; }
	.rb-header-actions { gap: 10px; align-items: center; }
	.rb-icon-btn { width: 38px; height: 38px; }

	@media (min-width: 901px) {
		.rb-header-inner { position: relative; }
		.rb-nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 200; }
		.rb-header-actions { grid-column: 3; }
		.rb-header { position: sticky; top: 0; z-index: 500; }
	}

	a.rb-icon-btn[href="/favoriten/"] {
		width: 40px !important; height: 40px !important; padding: 0 !important; border-radius: 12px !important;
		background: #5F5E5A !important; border: none !important; display: inline-flex !important; align-items: center; justify-content: center;
	}
	a.rb-icon-btn[href="/favoriten/"] svg { fill: #95C11F !important; stroke: #95C11F !important; }

	/* Suchleiste Wohin/Was/Suchbegriff: bewusst AUSSERHALB von .rb-header
	   (Geschwister danach) - ein sticky-Element, dessen Hoehe sich beim
	   Scrollen aendert, verrechnet sich sonst (31.07.). Auf der Startseite
	   wird sie per Skript ins Bild verschoben und erst dann eingeblendet;
	   ueberall sonst traegt sie rt-bereit schon vom Server. */
	.rt-searchbar-row { position: relative; margin-top: 10px; z-index: 150; background: #fff; font-family: var(--rb-font); opacity: 0; transition: opacity 0.15s ease; }
	.rt-searchbar-row.rt-bereit { opacity: 1; }
	.rt-searchbar-inner { max-width: var(--rb-container); margin: 0 auto; padding: 0 24px 22px; display: flex; justify-content: center; }
	.rt-searchbar-pill {
		display: flex; align-items: center; background: #fff; border: 1px solid var(--rb-border); border-radius: 999px; padding: 6px;
		flex-wrap: wrap; box-shadow: 0 14px 34px rgba(30,30,28,0.20), 0 2px 8px rgba(30,30,28,0.08);
	}
	.rt-searchbar-seg { padding: 8px 24px; border-right: 1px solid var(--rb-border); position: relative; }
	.rt-searchbar-seg:last-of-type { border-right: none; }
	.rt-searchbar-seg label { display: block; font-size: 14px; font-weight: 700; color: #1E1E1C; font-family: var(--rb-font); }
	.rt-searchbar-seg input {
		border: none !important; outline: none !important; font-size: 14px; background: transparent;
		font-family: var(--rb-font) !important; color: #5F5E5A; width: 160px; padding: 0;
	}

	.rt-dropdown-trigger {
		background: none !important; border: none !important; outline: none !important; padding: 0 !important; margin: 0;
		font-size: 14px; color: #5F5E5A; font-family: var(--rb-font); cursor: pointer; text-align: left; width: 160px;
	}
	.rt-dropdown-trigger:hover, .rt-dropdown-trigger:focus, .rt-dropdown-trigger:active {
		background: none !important; color: #5F5E5A !important; outline: none !important; box-shadow: none !important;
	}
	input.rt-dropdown-trigger { cursor: text; }
	.rt-dropdown-list li { display: list-item; }
	.rt-dropdown-list li.rt-versteckt { display: none; }
	.rt-dropdown-list li.rt-keine-treffer { padding: 8px 12px; font-size: 14px; color: #8a8a86; font-family: var(--rb-font); }
	.rt-dropdown-list {
		list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 4px); left: 24px;
		background: #fff; border-radius: var(--rb-radius); box-shadow: 0 16px 40px rgba(30,30,28,0.18); min-width: 200px;
		opacity: 0; visibility: hidden; transition: 0.15s ease; z-index: 300; max-height: 280px; overflow-y: auto;
	}
	.rt-searchbar-seg.rt-open .rt-dropdown-list { opacity: 1; visibility: visible; }
	.rt-dropdown-list li a {
		display: block; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--rb-ink) !important;
		font-family: var(--rb-font); cursor: pointer;
	}
	.rt-dropdown-list li a:hover { background: var(--rb-surface); }

	.rt-searchbar-submit {
		height: 54px; padding: 0 26px; border-radius: 999px; background: var(--rb-green) !important; border: none; outline: none;
		display: flex; align-items: center; justify-content: center; margin-left: 8px; cursor: pointer; flex-shrink: 0;
		transition: none; box-shadow: none; font-size: 15px; font-weight: 700; color: #16290a; font-family: var(--rb-font);
	}
	.rt-searchbar-submit:hover, .rt-searchbar-submit:focus, .rt-searchbar-submit:active {
		background: var(--rb-green) !important; color: inherit; outline: none; box-shadow: none;
	}
	@media (max-width: 900px) {
		.rt-searchbar-row { display: none; }
		.rb-search-toggle { display: flex !important; }
		.rb-search-panel { display: none; }
		.rb-search-panel.rb-open { display: block !important; }
		.rb-header-actions { justify-content: flex-end !important; gap: 8px !important; }
		.rb-search-toggle.rb-icon-btn {
			width: 40px !important; height: 40px !important; border-radius: 12px !important;
			background: #5F5E5A !important; border: none !important;
		}
		.rb-search-toggle.rb-icon-btn svg { width: 26px !important; height: 26px !important; stroke: #95C11F !important; }
		a.rb-icon-btn[href="/favoriten/"] svg { width: 24px !important; height: 24px !important; }
		.rb-search-panel-inner { padding: 8px 16px !important; gap: 8px !important; }
		.rb-search-panel-inner input { padding: 8px 14px !important; }
		.rb-search-panel-inner .rb-btn { padding: 8px 16px !important; }
		.rb-header-inner { position: relative; }
		.rb-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin-left: 0 !important; }
		.rb-header-actions { grid-column: 3 !important; }
	}
	.rb-header { box-shadow: 0 4px 14px rgba(30,30,28,0.16) !important; }

/* ===== Teil 4: Zurueck-Knopf (nur Handy, nicht auf der Startseite) ===== */
	@media (max-width: 900px) {
		.rt-zurueck-btn {
			position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
			width: auto; height: auto; background: none !important; border: none !important; padding: 0; margin: 0;
			display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
		}
	}
	@media (min-width: 901px) {
		.rt-zurueck-btn { display: none !important; }
	}

/* ===== Teil 5: Variante A (helle Leiste, Symbole, aktive Rubrik) ===== */
    @media (min-width: 901px) {
        /* Logo buendig mit dem Block darunter (08.09.2026). */
        .rb-header-inner {
            max-width: calc(var(--rb-container, 1400px) + 48px) !important;
            margin: 0 auto !important;
            padding-left: 24px !important;
            padding-right: 24px !important;
        }

        /* Hauptmenue mittig zwischen Logo und Aktionen. */
        .rb-nav {
            position: static !important;
            left: auto !important;
            transform: none !important;
            margin: 0 auto !important;
        }
        .rb-header-inner { position: relative !important; }
        .rb-header-actions {
            margin-left: auto !important;
            display: flex !important;
            align-items: center !important;
            gap: 10px !important;
        }
        .rb-header-actions .rb-icon-btn { order: 0; }

        /* Dunkle Menue-Insel aufgeloest. */
        .rb-nav-menu {
            background: transparent !important;
            border-radius: 0 !important;
            padding: 0 !important;
            gap: 22px !important;
        }
        body.rt-gescrollt .rb-nav-menu { transform: none !important; }

        /* Suchlupe am Desktop. */
        .rb-search-toggle { display: flex !important; }
        .rb-search-panel { display: none; }
        .rb-search-panel.rb-open { display: block !important; }

        .rb-search-toggle.rb-icon-btn {
            width: 40px !important; height: 40px !important;
            border-radius: 12px !important;
            background: #5F5E5A !important; border: none !important;
        }
        .rb-search-toggle.rb-icon-btn svg {
            width: 26px !important; height: 26px !important;
            stroke: #95C11F !important;
        }

        /* Menue wie die Schnellwahlkacheln. */
        .rb-nav-menu > li > a {
            color: var(--rb-ink, #1E1E1C) !important;
            font-weight: 700 !important;
            font-size: 18px !important;
            background: transparent !important;
            border-radius: 0 !important;
            padding: 6px 0 !important;
            position: relative !important;
            transition: color .15s ease;
        }
        .rb-nav-menu > li > a:hover {
            color: var(--rb-ink, #1E1E1C) !important;
        }

        /* Aktive Rubrik: gruener Unterstrich (::after, gerade Enden). */
        .rb-nav-menu > li.current-menu-item > a,
        .rb-nav-menu > li.current-menu-ancestor > a,
        .rb-nav-menu > li.rt-aktiv > a {
            color: var(--rb-ink, #1E1E1C) !important;
            font-weight: 600 !important;
        }
        .rb-nav-menu > li.current-menu-item > a::after,
        .rb-nav-menu > li.current-menu-ancestor > a::after,
        .rb-nav-menu > li.rt-aktiv > a::after {
            content: "";
            position: absolute;
            left: 0; right: 0; bottom: 0;
            height: 2px;
            background: #3B6D11;
            border-radius: 0;
        }

        /* Aktionen rechts: Herz, Newsletter (gefuellt), Anbieter (Rand). */
        .rb-header-newsletter {
            background: #95C11F !important;
            color: #16290a !important;
            border: none !important;
            border-radius: 8px !important;
            font-size: 13px !important;
            font-weight: 700 !important;
            padding: 8px 15px !important;
            order: 1;
        }

        .rb-header-anbieter {
            background: transparent !important;
            color: #3B6D11 !important;
            border: 1.5px solid #95C11F !important;
            border-radius: 8px !important;
            font-size: 13px !important;
            font-weight: 600 !important;
            padding: 7px 14px !important;
            order: 2;
        }
        .rb-header-anbieter:hover { background: rgba(149,193,31,.12) !important; }

        /* Leiste schmaler. */
        .rb-header-inner {
            padding-top: 10px !important;
            padding-bottom: 10px !important;
            min-height: 0 !important;
        }
        .rb-header { padding-top: 0 !important; padding-bottom: 0 !important; }
        .rb-logo-box { width: 40px !important; height: 40px !important; }

        /* Menue-Symbole: dieselben wie in den Schnellwahlkacheln, gruen. */
        .rb-header .rb-nav-menu > li > a svg,
        .rb-header .rb-nav-menu > li > a .rt-nav-icon svg {
            color: #3B6D11 !important;
            stroke: #3B6D11 !important;
            width: 25px !important;
            height: 25px !important;
            min-width: 25px !important;
            flex: 0 0 auto !important;
        }

        .rb-nav-menu > li > a:hover svg { stroke: #3B6D11 !important; color: #3B6D11 !important; }

        .rb-header { border-bottom: 1px solid var(--rb-border, #E4E1D8); }
    }

    /* Merklisten-Zaehler am Herz (Zahl setzt suche/rhoentravel-suche-filter-aus-und-favzaehler.php). */
    .rb-header-actions a.rt-hat-zaehler { position: relative; overflow: visible; }

    .rt-fav-zaehler {
        position: absolute; top: -6px; right: -6px;
        min-width: 21px; height: 21px; padding: 0 5px;
        border-radius: 999px; border: 2px solid #fff;
        background: #1E1E1C; color: #fff;
        font-size: 11px; font-weight: 700; line-height: 1;
        display: none; align-items: center; justify-content: center;
        pointer-events: none;
    }
    .rt-fav-zaehler.rt-sichtbar { display: flex; }

/* ===== Teil 6: Topheader (Servicezeile, nur Desktop) ===== */
	.rt-topheader { background: var(--rb-surface, #F6F5F1); border-bottom: 1px solid var(--rb-border, #E4E1D8); }
	.rt-topheader-inner {
		max-width: var(--rb-container, 1400px); margin: 0 auto; padding: 7px 24px;
		display: flex; align-items: center; justify-content: space-between; gap: 20px;
	}
	.rt-topheader-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
	.rt-topheader-link {
		display: inline-flex; align-items: center; gap: 5px;
		font-size: 14px; font-weight: 600; color: var(--rb-text-secondary, #5F5E5A) !important;
	}
	.rt-topheader-link svg { flex-shrink: 0; }
	.rt-topheader-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
	.rt-topheader-newsletter { font-size: 14px; font-weight: 700; color: var(--rb-green-dark, #3B6D11) !important; white-space: nowrap; }
	.rt-topheader-social { display: flex; align-items: center; gap: 10px; }
	.rt-topheader-social a { color: var(--rb-text-secondary, #5F5E5A) !important; display: flex; }
	@media (max-width: 900px) {
		.rt-topheader { display: none; }
	}

/* Gewaehlte Rubrik in der Suchleiste wie der gemerkte Ort (12.10.2026) */
#rt-sb-was-wrapper.rt-gewaehlt { position: relative; background: #F4FAEB; border-radius: 999px; box-shadow: inset 0 0 0 1px #95C11F; }
#rt-sb-was-wrapper.rt-gewaehlt:hover, #rt-sb-was-wrapper.rt-gewaehlt.rt-open { background: #F4FAEB !important; }
#rt-sb-was-wrapper.rt-gewaehlt #rt-sb-was-trigger { font-weight: 700; color: #3B6D11; padding-right: 34px; background: transparent; }
#rt-sb-was-list a.rt-an, #rt-sb-wohin-list a.rt-an { font-weight: 700; color: #3B6D11; background: #F4FAEB; }

/* Symbole im Dropdown des Hauptmenues (28.11.2026), gruen wie die Hauptpunkte */
.rb-nav-menu .sub-menu a { display: flex !important; align-items: center; gap: 10px; }
.rt-nav-sub-icon { display: inline-flex; flex: 0 0 20px; width: 20px; height: 20px; color: #3B6D11; }
.rt-nav-sub-icon svg, .rt-nav-sub-icon img { width: 20px !important; height: 20px !important; }
.rt-nav-sub-icon svg { stroke: #3B6D11; }

/* Topleiste: aktive Seite markiert (28.11.2026). !important nur, weil die Grundfarbe oben so gesetzt ist. */
.rt-topheader-link.rt-topheader-aktiv { color: #3B6D11 !important; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
