/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #c9a961;
    --dark: #1a1a1a;
    --dark-gray: #2d2d2d;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Touch-friendly tap targets */
a, button, input, select, textarea {
    -webkit-tap-highlight-color: rgba(201, 169, 97, 0.2);
}

/* Prevent text selection on double-tap */
.btn-primary,
.btn-book,
.member-btn,
.btn-submit {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
}

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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===================================
   LOADING SCREEN
   =================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    color: var(--primary-gold);
    letter-spacing: 0.3em;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--white);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--white);
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

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

.btn-book {
    padding: 12px 30px;
    background: var(--primary-gold);
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-book:hover {
    background: #d4b76d;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--primary-gold);
    text-transform: uppercase;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--white);
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--white);
    text-transform: uppercase;
    animation: fadeInUp 1s ease 0.9s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 60px;
    background: var(--white);
    animation: scrollDown 2s ease infinite;
}

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

@keyframes scrollDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* ===================================
   SECTION STYLES
   =================================== */
.section-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-heading {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 30px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-section {
    padding: 120px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .lead {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--dark);
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 20px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-gold);
    color: var(--dark);
    transform: translateY(-3px);
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-section {
    padding: 120px 0;
    background: var(--light-gray);
}

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

.service-card {
    background: var(--white);
    padding: 50px 40px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    color: var(--primary-gold);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ===================================
   TEAM SECTION
   =================================== */
.team-section {
    padding: 120px 0;
    background: var(--white);
}

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

.team-member {
    position: relative;
    overflow: hidden;
}

.member-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--light-gray);
}

.member-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.6s ease;
}

/* Spezielle Anpassung für Hochformat-Bilder wie Maryam */
.team-member:nth-child(2) .member-image-wrapper img {
    object-position: center 15%;
}

/* Optimierung für alle Portrait-Bilder */
@media (max-width: 768px) {
    .member-image-wrapper img {
        object-position: center 10%;
    }
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.team-member:hover .member-image-wrapper img {
    transform: scale(1.1);
}

.member-btn {
    padding: 12px 30px;
    background: var(--primary-gold);
    color: var(--dark);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition);
}

.member-btn:hover {
    background: #d4b76d;
}

.member-info {
    padding: 30px 0;
    text-align: center;
}

.member-info h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.member-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

/* ===================================
   PRICES SECTION
   =================================== */
.prices-section {
    padding: 120px 0;
    background: var(--light-gray);
}

.prices-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.price-column {
    background: var(--white);
    overflow: hidden;
}

.price-header {
    background: var(--dark);
    padding: 40px;
    text-align: center;
}

.price-header h3 {
    font-size: 2rem;
    color: var(--white);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.price-list {
    list-style: none;
    padding: 40px;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.95rem;
}

.price-list li:last-child {
    border-bottom: none;
}

.price-list li span:first-child {
    color: var(--text-dark);
}

.price-list li span:last-child {
    color: var(--primary-gold);
    font-weight: 600;
}

.price-list li.highlight {
    background: #f9f9f9;
    margin: 10px -40px;
    padding: 20px 40px;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
    padding: 120px 0;
    background: var(--white);
}

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

.contact-details {
    margin: 40px 0;
}

.contact-item {
    margin-bottom: 40px;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 10px;
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact-item a {
    color: var(--primary-gold);
}

.contact-item a:hover {
    color: var(--dark);
}

.contact-map {
    height: 600px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.contact-map iframe:hover {
    filter: grayscale(0%);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--dark);
    padding: 60px 0;
    text-align: center;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1200px) {
    .hero-main {
        font-size: 6rem;
    }
    
    .section-heading {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(26, 26, 26, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .btn-book {
        display: none;
    }
    
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .services-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prices-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .hero-main {
        font-size: 4rem;
    }
    
    .section-heading {
        font-size: 2.5rem;
    }
    
    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .member-image-wrapper {
        height: 450px;
    }
    
    .about-content,
    .contact-wrapper {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-main {
        font-size: 3rem;
        letter-spacing: 0.1em;
    }
    
    .hero-subtitle,
    .hero-location {
        font-size: 0.75rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .member-image-wrapper {
        height: 400px;
    }
    
    .service-card {
        padding: 40px 30px;
    }
}

/* ===================================
   TABLET OPTIMIZATION (iPad, etc.)
   =================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .member-image-wrapper {
        height: 450px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .about-content {
        gap: 60px;
    }
}

/* ===================================
   LARGE SCREENS OPTIMIZATION
   =================================== */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }
    
    .nav-container {
        max-width: 1600px;
    }
    
    .team-grid {
        gap: 50px;
    }
    
    .member-image-wrapper {
        height: 550px;
    }
}

/* ===================================
   LANDSCAPE MOBILE OPTIMIZATION
   =================================== */
@media (max-width: 926px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 50px;
    }
    
    .hero-main {
        font-size: 3.5rem;
    }
    
    .member-image-wrapper {
        height: 350px;
    }
}

/* ===================================
   ULTRA WIDE SCREENS
   =================================== */
@media (min-width: 1920px) {
    .container,
    .nav-container {
        max-width: 1800px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .navbar,
    .hamburger,
    .btn-book,
    .loader,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero {
        height: auto;
        page-break-after: always;
    }
}

/* ===================================
   iOS SPECIFIC OPTIMIZATIONS
   =================================== */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific styles */
    .navbar {
        -webkit-backdrop-filter: blur(10px);
    }
    
    .hero {
        /* Fix for iOS viewport height */
        min-height: -webkit-fill-available;
    }
    
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on focus in iOS */
    }
}

/* ===================================
   SAMSUNG & ANDROID OPTIMIZATIONS
   =================================== */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {
    /* Android Chrome specific styles */
    input:focus,
    textarea:focus,
    select:focus {
        font-size: 16px;
    }
}

/* ===================================
   NOTCH & SAFE AREA SUPPORT (iPhone X+)
   =================================== */
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .navbar .nav-container {
        padding-left: max(40px, env(safe-area-inset-left));
        padding-right: max(40px, env(safe-area-inset-right));
    }
    
    .container {
        padding-left: max(40px, env(safe-area-inset-left));
        padding-right: max(40px, env(safe-area-inset-right));
    }
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */
.hero-slide,
.member-image-wrapper img,
.service-card,
.team-member {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
