/* ===========================
   MAYFAIR THEME – DESIGN SYSTEM
   =========================== */

/* ── LOCAL FONTS ─────────────────────────────── */

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ── DESIGN TOKENS ───────────────────────────── */

:root {
    --red: #cc0000;
    --red-dark: #a50000;
    --dark: #2d2d2d;
    --dark-2: #1e1e1e;
    --dark-footer-bar: #383838;
    --grey: #4a4a4a;
    --grey-light: #f5f5f5;
    --white: #ffffff;
    --font-body: 'Montserrat', sans-serif;
    --transition: 0.3s ease;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.18);
    --header-height: 88px; /* utility ~22px + main nav ~66px */
}

/* ── RESET ───────────────────────────────────── */

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

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--dark);
    background: var(--white);
    font-size: 16px;
    line-height: 1.6;
/*
    -webkit-hyphens: auto;
    hyphens: auto;
*/
    /*   word-break: break-word; */
/*     word-break: normal; */
}

h2, h3, .section-title, .cta-title {
    font-weight: 500;
}

h1 { font-size: clamp(1.7rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

img { max-width: 100%; height: auto; display: block; }
a, a:link, a:visited { text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 24px;
}

a, a:link, a:visited { text-decoration: none; color: var(--red); }
a:hover, a:focus { color: var(--grey); }

.richtext-content a, .richtext-content a:link, .richtext-content a:visited { text-decoration: none; color: var(--red); }
.richtext-content a:hover, .richtext-content a:focus { color: var(--grey); }

/* ===========================
   HEADER
   =========================== */

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), box-shadow var(--transition);
}

/* Sticky: full white background */
.site-header.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

/* When scrolled: logo-box blends into white header */
.site-header.scrolled .header-logo {
    background: transparent;
}

/* Header layout: CSS Grid – left fills, right auto-sizes to content+padding */
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    width: 100%;
}

/* nav-toggle sits in left column on mobile (hidden on desktop) */
.nav-toggle {
    grid-column: 1;
    grid-row: 1;
}

.header-left {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* centering done via padding-top in container-fluid-left */
}

/* Logo area: white background to right edge,
   right padding mirrors container margin → logo stays within content width */
.header-logo {
    grid-column: 2;
    grid-row: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 8px max(24px, calc((100vw - 1520px) / 2 + 24px)) 8px 28px;
    transition: background var(--transition);
}

.header-logo a {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 120px;
    width: auto;
}

/* Fluid left container – padding matches container left edge */
.container-fluid-left {
    padding-left: max(24px, calc((100vw - 1520px) / 2 + 24px));
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* Align items to left so nav-menu only spans its own content width */
    align-items: flex-start;
    justify-content: flex-start;
    /* padding-top 12px: places main nav center exactly at logo center (y=68px) */
    padding-top: 12px;
}

/* ── Utility bar (meta navigation) ── */
.nav-utility {
    display: flex;
    align-items: center;
    padding: 4px 0;
    font-size: 0.79rem;
}

.nav-utility-inner {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-utility-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.85) !important;
    text-decoration: none;
    padding: 2px 6px;
    transition: color var(--transition);
    font-size: 0.79rem;
}

.nav-utility-link:hover { color: var(--red) !important; }

/* When sticky: dark text */
.site-header.scrolled .nav-utility-link { color: var(--grey) !important; }
.site-header.scrolled .nav-utility-link:hover { color: var(--red) !important; }

.nav-utility-link img { height: 15px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.site-header.scrolled .nav-utility-link img { filter: opacity(0.6); }

.nav-utility-divider {
    color: rgba(255,255,255,0.3);
    padding: 0 6px;
}

.site-header.scrolled .nav-utility-divider { color: rgba(0,0,0,0.2); }

/* Language switcher dropdown */
.lang-switcher {
    position: relative;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.79rem;
    color: rgba(255,255,255,0.85);
    padding: 2px 6px;
    transition: color var(--transition);
}

.lang-toggle:hover { color: var(--white); }

/* When sticky */
.site-header.scrolled .lang-toggle { color: var(--grey); }
.site-header.scrolled .lang-toggle:hover { color: var(--red); }

.lang-flag-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.lang-flag-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lang-code {
    font-weight: 600;
    letter-spacing: 0.05em;
}

.lang-caret {
    font-size: 0.65rem;
    opacity: 0.6;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    min-width: 140px;
    display: none;
    z-index: 200;
    border-top: 2px solid var(--red);
}

.lang-switcher.open .lang-dropdown,
.lang-switcher:focus-within .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--dark);
    text-decoration: none;
    transition: background var(--transition);
}

.lang-option:hover { background: var(--grey-light); }
.lang-option.active { font-weight: 700; }

/* Nav-menu: only as wide as the links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.25);
}

/* Sticky: transparent (white header already provides bg) */
.site-header.scrolled .nav-menu {
    background: transparent;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-menu a:hover { color: var(--red); }

.nav-menu a.active {
    color: var(--red);
}

/* Sticky: dark text */
.site-header.scrolled .nav-menu a {
    color: var(--dark);
}

.site-header.scrolled .nav-menu a:hover { color: var(--red); }

.site-header.scrolled .nav-menu a.active {
    color: var(--red);
}

/* CTA button in nav */
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--red);
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 8px;
    transition: background var(--transition);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--red-dark);
    color: #ffffff !important;
}

/* old nav-logo – replaced by header-logo */

/* Hamburger toggle – hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    align-self: center;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height); left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: 32px 24px;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    border-top: 2px solid var(--red);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color var(--transition);
}

.mobile-menu a.active {
    color: var(--red);
}

.mobile-menu a:hover { color: var(--red); }

.mobile-menu .mobile-cta {
    margin-top: 16px;
    background: var(--red);
    color: #ffffff;
    text-align: center;
    padding: 14px 24px;
    border-bottom: none;
    font-size: 0.9rem;
}

.mobile-menu .mobile-cta:hover { background: var(--red-dark); color: #ffffff; }

.mobile-lang {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.mobile-lang a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(0,0,0,0.5);
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: none !important;
    padding: 0 !important;
}

.mobile-lang a.active { color: var(--red); }

.mobile-portal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--grey);
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: none !important;
}

.mobile-portal-link img {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.mobile-portal-link:hover { color: var(--red); }

/* ===========================
   BUTTONS
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--red);
    color: var(--white) !important;
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(204,0,0,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark) !important;
}

.btn-dark {
    background: var(--dark);
    color: var(--white) !important;
}

.btn-dark:hover {
    background: var(--dark-2);
    transform: translateY(-2px) !important;
}

/* ===========================
   SECTION BASE
   =========================== */

section { padding: 90px 0; }

.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h1.section-title {
	font-size: clamp(1.7rem, 4vw, 3rem);
}

.section-text {
	color: var(--grey);
    max-width: 100%;
/*     line-height: 1.75; */
    font-size: 1rem;
}

.section-text p { margin-bottom: 20px; }

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 50px;
    gap: 24px;
}

/* ===========================
   HERO – Video full background (full width + height)
   Caption overlay bottom-left, mail button bottom-right
   =========================== */

.hero-section {
    position: relative;
    height: 940px;
    overflow: hidden;
    padding-top: 0;
}

/* Video covers 100% width and height */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    z-index: 0;
}

/* Fallback image – hidden on desktop, shown on mobile instead of video */
.hero-fallback-img {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Caption: white box overlaid at bottom-left – wide enough for title on one line */
.hero-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    background: #ffffff;
    padding: 32px 60px 44px max(24px, calc((100vw - 1520px) / 2 + 24px));
    z-index: 2;
}

.hero-tag {
    font-weight: 400;
    font-size: 36px;
    color: var(--dark);
    margin-bottom: 6px;
}

.hero-title {
    font-family: var(--font-body);
    font-size: 48px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.05;
    margin-bottom: 10px;
    color: var(--dark);
}

.hero-subtitle {
    font-size: 36px;
    color: #979392;
    line-height: 1.4;
    font-weight: 400;
}

/* Mail button: bottom-right, aligned to container right edge */
.hero-mail-btn {
    position: absolute;
    bottom: 36px;
    right: max(24px, calc((100vw - 1520px) / 2 + 24px));
    width: 52px;
    height: 52px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition);
}

.hero-mail-btn:hover {
    background: var(--red-dark);
    transform: scale(1.08);
}

.hero-mail-btn img {
    width: 22px;
    height: 22px;
    filter: invert(1);
}

/* ===========================
   INTRO SECTION
   =========================== */

.intro {
    background: var(--white);
    padding: 210px 0 70px;
}

.intro-inner {
    max-width: 100%;
}

.intro .section-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 32px;
}

/*
.intro .section-text {
    max-width: 900px;
}
*/

/* ===========================
   SERVICES – WHITE, CENTERED
   =========================== */

.services {
    background: #ffffff;
    padding: 60px 0 100px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 60px 40px 50px;
    text-align: center;
    border: none;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

/* Alle Karten normal weiß – rot NUR beim Hover */
.service-card:hover {
    background: var(--red);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.service-card:hover .service-title,
.service-card:hover p,
.service-card:hover div.blog-meta span { color: var(--white) !important; }

.service-card:hover .service-icon img {
    filter: brightness(0) invert(1);
}

/* Roten Trennstrich-Effekt im Hover-State ausblenden (Hintergrund ist bereits rot) */
.service-card:hover::before { transform: scaleX(0); }

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Render SVG icons in theme red */
    filter: invert(13%) sepia(99%) saturate(5399%) hue-rotate(4deg) brightness(86%) contrast(117%);
}

.service-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--dark);
    letter-spacing: 0;
    text-transform: none;
}

.service-card p {
    font-size: 1rem;
    color: var(--grey);
    line-height: 1.7;
    text-align: justify;
}

/* ===========================
   EINSATZGEBIETE
   =========================== */
   
.einsatzgebiete .section-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 32px;
}
   
.einsatzgebiete .pills {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 15px;
}   
   
.einsatzgebiete .pill {
	padding: 5px 10px;
	background: var(--grey-light);
	color: var(--dark);
	border-radius: 10px;
}

/* ===========================
   PIKETT BANNER
   =========================== */

.pikett {
    position: relative;
    padding: 70px 0;
    overflow: hidden;
}

.pikett-bg {
    position: absolute;
    inset: 0;
}

.pikett-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

/* Grey overlay over the background image */
.pikett-overlay {
    position: absolute;
    inset: 0;
    background: rgba(150,150,150,0.75);
}

.pikett-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.pikett-label {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}

.pikett-title {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pikett-text {
    color: var(--white);
/*     max-width: 680px; */
    margin: 0 auto 36px;
/*     line-height: 1.9; */
    font-size: 1.5rem;
    font-weight: 400;
}

/* Highlighted words in pikett text – larger font, no bold/italic */
.pikett-text strong,
.pikett-text b {
    color: var(--white);
    font-weight: 400;
    font-size: 1.35em;
}

.pikett-text em,
.pikett-text i {
    font-style: normal;
    font-weight: 400;
    font-size: 1.35em;
    color: var(--white);
}

/* ===========================
   BLOG PREVIEW
   =========================== */

.blog-preview {
    background: var(--white);
    padding: 90px 0;
}

.blog-preview-header {
    margin-bottom: 48px;
}

.blog-preview-title {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--dark);
    margin-bottom: 16px;
}

.blog-preview-more {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

/* Blog slider wrapper */
.blog-slider {
    position: relative;
    overflow: hidden;
    padding: 8px 0;
    margin: -8px 0;
}

.blog-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.blog-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Right column: sub-grid with top-wide + bottom-two */
.blog-right-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

/* First card in right col spans both columns */
.blog-right-col .blog-card:first-child {
    grid-column: 1 / -1;
}

/* Featured card – left, full height */
.blog-card-featured {
    min-height: 540px;
}

/* Slider navigation */
.blog-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
}

.blog-slider-prev,
.blog-slider-next {
    background: none;
    border: 1px solid rgba(0,0,0,0.15);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--dark);
    font-size: 1.1rem;
}

.blog-slider-prev:hover,
.blog-slider-next:hover {
    border-color: var(--red);
    color: var(--red);
}

.blog-slider-dots {
    display: flex;
    gap: 8px;
}

.blog-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    border: none;
    cursor: pointer;
    transition: background var(--transition);
    padding: 0;
}

.blog-slider-dot.active {
    background: var(--red);
}

/* Cards – image as full background, text overlay at bottom */
.blog-card {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--grey-light);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all var(--transition);
}

.blog-card:hover {
    box-shadow: none;
}

/* White overlay body at the bottom */
.blog-card .blog-card-body {
    background: rgba(255,255,255,0.92);
    padding: 16px 20px;
}

/* Meta line: date | category */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.blog-meta-date {
    font-size: 0.75rem;
    color: var(--grey);
    font-weight: 400;
}

.blog-meta-cat {
    font-size: 0.75rem;
    color: var(--grey);
    letter-spacing: 0.04em;
}

.blog-card-title {
    font-family: var(--font-body);
/*     font-size: 1rem; */
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0;
}

.blog-card-featured .blog-card-body .blog-card-title {
    margin-bottom: 12px;
}

/*
.blog-card-featured .blog-card-title {
    font-size: 1.15rem;
}
*/

.blog-card-title a {
    color: var(--red);
    transition: color var(--transition);
}

.blog-card-title a:hover { color: var(--red-dark); }

.blog-card-small .blog-card-reveal {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.blog-card-small:hover .blog-card-reveal {
    max-height: 200px;
    opacity: 1;
}

.blog-card-small .blog-card-reveal .blog-card-summary {
    margin-bottom: 0;
}

.blog-card-summary {
    font-size: 1rem;
    color: var(--grey);
    line-height: 1.65;
    margin-bottom: 20px;
}

.blog-card-small .blog-card-reveal .blog-card-author {
    margin-top: 10px;
    padding-top: 10px;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.07);
}

.blog-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--grey-light);
    border: none;
}

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

.blog-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blog-author-name {
    font-size: 0.82rem;
    color: var(--dark);
}

.blog-author-role {
    font-size: 0.72rem;
    color: rgba(0,0,0,0.4);
}

/* ===========================
   DARK SECTION WITH CROSS PATTERN
   (Partner + Values + Testimonials)
   =========================== */

.section-dark {
    background-color: var(--dark);
    background-image: url('../images/mayfair-hausservice-kreuztapete.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.section-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 30, 30, 0.75);
    pointer-events: none;
}

.section-dark > .container {
    position: relative;
    z-index: 1;
}

/* ===========================
   PARTNER SECTION
   =========================== */

.partner {
    padding: 140px 0;
}

.partner-inner {
    position: relative;
    margin-bottom: 60px;
    min-height: 460px;
}

.partner-content .section-title { color: var(--white); }
.partner-content .section-text { color: var(--white); max-width: 100%; }
.partner-content .section-text p { margin-bottom: 20px; }

.partner-content {
    width: 45%;
}

.partner-image {
    position: absolute;
    top: -140px;
    right: calc(-1 * max(24px, (100vw - 1520px) / 2) - 30px);
    width: 50vw;
    overflow: hidden;
}

.partner-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    display: block;
}

/* Partner logos row – centered */
.partner-logos-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 40px 0;
    margin-bottom: 60px;
}

.partner-logos-row img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: opacity var(--transition);
}

.partner-logos-row img:hover { opacity: 1; }

/* Values sub-section */
.values-section {
    padding-top: 0;
}

.values-heading {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 36px;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

/*
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    color: var(--white);
}
*/

.values-grid {
  columns: 2;
  gap: 32px;
  color: var(--white);
}

@media (max-width: 768px) {
    .values-grid {
	  columns: 1;
	}
}

.values-grid p {
  break-inside: avoid;
  margin: 0 0 32px 0;
}

/* ===========================
   TESTIMONIALS – DARK WITH PATTERN
   =========================== */

.testimonials {
    padding: 80px 0;
}

.testimonials-header {
    text-align: center;
    color: var(--white);
    margin-bottom: 52px;
}

.testimonials-title {
    font-family: var(--font-body);
/*     font-size: clamp(1.4rem, 2.5vw, 2rem); */
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.testimonials-subtitle {
    font-size: 1rem;
/*     color: rgba(255,255,255,0.55); */
	color: var(--white);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Testimonial Slider */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 36px;
}

.testimonials-slider.dragging {
    cursor: grabbing;
}

.testimonial-track {
    display: flex;
    transition: transform 0.4s ease;
}

.testimonials-slider.dragging .testimonial-track {
    transition: none;
}

.testimonial-card {
    flex-shrink: 0;
    width: calc(33.333% - 16px);
    margin-right: 24px;
    padding: 32px 24px;
    text-align: center;
    box-sizing: border-box;
}

.testimonial-card:last-child {
    margin-right: 0;
}

.testimonial-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 60px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar--initials {
    background: var(--grey-light);
}

.testimonial-initials {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1;
    letter-spacing: 0.02em;
}

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

.testimonial-name {
    font-weight: 500;
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: none;
    letter-spacing: 0;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.7;
    margin-bottom: 16px;
}

.testimonial-stars {
    color: #f5a623;
    font-size: 1rem;
    letter-spacing: 2px;
}

/* Dots */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background var(--transition);
}

.slider-dot.active {
    background: var(--red);
}

/* ===========================
   CTA BANNER (RED)
   =========================== */

.cta-banner {
    background: var(--red);
    overflow: hidden;
    padding-block: 0;
}

.cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
}

/* Mountains – LEFT full column, no padding */
.cta-mountains-col {
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.cta-mountains-col img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

/* Text – RIGHT column, vertically centered */
.cta-content {
    padding: 70px 60px 70px 40px;
}

.cta-title {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 0.02em;
    line-height: 1.15;
    text-transform: uppercase;
}

.cta-text {
    color: rgba(255,255,255,0.88);
    font-size: 1.5rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

.cta-text a {
    color: var(--white);
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cta-topline {
    color: rgba(255,255,255,0.88);
    font-size: 1.2rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

/* ===========================
   FOOTER – DARK, CENTERED
   =========================== */

.site-footer {
    background: var(--dark);
}

.footer-main {
    padding: 60px 0 40px;
    text-align: center;
}

.footer-cross {
    margin-bottom: 32px;
}

.footer-cross img {
    height: 80px;
    width: auto;
    display: inline-block;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255,255,255,0.65);
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition);
}

.footer-social a img {
    height: 20px;
    width: auto;
    filter: invert(1);
    opacity: 0.55;
    transition: opacity var(--transition);
    display: block;
}

.footer-social a:hover img { opacity: 1; }

.footer-copyright {
    background: var(--dark-footer-bar);
    padding: 16px 24px;
    text-align: center;
}

.footer-copyright p {
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

/* ===========================
   INNER PAGE HERO
   =========================== */

.page-hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
}

.page-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero .section-label { color: rgba(255,255,255,0.5); }
.page-hero .section-title { color: var(--white); }
.page-hero .section-text { color: rgba(255,255,255,0.65); }

.breadcrumb {
    display: flex;
    align-items: start;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
}

.breadcrumb a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: rgba(255,255,255,0.6); }

/* Breadcrumb dark variant (for content area) */
.breadcrumb--dark { color: var(--grey); }
.breadcrumb--dark a { color: var(--grey); }
.breadcrumb--dark a:hover { color: var(--red); }
.breadcrumb--dark span { color: var(--dark); }

/* Page hero – plain (image only, no overlay, no text) */
.page-hero--plain {
    padding-top: 0;
    padding-bottom: 0;
    height: 640px;
}

.page-hero--plain .page-hero-bg img {
    opacity: 1;
}

/* Page header (breadcrumb + title in content area) */
.page-header {
    margin-bottom: 48px;
}

.page-header .breadcrumb {
    color: var(--grey);
}

.page-header .breadcrumb a { color: var(--grey); }
.page-header .breadcrumb a:hover { color: var(--red); }
.page-header .breadcrumb span { color: var(--dark); }

.page-header .section-title {
    color: var(--dark);
}

.page-header .section-text {
    color: var(--grey);
}

/* ===========================
   SERVICE PAGE CONTENT
   =========================== */

.service-detail {
    padding: 90px 0;
}

.service-detail-inner {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 80px;
    align-items: start;
}

.service-detail-content h2 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin: 36px 0 14px;
}

.service-detail-content p {
    color: var(--grey);
    line-height: 1.75;
    margin-bottom: 20px;
    font-size: 1rem;
}

.service-features {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--grey-light);
    border-left: 3px solid var(--red);
}

.service-feature-icon {
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
}

.service-feature h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.service-feature p {
    font-size: 1rem;
    color: var(--grey);
    margin: 0;
}

.service-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-card {
    background: var(--grey-light);
    padding: 32px;
    margin-bottom: 24px;
}

.sidebar-card h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.sidebar-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.875rem;
    color: var(--grey);
}

.sidebar-card ul li::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

.sidebar-cta {
    background: var(--red);
    padding: 32px;
    text-align: center;
}

.sidebar-cta h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.sidebar-cta p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ===========================
   BLOG PAGE
   =========================== */

/* Pagination – Mayfair theme colors */
.cms-pagination-link {
    border-color: rgba(0,0,0,0.15) !important;
    color: var(--dark) !important;
    border-radius: 0 !important;
}

.cms-pagination-link:hover {
    background: var(--red) !important;
    color: var(--white) !important;
    border-color: var(--red) !important;
}

.cms-pagination-active {
    background: var(--red) !important;
    color: var(--white) !important;
    border-color: var(--red) !important;
}

.cms-pagination-active:hover {
    background: var(--red-dark) !important;
    border-color: var(--red-dark) !important;
}

.cms-pagination-link svg {
    stroke: var(--dark) !important;
}

.cms-pagination-link:hover svg {
    stroke: var(--white) !important;
}

.blog-page {
    padding: 210px 0;
}

/* Blog Index – 2-column card grid (no sidebar) */
.blog-index-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.blog-index-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 36px;
    transition: all var(--transition);
}

.blog-index-card-image {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.blog-index-card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-index-card:hover .blog-index-card-image img {
    transform: scale(1.05);
}

.blog-index-card-body h2 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    color: var(--red);
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color var(--transition);
}

.blog-index-card:hover h2 {
    color: var(--red-dark);
}

.blog-index-card-body p {
    font-size: 1rem;
    color: var(--grey);
    line-height: 1.65;
    margin-bottom: 16px;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.blog-card-footer .blog-card-author {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.blog-card-footer .blog-author-avatar {
    width: 32px;
    height: 32px;
}

.blog-page-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.blog-list-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 36px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

.blog-list-card .blog-card-image {
    border-radius: 4px;
    overflow: hidden;
}

.blog-list-card .blog-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-list-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-list-card .blog-card-image {
    height: 200px;
}

.blog-list-card h2 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color var(--transition);
}

.blog-list-card:hover h2 { color: var(--red); }

.blog-list-card p {
    font-size: 1rem;
    color: var(--grey);
    line-height: 1.7;
    margin-bottom: 16px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    transition: gap var(--transition);
}

.read-more:hover { gap: 10px; }

.blog-sidebar {
    position: sticky;
    top: 200px;
    align-self: start;
}

.blog-sidebar-widget {
    background: var(--grey-light);
    padding: 28px;
    margin-bottom: 28px;
}

.blog-sidebar-widget h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--red);
}

.blog-sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.blog-sidebar-widget ul li a {
    font-size: 0.875rem;
    color: var(--grey);
    transition: color var(--transition);
}

.blog-sidebar-widget ul li a:hover { color: var(--red); }

/* Single Post */
.post-content {
    max-width: 780px;
}

.post-content h2 {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--dark);
    margin: 36px 0 14px;
}

.post-content h3 {
    color: var(--dark);
    margin: 36px 0 14px;
}

.post-content p {
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.post-content img {
    width: 100%;
    margin: 32px 0;
}

.post-content ul {
    list-style: disc;
    margin-bottom: 20px;
}

.post-content ul li {
    margin-left: 20px;
}

.post-content ul li p {
    margin-bottom: 0;
}

.post-content hr {
	margin: 20px 0;
}

.post-content a, .post-content a:link, .post-content a:visited { text-decoration: none; color: var(--red); }
.post-content a:hover, .post-content a:focus { color: var(--grey); }

/* ===========================
   BLOG META (generic)
   =========================== */

.blog-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.72rem;
    color: rgba(0,0,0,0.45);
    font-weight: 500;
}

.blog-meta .category {
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.blog-meta-sep {
    color: rgba(0,0,0,0.25);
}

.blog-meta-cat {
    font-size: 0.75rem;
    color: var(--grey);
    font-weight: 400;
}

/* ===========================
   CONTACT PAGE
   =========================== */

.contact-page {
    padding: 90px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-family: var(--font-body);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--grey);
    line-height: 1.75;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-detail-icon {
    width: 42px; height: 42px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
}

.contact-detail h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 1rem;
    color: var(--dark);
    margin: 0;
}

#map {
    height: 300px;
    margin-top: 24px;
    border: 1px solid rgba(0,0,0,0.1);
}

.contact-form h2 {
    font-family: var(--font-body);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.contact-form > p {
    color: var(--grey);
    font-size: 1rem;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.15);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--dark);
    outline: none;
    transition: border-color var(--transition);
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    margin-top: 8px;
}

.form-note {
    font-size: 0.78rem;
    color: rgba(0,0,0,0.4);
    margin-top: 12px;
}

/* ===========================
   PAGE CONTENT SECTION (Subpages)
   =========================== */

.page-content-section {
    padding: 210px 0;
}

.page-content-inner {
    max-width: none;
}

.page-hero--has-image .page-hero-bg img {
    opacity: 0.35;
}

/* ===========================
   BLOG SIDEBAR EXTRAS
   =========================== */

.blog-author-sidebar {
    display: flex;
    align-items: center;
    gap: 14px;
}

.blog-author-sidebar .blog-author-avatar {
    width: 48px;
    height: 48px;
}

.blog-author-sidebar .blog-author-name {
    font-weight: 500;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grey-light);
    border: none;
    cursor: pointer;
    color: var(--grey);
    transition: all var(--transition);
}

.share-btn:hover {
    background: var(--red);
    color: var(--white);
}

a.share-btn {
	color: var(--grey);
    text-decoration: none;
}

/* Related Posts */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-post {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.related-post-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-post:hover .related-post-image img {
    transform: scale(1.08);
}

.related-post-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.related-post-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.35;
    transition: color var(--transition);
}

.related-post:hover .related-post-title {
    color: var(--red);
}

.related-post-date {
    font-size: 0.75rem;
    color: var(--grey);
}

/* ===========================
   PLACEHOLDERS
   =========================== */

.partner-img-placeholder {
    width: 100%;
    height: 460px;
    background: linear-gradient(135deg, #3a3a3a 0%, #555 100%);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c8c8c8 0%, #e0e0e0 100%);
    border-radius: 50%;
}

/* ===========================
   ANIMATIONS
   =========================== */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

@media (max-width: 768px) {
    .fade-up {
        opacity: 1;
    }
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
    .partner-inner { gap: 48px; }
    .service-detail-inner { gap: 48px; }
    .header-logo img { height: 90px; }
}

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-right-col { grid-template-columns: 1fr 1fr; }
    .blog-right-col .blog-card:first-child { grid-column: 1 / -1; }
    .partner-inner { grid-template-columns: 1fr; }
    .testimonial-card { width: calc(50% - 12px); }
    .contact-grid { grid-template-columns: 1fr; }
    .service-detail-inner { grid-template-columns: 1fr; }
    .blog-index-grid { grid-template-columns: 1fr; }
    .blog-page-grid { grid-template-columns: 1fr; gap: 48px; }
    .blog-list-card { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .values-grid { grid-template-columns: 1fr; }
    .hero-layout { height: 700px; }
}

@media (max-width: 768px) {
    :root {
        --header-height: 90px;
    }

    .nav-menu { display: none; }
    .nav-utility { display: none; }

    /* Mobile header: white bg, logo left (bigger), menu icon right */
    .site-header { background: #ffffff; }
    .header-logo { grid-column: 1; padding: 8px 16px 8px 36px; background: transparent; }
    .header-logo img { height: 64px; }
    .nav-toggle { display: flex; grid-column: 2; justify-self: end; margin-right: 50px; }

    /* Hero: show fallback image, hide video */
    .page-hero--plain { height: 400px; margin-bottom: -100px; }
    .hero-section { height: 670px; }
    .intro { padding: 100px 0 70px; }
    .hero-video { display: none; }
    .hero-fallback-img { display: block; }
    .hero-mail-btn { bottom: 180px; top: auto; right: 16px; }
    .hero-layout { grid-template-columns: 1fr; height: 520px; }
    .hero-right-col { display: none; }
    .hero-caption { padding: 24px 24px 32px; width: 100%; }
    .hero-title { font-size: 26px; }
    .hero-tag, .hero-subtitle { font-size: 15px; }

    .testimonial-card { width: 100%; margin-right: 24px; }
    .form-row { grid-template-columns: 1fr; }
    section { padding: 60px 0; }
    /* Blog: all cards same size, 1 per slide, swipe */
    .blog-slider { overflow: visible; }
    .blog-slider-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        transition: none;
        gap: 16px;
        padding-bottom: 8px;
    }
    .blog-slide { display: contents; }
    .blog-right-col { display: contents; }
    .blog-card-featured,
    .blog-card-small {
        flex: 0 0 100%;
        min-height: 450px;
        scroll-snap-align: start;
    }
    .blog-card-featured { min-height: 450px; }
    .blog-slider-nav { display: none; }
    .blog-slider-track::-webkit-scrollbar { display: none; }
    .blog-slider-track { -ms-overflow-style: none; scrollbar-width: none; }
    .blog-mobile-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }
    .blog-mobile-dots .slider-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(0,0,0,0.15);
        border: none;
        cursor: pointer;
        transition: background var(--transition);
        padding: 0;
    }
    .blog-mobile-dots .slider-dot.active { background: var(--red); }
    .blog-card-small .blog-card-reveal { max-height: none; opacity: 1; }

    /* Partner: Bild oben, Text darunter */
    .partner-inner { display: flex; flex-direction: column-reverse; min-height: auto; }
    .partner-content { width: 100%; }
    .partner-image {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-bottom: 30px;
    }
    .partner-image img { height: 280px; }

    .partner-logos-row { gap: 28px; }

    .cta-inner { display: flex; flex-direction: column; position: relative; }
    .cta-mountains-col { position: absolute; bottom: 0; left: 0; width: 230px; }
    .cta-content { padding: 50px 24px 120px 24px; text-align: center; }

    .footer-main { padding: 60px 15px 40px; }
    .footer-nav { gap: 16px; }
    .footer-nav a { font-size: 0.82rem; }
}

.entry-content {
    margin-bottom: 50px;
}

.entry-content :is(h2, h3, h4, h5, h6) {
    font-family: var(--font-body);
/*     font-size: 1.4rem; */
    font-weight: 400;
    color: var(--dark);
    margin: 36px 0 14px;
}

.entry-content > p {
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.entry-content img {
    width: 100%;
    margin: 32px 0;
}

.entry-content ul {
    list-style: disc;
    margin-bottom: 20px;
}

.entry-content ul li {
    margin-left: 20px;
}

.entry-content ul li p {
	margin-bottom: 0;
}

@media (max-width: 480px) {
    .nav-utility { display: none; }
    :root { --header-height: 72px; }
    .hero-video-wrap { height: 220px; }
    .services-grid { grid-template-columns: 1fr; }
}

/* ===========================
   CMS CORE CSS – VARIABLE OVERRIDES
   =========================== */

:root {
    --cms-color-primary: #cc0000;
    --cms-color-primary-hover: #a50000;
    --cms-color-text: #2d2d2d;
    --cms-color-text-muted: #4a4a4a;
    --cms-color-text-light: #999;
    --cms-color-border: #e0e0e0;
    --cms-color-bg: #ffffff;
    --cms-color-bg-muted: #f5f5f5;
    --cms-color-bg-code: #f5f5f5;
    --cms-color-blockquote-border: #cc0000;
    --cms-font-sans: 'Montserrat', sans-serif;
    --cms-radius: 0;
}

/* ===========================
   BUILDER BLOCKS – MAYFAIR OVERRIDES
   =========================== */

/* Block spacing */
.builder-block { margin: 2.5rem 0; }

/* Headings: Mayfair uppercase style */
.builder-block--heading h2,
.builder-block--heading h3,
.builder-block--heading h4 {
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.builder-block--heading h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.builder-block--heading h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

/* Quote: red left border */
.builder-block--quote blockquote {
    border-left: 4px solid var(--red);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    background: var(--grey-light);
    font-style: normal;
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.65;
}
.builder-block--quote cite {
    color: var(--grey);
    font-size: 1rem;
    margin-top: 0.75rem;
}

/* CTA: Mayfair red banner */
.builder-block--cta {
    background: var(--red);
    border-radius: 0;
    padding: 3.5rem 3rem;
    text-align: center;
}
.builder-block--cta h2 {
    font-family: var(--font-body);
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}
.builder-block--cta p {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.88);
    margin-bottom: 2rem;
}
.builder-block--cta a {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--red);
    color: var(--white);
    border: 2px solid var(--white);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border-radius: 0;
    transition: background var(--transition), color var(--transition);
}
.builder-block--cta a:hover {
    background: var(--white);
    color: var(--dark);
}

/* Image: no border-radius */
.builder-block--image img { border-radius: 0; }
.builder-block--image figcaption {
    font-size: 0.85rem;
    color: var(--grey);
    margin-top: 0.75rem;
}

/* Video: no border-radius */
.builder-block--video iframe { border-radius: 0; }

/* Divider */
.builder-block--divider hr {
    border-top: 2px solid var(--red);
    max-width: 80px;
    margin: 2.5rem 0;
}

/* Columns: slightly larger gap */
.builder-columns { gap: 2rem; }

/* Text block in builder */
.builder-block--text .cms-content,
.builder-block--text .entry-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--dark);
}

.builder-block--text .cms-content h2,
.builder-block--text .entry-content h2 {
    font-family: var(--font-body);
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.builder-block--text .cms-content :is(h3, h4, h5, h6),
.builder-block--text .entry-content :is(h3, h4, h5, h6) {
	font-weight: 500;
}

.builder-block--text .cms-content ul li p {
	margin-bottom: 0;
}

.builder-block--columns.grey-cards .builder-column .builder-block {
    background: var(--grey-light);
    padding: 28px;
    margin-bottom: 28px;
}

.builder-block--columns.grey-cards .builder-column .builder-block h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red);
}

.builder-block.ansprechpartner img {
	border-radius: 100%;
}

.collabo-appointly-form {
	width: 0;
	height: 0;
	overflow: hidden;
}
