/* 
   STAPES - Premium Marketing Agency
   Color Palette: White (Background), Muted Blue (#386178), Warm Beige (#d7d5cb), Medium Gray (#6a6a6a)
*/

:root {
    /* Colors */
    --color-bg: #ffffff; /* White background */
    --color-bg-alt: #d7d5cb; /* Warm Beige for sections/footer */
    --color-text: #222222; /* Darker gray for strong contrast */
    --color-text-muted: #6a6a6a; /* Requested gray for body text */
    --color-accent: #386178; /* Primary blue/teal */
    --color-accent-hover: #294859; /* Darker blue for hover states */
    --color-border: rgba(0, 0, 0, 0.08); /* Subtle dark lines */
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Utilities */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-muted);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem); /* Deutlich reduzierter H1 */
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    font-weight: 300;
}

.accent-text {
    color: var(--color-accent);
    font-style: italic;
}

.eyebrow {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

/* --- Layout --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 4rem 0;
}

.dark-bg {
    background-color: var(--color-bg-alt);
}

/* Contrast adjustment for elements on beige background */
.dark-bg p, .footer p {
    color: rgba(34, 34, 34, 0.7); /* Slightly darker for better contrast on beige */
}
.dark-bg .stat-label {
    color: var(--color-accent); /* Blue label pops on beige */
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(56, 97, 120, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
    padding: 0.5rem 0;
}

.btn-secondary:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.btn-outline {
    border-color: var(--color-text);
    color: var(--color-text);
    border-radius: 0;
    padding: 1rem 2.5rem;
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: #ffffff;
    background-color: var(--color-accent);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

/* Das Logo verkleinert sich elegant, sobald der User hinunterscrollt */
.navbar.scrolled .logo-img {
    height: 45px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-links a.active {
    color: var(--color-accent);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
}

/* --- Dropdown Menus --- */
.nav-links li {
    position: relative;
    list-style: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -1rem;
    background-color: var(--color-bg);
    min-width: 270px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border: 1px solid var(--color-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    z-index: 100;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
}

.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin-bottom: 0;
}

.dropdown-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 2rem;
    color: var(--color-text);
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0.05em;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-accent);
}

/* Submenu Level 2 */
.dropdown-submenu {
    position: relative;
}

.dropdown-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 0;
    transform: translateX(10px);
}

.dropdown-submenu:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.arrow {
    font-size: 0.85rem;
    margin-left: 0.5rem;
    color: var(--color-accent);
    transition: var(--transition-smooth);
    vertical-align: middle;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Mobile Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-smooth);
    transform-origin: center;
}

/* --- Hero Section --- */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 10rem;
    padding-bottom: 6rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('../img/hero-bg-4.svg?v=11');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.12;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('../img/hero-bg-4.svg?v=11');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    margin-bottom: 4rem;
    max-width: 650px;
}

.hero-cta {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.mouse {
    width: 20px;
    height: 32px;
    border: 1px solid var(--color-text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background-color: var(--color-text-muted);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* --- Expertise / Services --- */
.services {
    /* Very subtle gray fading to white for a smooth transition from the Hero section */
    background: linear-gradient(to bottom, #f4f4f7 0%, #ffffff 20%);
}

.section-header {
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1px; /* For the borders between */
    background-color: var(--color-border);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.service-card {
    padding: 4rem 3rem;
    background-color: var(--color-bg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(215, 213, 203, 0.4), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.service-card-link {
    display: inline-block;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    color: var(--color-text);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--color-text);
    transition: color 0.2s, border-color 0.2s;
}
.service-card-link i {
    margin-left: 6px;
}
.service-card-link:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.service-card:hover {
    transform: translateY(-5px);
    z-index: 2;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.service-card * {
    position: relative;
    z-index: 1;
}

.service-icon {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-bg-alt); /* using beige for the big icon number */
    margin-bottom: 3rem;
    transition: var(--transition-smooth);
    line-height: 1;
    -webkit-text-stroke: 1px var(--color-border); /* slight outline */
}

.service-card:hover .service-icon {
    color: var(--color-accent);
    -webkit-text-stroke: 0;
    transform: translateY(-10px);
}

/* Dark card variant – prevent light overlay on hover */
.service-card.dark-card:hover::before {
    display: none;
}
.service-card.dark-card:hover {
    background-color: #333 !important;
}

/* --- Trust Section --- */
.trust {
    border-top: 1px solid var(--color-border);
}

.trust-content > h2 {
    color: var(--color-text);
}

.trust-content p {
    margin-bottom: 3rem;
    font-size: 1.5rem;
    max-width: 800px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    border-top: 1px solid var(--color-text);
    padding-top: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

/* --- CTA Section --- */
.cta {
    text-align: center;
    background: linear-gradient(to bottom, #f7f7f5, var(--color-bg));
    padding: 5rem 0;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-content p {
    margin-bottom: 3rem;
    text-align: center;
}

/* --- FAQ Accordion --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
    padding: 1.25rem 1rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "\25B6";
    font-size: 0.85rem;
    color: var(--color-accent);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-item[open] summary::before {
    transform: rotate(90deg);
}

.faq-item[open] summary {
    background-color: var(--color-accent);
    color: #fff;
    padding: 1.25rem 1rem;
}

.faq-item[open] summary::before {
    color: #fff;
}

.faq-answer {
    padding: 1rem 1rem 1.5rem 2.5rem;
}

/* --- Footer --- */
.footer {
    padding: 8rem 0 3rem;
    background-color: var(--color-bg-alt);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.footer-brand .logo {
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 6rem;
}

.link-group h4 {
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
}

.link-group a {
    display: block;
    color: rgba(34, 34, 34, 0.7);
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    font-weight: 500;
    position: relative;
}

.link-group a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.link-group a:hover::after {
    width: 100%;
}

.link-group a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 2px solid transparent;
    border-image: linear-gradient(to right, transparent, var(--color-accent), transparent) 1;
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(34, 34, 34, 0.6);
}

.footer-bottom p {
    font-size: 0.875rem;
    max-width: none;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: rgba(34, 34, 34, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.social-links a:hover {
    color: var(--color-accent);
}

/* --- Animations --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Initial Load Animations */
.fade-in-up {
    animation: fadeInUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.fade-in {
    animation: fadeIn 2s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* --- Content Page Styles --- */
.content-list {
    list-style: none;
    padding: 0;
}

.content-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 300;
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: none;
}

.content-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-accent);
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 300;
    font-size: 1rem;
    color: var(--color-text-muted);
    max-width: none;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--color-accent);
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    flex-shrink: 0;
}

.offer-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.offer-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
}

.offer-table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    font-weight: 300;
    color: var(--color-text-muted);
}

.highlight-quote {
    font-style: italic;
    padding: 1.5rem 2rem;
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-accent);
    margin: 2rem 0;
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 400;
    line-height: 1.6;
}

.product-section {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* --- Page Sidebar Grid (shared layout: 1fr + 350px sidebar) --- */
.page-sidebar-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 900px) {
    .page-sidebar-grid {
        grid-template-columns: 1fr;
    }
    .page-sidebar-grid aside {
        position: static !important;
    }
    .page-sidebar-grid img {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .stats-grid {
        gap: 2rem;
    }
    .stat-number {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    .hero::before {
        background-image: url('../img/hero-bg-mobile.svg?v=1');
    }
    .hero-bg {
        display: none;
    }
    .hero {
        min-height: 55vh;
        padding-top: 10rem;
        padding-bottom: 4rem;
    }
    .hero[style*="min-height: 40vh"] {
        min-height: auto !important;
        padding-top: 9rem !important;
        padding-bottom: 1.5rem !important;
    }
    .hero[style*="min-height: 30vh"] {
        min-height: auto !important;
        padding-top: 9rem !important;
        padding-bottom: 1.5rem !important;
    }
    .page-grid {
        gap: 2rem !important;
        padding-top: 0 !important;
    }
    .hero-content {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        padding: 0;
        margin: 0;
    }
    .hero-subtitle {
        margin-bottom: 2.5rem;
        font-size: 0.95rem;
    }
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .scroll-indicator {
        display: none;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 2.5rem 2rem;
        gap: 0;
        overflow-y: auto;
        transition: var(--transition-smooth);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links > li {
        margin-bottom: 0.6rem;
        width: 100%;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 0.6rem;
    }
    .nav-links > li:last-child {
        border-bottom: none;
    }
    .nav-links a {
        font-size: 1.1rem;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        transform: none;
        min-width: auto;
        padding: 0;
        background: transparent;
        display: none;
        flex-direction: column;
    }
    .dropdown-menu.open {
        display: flex;
        padding: 0.4rem 0 0 1.2rem;
        opacity: 1;
        visibility: visible;
    }
    .dropdown-menu li {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
    }
    .dropdown-menu a {
        font-size: 0.95rem;
        padding: 0.35rem 0;
        justify-content: flex-start;
        background-color: transparent !important;
    }
    .dropdown-menu a:hover,
    .dropdown-menu a:focus {
        background-color: transparent !important;
        color: var(--color-accent);
    }
    .dropdown-menu .sub-menu {
        position: static;
        padding: 0;
        transform: none;
        display: none;
    }
    .dropdown-menu .sub-menu.open {
        display: flex;
        padding-left: 1.2rem;
    }
    .dropdown > a .arrow,
    .dropdown-submenu > a .arrow {
        display: inline-flex;
        align-items: center;
        font-size: 1.1rem;
        transition: var(--transition-smooth);
    }
    .dropdown.open > a .arrow,
    .dropdown-submenu.open > a .arrow {
        transform: rotate(90deg);
    }
    .dropdown-submenu.open > a,
    .dropdown.open > a {
        background-color: transparent !important;
        color: var(--color-accent);
    }
    .hamburger {
        display: flex;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 4rem;
    }
    .footer-brand .logo-img {
        max-width: 200px;
    }
    .footer-links {
        flex-direction: column;
        gap: 3rem;
    }
    /* Content page: sidebar below main */
    [style*="grid-template-columns: 1fr 350px"],
    [style*="grid-template-columns:1fr 350px"],
    [style*="grid-template-columns: 1fr 320px"],
    [style*="grid-template-columns:1fr 320px"],
    [style*="grid-template-columns: 1.8fr 1fr"],
    [style*="grid-template-columns:1.8fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    [style*="grid-template-columns: 1fr 350px"] > aside,
    [style*="grid-template-columns:1fr 350px"] > aside,
    [style*="grid-template-columns: 1fr 320px"] > aside,
    [style*="grid-template-columns:1fr 320px"] > aside,
    [style*="grid-template-columns: 1.8fr 1fr"] > aside,
    [style*="grid-template-columns:1.8fr 1fr"] > aside {
        position: static !important;
    }
    .container {
        padding: 0 4.5%;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        text-align: center;
        padding: 2.5rem 4.5% 7rem !important;
        margin-top: 2rem;
        font-size: 0.7rem;
    }
    .section {
        padding: 3.5rem 0;
    }
    .hero-subtitle {
        max-width: 100% !important;
    }
    .step-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    .offer-table th,
    .offer-table td {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
    .service-card {
        padding: 2rem 1.5rem;
    }
    .service-card h3 {
        font-size: 1.1rem;
    }
    .service-card p {
        font-size: 0.95rem;
    }
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    /* Mobile typography */
    p {
        font-size: 0.95rem;
    }
    .trust-content p {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    .blog-featured {
        padding: 1.25rem;
    }
    .blog-featured h2 {
        font-size: 1.2rem;
    }
    .section-header h2 {
        font-size: 1.6rem;
    }
    /* CTA-Block und Buttons auf Mobile */
    .cta-bottom {
        padding: 1.5rem !important;
    }
    .cta-bottom .btn {
        width: 100%;
        box-sizing: border-box;
        padding: 0.9rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* --- Sidebar Lese-Tipp --- */
.sidebar-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 180px;
    height: 82px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.sidebar {
    width: 200px;
    height: 60px;
    background-color: var(--color-bg-alt);
    color: var(--color-text);
    border-radius: 0;
    border: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    text-decoration: none;
    letter-spacing: 1px;
    line-height: 1.4;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.sidebar:hover {
    background-color: var(--color-border);
    transform: translateY(-3px);
}

.checkmark {
    color: var(--color-accent);
    margin-left: -5px;
    margin-right: 5px;
    font-size: 24px;
}

.close-btn {
    position: absolute;
    top: -5px;
    right: -10px;
    width: 24px;
    height: 24px;
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 0;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    background-color: var(--color-accent-hover);
}

/* --- Botpress Widget --- */
#bp-web-widget {
    right: 4rem !important;
}

/* --- Contact Links (wo.php) --- */
.contact-link {
    transition: color 0.2s;
}
.contact-link:hover {
    color: var(--color-accent) !important;
}
.dark-card .btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .sidebar-container {
        left: 15px;
        bottom: 20px;
    }
    #bp-web-widget {
        right: 1rem !important;
    }
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 120px;
    right: 32px;
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--color-accent-hover);
}
@media (max-width: 768px) {
    .back-to-top {
        bottom: 110px;
        right: 18px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* --- FAQ Accordion Animation --- */
.faq-item[open] .faq-answer {
    animation: faq-open 0.35s ease;
}
@keyframes faq-open {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
