:root {
    /* Permanent Dark Mode Variables */
    --color-bg-body: #0a0a0a;
    --color-bg-card: #141414;
    --color-text-main: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-border: #333333;
    --color-accent: #ffffff;
    --color-gold: #D4AF37; /* Keeping gold for optional accents if needed, but main text is white */
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --spacing-container: 1200px;
}

/* Removed [data-theme="dark"] as it's now default */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main); /* Standardize headings */
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
}

.btn-gold { /* Keeping class name for compatibility but restyling */
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
}

.btn-gold:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-body); /* Invert on hover */
}

section {
    padding: 80px 0;
}

/* Sections */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Clean gradient overlay */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1560869713-7d0a29430803?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff; /* Always white text on hero image */
}

#about, #services, #contact, #impressum, #datenschutz {
    background-color: var(--color-bg-body);
}

/* 3D Team Carousel Styles */
.team-section {
    perspective: 1000px;
    overflow-x: hidden;
    padding: 50px 0 100px;
}

.team-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 40px;
    padding: 50px 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.team-carousel::-webkit-scrollbar {
    display: none;
}

/* Updated Window Style for Light/Dark */
.team-window {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--color-bg-card); /* Adaptive background */
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.team-window:hover {
    transform: rotateX(2deg);
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.team-item {
    position: relative;
    padding: 20px 0;
    border-left: 2px solid var(--color-border);
    margin-left: 20px;
    padding-left: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-item::before {
    content: '';
    position: absolute;
    left: -11px;
    top: 40px;
    width: 20px;
    height: 20px;
    background: var(--color-bg-body);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.team-item:hover::before, .team-item.active::before {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.2);
}

.team-item:last-child {
    border-left: 2px solid transparent; 
}

.member-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.member-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-item:hover .member-img {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--color-accent);
}

.member-name {
    font-size: 1.5rem;
    color: var(--color-text-main);
    font-family: var(--font-heading);
}

.member-role {
    font-size: 0.9rem;
    color: var(--color-text-muted); /* More neutral */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-details {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    opacity: 0;
    transform-origin: top;
    transform: rotateX(-20deg);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    padding-left: 100px;
    color: var(--color-text-muted);
}

.team-item.active .member-details {
    max-height: 200px;
    margin-top: 20px;
    opacity: 1;
    transform: rotateX(0deg);
}

.toggle-icon {
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--color-text-main);
    transition: transform 0.3s ease;
}
.team-item.active .toggle-icon {
    transform: rotate(45deg);
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Theme Toggle Button */
#theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2000;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Separators */
.separator-line {
    width: 60px;
    height: 2px;
    background: var(--color-text-main); /* Adaptive */
    margin: 20px auto;
}
/* Global Contact Styles (Bubbles) */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.contact-bubble {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 40px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-bubble:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--color-gold);
}

.bubble-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    display: inline-block;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.map-container {
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    height: 450px;
    transition: all 0.3s ease;
}

.map-container:hover {
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
