/**
 * Re Design – Haupt-Stylesheet
 *
 * Table of Contents:
 * 01. CSS Custom Properties
 * 02. Reset & Base
 * 03. Utility-Klassen
 * 04. Buttons
 * 05. Container & Layout
 * 06. Header & Navigation
 * 07. Hero Carousel
 * 08. Portfolio Slider
 * 09. Blog / Posts
 * 10. Sidebar & Widgets
 * 11. Footer
 * 12. Einzelne Seiten
 * 13. 404
 * 14. WooCommerce
 * 15. Page-Builder-Kompatibilität
 * 16. Barrierefreiheit
 * 17. Animationen
 * 18. Media Queries (Responsive)
 */

/* ==========================================================================
   01. CSS Custom Properties
   ========================================================================== */

:root {
	/* Farben – durch Customizer überschreibbar */
	--re-orange:       #F4622A;
	--re-orange-light: #FF8557;
	--re-orange-dark:  #D4501D;
	--re-dark:         #1A1A1A;
	--re-dark-2:       #111111;
	--re-dark-3:       #222222;
	--re-dark-card:    #151515;
	--re-light:        #F0F0EE;
	--re-light-2:      #E8E8E6;
	--re-light-3:      #D8D8D6;
	--re-white:        #FFFFFF;
	--re-gray:         #888888;
	--re-gray-light:   #B8B8B8;
	--re-border:       rgba(0,0,0,0.08);
	--re-border-dark:  rgba(255,255,255,0.1);

	/* Typografie */
	--re-font-main:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--re-font-heading: 'Syne', 'Inter', sans-serif;

	/* Abstände */
	--re-gap-xs:  0.5rem;
	--re-gap-sm:  1rem;
	--re-gap-md:  2rem;
	--re-gap-lg:  4rem;
	--re-gap-xl:  6rem;
	--re-gap-2xl: 8rem;

	/* Rahmen */
	--re-radius-sm:   8px;
	--re-radius-md:   16px;
	--re-radius-lg:   24px;
	--re-radius-xl:   32px;
	--re-radius-full: 9999px;

	/* Schatten */
	--re-shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
	--re-shadow-md:  0 4px 20px rgba(0,0,0,0.12);
	--re-shadow-lg:  0 8px 40px rgba(0,0,0,0.16);
	--re-shadow-dark: 0 4px 24px rgba(0,0,0,0.4);

	/* Übergänge */
	--re-ease:     cubic-bezier(0.4, 0, 0.2, 1);
	--re-ease-out: cubic-bezier(0, 0, 0.2, 1);
	--re-duration: 0.3s;

	/* Layout */
	--re-container-max: 1400px;
	--re-header-inner-max: var(--re-container-max);
	--re-header-h:      80px;
	--re-logo-size:     45px;
	--re-header-bg:     #f0f0eeb0;
	--re-header-backdrop-blur: 20px;
	--re-content-wrap-offset: 80px;
	--re-header-contact-icon-color: #1A1A1A;
	--re-header-contact-icon-hover-color: #FFFFFF;
	--re-header-contact-icon-size: 16px;
	--re-primary-menu-bg: #1A1A1A;
	--re-primary-menu-text-color: rgba(255,255,255,0.6);
	--re-primary-menu-text-hover-color: #FFFFFF;
	--re-primary-menu-border-color: rgba(255,255,255,0.06);
	--re-primary-menu-close-color: #FFFFFF;
	--re-primary-menu-backdrop-color: rgba(0,0,0,0.5);
	--re-primary-menu-backdrop-blur: 8px;
	--re-primary-menu-width: 480px;
	--re-primary-menu-font-size: 24px;
	--re-primary-menu-font-weight: 100;
	--re-primary-menu-padding-top: 96px;
	--re-primary-menu-padding-right: 48px;
	--re-primary-menu-padding-bottom: 48px;
	--re-primary-menu-padding-left: 48px;
	--re-primary-menu-item-padding-y: 8px;

	/* Hero Carousel */
	--re-hero-carousel-font: var(--re-font-main);
	--re-hero-carousel-padding-desktop: 0px;
	--re-hero-carousel-padding-tablet: 0px;
	--re-hero-carousel-padding-mobile: 0px;
	--re-hero-carousel-bg: transparent;
	--re-hero-carousel-title-color: #2C2F35;
	--re-hero-carousel-subtitle-color: #6A6D73;
	--re-hero-carousel-price-text-color: #1A1A1A;
	--re-hero-carousel-price-bg-color: #E3E3E3;
	--re-hero-carousel-price-border-color: #D2D2D2;
	--re-hero-carousel-price-radius: 40px;
	--re-hero-carousel-button-text-color: #FFFFFF;
	--re-hero-carousel-button-bg-color: #2F3338;
	--re-hero-carousel-button-border-color: #2F3338;
	--re-hero-carousel-button-radius: 30px;
	--re-hero-carousel-image-radius: 8px;
	--re-hero-carousel-shadow-color: 0, 0, 0;
	--re-hero-carousel-button-shadow-opacity: 0;
	--re-hero-carousel-price-shadow-opacity: 0;
	--re-hero-carousel-image-shadow-opacity: 0;
}

/* ==========================================================================
   02. Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--re-font-main);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--re-dark);
	background-color: var(--re-light);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--re-orange);
}

ul,
ol {
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--re-font-heading);
	font-weight: 700;
	line-height: 1.2;
	color: var(--re-dark);
}

p {
	margin-bottom: 1rem;
}

p:last-child {
	margin-bottom: 0;
}

button {
	font-family: var(--re-font-main);
	cursor: pointer;
	border: none;
	background: none;
}

input,
textarea,
select {
	font-family: var(--re-font-main);
	font-size: 1rem;
}

/* ==========================================================================
   03. Utility-Klassen
   ========================================================================== */

.re-container {
	max-width: var(--re-container-max);
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 3rem);
}

.re-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.re-content-wrap {
	flex: 1;
	margin-top: 0;
}

.re-header.re-header--sticky ~ #re-content.re-content-wrap {
	margin-top: var(--re-content-wrap-offset);
}

.re-layout {
	display: grid;
	gap: var(--re-gap-lg);
}

.re-layout--sidebar {
	grid-template-columns: 1fr 300px;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ==========================================================================
   04. Buttons
   ========================================================================== */

.re-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.75rem;
	border-radius: var(--re-radius-full);
	font-family: var(--re-font-main);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: all var(--re-duration) var(--re-ease);
	text-decoration: none;
	border: 2px solid transparent;
	white-space: nowrap;
	position: relative;
	overflow: hidden;
}

.re-btn::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,0.1);
	opacity: 0;
	transition: opacity var(--re-duration) var(--re-ease);
}

.re-btn:hover::after {
	opacity: 1;
}

/* Primär: Dunkel gefüllt */
.re-btn-primary {
	background: var(--re-dark);
	color: var(--re-white);
	border-color: var(--re-dark);
}

.re-btn-primary:hover {
	background: var(--re-orange);
	border-color: var(--re-orange);
	color: var(--re-white);
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(244, 98, 42, 0.35);
}

/* Outline */
.re-btn-outline {
	background: transparent;
	color: var(--re-dark);
	border-color: var(--re-dark);
}

.re-btn-outline:hover {
	background: var(--re-dark);
	color: var(--re-white);
	transform: translateY(-2px);
}

/* Orange */
.re-btn-orange {
	background: var(--re-orange);
	color: var(--re-white);
	border-color: var(--re-orange);
}

.re-btn-orange:hover {
	background: var(--re-orange-dark);
	border-color: var(--re-orange-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(244, 98, 42, 0.4);
}

/* Klein */
.re-btn-sm {
	padding: 0.5rem 1.25rem;
	font-size: 0.875rem;
}

/* ==========================================================================
   05. Header & Navigation
   ========================================================================== */

.re-header {
	position: relative;
	z-index: 1000;
	height: var(--re-header-h);
	background: var(--re-header-bg) !important;
	backdrop-filter: blur(var(--re-header-backdrop-blur)) !important;
	-webkit-backdrop-filter: blur(var(--re-header-backdrop-blur)) !important;
	border-bottom: 1px solid var(--re-border);
	box-shadow: none;
	transition: height var(--re-duration) var(--re-ease), transform var(--re-duration) var(--re-ease), box-shadow var(--re-duration) var(--re-ease), background-color var(--re-duration) var(--re-ease);
}

.re-header.re-header--sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

.re-header--scrolled {
	height: 64px;
	box-shadow: var(--re-shadow-sm);
}

.re-header:not(.re-header--scrolled) {
	box-shadow: none;
}

/*
.re-header.re-header--sticky.re-header--hidden {
	transform: translateY(calc(-1 * var(--re-header-h)));
}
*/

.re-header-inner {
	max-width: var(--re-header-inner-max, var(--re-container-max));
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 3rem);
	height: 100%;
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

/* Logo */
.re-header-logo {
	flex-shrink: 0;
	width: var(--re-logo-size);
}

.re-header-logo--hidden {
	display: none;
}

.re-header-logo .custom-logo-link {
	display: block;
}

.re-header-logo .custom-logo {
	width: 100%;
	height: auto;
	max-height: calc(var(--re-header-h) - 12px);
	object-fit: contain;
}

.re-header-logo svg {
	width: 100%;
	height: auto;
}

.re-logo-text {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--re-font-heading);
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--re-dark);
}

.re-logo-text:hover {
	color: var(--re-dark);
}

/* Suche */
.re-header-search {
	flex: 1;
	max-width: 320px;
}

.re-search-form {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	background: var(--re-white);
	border: 1px solid var(--re-border);
	border-radius: var(--re-radius-full);
	padding: 0.4rem 0.75rem;
	transition: all var(--re-duration) var(--re-ease);
}

.re-search-form:focus-within {
	border-color: var(--re-dark);
	box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

.re-search-input {
	flex: 1;
	border: none;
	background: none;
	outline: none;
	font-size: 0.875rem;
	color: var(--re-dark);
}

.re-search-input::placeholder {
	color: var(--re-gray);
}

.re-search-btn,
.re-search-voice {
	color: var(--re-gray);
	display: flex;
	align-items: center;
	padding: 0.2rem;
	border-radius: 50%;
	transition: color var(--re-duration) var(--re-ease);
}

.re-search-btn:hover,
.re-search-voice:hover {
	color: var(--re-dark);
}

/* Rechte Seite */
.re-header-right {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	margin-left: auto;
}

.re-header-contact {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	font-size: 0.875rem;
	color: var(--re-dark);
}

.re-header-contact-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	min-height: 32px;
	padding: 0.375rem 0.75rem 0.375rem 0.5rem;
	border-radius: var(--re-radius-full);
	background: var(--re-light-2);
	color: var(--re-header-contact-icon-color);
	transition: all var(--re-duration) var(--re-ease);
}

.re-header-email,
.re-header-whatsapp {
	width: 32px;
	padding: 0.375rem;
}

.re-header-contact-link svg {
	width: var(--re-header-contact-icon-size);
	height: var(--re-header-contact-icon-size);
	flex: 0 0 auto;
}

.re-header-phone-text {
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
}

.re-header-contact-link:hover {
	background: var(--re-orange);
	color: var(--re-header-contact-icon-hover-color);
}

.re-header-manager {
	font-weight: 500;
}

.re-header-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--re-white);
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.re-avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Menü-Toggle */
.re-menu-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: var(--re-dark);
	color: var(--re-white);
	border-radius: 50px;
	font-size: 0.875rem;
	font-weight: 300;
	cursor: pointer;
	transition: all var(--re-duration) var(--re-ease);
}

.re-menu-toggle:hover {
	background: var(--re-orange);
}

.re-menu-icon {
	display: flex;
	flex-direction: column;
	align-items: end;
	gap: 4px;
}

.re-menu-icon span {
	display: block;
	width: 18px;
	height: 1px;
	background: currentColor;
	border-radius: 2px;
	transition: all var(--re-duration) var(--re-ease);
}

.re-menu-icon .line2{
	width: 10px;
}

.re-menu-icon .line3{
	width: 5px;
}

/* Navigation Overlay */
.re-nav-overlay {
	position: fixed;
	top: 0;
	right: -100%;
	width: min(var(--re-primary-menu-width), 100vw);
	height: 100vh;
	background: var(--re-primary-menu-bg);
	z-index: 1100;
	transition: right 0.4s var(--re-ease);
	display: flex;
	flex-direction: column;
}

.re-nav-overlay.is-open {
	right: 0;
}

.re-nav-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	color: var(--re-primary-menu-close-color);
	opacity: 0.6;
	transition: opacity var(--re-duration) var(--re-ease);
}

.re-nav-close:hover {
	opacity: 1;
}

.re-nav-inner {
	padding: var(--re-primary-menu-padding-top) var(--re-primary-menu-padding-right) var(--re-primary-menu-padding-bottom) var(--re-primary-menu-padding-left);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.re-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.re-nav-list a {
	display: block;
	font-family: var(--re-font-heading);
	font-size: var(--re-primary-menu-font-size);
	font-weight: var(--re-primary-menu-font-weight);
	color: var(--re-primary-menu-text-color);
	padding: var(--re-primary-menu-item-padding-y) 0;
	border-bottom: 1px solid var(--re-primary-menu-border-color);
	transition: color var(--re-duration) var(--re-ease);
}

.re-nav-list a:hover,
.re-nav-list .current-menu-item > a {
	color: var(--re-primary-menu-text-hover-color);
}

.re-nav-contact {
	margin-top: auto;
	padding-top: 2rem;
}

.re-nav-phone {
	color: var(--re-primary-menu-text-color);
	font-size: 0.9375rem;
}

.re-nav-phone:hover {
	color: var(--re-primary-menu-text-hover-color);
}

/* Overlay-Backdrop */
.re-nav-backdrop {
	position: fixed;
	inset: 0;
	background: var(--re-primary-menu-backdrop-color);
	backdrop-filter: blur(var(--re-primary-menu-backdrop-blur));
	-webkit-backdrop-filter: blur(var(--re-primary-menu-backdrop-blur));
	z-index: 1050;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s var(--re-ease);

}

.re-nav-backdrop.is-active {
	opacity: 1;
	pointer-events: all;
}

/* ==========================================================================
   07. Hero Carousel
   ========================================================================== */

/* Hero Carousel (neues Produkt-Layout) */
.re-hero-carousel {
	background: var(--re-hero-carousel-bg);
	padding: var(--re-hero-carousel-padding-desktop) 0;
	position: relative;
	overflow: hidden;
}

.re-hero-carousel__viewport {
	position: relative;
	min-height: clamp(23rem, 43vw, 39rem);
}

.re-hero-carousel__slide {
	display: none;
	grid-template-columns: minmax(18rem, 0.92fr) minmax(0, 1.45fr);
	gap: clamp(2rem, 7vw, 8rem);
	align-items: center;
	min-height: clamp(23rem, 43vw, 39rem);
}

.re-hero-carousel__slide.is-active {
	display: grid;
	animation: re-fade-in 0.5s var(--re-ease-out) both;
}

.re-hero-carousel__content {
	font-family: var(--re-hero-carousel-font);
	max-width: 29rem;
	padding: 0;
	position: relative;
	z-index: 1;
}

.re-hero-carousel__title {
	font-family: inherit;
	font-size: clamp(2.05rem, 4.1vw, 4rem);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: 0;
	color: var(--re-hero-carousel-title-color);
	margin-bottom: clamp(0.55rem, 1vw, 0.8rem);
}

.re-hero-carousel__subtitle {
	font-family: inherit;
	font-size: clamp(0.86rem, 1.15vw, 1.05rem);
	line-height: 1.22;
	color: var(--re-hero-carousel-subtitle-color);
	max-width: 21rem;
	margin-bottom: clamp(1.4rem, 2.4vw, 2rem);
}

.re-hero-carousel__actions {
	max-width: 20em;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
}

.re-hero-carousel__button {
	display: inline-flex;
	align-items: center;
	min-width: 9rem;
	min-height: 2.4rem;
	padding: 0.65rem 1.5rem;
	border: 1px solid var(--re-hero-carousel-button-border-color);
	border-radius: var(--re-hero-carousel-button-radius);
	background: var(--re-hero-carousel-button-bg-color);
	color: var(--re-hero-carousel-button-text-color);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 300;
	line-height: 1;
	box-shadow: 0 14px 34px rgba(var(--re-hero-carousel-shadow-color), var(--re-hero-carousel-button-shadow-opacity));
	transition: transform var(--re-duration) var(--re-ease), box-shadow var(--re-duration) var(--re-ease), opacity var(--re-duration) var(--re-ease);
	position: relative;
	z-index: 20;
}

.re-hero-carousel__button:hover {
	color: var(--re-hero-carousel-button-text-color);
	opacity: 0.92;
	transform: translateY(-2px);
	box-shadow: 0 18px 44px rgba(var(--re-hero-carousel-shadow-color), var(--re-hero-carousel-button-shadow-opacity));
}

.re-hero-carousel__price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: clamp(6.2rem, 9.2vw, 7.6rem);
	min-height: 3rem;
	padding: 0.65rem 0.95rem;
	border: 1px solid var(--re-hero-carousel-price-border-color);
	border-radius: var(--re-hero-carousel-price-radius);
	background: var(--re-hero-carousel-price-bg-color);
	color: var(--re-hero-carousel-price-text-color);
	font-family: var(--re-hero-carousel-font);
	font-size: 1.2rem;
	font-weight: 100;
	line-height: 1;
	box-shadow: 0 10px 28px rgba(var(--re-hero-carousel-shadow-color), var(--re-hero-carousel-price-shadow-opacity));
	margin-left: -11%;
	position: relative;
	z-index: 50;
}

.re-hero-carousel__price-dots {
	display: flex;
	height: 100vh;
	max-height: 40px;
	justify-content: center;
	min-width: 2rem;
	color: var(--re-hero-carousel-price-text-color);
	font-weight: 300;
	font-size: clamp(1.1rem, 2vw, 1.6rem);
	line-height: 1em;
	letter-spacing: 0;
	opacity: 1;
}

.re-hero-carousel__media {
	width: 100%;
	position: relative;
}

.re-hero-carousel__image,
.re-hero-carousel__placeholder {
	width: 100%;
  max-height: 36em;
  object-fit: contain !important;
	border-radius: var(--re-hero-carousel-image-radius);
	box-shadow: 0 24px 70px rgba(var(--re-hero-carousel-shadow-color), var(--re-hero-carousel-image-shadow-opacity));
}

.re-hero-carousel__image {
	display: block;
	object-fit: cover;
}

.re-hero-carousel__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		linear-gradient(135deg, rgba(244, 98, 42, 0.16), rgba(45, 118, 105, 0.14)),
		#DADDD9;
	color: #3B4046;
	font-weight: 800;
}

.re-hero-carousel__controls {
	display: flex;
	justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(1rem, 2vw, 1.6rem);
}

.re-hero-carousel__arrow {
	width: 1.4rem;
  height: 1.4rem;
  color: #959595;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
	cursor: pointer;
	transition: all var(--re-duration) var(--re-ease);
}

.re-hero-carousel__arrow:hover {
	border-color: var(--re-dark);
	color: var(--re-dark);
	transform: translateY(-1px);
}

.re-hero-carousel__dots {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.re-hero-carousel__dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 9999px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: all var(--re-duration) var(--re-ease);
}

.re-hero-carousel__dot.is-active,
.re-hero-carousel__dot[aria-current="true"] {
	width: 1.7rem;
	background: var(--re-dark);
	border-color: var(--re-dark);
}

/* ==========================================================================
   08. Portfolio Slider
   ========================================================================== */

.re-portfolio-section {
	padding: var(--re-gap-xl) 0 var(--re-gap-lg);
	background: var(--re-light);
}

.re-portfolio-header {
	margin-bottom: 2rem;
}

.re-portfolio-title {
	font-family: var(--re-font-heading);
	font-size: clamp(1.375rem, 3vw, 1.875rem);
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.re-portfolio-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: var(--re-orange);
	color: var(--re-white);
	border-radius: 50%;
	flex-shrink: 0;
	transition: all var(--re-duration) var(--re-ease);
}

.re-portfolio-arrow:hover {
	background: var(--re-orange-dark);
	color: var(--re-white);
	transform: scale(1.1);
}

/* Slider Container */
.re-slider-container {
	position: relative;
}

.re-slider {
	border-radius: var(--re-radius-lg);
	overflow: hidden;
	background: var(--re-dark-card);
	aspect-ratio: 16 / 7;
	position: relative;
}

.re-slider-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.re-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s var(--re-ease), visibility 0.6s var(--re-ease);
}

.re-slide--active {
	opacity: 1;
	visibility: visible;
}

.re-slide-inner {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.re-slide-image {
	position: absolute;
	inset: 0;
}

.re-slide-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s var(--re-ease);
}

.re-slide--active .re-slide-img {
	transform: scale(1.02);
}

.re-slide-image--placeholder .re-slide-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

/* Slide-Inhalt */
.re-slide-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 2rem;
	background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
	color: var(--re-white);
}

.re-slide-title {
	font-family: var(--re-font-heading);
	font-size: clamp(1rem, 2.5vw, 1.5rem);
	font-weight: 700;
	color: var(--re-white);
	margin-bottom: 0.5rem;
}

.re-slide-excerpt {
	font-size: 0.875rem;
	color: rgba(255,255,255,0.7);
	line-height: 1.6;
	max-width: 500px;
}

/* Slider Vorschau-Leiste */
.re-slider-preview {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	background: var(--re-white);
	border-radius: var(--re-radius-md);
	box-shadow: var(--re-shadow-sm);
}

.re-preview-thumb {
	width: 48px;
	height: 48px;
	border-radius: var(--re-radius-sm);
	overflow: hidden;
	flex-shrink: 0;
}

.re-preview-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.re-preview-info {
	flex: 1;
	min-width: 0;
}

.re-preview-badge {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--re-orange);
	margin-bottom: 0.25rem;
}

.re-preview-text {
	display: block;
	font-size: 0.8125rem;
	color: var(--re-gray);
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Slider-Navigation */
.re-slider-nav {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.re-slider-counter {
	font-size: 0.8125rem;
	color: var(--re-gray);
	white-space: nowrap;
	min-width: 32px;
	text-align: center;
}

.re-slider-btn {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--re-border);
	border-radius: 50%;
	color: var(--re-dark);
	background: var(--re-white);
	cursor: pointer;
	transition: all var(--re-duration) var(--re-ease);
}

.re-slider-btn:hover {
	background: var(--re-dark);
	color: var(--re-white);
	border-color: var(--re-dark);
}

.re-slider-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ==========================================================================
   09. Blog / Posts
   ========================================================================== */

.re-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr));
	gap: var(--re-gap-md);
}

.re-post-card {
	background: var(--re-white);
	border-radius: var(--re-radius-md);
	overflow: hidden;
	box-shadow: var(--re-shadow-sm);
	transition: box-shadow var(--re-duration) var(--re-ease), transform var(--re-duration) var(--re-ease);
}

.re-post-card:hover {
	box-shadow: var(--re-shadow-md);
	transform: translateY(-4px);
}

.re-post-card-image {
	display: block;
	aspect-ratio: 16/9;
	overflow: hidden;
}

.re-post-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--re-ease);
}

.re-post-card:hover .re-post-img {
	transform: scale(1.04);
}

.re-post-card-body {
	padding: 1.5rem;
}

.re-post-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	font-size: 0.8125rem;
	color: var(--re-gray);
}

.re-post-cat {
	color: var(--re-orange);
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.re-post-title {
	font-size: 1.125rem;
	margin-bottom: 0.75rem;
	line-height: 1.3;
}

.re-post-title a:hover {
	color: var(--re-orange);
}

.re-post-excerpt {
	font-size: 0.875rem;
	color: var(--re-gray);
	margin-bottom: 1.25rem;
}

/* Tags */
.re-tag {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: var(--re-light);
	border-radius: var(--re-radius-full);
	font-size: 0.8125rem;
	color: var(--re-dark);
	transition: all var(--re-duration) var(--re-ease);
}

.re-tag:hover {
	background: var(--re-orange);
	color: var(--re-white);
}

.re-post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

/* Pagination */
.re-pagination {
	margin-top: var(--re-gap-lg);
}

.re-pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.re-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--re-border);
	font-size: 0.9375rem;
	color: var(--re-dark);
	transition: all var(--re-duration) var(--re-ease);
}

.re-pagination .page-numbers:hover,
.re-pagination .page-numbers.current {
	background: var(--re-orange);
	color: var(--re-white);
	border-color: var(--re-orange);
}

/* ==========================================================================
   10. Sidebar & Widgets
   ========================================================================== */

.re-sidebar {
	align-self: start;
	position: sticky;
	top: calc(var(--re-header-h) + 2rem);
}

.re-widget {
	background: var(--re-white);
	border-radius: var(--re-radius-md);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: var(--re-shadow-sm);
}

.re-widget:last-child {
	margin-bottom: 0;
}

.re-widget-title {
	font-size: 0.9375rem;
	font-weight: 700;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--re-orange);
	display: inline-block;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.re-footer {
	background: var(--re-dark-2);
	color: rgba(255,255,255,0.7);
	margin-top: auto;
}

.re-footer-top {
	padding: var(--re-gap-xl) 0 var(--re-gap-lg);
}

.re-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: var(--re-gap-md);
}

.re-footer-brand {
	padding-right: 2rem;
}

.re-footer-logo-text {
	font-family: var(--re-font-heading);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--re-white);
	display: block;
	margin-bottom: 1rem;
}

.re-footer-desc {
	font-size: 0.9375rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
	color: rgba(255,255,255,0.5);
}

.re-footer-social {
	display: flex;
	gap: 0.75rem;
}

.re-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	color: rgba(255,255,255,0.6);
	transition: all var(--re-duration) var(--re-ease);
}

.re-social-link:hover {
	background: var(--re-orange);
	color: var(--re-white);
	transform: translateY(-3px);
}

.re-footer-widget .re-footer-widget-title {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--re-white);
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 1.25rem;
}

.re-footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.06);
	padding: 1.5rem 0;
}

.re-footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.re-copyright {
	font-size: 0.875rem;
	color: rgba(255,255,255,0.4);
	margin: 0;
}

.re-footer-nav {
	display: flex;
	gap: 1.5rem;
}

.re-footer-nav a {
	font-size: 0.875rem;
	color: rgba(255,255,255,0.4);
	transition: color var(--re-duration) var(--re-ease);
}

.re-footer-nav a:hover {
	color: var(--re-white);
}

/* ==========================================================================
   12. Einzelne Seiten / Breadcrumbs
   ========================================================================== */

.re-breadcrumbs {
	margin-bottom: 1.5rem;
}

.re-breadcrumbs-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.375rem;
	font-size: 0.8125rem;
	color: var(--re-gray);
}

.re-breadcrumbs-item + .re-breadcrumbs-item::before {
	content: '›';
	color: var(--re-gray-light);
}

.re-breadcrumbs-item a:hover {
	color: var(--re-orange);
}

.re-breadcrumbs-current {
	color: var(--re-dark);
	font-weight: 500;
}

.re-page-header {
	margin-bottom: var(--re-gap-md);
}

.re-page-title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 700;
}

.re-entry-content {
	max-width: 780px;
}

.re-entry-content h1,
.re-entry-content h2,
.re-entry-content h3,
.re-entry-content h4 {
	margin: 1.75rem 0 0.875rem;
}

.re-entry-content p {
	margin-bottom: 1.25rem;
	line-height: 1.8;
}

.re-entry-content a {
	color: var(--re-orange);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.re-entry-content img {
	border-radius: var(--re-radius-md);
	margin: 1.5rem 0;
}

.re-entry-content blockquote {
	border-left: 4px solid var(--re-orange);
	padding: 1rem 1.5rem;
	background: var(--re-light);
	border-radius: 0 var(--re-radius-sm) var(--re-radius-sm) 0;
	margin: 1.5rem 0;
	font-style: italic;
}

.re-entry-content ul,
.re-entry-content ol {
	list-style: initial;
	padding-left: 1.5rem;
	margin-bottom: 1.25rem;
}

.re-entry-content li {
	margin-bottom: 0.5rem;
}

/* Single-Artikel */
.re-single-hero-image {
	margin-bottom: 2.5rem;
	border-radius: var(--re-radius-lg);
	overflow: hidden;
	aspect-ratio: 16/7;
}

.re-single-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.re-single-header {
	margin-bottom: 2.5rem;
}

.re-single-title {
	font-size: clamp(1.75rem, 4vw, 3rem);
	margin: 1rem 0;
	line-height: 1.2;
}

.re-single-author {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-top: 1rem;
}

.re-author-avatar {
	border-radius: 50%;
	width: 40px;
	height: 40px;
}

.re-author-name {
	font-weight: 500;
}

/* Post-Navigation */
.re-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--re-gap-md);
	margin: var(--re-gap-lg) 0;
	padding-top: var(--re-gap-md);
	border-top: 1px solid var(--re-border);
}

.re-post-nav-link {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.re-post-nav-next {
	text-align: right;
}

.re-nav-dir {
	font-size: 0.75rem;
	color: var(--re-gray);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.re-nav-title {
	font-weight: 600;
	transition: color var(--re-duration) var(--re-ease);
}

.re-post-nav-link:hover .re-nav-title {
	color: var(--re-orange);
}

/* ==========================================================================
   13. 404
   ========================================================================== */

.re-404 {
	text-align: center;
	padding: var(--re-gap-xl) 0;
}

.re-404-number {
	font-family: var(--re-font-heading);
	font-size: clamp(6rem, 20vw, 14rem);
	font-weight: 800;
	color: var(--re-light-2);
	line-height: 1;
	margin-bottom: 0;
}

.re-404-title {
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	margin-bottom: 1rem;
}

.re-404-text {
	color: var(--re-gray);
	margin-bottom: 2rem;
}

.re-404-search {
	max-width: 440px;
	margin: 2rem auto 0;
}

/* ==========================================================================
   14. WooCommerce
   ========================================================================== */

.woocommerce ul.products li.product {
	background: var(--re-white);
	border-radius: var(--re-radius-md);
	overflow: hidden;
	box-shadow: var(--re-shadow-sm);
	transition: all var(--re-duration) var(--re-ease);
}

.woocommerce ul.products li.product:hover {
	box-shadow: var(--re-shadow-md);
	transform: translateY(-4px);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var(--re-dark) !important;
	color: var(--re-white) !important;
	border-radius: var(--re-radius-full) !important;
	padding: 0.625rem 1.5rem !important;
	font-family: var(--re-font-main) !important;
	font-weight: 500 !important;
	transition: all var(--re-duration) var(--re-ease) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--re-orange) !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
	background: var(--re-orange) !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background: var(--re-orange-dark) !important;
}

/* ==========================================================================
   14b. Seiten-Layout-Einstellungen (Gutenberg Sidebar)
   ========================================================================== */

/*
 * Standard-Layout (.re-container) wird von page.php gesteuert.
 * Hier werden die Vollbreite-Varianten definiert und
 * die 780px-Inhaltsbegrenzung für fullwidth-Modi aufgehoben.
 */

/* Vollbreite – kein Container, keine max-width */
.re-page-fullwidth {
	width: 100%;
}

/* Vollbreite mit seitlichem Abstand (Padding via Inline-Style in page.php) */
.re-page-fullwidth-padded {
	width: 100%;
	box-sizing: border-box;
}

/*
 * Kritisch: .re-entry-content hat global max-width: 780px.
 * Bei Vollbreite-Layouts muss diese Begrenzung aufgehoben werden,
 * sonst sieht der Nutzer keinen Unterschied zum Standard-Layout.
 */
.re-page-fullwidth .re-entry-content,
.re-page-fullwidth-padded .re-entry-content {
	max-width: none;
	width: 100%;
}

/*
 * VOLLBREITE GLOBAL: Alle .re-container auf dieser Seite aufheben.
 * Wirkt per body-Klasse auf ALLE Bereiche: Hero-Carousel, Sektionen,
 * hardcodierte Container in front-page.php, Widget-Bereiche usw.
 * Das !important schlaegt die spezifischere .re-container-Regel.
 */
body.re-layout-fullwidth .re-container,
body.re-layout-fullwidth-padded .re-container {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* 100 % Breite – Container-Padding beibehalten (Luft an den Seiten) */
body.re-layout-fullwidth .re-container {
	padding-left: clamp(1rem, 4vw, 3rem);
	padding-right: clamp(1rem, 4vw, 3rem);
}

/* 100 % mit eigenem Abstand – Wrapper liefert das Padding, kein doppelter Innenabstand */
body.re-layout-fullwidth-padded .re-container {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Seitentitel im Vollbreite-Modus: kein Container, volles Padding */
.re-page-fullwidth .re-page-header--fw,
.re-page-fullwidth-padded .re-page-header {
	max-width: none;
	padding: 0;
}

/* Breadcrumbs in Vollbreite: eigene Padding-Regel */
.re-page-fullwidth .re-breadcrumbs-wrap,
.re-page-fullwidth-padded .re-breadcrumbs-wrap {
	padding: 0 clamp(1rem, 4vw, 3rem);
}

/* Vollbreite-Padding deaktiviert (body-class re-no-padding) */
body.re-no-padding #re-main,
body.re-no-padding .re-template-content,
body.re-no-padding .re-footer-custom {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Header/Footer ausblenden (body-class via Seiten-Einstellungen) */
body.re-hide-header #re-header,
body.re-hide-header #re-primary-menu {
	display: none !important;
}

body.re-hide-header #re-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.re-hide-footer #re-footer {
	display: none !important;
}

/* ==========================================================================
   15. Page-Builder-Kompatibilität
   ========================================================================== */

/* Elementor */
.re-elementor .re-main,
.elementor-page .re-main {
	padding-top: 0;
}

.elementor-page .re-header {
	/* Elementor übernimmt Header */
}

/* Volle Breite */
.re-page-builder-content {
	width: 100%;
}

.re-page-builder-content .elementor,
.re-page-builder-content .et_builder_outer_content {
	width: 100%;
}

/* Blockiert nicht Page-Builder-CSS */
.re-entry-content .elementor * {
	all: revert;
}

/* ==========================================================================
   16. Barrierefreiheit
   ========================================================================== */

.re-skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	background: var(--re-dark);
	color: var(--re-white);
	padding: 0.625rem 1rem;
	border-radius: 0 0 var(--re-radius-sm) var(--re-radius-sm);
	z-index: 9999;
	font-weight: 600;
	transition: top 0.2s;
}

.re-skip-link:focus {
	top: 0;
	color: var(--re-white);
}

:focus-visible {

}

/* ==========================================================================
   17. Animationen
   ========================================================================== */

@keyframes re-spin {
	to { transform: rotate(360deg); }
}

@keyframes re-fade-in {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes re-slide-up {
	from { opacity: 0; transform: translateY(32px); }
	to   { opacity: 1; transform: translateY(0); }
}

.re-animate-in {
	animation: re-fade-in 0.6s var(--re-ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ==========================================================================
   18. Media Queries
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
	.re-hero-carousel {
		padding: var(--re-hero-carousel-padding-tablet) 0;
	}

	.re-hero-carousel__price-dots {
		max-height: 28px;
	}

	.re-hero-carousel__slide {
		grid-template-columns: 1fr;
	}

	.re-hero-carousel__content {
		max-width: none;
	}

	.re-footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.re-layout--sidebar {
		grid-template-columns: 1fr;
	}

	.re-sidebar {
		position: static;
	}
}

/* Mobil */
@media (max-width: 768px) {
	.re-header-contact {
		display: flex;
		gap: 0.5rem;
	}

	.re-header-manager {
		font-size: 0.75rem;
		max-width: 9rem;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.re-header-phone {
		padding: 0.3125rem 0.625rem 0.3125rem 0.4375rem;
	}

	.re-header-phone-text {
		font-size: 0.75rem;
	}

	.re-header-avatar {
		display: none;
	}

	.re-hero-carousel {
		padding: var(--re-hero-carousel-padding-mobile) 0;
	}

	.re-hero-carousel__title {
		font-size: clamp(1.6rem, 8vw, 2.4rem);
	}

	.re-hero-carousel__subtitle {
		font-size: 0.95rem;
		margin-bottom: 1.25rem;
	}

	.re-hero-carousel__actions {
		gap: 0;
	}

	.re-hero-carousel__button,
	.re-hero-carousel__price {
		font-size: 0.95rem;
	}

	.re-slider {
		aspect-ratio: 4/3;
	}

	.re-footer-grid {
		grid-template-columns: 1fr;
	}

	.re-footer-brand {
		padding-right: 0;
	}

	.re-footer-bottom-inner {
		flex-direction: column;
		text-align: center;
	}

	.re-footer-nav {
		flex-wrap: wrap;
		justify-content: center;
	}

	.re-posts-grid {
		grid-template-columns: 1fr;
	}

	.re-post-nav {
		grid-template-columns: 1fr;
	}
}

/* Sehr kleines Mobil */
@media (max-width: 480px) {
	.re-menu-label {
		display: none;
	}

	.re-hero-carousel__button {
		width: auto;
		min-width: 7.5rem;
	}

	.re-hero-carousel__price {
		min-width: 6rem;
		padding-right: 0.875rem;
		padding-left: 0.875rem;
	}
}
