/* 
Theme Name: Dennin Gettorf
Description: Premium landing page theme inspired by Explorate.ai
*/

:root {
    /* Colors - Refined Palette */
    --blue: #0073FF;
    --blue-hover: #005bb5;
    --dark-blue: #0E1E57;
    --midnight: #001237;
    --gray-text: #555555;
    --gray-light: #F5F7FA;
    --white: #ffffff;
    --red: #E63946;
    --cyan: #00B4D8;

    /* Gradients */
    --gradient-hero: radial-gradient(circle at 70% 30%, #f0f7ff 0%, #ffffff 70%);
    --gradient-blue: linear-gradient(135deg, #0073FF 0%, #0050b3 100%);
    --gradient-dark: linear-gradient(135deg, #0E1E57 0%, #001237 100%);

    /* Typography */
    --font-primary: 'IBM Plex Sans', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);

    /* Spacing */
    --container-padding: 2rem;
    --section-padding: 10rem;

    /* Radius */
    --radius-sm: 0.8rem;
    --radius-md: 1.6rem;
    --radius-lg: 2.4rem;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    /* 1rem = 10px */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    overflow-x: hidden;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

section {
    scroll-margin-top: 100px;
}


body {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    /* Increased base size for readability */
    line-height: 1.6;
    color: var(--midnight);
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4.8rem;
    font-weight: 700;
}

h2 {
    font-size: 3.6rem;
    font-weight: 600;
}

h3 {
    font-size: 2.4rem;
    font-weight: 500;
}

p {
    margin-bottom: 2rem;
    color: var(--gray-text);
}

/* Layout */
.container {
    width: 100%;
    padding-right: var(--container-padding);
    padding-left: var(--container-padding);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -1.5rem;
    margin-left: -1.5rem;
}

.col-lg-6,
.col-md-6,
.col-md-5 {
    position: relative;
    width: 100%;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
}

@media (min-width: 992px) {
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    .col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 3.2rem;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 115, 255, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 115, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--blue);
    color: var(--blue);
}

.btn-secondary:hover {
    background-color: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.8rem 4rem;
    font-size: 1.8rem;
}

.text-link {
    color: var(--blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.text-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--blue);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.text-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Header - Glassmorphism */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 2rem 0;
    border-bottom: none;
    transition: all 0.3s ease;
}

.page-header.scrolled {
    padding: 1.5rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.page-header.legal-header {
    background-color: var(--midnight) !important;
    padding: 1.5rem 0 !important;
    box-shadow: var(--shadow-sm);
}

.page-header.legal-header .logo img {
    filter: brightness(0) invert(1) !important;
}

.page-header.legal-header .desktop-nav a {
    color: var(--white) !important;
    opacity: 1 !important;
}

/* Fix dropdown visibility in legal header (force dark text on white box) */
.page-header.legal-header .dropdown-menu a {
    color: var(--midnight) !important;
}

.page-header.legal-header .hamburger span {
    background-color: var(--white) !important;
}

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

.logo span {
    font-family: var(--font-primary);
    letter-spacing: -0.03em;
}

.page-header .logo img {
    transition: filter 0.3s ease;
    filter: brightness(0) invert(1);
}

.page-header.scrolled .logo img {
    filter: none;
}

.desktop-nav {
    display: none;
}

@media (min-width: 992px) {
    .desktop-nav {
        display: block;
    }

    .desktop-nav>ul {
        display: flex;
        gap: 4rem;
    }

    .desktop-nav a {
        font-weight: 500;
        font-size: 1.6rem;
        color: var(--white);
        opacity: 0.9;
    }

    .page-header.scrolled .desktop-nav a {
        color: var(--midnight);
    }

    .desktop-nav a:hover {
        color: var(--blue);
        opacity: 1;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-actions .btn {
    display: none;
}

@media (min-width: 768px) {
    .header-actions .btn {
        display: inline-flex;
    }
}

.hamburger-wrap {
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

@media (min-width: 992px) {
    .hamburger-wrap {
        display: none;
    }
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    margin-bottom: 6px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.page-header.scrolled .hamburger span {
    background-color: var(--blue);
}

/* Mobile Menu */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--gradient-dark);
    z-index: 999;
    padding-top: 12rem;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

#menu-overlay.active {
    transform: translateY(0);
}

.mobile-menu-list a {
    display: block;
    color: var(--white);
    font-size: 2.2rem;
    font-weight: 700;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#menu-overlay.active .mobile-menu-list a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* Hero Section */
.hero-section {
    padding-top: 18rem;
    padding-bottom: 12rem;
    position: relative;
    background: var(--gradient-dark);
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.hero-headline {
    font-size: 5.6rem;
    margin-bottom: 2.4rem;
    color: var(--white);
    line-height: 1.1;
}

@media (max-width: 767px) {
    .hero-headline {
        font-size: 3.8rem;
    }
}

.hero-subline {
    font-size: 2.2rem;
    color: var(--gray-light);
    margin-bottom: 4rem;
    font-weight: 400;
}

@media (max-width: 767px) {
    .hero-subline {
        font-size: 1.6rem;
        margin-bottom: 3rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.trustline {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-image {
    margin-top: 6rem;
    position: relative;
}

@media (min-width: 992px) {
    .hero-section .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .hero-image {
        margin-top: 0;
        width: 45%;
    }

    .hero-content {
        width: 50%;
    }

    .hero-headline {
        font-size: 6.4rem;
    }
}

.img-placeholder {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.img-placeholder::after {
    content: 'Image Placeholder';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #aaa;
    font-weight: 500;
}

.hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.hero-curve svg path {
    fill: var(--white);
}

/* Value Prop */
.value-prop-section {
    padding: var(--section-padding) 0;
    background-color: var(--white);
}

.section-headline {
    text-align: center;
    margin-bottom: 6rem;
    font-size: 4rem;
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 768px) {
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .value-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.value-item {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item h3 {
    font-size: 2rem;
    color: var(--blue);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--blue);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 1.6rem;
}

.section-header h2 {
    color: var(--midnight);
    margin-bottom: 1.6rem;
}

.section-header p {
    font-size: 1.8rem;
    color: var(--gray-text);
}

/* Services (Bento) */
.services-section {
    padding: var(--section-padding) 0;
    background-color: var(--gray-light);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto auto;
    }

    .bento-item.large {
        grid-column: span 2;
    }

    .bento-item.full-width {
        grid-column: 1 / -1;
    }
}

.bento-item {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

@media (max-width: 767px) {
    .bento-item {
        padding: 2rem;
    }
}

.bento-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 48, 135, 0.1);
}

.bento-item h3 {
    color: var(--midnight);
    margin-bottom: 8px;
    font-size: 20px;
}

.bento-item p {
    font-size: 15px;
    margin: 0;
    color: var(--gray-text);
}

/* Featured Bento Item */
.bento-item.featured {
    background: linear-gradient(135deg, #0E1E57, #001237);
    color: white;
    padding: 48px 40px;
}

.bento-item.featured h3 {
    color: white;
    font-size: 28px;
}

.bento-item.featured p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 17px;
}

.bento-item.featured::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 115, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.bento-icon {
    width: 48px;
    height: 48px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.bento-item.featured .bento-icon {
    background: rgba(255, 255, 255, 0.1);
}

/* Why Us */
.why-us-section {
    padding: var(--section-padding) 0;
}

.lead {
    font-size: 2rem;
    font-weight: 400;
    color: var(--midnight);
    margin-bottom: 3rem;
}

.promise-list {
    margin: 4rem 0;
}

.promise-list li {
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    position: relative;
    font-size: 1.8rem;
}

.promise-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--blue);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 10px;
}

.micro-badge {
    font-size: 1.4rem;
    color: #888;
    padding-top: 3rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Social Proof */
.social-proof-section {
    padding: var(--section-padding) 0;
    background-color: var(--gray-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 6rem 0;
}

@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    background: var(--white);
    padding: 4rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.review-card::before {
    content: '“';
    font-size: 8rem;
    color: rgba(0, 115, 255, 0.1);
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-family: serif;
    line-height: 1;
}

.review-card p {
    position: relative;
    z-index: 1;
    font-style: italic;
}

.review-card cite {
    display: block;
    margin-top: 2rem;
    font-style: normal;
    color: var(--midnight);
    font-weight: 600;
    font-size: 1.6rem;
}

/* Google Widget */
.google-widget-container {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.google-review-card {
    background: white;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #eee;
    text-decoration: none;
    max-width: 100%;
}

.google-review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.google-logo-wrap {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.google-text-content {
    display: flex;
    flex-direction: column;
}

.google-rating-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    color: var(--midnight);
    line-height: 1.2;
}

.google-rating-score {
    font-size: 1.8rem;
}

.google-stars {
    color: #FBBC05;
    letter-spacing: -2px;
    font-size: 1.8rem;
}

.google-review-count {
    font-size: 1.2rem;
    color: #777;
    margin-top: 0.2rem;
}

.google-action-btn {
    background: #f1f5f9;
    color: var(--midnight);
    padding: 0.8rem 1.6rem;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 1rem;
    display: none;
}

@media (min-width: 576px) {
    .google-action-btn {
        display: block;
    }
}

.google-review-card:hover .google-action-btn {
    background: var(--blue);
    color: white;
}

/* Gallery Section */
.gallery-section {
    padding: var(--section-padding) 0;
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.gallery-pages {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 280px;
}

@media (min-width: 576px) {
    .gallery-pages {
        min-height: 580px;
    }
}

@media (min-width: 992px) {
    .gallery-pages {
        min-height: 580px;
    }
}

.gallery-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s;
    z-index: 1;
}

.gallery-page.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 280px;
    position: relative;
    background: #f8f9fa;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eef2f6 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-weight: 500;
    font-size: 1.4rem;
    position: relative;
    overflow: hidden;
}

.gallery-img-placeholder::after {
    content: 'Bild Platzhalter';
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Gallery Navigation - Side Arrows */
.gallery-nav-btn {
    background: var(--white);
    border: 1px solid #eee;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--midnight);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    z-index: 5;
}

.gallery-nav-btn:hover {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Hide side arrows on mobile, show below */
@media (max-width: 767px) {
    .gallery-container {
        flex-direction: column;
    }

    .gallery-nav-btn {
        display: none;
    }

    .gallery-container::after {
        content: '';
        display: flex;
        gap: 2rem;
    }
}

.gallery-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--blue);
    transform: scale(1.2);
}

/* Competence */
.competence-section {
    padding: var(--section-padding) 0;
    background: var(--gradient-dark);
    color: var(--white);
}

.competence-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 4rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.competence-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.competence-card h3 {
    color: #4da3ff;
    margin-bottom: 2.5rem;
}

.competence-card p {
    color: rgba(255, 255, 255, 0.8);
}

.competence-card ul {
    margin-top: 2rem;
}

.competence-card li {
    margin-bottom: 1.5rem;
    list-style: none;
    padding-left: 2.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.competence-card li::before {
    content: '✓';
    color: #4da3ff;
    position: absolute;
    left: 0;
    top: 0;
}

/* FAQ */
.faq-section {
    padding: var(--section-padding) 0;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 2.5rem 0;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--midnight);
    transition: color 0.3s ease;
}

.accordion-header:hover {
    color: var(--blue);
}

.accordion-header::after {
    content: '+';
    font-size: 2.4rem;
    color: var(--blue);
    font-weight: 400;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-content p {
    padding-bottom: 3rem;
    color: var(--gray-text);
    font-size: 1.8rem;
}

/* Contact */
.contact-section {
    padding: var(--section-padding) 0;
    background-color: var(--gray-light);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-info {
    width: 100%;
    padding: 6rem;
}

.map-container {
    width: 100%;
    min-height: 400px;
    background: #eee;
    position: relative;
}

@media (min-width: 992px) {
    .contact-info {
        width: 50%;
    }

    .map-container {
        width: 50%;
    }
}

/* Contact Person Card */
.contact-person-card {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.8rem 2.4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    margin: 2rem 0;
    border: 1px solid rgba(0, 115, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-person-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 115, 255, 0.12);
    border-color: rgba(0, 115, 255, 0.2);
}

.contact-person-avatar {
    width: 120px !important;
    height: 150px !important;
    min-width: 120px;
    max-width: 120px !important;
    border-radius: var(--radius-md);
    object-fit: cover;
    object-position: center 0%;
    box-shadow: 0 6px 16px rgba(0, 115, 255, 0.15);
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .contact-person-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 2.4rem;
    }

    .contact-person-avatar {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 1/1;
        object-position: center 20%;
    }
}

.contact-person-info {
    font-size: 1.6rem;
    color: var(--gray-text);
    line-height: 1.5;
}

.contact-person-info strong {
    color: var(--midnight);
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
}


.contact-details p {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-ctas {
    margin: 4rem 0;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-footer {
    font-size: 1.4rem;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 3rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Footer */
.site-footer {
    background: var(--midnight);
    color: white;
    padding: 80px 0 40px;
    font-size: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
    width: 100%;
    /* Ensure full width */
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 1.5rem;
    max-width: 300px;
    margin-top: 16px;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 1.4rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--blue);
    border-color: var(--blue);
    transform: translateY(-4px);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Contact List */
.contact-list {
    list-style: none;
    margin: 3rem 0;
    padding: 0;
}

.contact-list li {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-list li:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-label {
    font-weight: 700;
    color: var(--midnight);
    font-size: 1.6rem;
    display: block;
}

.contact-value {
    font-size: 1.8rem;
    color: var(--gray-text);
    text-decoration: none;
}

.contact-value.highlight {
    color: var(--red);
    font-weight: 500;
}

.contact-value.highlight:hover {
    text-decoration: underline;
}

/* Image Styles */
.hero-img-real {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.team-img-container {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.team-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Menu Extras */
.mobile-menu-list .menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
    padding: 0;
}

.mobile-menu-list .menu-label {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    padding: 0;
    border: none;
    font-weight: 600;
}

/* Desktop Dropdown */
.desktop-nav ul li {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    min-width: 200px;
    border-radius: var(--radius-sm);
    flex-direction: column;
    gap: 0 !important;
    margin-top: 1rem;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 1rem 2rem;
    color: var(--midnight) !important;
    font-size: 1.5rem !important;
    white-space: nowrap;
    opacity: 1 !important;
}

.dropdown-menu a:hover {
    background: var(--gray-light);
    color: var(--blue) !important;
}

.arrow {
    font-size: 0.8em;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown.active .arrow {
    transform: rotate(180deg);
}

/* Chat Widget */
#dennin-chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 30px;
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#dennin-chat-btn:hover {
    transform: scale(1.1);
    background-color: var(--blue-hover);
}

#dennin-chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 700px;
    max-height: 80vh;
    /* Ensure it fits on smaller screens */
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    display: none;
    overflow: hidden;
    border: 1px solid #ddd;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#dennin-chat-container.active {
    display: block;
    /* We use JS to trigger opacity transition slightly after display block */
}

#dennin-chat-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Pulse Animation for attention */
@keyframes chat-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 115, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 115, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 115, 255, 0);
    }
}

#dennin-chat-btn.pulse {
    animation: chat-pulse 2s infinite;
}

@media (max-width: 991px) {
    .why-us-section .row {
        flex-direction: column-reverse;
    }

    .why-us-section h2 {
        margin-top: 4rem;
    }
}

/* Handy-Optimierung */
@media (max-width: 480px) {
    #dennin-chat-container {
        width: 95%;
        right: 2.5%;
        bottom: 90px;
        height: 80vh;
        max-height: calc(100vh - 110px);
        border-radius: 16px;
    }

    #dennin-chat-btn {
        bottom: 25px;
        right: 25px;
    }

    .contact-ctas {
        flex-direction: column;
        width: 100%;
    }

    .contact-ctas .btn {
        width: 100%;
    }
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 18, 55, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
    color: var(--blue);
}/* -------------------------------------------------------------
   Cookie Banner
   ------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--midnight);
    color: var(--white);
    padding: 3rem 2rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    /* Above chat widget */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 800px;
    text-align: center;
}

.cookie-content h3 {
    margin-bottom: 1rem;
    font-size: 2.2rem;
    color: var(--white);
}

.cookie-content p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cookie-content a {
    color: var(--blue);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 1.2rem 2.4rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-accept {
    background-color: var(--blue);
    color: var(--white);
}

.btn-accept:hover {
    background-color: var(--blue-hover);
    transform: translateY(-2px);
}

.btn-decline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: rgba(255, 255, 255, 0.7);
}

.btn-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white) !important;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 2.5rem 1.5rem;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .cookie-buttons button {
        width: 100%;
    }
}