/*
Theme Name: RnS Theme
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/


p, li, dt, dd, dl, address, label, small, pre, code, span.tab-excerpt, .menu-smart .block-wrapper-parent p, .menu-smart .block-wrapper-parent li, .menu-smart .block-wrapper-parent dt, .menu-smart .block-wrapper-parent dd, .menu-smart .block-wrapper-parent dl, .menu-smart .block-wrapper-parent address, .menu-smart .block-wrapper-parent label, .menu-smart .block-wrapper-parent small, .menu-smart .block-wrapper-parent pre, .menu-smart .block-wrapper-parent code, .menu-smart .block-wrapper-parent span.tab-excerpt {
	line-height: 1.3;
}

.text-lead, .text-lead:not(ul):not(ol) > * {
	line-height: 1.2;
}

@media (max-width: 959px) {
	.text-lead, .text-lead > *, .nav-tabs .tab-excerpt.text-lead {
	font-size: 18px;
	}
}

.silbentrennung {
	hyphens: auto;
}

.margin-top-8 { margin-top: 8px !important; }

.logo-container { position: relative; }

/* Logo liegt über dem Text */
.logo-container #main-logo {
  position: relative;
  z-index: 2;
}


.logo-container::after {
  content: "Alpine Guiding · Expeditionen · Apartments";  /* Schischule vorerst raus (18.11.2026) */
  white-space: pre;
  position: absolute;
  bottom: 0px;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 60px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  padding-top: 26px;
  /* Einblenden: wartet, bis Uncode den Header fertig vergrößert hat (0.3s), dann weich herein */
  transition:
	opacity 0.4s ease-out 0.35s,
	transform 0.4s ease-out 0.35s,
	color 0.3s;
}
html[lang^="en"] .logo-container::after {
  content: "Alpine Guiding · Expeditions · Apartments";   /* Englisch (WPML) – 19.11.2026 */
}
@media (max-width: 959px) {
  html[lang^="en"] .logo-container::after {
	font-size: clamp(11px, calc((100vw - 72px) / 20.75), 22px);   /* EN-Text etwas kürzer */
  }
}

@media (max-width: 959px) {
	/* Header unten höher, damit der Slogan unter Logo + Guide-Bild Platz hat */
	body.menu-custom-padding .col-lg-0.logo-container {
	  padding-bottom: 60px !important;
	}

	/* Slogan mit Abstand zum unteren Rand; Breite = von Logo links bis Burger rechts
	   (je 36px Seitenabstand, Text ist bei Open Sans 700 ca. 21.4× / EN 20.7× so breit wie die Schriftgröße).
	   Bei anderem Slogan-Text den Teiler neu messen. Ab ca. 540px Breite bleibt es bei 22px – 20.11.2026 */
	.logo-container::after {
	  font-size: clamp(11px, calc((100vw - 72px) / 21.5), 22px);
	  height: auto;
	  padding-top: 0;
	  bottom: 16px;
	  line-height: 1.2;
	}
}



/* Menü offen → Uncode schaltet Header auf dunkel → Text weiß */
#masthead.style-dark-override .logo-container::after {
  color: #fff;
}


/* Desktop: beim Scrollen (Header schrumpft) Text sofort ausblenden und nach oben gleiten */
@media (min-width: 960px) {
  .logo-container.shrinked::after {
	opacity: 0;
	transform: translateY(-12px);
	pointer-events: none;
	transition:
	  opacity 0.15s ease-in,
	  transform 0.15s ease-in,
	  color 0.3s;
  }
}

body.menu-custom-padding .col-lg-0.logo-container, body.menu-custom-padding .col-lg-2.logo-container, body.menu-custom-padding .col-lg-12 .logo-container, body.menu-custom-padding .col-lg-4.logo-container {
	padding-top: 60px;
	padding-bottom: 60px;
}

@media (min-width: 960px) {
	body.vmenu-position-left #masthead .row-offcanvas .row-menu-inner .main-menu-container, 
	body.menu-overlay-left #masthead .row-offcanvas .row-menu-inner .main-menu-container {
		right: 0;
		left: auto;
	}
}

/* ===== Megamenü (Overlay) Desktop: nicht vom Header verdecken ===== */
@media (min-width: 960px) {
  /* Inhalt nur im Bereich unter dem Header zentrieren (Header = 200px) */
  .overlay-menu .vmenu-container > .row > .row-inner > .menu-sidebar {
	padding-top: 220px;
	padding-bottom: 20px;
  }

  /* Header schon geschrumpft (runtergescrollt, Header = 94px) */
  body:has(.logo-container.shrinked) .overlay-menu .vmenu-container > .row > .row-inner > .menu-sidebar {
	padding-top: 114px;
  }

  /* weniger Innenabstand der Megamenü-Row (Uncode: 108px oben/unten) */
  .overlay-menu .megamenu-rns > .row {
	padding-top: 20px !important;
	padding-bottom: 20px !important;
  }
}

.mmb-container::after {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 75px;
  height: 75px;
  margin-left: 0px;
  background: url("/wp-content/uploads/2026/10/guide-ivbv.png") center / contain no-repeat;
}
@media (max-width: 400px) {
	.mmb-container::after {
		display: none;
	}
}

@media (max-width: 959px) {

	/* Badge + Burger auf Logo-Mitte: unten den Zusatzplatz für den Slogan aussparen
	   (Wert = padding-bottom 60px − padding-top 36px) */
	.mmb-container {
		bottom: 24px !important;
		height: auto !important;
	}

	/* Guide-Bild vor dem Burger statt danach */
	.mmb-container::after {
		order: -1;
		margin-left: 0;
		margin-right: 5px;
	}
}


/* BURGER MENÜ ANPASSUNGEN */

.lines-button .lines, .lines-button .lines:before, .lines-button .lines:after, .lines-button .lines > span {
	border-radius: 3px;
	background-clip: padding-box;
	display: inline-block;
	height: 4px;
	width: 35px;
}

.lines-button .lines:before { top: 8px; }
.lines-button .lines:after { top: -8px; }

.lines-button .lines:before, .lines-button .lines:after, .lines-button .lines > span {
	transform-origin: 17px center;
}
.lines-button .lines > span {
	transform: translateY(-50%);
	top: 50%;
	display: none;
}


.headerbutton {
	color: #ffffff !important;
	background-color: var(--rns-blue) !important;
	border-color: var(--rns-blue) !important;
	padding-left: 31px !important;
	padding-right: 31px !important;
	padding-top: 13px !important;
	padding-bottom: 13px !important;
	font-size: 12px !important; 
}

/* Icon rechts neben dem Text */
.headerbutton > span {
	display: inline-flex;
	align-items: center;
}
.headerbutton > span > .menu-icon {
	order: 2;
	margin-right: 0 !important;
	margin-left: 8px;
}

/* Accordion: Linie unter jedem Panel (auch dem letzten) */
.panel-group .panel { 
	border-bottom: 2px dotted #AAA;
	border-bottom-width: 2px !important; 
}

/* ===== Accordion: Icon + Titel nebeneinander, auch zweizeilig ===== */
.uncode-accordion .panel-title > a {
  display: flex;
  align-items: center;
}
.uncode-accordion .panel-title > a > i {
  flex: 0 0 1.3em;
  width: 1.3em;
  text-align: center;
}
.uncode-accordion .panel-title > a > span {
  flex: 1 1 auto;
  min-width: 0;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Desktop: Titel + Icon etwas kleiner, Abstand Icon–Titel 36px,
   Inhalt beginnt unter dem Titel – nur wenn der Titel ein Icon hat */
@media (min-width: 960px) {
  .uncode-accordion .panel-title {
	font-size: 21px !important;          /* Uncode: 24px */
  }
  .uncode-accordion .panel-title > a > i {
	font-size: 28px !important;          /* Uncode: 32.4px */
	flex: 0 0 36px;
	width: 36px;
	margin-right: 36px !important;
  }
  .uncode-accordion .panel:has(.panel-title > a > i) .panel-body {
	padding-left: 72px;                  /* = Icon-Box 36px + Abstand 36px */
  }
}

.uncode-accordion:not(.no-title-margin) .panel.has-padding .panel-collapse:before {
	padding-top: 18px;
}

/* Expeditionen „Reiseverlauf“: Überschrift, Hinweis und Klappelemente auf die Titel der Info-Klappelemente einrücken.
   Klassen im Backend: Icon-Box „rns-einzug-titel“, Textblock + Akkordeon „rns-einzug“.
   Mobil 52px (Icon 26px in 1.3em-Box + 18px), Desktop 72px (Icon-Box 36px + 36px) – wie oben bei den Akkordeons */
.rns-einzug { padding-left: 52px; }
.rns-einzug-titel .icon-box-icon { width: 34px; text-align: center; }
.rns-einzug-titel .icon-box-icon i { font-size: 26px; }
.rns-einzug-titel .icon-box-content { padding-left: 18px !important; }
/* Icon mittig zur Überschrift (Uncode: Icon-Zeilenhöhe 70px, Zellen oben ausgerichtet) */
.rns-einzug-titel .icon-box-icon,
.rns-einzug-titel .icon-box-content { vertical-align: middle; }
.rns-einzug-titel .icon-box-icon i { line-height: 1; }
@media (min-width: 960px) {
  .rns-einzug { padding-left: 72px; }
  .rns-einzug-titel .icon-box-icon { width: 36px; }
  .rns-einzug-titel .icon-box-icon i { font-size: 28px; }
  .rns-einzug-titel .icon-box-content { padding-left: 36px !important; }
  /* Nur Expeditionen, nur Desktop: Button, Trennlinien, „Weitere Expeditionen“ und Adventure Finder ebenfalls einrücken.
     Klasse „rns-einzug-d“ am Button „Jetzt anfragen“, an der Trennlinie darunter und an der Spalte „Weitere Expeditionen“ */
  .wpb_column.rns-einzug-d > .uncol { padding-left: 72px; }   /* Uncode überschreibt das Spalten-Padding */
  .rns-einzug-d:not(.wpb_column) { margin-left: 72px; }
}

/* Accordion: Inhalt liegt über dem Titel-Link (Uncode lässt den Link 36px in den Inhalt ragen) */
.uncode-accordion .panel-collapse {
  position: relative;
  z-index: 1;
}

/* Accordion: Aufzählungspunkte nicht abschneiden (Uncode: .panel overflow hidden, Liste nur 18px Einzug) */
.uncode-accordion .panel-body ul {
  padding-left: 1.3em !important;
}

/* Accordion mobil: Titel + Icon kleiner */
@media (max-width: 959px) {
  .uncode-accordion .panel-title {
	font-size: 20px !important;
  }
  .uncode-accordion .panel-title > a > i {
	font-size: 26px !important;
  }
}

.t-overlay-acf { bottom: 10px; left: 18px; }

.tmb a.tmb-term-evidence, .uncode-info-box a.tmb-term-evidence, .tmb span.tmb-term-evidence, .uncode-info-box span.tmb-term-evidence, .tmb a.bordered-cat, .uncode-info-box a.bordered-cat, .tmb span.bordered-cat, .uncode-info-box span.bordered-cat {
	border-radius: 16px;
	padding: 3px 9px 3px 9px;
	text-transform: initial;
	font-weight: 700;
}

.footer-margin-left-yt { margin-left: 165px; }





/* ===== Icons + Farben (zentral, werden mehrfach verwendet) ===== */

:root {
  --rns-blue: #009fe3;
  --rns-dark: #1d1d1b;

  --rns-icon-winter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322304f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M9 4.5l3 3 3-3M9 19.5l3-3 3 3'/%3E%3Cpath transform='rotate(60 12 12)' d='M12 2v20M9 4.5l3 3 3-3M9 19.5l3-3 3 3'/%3E%3Cpath transform='rotate(120 12 12)' d='M12 2v20M9 4.5l3 3 3-3M9 19.5l3-3 3 3'/%3E%3C/svg%3E");
  --rns-icon-sommer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322304f' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");
  --rns-icon-ganzjaehrig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' fill='none' stroke-linecap='round'%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Crect x='.1' y='.1' width='110.7' height='239.9'/%3E%3C/clipPath%3E%3CclipPath id='b'%3E%3Crect x='129.5' y='.1' width='110.6' height='239.9'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23a)' stroke='%2322304f'%3E%3Ccircle cx='120' cy='119' r='44.9' stroke-width='20.2'/%3E%3Cpath stroke-width='18' d='M120 19v20M120 199v20M20 119h20M200 119h20M49 48l14 14M177 176l14 14M49 190l14-14M177 62l14-14'/%3E%3C/g%3E%3Cg clip-path='url(%23b)' stroke='%2322304f' stroke-width='18' stroke-linejoin='round'%3E%3Cpath d='M120 20v200M90 45l30 30 30-30M90 195l30-30 30 30'/%3E%3Cpath d='M206.6 70 33.4 170M170 56.5l-11 41 41 11M40 131.5l41 11-11 41'/%3E%3Cpath d='M206.6 170 33.4 70M200 131.5l-41 11 11 41M70 56.5l11 41-41 11'/%3E%3C/g%3E%3Cpath d='M120 12v209.4' stroke='%23009fe3' stroke-width='6'/%3E%3C/svg%3E");
  --rns-icon-dauer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='14' r='8'/%3E%3Cpath d='M12 14 9 10.5M12 6V3M9.5 3h5M18.5 7.5 20 6'/%3E%3C/svg%3E");
}


/* ===== Jahreszeit-Icon (Übersicht + Portfolio-Seite) ===== */

.acf-field-jahreszeit {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
  font-size: 0; /* Text weg, bleibt für Screenreader im HTML */
  vertical-align: middle;
}

/* Winter (auch Standard, wenn keine Wert-Klasse vorhanden) */
.acf-field-jahreszeit,
.acf-field-jahreszeit.acf-value-winter {
  background-image: var(--rns-icon-winter);
}

/* Sommer */
.acf-field-jahreszeit.acf-value-sommer {
  background-image: var(--rns-icon-sommer);
}

/* Sommer + Winter (ganzjährig): geteiltes Symbol – halb Sonne, halb Schneeflocke */
.acf-field-jahreszeit.acf-value-sommer.acf-value-winter {
  background-image: var(--rns-icon-ganzjaehrig);
}


/* ===== Filter: ALLGEMEIN ===== */

.fontsize-small .widget-ajax-filters .widgettitle,
.fontsize-small li,
.fontsize-small a { font-size: 14px !important; }

.grid-filters .uncode-toggle-ajax-filters.item-align-left:before,
.grid-filters .uncode-toggle-ajax-filters:not(.social-menu-link),
.ajax-grid-system .grid-filters .filter-list li a {
	font-size: 14px!important; 
}

/* ===== Jahreszeit-Filter: Pill-Buttons mit Icon ===== */

.term-filters-list--inline .term-filter-link.term-filter-value-sommer,
.term-filters-list--inline .term-filter-link.term-filter-value-winter {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px 4px 6px;
  border: 1px solid var(--rns-dark);
  border-radius: 20px;
  background: transparent;
  color: var(--rns-dark) !important;
  line-height: 1.4;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

/* Hover */
.term-filters-list--inline .term-filter-link.term-filter-value-sommer:hover,
.term-filters-list--inline .term-filter-link.term-filter-value-winter:hover {
  border-color: var(--rns-blue);
  color: var(--rns-blue) !important;
}

/* Aktiv: blau gefüllt */
.term-filters-list--inline .term-filter-link--active.term-filter-value-sommer,
.term-filters-list--inline .term-filter-link--active.term-filter-value-winter {
  border-color: var(--rns-blue);
  background: var(--rns-blue);
  color: #fff !important;
}

/* Icon als Maske → übernimmt automatisch die Textfarbe (dunkel / blau / weiß) */
.term-filter-link.term-filter-value-sommer::before,
.term-filter-link.term-filter-value-winter::before {
  content: "";
  flex-shrink: 0;
  width: 1.3em;
  height: 1.3em;
  margin-right: 0.4em;
  background-color: currentColor;
  -webkit-mask: no-repeat center / contain;
  mask: no-repeat center / contain;
}
.term-filter-link.term-filter-value-sommer::before {
  -webkit-mask-image: var(--rns-icon-sommer);
  mask-image: var(--rns-icon-sommer);
}
.term-filter-link.term-filter-value-winter::before {
  -webkit-mask-image: var(--rns-icon-winter);
  mask-image: var(--rns-icon-winter);
}

.term-filters-list--inline li.term-filter:not(:last-child) { 
	margin-right: 12px;
}

.term-filter-link--active { color: var(--rns-blue) !important; }



/* ===== Kategorien-Filter: Hauptkategorien fett, Unterkategorien normal ===== */

.widget-ajax-filters[data-id="2"] .term-filters-list > li {
  font-weight: 700;
  text-transform: uppercase;
}
.widget-ajax-filters[data-id="2"] .term-filters-list .children > li {
  font-weight: 400;
  text-transform: uppercase;
}

.widget-ajax-filters .widgettitle {
	font-size: 16px !important;
	margin-bottom: 5px;
	font-weight: 700;
	text-transform: uppercase;
}


/* ===== RNS Carousel-Badges (Styling wie Uncode-Übersicht) ===== */

.owl-carousel-container {
  position: relative;
}

.rns-badges {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none; /* Slider bleibt bedienbar */
}

/* Kategorien oben rechts */
.rns-cats {
  position: absolute;
  top: 0;
  right: 40px;
  padding: 18px;
  text-align: right;
}

.rns-cats .tmb-term-evidence {
  display: inline-block;
  margin: 0 0 9px 5px;
  padding: 4px 12px;
  border-radius: 20px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: inherit;
  pointer-events: auto; /* Links klickbar */
}

/* Jahreszeit oben links */
.rns-season {
  position: absolute;
  left: 18px;
  top: 18px;
}

.rns-badges .acf-field-jahreszeit {
  width: 66px;
  height: 66px;
}

/* ===== Carousel-Badges mobil: kleiner ===== */
@media (max-width: 959px) {

  /* Kategorie-Pillen (Desktop: 13px, Padding 4/12px)
	 right 36px = Uncode-Spaltenabstand (Container ragt 36px über das Bild hinaus) */
  .rns-cats {
	right: 36px;
	padding: 12px;
  }
  .rns-cats .tmb-term-evidence {
	margin: 0 0 6px 4px;
	padding: 3px 9px;
	font-size: 11px;
  }

  /* Jahreszeit-Symbol (Desktop: 66px) */
  .rns-season {
	left: 12px;
	top: 12px;
  }
  .rns-badges .acf-field-jahreszeit {
	width: 38px;
	height: 38px;
  }
}


/* ===== Portfolio-Kacheln (Übersicht + Startseite) ===== */

/* Kacheln dürfen das Uncode-Grid nicht aufdrücken (Uncode: repeat(3, 1fr)).
   Nötig, weil .t-inside unten Flex statt Uncode-Table ist – sonst rutscht die 3. Spalte hinaus. */
.cssgrid-container > .tmb {
  min-width: 0;
}

/* Kachel-Inhalt auf volle Höhe strecken (Uncode: gleich hohe Kacheln) */
.cssgrid-equal-height .tmb:has(.acf-field-preis) > .t-inside {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.cssgrid-equal-height .tmb:has(.acf-field-preis) .t-entry-text,
.cssgrid-equal-height .tmb:has(.acf-field-preis) .t-entry-text-tc {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
}

/* Kacheln im Uncode-Carousel (Startseite, "automatische Höhe"): gleich hoch machen */
.owl-carousel .owl-stage:has(.acf-field-preis) {
  display: flex;
}
.owl-carousel .owl-item:has(.acf-field-preis) {
  display: flex;
  float: none;
}
.owl-carousel .owl-item > .tmb:has(.acf-field-preis) {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.owl-carousel .tmb:has(.acf-field-preis) > .t-inside {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
}
.owl-carousel .tmb:has(.acf-field-preis) .t-entry-text,
.owl-carousel .tmb:has(.acf-field-preis) .t-entry-text-tc {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
}

/* Kachel misst ihre eigene Breite (für "Preis + Button untereinander" weiter unten) */
.tmb .t-entry-text-tc:has(.acf-field-preis) {
  container-type: inline-size;
}

/* Grid: Inhalte oben, flexible Leerzeile, Preis + Button immer in der letzten Zeile */
.tmb .t-entry-text .t-entry-text-tc .t-entry:has(.acf-field-preis) {
  flex: 1 1 auto;
  display: grid !important;
  grid-template-columns: auto auto;
  grid-template-rows: repeat(6, auto) 1fr auto;
  justify-content: space-between;
  align-items: center;
  column-gap: 20px;
  row-gap: 0;
}

/* Alle Elemente volle Breite */
.tmb .t-entry-text .t-entry-text-tc .t-entry:has(.acf-field-preis) > * {
  grid-column: 1 / -1;
  width: auto;
}

/* Titel: etwas mehr Abstand nach unten */
.tmb .t-entry-text .t-entry-text-tc .t-entry:has(.acf-field-preis) > .t-entry-title {
  margin-bottom: 20px !important;
}

/* Preis links unten
   (überschreibt auch Uncode: .t-entry > *:not(hr):last-child { width: 100% }) */
.tmb .t-entry-text .t-entry-text-tc .t-entry:has(.acf-field-preis) > .acf-group:has(.acf-field-preis) {
  grid-column: 1;
  grid-row: -2 / -1;
  margin: 8px 0 0 !important;
}

/* Button rechts unten */
.tmb .t-entry-text .t-entry-text-tc .t-entry:has(.acf-field-preis) > .t-entry-readmore {
  grid-column: 2;
  grid-row: -2 / -1;
  width: auto;
  margin: 8px 0 0 !important;
}

/* Mittlere Kachel (250–399px): Preis + Button kleiner, aber nebeneinander */
@container (max-width: 399px) {
  .tmb .t-entry .acf-field-preis {
	font-size: 21px;
  }
  .tmb .t-entry-text .t-entry-text-tc .t-entry:has(.acf-field-preis) {
	column-gap: 10px;
  }
  .tmb .t-entry-text .t-entry-text-tc .t-entry:has(.acf-field-preis) > .t-entry-readmore {
	justify-self: end;
  }
  .tmb .t-entry-text .t-entry-text-tc .t-entry:has(.acf-field-preis) > .t-entry-readmore .btn {
	padding: 9px 14px;
	font-size: 12px;
	letter-spacing: 0.06em;
  }
}

/* Schmale Kachel (unter 250px): Preis + Button untereinander, Button volle Breite */
@container (max-width: 249px) {
  .tmb .t-entry-text .t-entry-text-tc .t-entry:has(.acf-field-preis) {
	grid-template-columns: 1fr;
	grid-template-rows: repeat(6, auto) 1fr auto auto;
  }
  .tmb .t-entry-text .t-entry-text-tc .t-entry:has(.acf-field-preis) > .acf-group:has(.acf-field-preis) {
	grid-column: 1;
	grid-row: -3 / -2;
  }
  .tmb .t-entry-text .t-entry-text-tc .t-entry:has(.acf-field-preis) > .t-entry-readmore {
	grid-column: 1;
	grid-row: -2 / -1;
	justify-self: stretch;
	margin-top: 16px !important;
  }
  .tmb .t-entry-text .t-entry-text-tc .t-entry:has(.acf-field-preis) > .t-entry-readmore .btn {
	display: block;
	width: 100%;
	text-align: center;
  }
}

/* Dauer mit Stoppuhr-Icon */
.tmb .t-entry .acf-field-dauer {
  margin: 10px 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  color: var(--rns-dark);
  font-size: 19px;
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
}
.tmb .t-entry .acf-field-dauer::before {
  content: "";
  flex-shrink: 0;
  width: 1.4em;
  height: 1.4em;
  background: var(--rns-icon-dauer) center / contain no-repeat;
}

/* Ort */
.tmb .t-entry .acf-field-ort {
  text-transform: uppercase;
  font-size: 16px;
  margin-bottom: 0;
  color: var(--rns-dark);
  font-weight: 400;
}

/* Titel */
.tmb .t-entry:has(.acf-field-preis) .t-entry-title {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  margin-top: 0 !important;
}
.tmb .t-entry:has(.acf-field-preis) .t-entry-title a {
  color: var(--rns-dark);
}

.tmb .t-entry:has(.acf-field-preis) .t-entry-excerpt {
  margin: 0 0 16px 0 !important;
}

/* Preis – "AB" kommt per CSS */
.tmb .t-entry .acf-field-preis {
  display: inline-flex;
  align-items: baseline;
  color: var(--rns-dark);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  margin-bottom: 0;
}
.tmb .t-entry .acf-field-preis::before {
  content: "Ab";
  margin-right: 0.35em;
  font-size: 0.45em;
  font-weight: 300;
  text-transform: uppercase;
}
/* Englisch (WPML): "From" statt "Ab" – 19.11.2026 */
html[lang^="en"] .tmb .t-entry .acf-field-preis::before {
  content: "From";
}
/* Kein "Ab"/"From" bei "Preis auf Anfrage" / "Auf Anfrage" / "Price on request" / "On request"
   (Klasse kommt aus rns_value_classes in der functions.php) */
.tmb .t-entry .acf-field-preis.acf-value-preis-auf-anfrage::before,
.tmb .t-entry .acf-field-preis.acf-value-auf-anfrage::before,
.tmb .t-entry .acf-field-preis.acf-value-price-on-request::before,
.tmb .t-entry .acf-field-preis.acf-value-on-request::before {
  content: none !important;
}
/* "Preis auf Anfrage" kleiner als ein Betrag, damit es neben den Button passt */
.tmb .t-entry .acf-field-preis.acf-value-preis-auf-anfrage,
.tmb .t-entry .acf-field-preis.acf-value-auf-anfrage,
.tmb .t-entry .acf-field-preis.acf-value-price-on-request,
.tmb .t-entry .acf-field-preis.acf-value-on-request {
  font-size: 16px;
  white-space: nowrap;
}
@container (max-width: 399px) {
  .tmb .t-entry .acf-field-preis.acf-value-preis-auf-anfrage,
  .tmb .t-entry .acf-field-preis.acf-value-auf-anfrage,
  .tmb .t-entry .acf-field-preis.acf-value-price-on-request,
  .tmb .t-entry .acf-field-preis.acf-value-on-request {
    font-size: 13px;
  }
}

/* Button */
.tmb .t-entry:has(.acf-field-preis) .t-entry-readmore .btn {
  margin: 0;
  padding: 12px 28px;
  border: 0 !important;
  border-radius: 0;
  background: #dcd9ce !important;
  color: #7a7a7a !important;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tmb .t-entry:has(.acf-field-preis) .t-entry-readmore .btn::after {
  content: "→";
  margin-left: 0.6em;
  letter-spacing: 0;
}
.tmb .t-entry:has(.acf-field-preis) .t-entry-readmore .btn:hover {
  background: #cfcbbd !important;
  color: var(--rns-dark) !important;
}

/* Mobil */
@media (max-width: 569px) {
  .tmb .t-entry:has(.acf-field-preis) .t-entry-title { font-size: 26px; }
  .tmb .t-entry .acf-field-preis { font-size: 24px; }
  .tmb .t-entry:has(.acf-field-preis) .t-entry-readmore .btn { padding: 14px 24px; font-size: 15px; }
}


/* ===== Bildunterschrift im Galerie-Slider der Angebote ===== */
.single-portfolio .un-media-gallery .tmb-carousel .t-entry-text-tc {
  padding-top: 18px; /* Uncode single-block-padding: 36px */
}
.single-portfolio .un-media-gallery .tmb-carousel .t-entry-excerpt {
  font-size: 17px;
  font-style: italic;
  padding-bottom: 5px;
}

@media (max-width: 959px) {
  .single-portfolio .un-media-gallery .tmb-carousel .t-entry-excerpt {
	font-size: 15px;                     /* Desktop: 17px */
  }
}

/* ===== Footer + Megamenü ===== */

.site-footer p,
.site-footer a,
.megamenu-rns p {
  font-size: 12px !important;
  text-transform: uppercase;
  line-height: 1.6;
}


.border-white { border: 18px solid white; }

.iconbox-rns h5,
.iconbox-rns h4 { 
	margin-top: 8px;
}
.iconbox-rns p { font-size: 18px; }

.btn.button-rns {
	padding-left: 50px !important;
	padding-right: 50px !important;
	padding-top: 14px !important;
	font-size: 16px !important; 
}
.font-weight-700.button-rns *:not(strong):not(b):not(.unmenu-title):not(.unmenu-title *):not(.menu-item-description) {
	position: relative;
	top: 3px;
	font-weight: 200 !important;
}


/* ===== Breadcrumb Angebote ===== */

/* Trennzeichen ">" statt Uncode-Standard "/" */
.breadcrumb.rns-breadcrumb > li + li:not(.paged)::before {
  content: ">";
  padding: 0 8px;
}

/* Größe + Abstand auf der ganzen Liste → Text und ">" gleich groß */
.breadcrumb.rns-breadcrumb { 
	color: #303133; 
	font-size: 16px;
	font-weight: 400; 
	letter-spacing: 0.04rem;
	text-transform: uppercase; 
	margin-bottom: 8px;
}
.breadcrumb.rns-breadcrumb > li a {
	color: #303133;
}

/* Breadcrumb immer linksbündig (Uncode zentriert .breadcrumb unter 960px) */
.breadcrumb.rns-breadcrumb {
  text-align: left;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ===== Floating-Buttons rechts (WhatsApp, Telefon, Gutschein) – HTML in functions.php ===== */
.rns-float {
  position: fixed;
  right: 22px;
  bottom: 96px;             /* über Uncodes "Nach oben"-Pfeil (right/bottom 22px) */
  z-index: 999;             /* unter dem Overlay-Menü (10000) */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.rns-float__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rns-float__btn:hover,
.rns-float__btn:focus-visible {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.rns-float__btn svg {
  width: 26px;
  height: 26px;
}
.rns-float__btn--whatsapp { background: #3fae49; }
.rns-float__btn--phone    { background: var(--rns-blue); }
.rns-float__btn--voucher {
  margin-top: 18px;          /* größerer Abstand wie im Layout */
  background: #fff;
  border: 2px solid #006a95;
}
.rns-float__btn--voucher svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 959px) {
  .rns-float { right: 14px; bottom: 80px; gap: 10px; }
  .rns-float__btn { width: 44px; height: 44px; }
  .rns-float__btn svg { width: 22px; height: 22px; }
  .rns-float__btn--voucher { margin-top: 10px; }
  .rns-float__btn--voucher svg { width: 24px; height: 24px; }
}


/* GUTSCHEIN POPUP

@media (min-width: 960px) {
	.pum-container:has(.rns-gutschein-popup) {
		margin-top: 300px;
	}
}  */

/* =====================================================================
 * Bereichs-Kacheln Startseite („Worauf hast du gerade Lust?“), Klasse rns-kacheln an der Innenzeile
 * Handy (2 Kacheln je Reihe): Icon und Titel kleiner, Desktop bleibt wie im Backend eingestellt
 * ===================================================================== */
@media (max-width: 569px) {
  .rns-kacheln .icon-box-icon,
  .rns-kacheln .icon-media { width: 56px !important; }
  .rns-kacheln h2.h4 { font-size: 16px; line-height: 1.15; }
}


/* =====================================================================
 * Anfrageformular (CF7, Klasse rns-anfrage): Akzeptanz-Checkboxen bündig, Text neben der Box umbrechend
 * ===================================================================== */
.rns-anfrage .rns-akzeptanz .wpcf7-list-item { margin: 0; }
.rns-anfrage .rns-akzeptanz label {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  align-items: start;
}
.rns-anfrage .rns-akzeptanz input[type="checkbox"] { margin-top: 4px; }
.rns-anfrage .rns-akzeptanz .wpcf7-list-item-label { padding: 0; margin: 0 !important; }
/* Handy: Felder untereinander statt zweispaltig (Uncode lässt wpcf7-inline-wrapper immer nebeneinander) */
@media (max-width: 569px) {
  .rns-anfrage .wpcf7-inline-wrapper { display: block; }
  .rns-anfrage .wpcf7-inline-wrapper .wpcf7-inline-field {
    display: block;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* =====================================================================
 * Footer mobil (Content Block „Footer“, Klassen rns-footer-kontakt / rns-footer-links), wieder mit Link-Spalten (17.11.2026)
 * – Einzüge neben dem Logo (164/165px) mobil aufheben
 * – alle Link-Gruppen untereinander, volle Breite (Umbruch: Uncode-Flexbox-Einstellung „Wrap“ mobil)
 * ===================================================================== */
@media (max-width: 569px) {
  .rns-footer-kontakt .uncode_text_column { padding-left: 0 !important; }
  .rns-footer-kontakt .footer-margin-left-yt { margin-left: 0; }
  /* Uncode legt die Gruppen in .uncode-flex-int */
  .rns-footer-links .uncode-flex-int > * {
    flex: 0 0 100%;
    max-width: 100%;
    margin-top: 0 !important;
  }
}

/* =====================================================================
 * Startseite Highlights (Post-Modul) mobil: Ränder an den übrigen Inhalt angleichen (10.11.2026)
 * – Spalte (Klasse rns-highlights) hat Spalten-Padding 36px → mobil links/rechts 0
 * – weißer Rahmen des Moduls (border-white, rns-highlights-index) mobil 12px statt 18px
 * ===================================================================== */
@media (max-width: 569px) {
  .wpb_column.rns-highlights .uncont { padding-left: 0 !important; padding-right: 0 !important; }
  .rns-highlights-index.border-white,
  .rns-highlights-index .border-white { border-width: 12px; }
}

/* =====================================================================
 * Slider-Navigation (uncode_carousel_nav): viele Punkte umbrechen statt über den Rand ragen (10.11.2026)
 * Pfeile bleiben links/rechts, Punkte laufen mehrzeilig dazwischen. Wirkt nur, wenn der Platz nicht reicht.
 * ===================================================================== */
.uncode-owl-nav-safe { max-width: 100%; align-items: center; }
.uncode-owl-nav .uncode-nav-dots { white-space: normal; flex: 0 1 auto; min-width: 0; line-height: 0; }
/* Uncode lässt beim 1. Punkt den linken Abstand (5px, dot_single_space) weg → bei Umbruch springt die 1. Zeile. Ausgleich: alle Punkte gleich, Leiste 5px nach links */
.uncode-owl-nav .uncode-nav-dots { margin-left: -5px; }
.uncode-owl-nav .uncode-nav-dots .uncode-nav-index:first-child span { margin-left: 5px !important; }
@media (max-width: 569px) {
  .uncode-owl-nav .uncode-nav-dots .uncode-nav-index { min-height: 24px; }
}


/* =====================================================================
 * Gutschein „So einfach geht's“ (Innenzeile Klasse rns-schritte, 11.11.2026)
 * Dünner Pfeil zwischen den Schritten, nur wenn die Schritte nebeneinander stehen (ab 960 px)
 * ===================================================================== */
@media (min-width: 960px) {
  .rns-schritte .wpb_column { position: relative; }
  .rns-schritte .wpb_column:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 84px;      /* mittig zur Schritt-Überschrift */
    right: -25px;   /* mittig im Spaltenabstand */
    width: 14px;
    height: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 32'%3E%3Cpath d='M2 2 L12 16 L2 30' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  }
}

/* ===== Sprachumschalter „DE | EN“ (19./20.11.2026) =====
   HTML aus functions.php (rns_lang_switcher_html):
   - .rns-lang-header im Burger-Container .mmb-container: nur Desktop, rechts neben dem Bergführer-Abzeichen
   - .rns-lang-mobile-menu am Ende des Mobile-Menü-Blocks: nur mobil, im aufgeklappten Menü, weiß */
.rns-lang {
  display: flex;
  align-items: center;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}
.rns-lang .rns-lang-item {
  color: inherit !important;
  text-decoration: none;
  padding: 4px 0;
}
.rns-lang a.rns-lang-item {
  opacity: 0.55;
  transition: opacity 0.2s;
}
.rns-lang a.rns-lang-item:hover,
.rns-lang a.rns-lang-item:focus-visible {
  opacity: 1;
}
.rns-lang .rns-lang-sep {
  display: block;
  width: 1px;
  height: 1.3em;
  margin: 0 8px;
  background: currentColor;
}

/* Header (Desktop) */
.mmb-container .rns-lang-header {
  order: 2;
  margin-left: 24px;
  font-size: 16px;
  color: var(--rns-dark);
}
/* Offenes Overlay-Menü am Desktop: hell auf dunklem Hintergrund */
html.menu-overlay-open .mmb-container .rns-lang-header {
  color: #fff;
}
@media (max-width: 959px) {
  .mmb-container .rns-lang-header {
    display: none;
  }
}

/* Aufgeklapptes Menü (mobil): unten rechts auf Höhe der Social-Icons
   (Mobile-Menü-Block 376/4881: Zeile mit padding-bottom 18px, Social-Icons ca. 28px hoch, Seitenabstand 36px) */
#uncode-mobile-menu-block {
  position: relative;
}
#uncode-mobile-menu-block .rns-lang-mobile-menu {
  position: absolute;
  right: 36px;
  bottom: 18px;
  height: 28px;
  font-size: 18px;
  color: #fff;
}

/* ===== Offenes Menü liegt über Popup und schwebenden Buttons (20.11.2026) =====
   Das Uncode-Overlay-Menü steckt in einem Stapelkontext mit z-index 1 und lässt sich nicht über das
   Popup Maker-Popup (z-index 1999999999, direkt im body) heben. Darum werden Popup, schwebende Buttons
   (.rns-float) und der Nach-oben-Button ausgeblendet, solange das Menü offen ist.
   Mobil: body.open-overlay-menu, Desktop: html.menu-overlay-open. Nach dem Schließen ist alles wieder da. */
body.open-overlay-menu .pum-overlay,
html.menu-overlay-open .pum-overlay,
body.open-overlay-menu .rns-float,
html.menu-overlay-open .rns-float,
body.open-overlay-menu .footer-scroll-top,
html.menu-overlay-open .footer-scroll-top {
  display: none !important;
}
