/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
   :root {
    /* Color Palette */
    --primary-dark: #00254d;
    --primary-light: #f9f4ee;
    --accent: #c4ac92;
    --accent-hover: #b09980;
    --text-color: #58595b;
    --text-light: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f4eee7;
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-serif: 'Marcellus', serif;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows */
    --shadow-sm: 0 4px 10px rgba(0, 37, 77, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 37, 77, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 37, 77, 0.12);

    /* Footer adaptation variables */
    --footer-bg: var(--bg-light);
    --footer-text: var(--text-color);
    --footer-title: var(--primary-dark);
    --footer-border: rgba(0, 37, 77, 0.1);
    --footer-link: var(--text-color);
    --footer-link-hover: var(--accent);
}

:root.dark-mode {
    --primary-dark: #fcf9f5;
    --primary-light: #01060d; /* Even deeper midnight blue */
    --accent: #e6ceb3; /* Softer, more luxurious gold */
    --text-color: #94a3b8; /* Blue-gray for better readability */
    --text-light: #f8fafc;
    --bg-white: #020817; /* Slate-950 inspired */
    --bg-light: #0f172a; /* Slate-900 inspired */
    --border-color: rgba(255, 255, 255, 0.08);

    /* Footer adaptation variables */
    --footer-bg: #01040a;
    --footer-text: rgba(255, 255, 255, 0.6);
    --footer-title: #ffffff;
    --footer-border: rgba(255, 255, 255, 0.05);
    --footer-link: rgba(255, 255, 255, 0.6);
    --footer-link-hover: var(--accent);
}

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

html {
    scroll-behavior: smooth;
    font-size: var(--zoom, 85%);
    transition: font-size 0.3s ease;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary-light);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2.5rem);
}

.section-padding {
    padding: clamp(4rem, 10vw, 10rem) 0;
}

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

.text-center {
    text-align: center;
}

.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--primary-dark);
    line-height: 1.1;
    font-weight: 400;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    color: #ffffff; /* Force white in hero regardless of global light-text variable */
    font-style: normal;
    font-family: var(--font-primary);
    font-weight: 300;
}

.hero-title-top {
    font-size: 0.55em;
    display: inline-block;
    margin-bottom: 0.2em;
    letter-spacing: 0;
    color: inherit;
}

.hero-title .fw-bold {
    font-weight: 600;
}

.hero-title .text-accent {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--accent);
}

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

.section-title {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1.5rem;
}

.subtitle {
    display: block;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    /* backdrop-filter transition is longer to reveal smoothly on page load */
    transition: backdrop-filter 1.8s cubic-bezier(0.16, 1, 0.3, 1),
                -webkit-backdrop-filter 1.8s cubic-bezier(0.16, 1, 0.3, 1),
                all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    position: relative;
    z-index: 1;
    /* Start with no blur; JS adds .page-loaded to body which triggers smooth reveal */
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

/* Inner Spotlight (follows mouse) */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: radial-gradient(circle 130px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.28), transparent);
    /* Clearly visible at rest for the alive animation */
    opacity: 0.45;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

/* Gradient Stroke (follows mouse) */
.btn::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 7px;
    padding: 1px;
    background: radial-gradient(circle 100px at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent), transparent 50%),
                linear-gradient(to right, rgba(196, 172, 146, 0.3), rgba(196, 172, 146, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -2;
}

.btn:hover::before,
.btn:hover::after {
    opacity: 1;
}

/* Page-load blur reveal — triggered by body.page-loaded (set by JS after load) */
body.page-loaded .btn                   { backdrop-filter: blur(5px);  -webkit-backdrop-filter: blur(5px);  }
body.page-loaded .btn-accent            { backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); }
body.page-loaded .btn-outline-light     { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
body.page-loaded .header .btn-primary   { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.btn-primary {
    background-color: var(--primary-dark);
    color: var(--text-light);
    border: 1px solid var(--primary-dark);
}
.btn-primary:hover {
    background-color: rgba(0, 37, 77, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: transparent;
    color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.btn-accent {
    background-color: rgba(196, 172, 146, 0.35);
    border: 1px solid rgba(196, 172, 146, 0.4);
    color: #ffffff; /* Reverted to white */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.btn-accent:hover {
    background-color: rgba(196, 172, 146, 0.55);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(196, 172, 146, 0.2);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-light);
}
.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: transparent;
    color: var(--text-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 1.5rem 3rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: rgba(255, 255, 255, 0.03); /* Extremely subtle white tint */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

/* When mobile menu is open, force light logo regardless of scroll state */
.header.menu-open .logo-dark { display: none !important; }
.header.menu-open .logo-light { display: block !important; }

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo-img {
    height: 70px;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled .logo-img {
    height: 70px;
}

.header .logo-dark { display: none; }
.header .logo-light { display: block; }

.header.scrolled .logo-dark { display: block; }
.header.scrolled .logo-light { display: none; }

.nav-list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 0.5rem 0;
}

.header.scrolled .nav-link {
    color: var(--primary-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-fast);
}

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

.header .btn-primary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.header .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: transparent;
}

.header.scrolled .btn-primary {
    background-color: rgba(0, 37, 77, 0.8);
    border: 1px solid rgba(0, 37, 77, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header.scrolled .btn-primary:hover {
    background-color: rgba(0, 37, 77, 0.6);
    color: white;
    border-color: transparent;
}

/* Mega Menu */
.has-dropdown {
    position: static; /* Allows the mega menu to center relative to the full header/viewport */
}

.arrow {
    font-size: 0.8em;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    width: 900px;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-radius: 20px;
    padding: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1000;
}

/* Invisible bridge to maintain hover state across the gap */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -10%;
    width: 120%;
    height: 50px;
}

.mega-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(20px);
    pointer-events: auto;
}

.header.scrolled .mega-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    filter: blur(10px);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.has-dropdown:hover .mega-menu .mega-menu-grid,
.mega-menu.active .mega-menu-grid {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: var(--text-light);
}

.header.scrolled .mega-menu-item {
    color: var(--primary-dark);
    background: rgba(0, 37, 77, 0.03);
    border-color: rgba(0, 37, 77, 0.05);
}

.mega-menu-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.header.scrolled .mega-menu-item:hover {
    background: rgba(0, 37, 77, 0.08);
}

.mega-menu-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.mega-menu-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.header.scrolled .mega-menu-content h4 {
    color: var(--primary-dark);
}

.mega-menu-content p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}

.header.scrolled .mega-menu-content p {
    color: var(--text-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-light);
    position: relative;
    transition: var(--transition-fast);
}

.header.scrolled .hamburger {
    background-color: var(--primary-dark);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: inherit;
    left: 0;
    transition: var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,37,77,0.4) 0%, rgba(0,37,77,0.8) 100%);
}

.hero-content {
    max-width: 1000px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.hero-disclaimer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0;
}

/* ==========================================================================
   Expertise Section
   ========================================================================== */
.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.expertise-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.2rem;
    border-radius: 24px;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.feature-item:hover {
    background: rgba(0, 37, 77, 0.04);
    transform: translateY(-5px);
}

.dark-mode .feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

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

.feature-icon svg {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-item:hover .feature-icon svg {
    fill: var(--accent);
    stroke: var(--accent);
    transform: scale(1.1);
}

.feature-content h4 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: var(--primary-dark);
    font-family: var(--font-primary);
}

.dark-mode .feature-content h4 {
    color: #ffffff;
}

.feature-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    color: var(--text-color);
}

.feature-extra {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-top: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-item:hover .feature-extra {
    max-height: 120px;
    opacity: 0.8;
    margin-top: 0.8rem;
}

.expertise-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid rgba(0,37,77,0.1);
    padding-top: 2rem;
}

.dark-mode .expertise-stats {
    border-top-color: rgba(255,255,255,0.1);
}

.skill-pipe {
    position: relative;
}

.pipe-bg {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    position: relative;
    /* overflow: hidden; Removed to show tooltip */
}

.dark-mode .pipe-bg {
    background: rgba(255, 255, 255, 0.1);
}

.pipe-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--accent));
    border-radius: 4px;
    transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-mode .pipe-fill {
    background: linear-gradient(90deg, var(--accent), #ffffff);
}

.skill-tooltip {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 260px;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.2rem;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    text-align: left;
}

.skill-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(10, 22, 40, 0.95) transparent transparent transparent;
}

.skill-pipe:hover .skill-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.skill-tooltip strong {
    display: block;
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    font-family: var(--font-primary);
}

.skill-tooltip p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.expertise-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(196, 172, 146, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    animation: float 6s ease-in-out infinite;
    z-index: 5;
}

/* Ensure image takes full space */
.expertise-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

:root.dark-mode .service-card {
    background: linear-gradient(145deg, #020817, #0f172a);
    border-color: var(--border-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
}

.service-link:hover {
    color: var(--primary-dark);
}

.service-disclaimer {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 8rem 0;
    text-align: center;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 37, 77, 0.85);
}

.cta-container {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 700px;
}

.cta-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--footer-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

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

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-desc {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footer-disclaimer-small {
    font-size: 0.75rem;
    opacity: 0.5;
}

.footer-title {
    color: var(--footer-title);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-list li, .hours-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.contact-list .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    min-width: 20px;
    margin-top: 4px;
}

.contact-list li {
    align-items: flex-start;
}

.contact-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.contact-list a:hover {
    color: var(--accent);
}

.contact-links {
    display: flex;
    flex-direction: column;
}

.hours-list span {
    font-weight: 600;
    color: var(--footer-title);
    min-width: 100px;
}

.consultation-notice {
    background-color: rgba(0,0,0,0.03);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    border-left: 3px solid var(--accent);
}

:root.dark-mode .consultation-notice {
    background-color: rgba(255,255,255,0.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--footer-border);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a:hover {
    color: var(--footer-link-hover);
}

/* Footer Logo Swapping: dark logo in light mode, light logo in dark mode */

:root:not(.dark-mode) .footer .logo-dark { display: block; }
:root:not(.dark-mode) .footer .logo-light { display: none; }

:root.dark-mode .footer .logo-dark { display: none; }
:root.dark-mode .footer .logo-light { display: block; }

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

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

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

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Hero & Header Animations
   ========================================================================== */
.block-span {
    display: inline-block;
}

.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.btn-icon {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-animate:hover .btn-icon {
    transform: translateX(4px);
}

.floating-icon {
    position: absolute;
    color: var(--accent);
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
    animation: floatIcon 8s ease-in-out infinite;
}

@keyframes floatIcon {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -20px) rotate(5deg); }
    66% { transform: translate(-15px, 20px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.icon-1 { top: 20%; right: 15%; width: 60px; height: 60px; animation-delay: 0s; }
.icon-2 { bottom: 30%; left: 10%; width: 80px; height: 80px; animation-delay: 2s; }
.icon-3 { top: 40%; left: 20%; width: 50px; height: 50px; animation-delay: 4s; }



/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
        text-align: center;
    }

    /* Mobile mega menu — inline accordion within the nav drawer */
    .mega-menu {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        /* Closed state: completely invisible, no space taken */
        background: rgba(255, 255, 255, 0.06) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: 1px solid transparent !important;
        border-radius: 16px !important;
        padding: 0 !important;
        margin-top: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        box-shadow: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
        display: block !important;
        z-index: auto !important;
        transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    margin-top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease,
                    border-color 0.3s ease !important;
    }

    .mega-menu.active {
        max-height: 700px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        padding: 0.6rem !important;
        margin-top: 0.5rem !important;
        border-color: rgba(255, 255, 255, 0.08) !important;
    }

    /* Mega menu grid as column list on mobile */
    .mega-menu .mega-menu-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.4rem !important;
        filter: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        grid-template-columns: unset !important;
    }

    .mega-menu .mega-menu-item {
        padding: 0.7rem 0.8rem !important;
        gap: 0.8rem !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.07) !important;
        color: white !important;
        display: flex !important;
        align-items: center !important;
    }

    .mega-menu .mega-menu-item:hover {
        background: rgba(255, 255, 255, 0.12) !important;
        transform: none !important;
    }

    .mega-menu .mega-menu-item img {
        width: 40px !important;
        height: 40px !important;
        border-radius: 8px !important;
        object-fit: cover !important;
    }

    .mega-menu .mega-menu-content h4 {
        font-size: 0.95rem !important;
        color: rgba(255, 255, 255, 0.95) !important;
        margin-bottom: 0.1rem !important;
    }

    .mega-menu .mega-menu-content p {
        font-size: 0.78rem !important;
        color: rgba(255, 255, 255, 0.5) !important;
        display: block !important;
        margin: 0 !important;
    }

    /* Rotate arrow when dropdown is open */
    .has-dropdown:has(.mega-menu.active) .arrow {
        transform: rotate(180deg);
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
    }
}

/* Mobile-only nav elements — hidden on desktop, shown by 768px media query below */
.mobile-nav-footer { display: none; }
.mobile-nav-icon-btn { display: none; }
.mobile-nav-termin-btn { display: none; }

@media (max-width: 768px) {
    /* Base mobile header — transparent (over hero image) */
    .header {
        padding: 1rem 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: transparent;
        border-bottom: none;
        box-shadow: none;
        transform: none !important;
        -webkit-transform: none !important;
    }

    /* When menu is OPEN — force transparent so nav-blur-bg shows through */
    .header.menu-open {
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    .header.scrolled {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        background-color: rgba(255, 255, 255, 0.85);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Center logo, hamburger on left */
    .header-container {
        padding: 0 1.5rem;
        position: relative;
        justify-content: center;
    }

    .logo {
        position: relative;
        z-index: 1002;
    }

    .logo-img {
        height: 58px;
    }

    /* On transparent mobile header always show light (white) logo */
    .header .logo-dark { display: none !important; }
    .header .logo-light { display: block !important; }
    /* When scrolled, restore the dark logo */
    .header.scrolled .logo-dark { display: block !important; }
    .header.scrolled .logo-light { display: none !important; }
    /* When menu is open, ALWAYS force light logo (overrides scrolled) */
    .header.menu-open .logo-dark,
    .header.scrolled.menu-open .logo-dark { display: none !important; }
    .header.menu-open .logo-light,
    .header.scrolled.menu-open .logo-light { display: block !important; }

    /* Hide desktop CTA button; Beratung button not shown on mobile header */
    .header > .container > .btn-primary,
    .header .btn-primary:not(.mobile-menu-toggle ~ *) {
        display: none;
    }

    /* Dark overlay behind nav when open */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    .nav-overlay.active {
        display: block;
    }

    /* Mobile nav — slides from LEFT, always navy blue, blurred glass */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 82%;
        max-width: 320px;
        height: 100vh;
        /* Nav itself is transparent — blur-bg handles the dark glass look */
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 7rem 2.5rem 2.5rem;
        /* Start off-screen to the left */
        transform: translateX(-100%);
        transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        display: flex;
        flex-direction: column;
        z-index: 1000;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
        overflow-y: auto;
    }

    .main-nav.active {
        transform: translateX(0);
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.45);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    /* Mobile nav links always white — immune to theme variables */
    .main-nav .nav-link,
    .main-nav .nav-link:hover {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 1.3rem;
        font-weight: 500;
    }

    /* Hamburger button: absolute left, always white */
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        left: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1005;
        padding: 10px;
        background: none;
        border: none;
        cursor: pointer;
    }

    /* Hamburger: white by default (over dark hero image) */
    .mobile-menu-toggle .hamburger,
    .mobile-menu-toggle .hamburger::before,
    .mobile-menu-toggle .hamburger::after {
        background-color: #ffffff !important;
        transition: background-color 0.3s ease;
    }

    /* Hamburger turns dark when header is scrolled (white background) */
    .header.scrolled .mobile-menu-toggle .hamburger,
    .header.scrolled .mobile-menu-toggle .hamburger::before,
    .header.scrolled .mobile-menu-toggle .hamburger::after {
        background-color: var(--primary-dark) !important;
    }

    /* X icon — translateY brings bars to center THEN rotate for perfect X.
       Use high-specificity selectors to override the .scrolled navy color */
    .mobile-menu-toggle.active .hamburger,
    .header.scrolled .mobile-menu-toggle.active .hamburger {
        background-color: transparent !important;
    }
    .mobile-menu-toggle.active .hamburger::before,
    .header.scrolled .mobile-menu-toggle.active .hamburger::before {
        transform: translateY(8px) rotate(45deg);
        background-color: #ffffff !important;
    }
    .mobile-menu-toggle.active .hamburger::after,
    .header.scrolled .mobile-menu-toggle.active .hamburger::after {
        transform: translateY(-8px) rotate(-45deg);
        background-color: #ffffff !important;
    }

    /* ---- Mobile Nav Footer (sticky bottom bar) ---- */
    .mobile-nav-footer {
        display: flex;
        flex-direction: column;
        margin-top: auto;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        flex-shrink: 0;
    }

    .mobile-nav-footer-actions {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 1.2rem;
    }

    .mobile-nav-icon-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        flex-shrink: 0;
        transition: all 0.3s ease;
    }

    .mobile-nav-icon-btn:hover,
    .mobile-nav-icon-btn:active {
        background: var(--accent);
        border-color: var(--accent);
        color: white;
        transform: scale(1.05);
    }

    .mobile-nav-termin-btn {
        display: inline-flex !important; /* override global display:none */
        flex: 1;
        padding: 0.75rem 1rem !important;
        font-size: 0.78rem !important;
        letter-spacing: 0.08em !important;
        background: rgba(196, 172, 146, 0.25) !important;
        border: 1px solid rgba(196, 172, 146, 0.4) !important;
        color: white !important;
        border-radius: 10px !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        white-space: nowrap;
    }

    .mobile-nav-termin-btn:hover {
        background: rgba(196, 172, 146, 0.45) !important;
        transform: none !important;
    }

    .mobile-nav-footer-legal {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        justify-content: center;
    }

    .mobile-nav-footer-legal a {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.4);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .mobile-nav-footer-legal a:hover {
        color: var(--accent);
    }

    .mobile-nav-footer-legal span {
        color: rgba(255, 255, 255, 0.2);
        font-size: 0.75rem;
    }

    /* Ensure nav-list scrolls but footer stays visible */
    .nav-list {
        flex: 1;
        overflow-y: auto;
        padding-bottom: 0;
    }


    .hero-content {
        text-align: center;
        padding-top: 4rem;
    }


    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    /* ============================================================
       EXPERTISE SECTION — FULL MOBILE REDESIGN
       ============================================================ */

    /* Hide the right-side image on mobile — not needed */
    .expertise-image-wrapper {
        display: none;
    }

    /* Feature items: single column, horizontal card style */
    .expertise-features {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 2rem;
    }

    .feature-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        padding: 1.3rem 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(0, 37, 77, 0.07) !important;
        transform: none !important;
        cursor: default !important;
    }

    .dark-mode .feature-item {
        border-bottom-color: rgba(255, 255, 255, 0.06) !important;
    }

    .feature-item:last-child {
        border-bottom: none !important;
    }

    .feature-item:hover {
        background: transparent !important;
        transform: none !important;
    }

    .feature-icon {
        margin-top: 3px;
        flex-shrink: 0;
    }

    .feature-content h4 {
        font-size: 1.05rem;
    }

    .feature-content p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }

    /* Hide the feature-extra expand text on mobile (not needed) */
    .feature-extra {
        display: none !important;
    }

    /* ---- Skill bars: stats section ---- */
    .expertise-stats {
        border-top: 1px solid rgba(0, 37, 77, 0.08);
        padding-top: 1.5rem;
        gap: 0;
    }

    .dark-mode .expertise-stats {
        border-top-color: rgba(255, 255, 255, 0.07);
    }

    /* Each skill-pipe is a tap-friendly row */
    .skill-pipe {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(0, 37, 77, 0.06);
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    .dark-mode .skill-pipe {
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }

    .skill-pipe:last-child {
        border-bottom: none;
    }

    .skill-info {
        margin-bottom: 0.6rem;
        font-size: 0.95rem;
    }

    /* Chevron indicator appended via CSS */
    .skill-info::after {
        content: '▾';
        font-size: 0.8rem;
        color: var(--accent);
        display: inline-block;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin-left: 0.4rem;
        opacity: 0.8;
    }

    .skill-pipe.tap-active .skill-info::after {
        transform: rotate(-180deg);
    }

    /* Highlight active bar label */
    .skill-pipe.tap-active .skill-info span:first-child {
        color: var(--accent);
        font-weight: 600;
    }

    /* Override the absolute-positioned desktop tooltip —
       on mobile it becomes an inline accordion below the bar */
    .skill-pipe .skill-tooltip {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin-top: 0 !important;
        pointer-events: none !important;
        z-index: auto !important;
        transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease 0.05s,
                    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Hide the tooltip's arrow caret */
    .skill-pipe .skill-tooltip::after {
        display: none !important;
    }

    /* Tooltip text colors for inline mode */
    .skill-pipe .skill-tooltip strong {
        color: var(--accent) !important;
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem !important;
    }

    .skill-pipe .skill-tooltip p {
        font-size: 0.85rem !important;
        color: var(--text-color) !important;
        line-height: 1.55 !important;
        margin: 0 !important;
    }

    .dark-mode .skill-pipe .skill-tooltip p {
        color: rgba(255, 255, 255, 0.65) !important;
    }

    /* Open / active state */
    .skill-pipe.tap-active .skill-tooltip {
        max-height: 180px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        padding-top: 0.8rem !important;
        padding-bottom: 0.4rem !important;
    }

} /* end @media (max-width: 768px) */

.mobile-only {
    display: none;
}

/* ============================================================
   Root-level nav blur background — outside header stacking
   context so backdrop-filter works against page content
   ============================================================ */
.nav-blur-bg {
    display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
    .nav-blur-bg {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 82%;
        max-width: 320px;
        height: 100vh;
        z-index: 999; /* just below the nav (1000), above page content */
        /* The actual blur + dark tint — works because it's at root level */
        backdrop-filter: blur(50px) saturate(200%);
        -webkit-backdrop-filter: blur(50px) saturate(200%);
        background: rgba(0, 8, 22, 0.78);
        /* Match nav slide animation exactly */
        transform: translateX(-100%);
        transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .nav-blur-bg.active {
        transform: translateX(0);
    }
}

/* Global utility classes */
.w-100 { width: 100%; }

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title-top {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   Settings Panel (OS26 Style)
   ========================================================================== */
.settings-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-trigger:hover {
    transform: rotate(45deg) scale(1.1);
    background: rgba(255, 255, 255, 0.4);
}

.settings-trigger svg {
    width: 20px;
    height: 20px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-panel {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 320px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--primary-dark);
}

.settings-panel.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 10px;
}

.settings-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.settings-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
    line-height: 1;
}

.settings-item {
    margin-bottom: 20px;
}

.settings-item label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.2);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.toggle-group {
    display: flex;
    background: rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 3px;
}

.lang-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 6px 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.os-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(0,0,0,0.1);
    outline: none;
}

.os-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.os-btn {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 10px;
    color: var(--primary-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.os-btn:hover {
    background: rgba(255,255,255,0.8);
}

/* Dark mode adjustments for settings panel */
:root.dark-mode .settings-trigger {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}
:root.dark-mode .settings-panel {
    background: rgba(10, 22, 40, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}
:root.dark-mode .settings-close, :root.dark-mode .lang-btn {
    color: var(--text-color);
}
:root.dark-mode .settings-header {
    border-bottom-color: rgba(255,255,255,0.1);
}
:root.dark-mode .lang-btn.active {
    background: rgba(255,255,255,0.1);
}
:root.dark-mode .os-btn {
    background: rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-color);
}
:root.dark-mode .os-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* ==========================================================================
   Cookie System (OS Style)
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    width: auto;
    min-width: 320px;
    max-width: 95%;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 1rem 1.5rem;
    z-index: 9999;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.cookie-banner.active {
    transform: translateX(-50%) translateY(0);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cookie-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 0.85rem;
    font-weight: 300;
    max-width: 300px;
    line-height: 1.4;
}

.cookie-banner p a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.8rem;
}

#cookieAcceptAll {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    box-shadow: 0 10px 20px rgba(196, 172, 146, 0.3);
    opacity: 1 !important;
    backdrop-filter: none !important;
}

#cookieAcceptAll:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(196, 172, 146, 0.4);
}

#cookiePreferences {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    padding: 0.8rem 1.2rem;
    backdrop-filter: none !important;
}

#cookiePreferences:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: rgba(255, 255, 255, 1) !important;
}

/* Modal for preferences */
.os-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    padding: 4rem 1rem;
}

.os-modal.active {
    opacity: 1;
    visibility: visible;
}

.os-modal-content {
    background: #ffffff;
    color: #1c1c1e;
    width: calc(100% - 3rem);
    max-width: 440px;
    padding: 2.5rem;
    border-radius: 36px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
}

.os-modal.active .os-modal-content {
    transform: translateY(0) scale(1);
}

.dark-mode .os-modal-content {
    background: #1c1c1e;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.os-modal-close {
    position: absolute;
    top: 1.8rem;
    right: 1.8rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: #1c1c1e;
    transition: background 0.3s ease;
}

.dark-mode .os-modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.os-modal h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #00254d;
    font-family: var(--font-primary);
    font-weight: 600;
}

.dark-mode .os-modal h3 {
    color: #ffffff;
}

.modal-desc {
    color: #8e8e93;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .cookie-option {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.option-info h4 {
    margin: 0 0 0.2rem 0;
    font-size: 1.1rem;
    font-family: var(--font-primary);
    font-weight: 500;
    color: #1c1c1e;
}

.dark-mode .option-info h4 {
    color: #ffffff;
}

.option-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #8e8e93;
}

#cookieSavePreferences {
    background: rgba(196, 172, 146, 0.35);
    color: #ffffff !important;
    border: 1px solid rgba(196, 172, 146, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 1.2rem;
    border-radius: 18px;
    margin-top: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

#cookieSavePreferences:hover {
    background: rgba(196, 172, 146, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(196, 172, 146, 0.1);
}

@media (max-width: 600px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }
    .cookie-banner p {
        max-width: 100%;
    }
}

/* ==========================================================================
   Service Modal Details
   ========================================================================== */
.service-modal-content {
    max-width: 1000px;
    width: 95%;
    padding: 0;
    background: var(--bg-white);
    border-radius: 32px !important;
    overflow: hidden; /* clip children to rounded corners */
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
    position: relative;
    margin: auto; /* Centering helper for overflow-y: auto parents */
}

.service-detail-header {
    display: flex;
    gap: 3rem;
    padding: 3rem 4rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.05));
    align-items: center;
    flex-shrink: 0;
    /* Rounded corners: top matches modal radius, bottom creates soft card edge */
    border-radius: 32px 32px 28px 28px;
}

.service-detail-image {
    width: 300px;
    height: 300px;
    position: relative;
    flex-shrink: 0;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.service-detail-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 3px solid var(--bg-light);
}

.service-detail-intro {
    flex-grow: 1;
}

.service-detail-intro h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.service-detail-info p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0;
}

.service-detail-info .btn {
    background: var(--primary-dark);
    color: white;
    border: none;
    padding: 1rem 2.2rem;
    font-size: 0.85rem;
    margin-top: 1.8rem;
    box-shadow: 0 10px 30px rgba(0, 37, 77, 0.15);
}

.service-detail-info .btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(196, 172, 146, 0.4);
}

/* Force buttons in service modal to be Navy Blue for better contrast */
.service-modal-content .btn {
    background-color: #00254d !important;
    border-color: #00254d !important;
    color: #ffffff !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    box-shadow: 0 10px 25px rgba(0, 37, 77, 0.2);
}

.service-modal-content .btn:hover {
    background-color: #003a7a !important;
    border-color: #003a7a !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 37, 77, 0.3);
}

.service-detail-body {
    overflow-y: auto;
    flex-grow: 1;
    padding: 3rem 4rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.service-detail-body::-webkit-scrollbar {
    width: 6px;
}

.service-detail-body::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}

.service-detail-col h3 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.check-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: var(--text-color);
    font-size: 1rem;
}

.check-list li svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 3px;
}

.pros-cons {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.pros h4, .cons h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.pros h4 { color: #10b981; }
.cons h4 { color: #ef4444; }

.pros ul, .cons ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pros li, .cons li {
    font-size: 0.95rem;
    color: var(--text-color);
}

.service-detail-analytics {
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color, rgba(0,0,0,0.05));
    flex-shrink: 0;
}

.analytic-card {
    width: 400px;
}

.analytic-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.analytic-value {
    color: var(--accent);
    font-size: 1.2rem;
}

.analytic-graph {
    width: 100%;
    height: 12px;
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
    overflow: hidden;
}

.analytic-fill {
    height: 100%;
    border-radius: 6px;
    animation: fillWidth 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fillWidth {
    from { width: 0; }
}

:root.dark-mode .service-detail-header {
    background: #01040a;
}

:root.dark-mode .service-detail-badge {
    border-color: #01040a;
}

:root.dark-mode .analytic-graph {
    background: rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .service-detail-header {
        flex-direction: column;
        padding: 3rem 2rem;
        text-align: center;
    }
    .service-detail-image {
        width: 180px;
        height: 180px;
        margin-bottom: 2rem;
    }
    .service-detail-intro h2 {
        font-size: 2rem;
    }
    .service-detail-body {
        padding: 2rem 2rem;
    }
    .service-detail-grid {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 3rem;
    }
    .service-detail-analytics {
        flex-direction: column;
        align-items: stretch;
        padding: 2.5rem 2rem;
        gap: 2rem;
    }
    .analytic-card {
        width: 100%;
    }
    .service-detail-analytics .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Termin Vereinbarung Modal
   ========================================================================== */
.termin-modal-content {
    max-width: 680px;
    padding: 0;
    overflow-y: auto;
    max-height: 90vh;
    background: var(--bg-white);
    border-radius: 32px !important;
}

.termin-header {
    padding: 3rem 3rem 0;
    text-align: center;
}

.termin-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--accent);
}

.termin-header h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.termin-subtitle {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0;
}

#terminForm {
    padding: 2rem 3rem 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.form-group .optional {
    color: var(--text-color);
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1.5px solid rgba(0, 37, 77, 0.12);
    border-radius: 14px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    background: var(--bg-white);
    color: var(--primary-dark);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196, 172, 146, 0.15);
}

.form-group input.invalid,
.form-group select.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(0, 37, 77, 0.3);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2358595b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    padding-right: 3rem;
    cursor: pointer;
}

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

/* Checkbox */
.form-check {
    margin-top: 0.5rem;
}

.check-label {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-color);
    line-height: 1.5;
}

.check-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0, 37, 77, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 1px;
}

.check-label input:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.check-label input:checked + .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.check-label a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 500;
}

/* Error */
.form-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
}

/* Submit Button */
.termin-submit {
    padding: 1.2rem;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--primary-dark) !important;
    color: white !important;
}

.termin-submit:disabled {
    opacity: 1; /* Increased opacity */
    background: rgba(0, 37, 77, 0.08) !important; /* Visible light navy background */
    color: rgba(0, 37, 77, 0.3) !important; /* Visible but faded text */
    border: 1px solid rgba(0, 37, 77, 0.1) !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

.termin-submit:not(:disabled):hover {
    background: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 37, 77, 0.2);
}

.dark-mode .termin-submit:not(:disabled) {
    background: #1e293b !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: white !important;
}

.dark-mode .termin-submit:not(:disabled):hover {
    background: #334155 !important;
    transform: translateY(-2px);
}

.btn-loader svg {
    animation: spinLoader 1s linear infinite;
}

@keyframes spinLoader {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success View */
.termin-success {
    padding: 5rem 3rem;
    text-align: center;
}

.success-icon {
    margin-bottom: 2rem;
    animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.termin-success h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.termin-success p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto 2rem;
}

/* Dark Mode */
:root.dark-mode .form-group input,
:root.dark-mode .form-group select,
:root.dark-mode .form-group textarea {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-light);
}

:root.dark-mode .form-group input::placeholder,
:root.dark-mode .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

:root.dark-mode .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

:root.dark-mode .checkmark {
    border-color: var(--border-color);
}

:root.dark-mode .termin-icon {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .termin-header {
        padding: 2.5rem 2rem 0;
    }
    .termin-header h2 {
        font-size: 1.8rem;
    }
    #terminForm {
        padding: 2rem 2rem 2.5rem;
    }
    .termin-success {
        padding: 4rem 2rem;
    }
    .os-modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    .termin-modal-content {
        padding: 0;
    }
}

/* ==========================================================================
   Kontakt Page Styles
   ========================================================================== */

.kontakt-hero {
    height: 40vh;
    min-height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/hero.jpg') center/cover no-repeat;
}
.kontakt-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 37, 77, 0.7), rgba(0, 37, 77, 0.9));
}
.kontakt-hero-content {
    position: relative;
    z-index: 2;
    color: white;
}
.kontakt-hero-content h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: var(--font-serif);
    margin-bottom: 1rem;
}
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 992px) {
    .kontakt-grid {
        grid-template-columns: 1fr;
    }
}
.kontakt-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
:root.dark-mode .kontakt-card {
    background: rgba(2, 8, 23, 0.6);
    backdrop-filter: blur(10px);
}
.kontakt-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.kontakt-details li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.kontakt-details .icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    color: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
:root.dark-mode .kontakt-details .icon-wrap {
    background: rgba(255,255,255,0.05);
}
.kontakt-details a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}
:root.dark-mode .kontakt-details a {
    color: var(--text-light);
}
.kontakt-details a:hover {
    color: var(--accent);
}
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.map-buttons {
    display: flex;
    gap: 1rem;
    width: 100%;
}
.map-buttons a {
    font-size: 0.9rem;
    flex: 1;
}
.flex-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.kontakt-card h3 {
    margin-bottom: 0.5rem;
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
@media (max-width: 600px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

.btn-cream {
    background-color: var(--bg-light);
    color: var(--accent);
    border: none;
    border-radius: 12px;
    transition: var(--transition-fast);
    padding: 1.25rem 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.btn-cream:hover {
    background-color: #e8ded3;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

:root.dark-mode .btn-cream {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

:root.dark-mode .btn-cream:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}
