/* Reset & Base Styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; max-width: 100%; overflow-x: hidden; }
body { font-family: 'Montserrat', system-ui, sans-serif; background-color: #f8f6f3; color: #4a553a; line-height: 1.5; max-width: 100%; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font-family: inherit; }
#app-wrapper { overflow-x: hidden; }

/* Typography */
.font-serif-elegant { font-family: 'Cormorant Garamond', Georgia, serif; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-light { font-weight: 300; }
.uppercase { text-transform: uppercase; }

/* Layout Utilities */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 6rem 1.5rem; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; left: 0; right: 0; bottom: 0; }
.object-cover { object-fit: cover; width: 100%; height: 100%; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.hidden { display: none !important; }

/* Navigation */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background-color 0.3s; padding: 1rem 0; }
.navbar-inner { display: flex; justify-content: space-between; align-items: center; }
.nav-brand { font-size: 1.5rem; }
.nav-links { display: none; gap: 2rem; }
.nav-links a { font-size: 0.875rem; letter-spacing: 0.05em; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 0.7; }
.mobile-menu-btn { display: block; background: transparent; border: none; cursor: pointer; color: #f8f6f3; }
.mobile-menu-btn svg { width: 1.5rem; height: 1.5rem; }
.mobile-menu { display: none; padding: 0 1.5rem 1rem; }
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: 0.5rem 0; font-size: 0.875rem; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}

/* Language Switcher */
.lang-switcher { display: flex; margin-left: 1rem; }
.lang-btn { background: none; border: none; cursor: pointer; font-size: 1.3rem; padding: 0; transition: transform 0.2s ease, opacity 0.2s ease; }
.lang-btn:hover { transform: scale(1.1); opacity: 0.85; }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-pattern { background-image: url("pics/beilstein.webp"); background-size: cover; background-position: center; background-attachment: fixed; }
.hero-bg-overlay { background-color: rgba(0, 0, 0, 0.2); }
.hero-wave { bottom: 0; left: 0; width: 100%; }
.hero-content { text-align: center; padding: 0 1.5rem; z-index: 10; max-width: 56rem; margin: 0 auto; }
.hero-pretitle { font-size: 0.875rem; letter-spacing: 0.3em; margin-bottom: 1rem; }
.hero-title { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.1; }
.hero-subtitle { font-size: 1.25rem; margin-bottom: 2.5rem; }
.hero-btn { display: inline-block; padding: 1rem 2rem; border-radius: 9999px; letter-spacing: 0.05em; transition: transform 0.3s; }
.hero-btn:hover { transform: scale(1.05); }

@media (min-width: 768px) {
  .hero-title { font-size: 4.5rem; }
  .hero-subtitle { font-size: 1.5rem; }
}

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
.section-pretitle { font-size: 0.875rem; letter-spacing: 0.2em; margin-bottom: 1rem; font-weight: bold; }
.section-title { font-size: 2.25rem; margin-bottom: 1.5rem; line-height: 1.2; }
.about-text { font-size: 1.125rem; line-height: 1.625; margin-bottom: 1.5rem; }
.stats-flex { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; align-items: center; }
.stat-number { font-size: 2.25rem; }
.stat-label { font-size: 0.875rem; }
.about-image-wrapper { aspect-ratio: 4/5; border-radius: 1rem; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 3rem; }
}

/* Features & Photos Section */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.feature-card { padding: 2rem; border-radius: 1rem; transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-0.5rem); }
.feature-icon { width: 4rem; height: 4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; font-size: 1.875rem; }
.feature-title { font-size: 1.5rem; margin-bottom: 0.75rem; }

/* Photo Cards */
.photo-card { border-radius: 1rem; overflow: hidden; transition: transform 0.3s; aspect-ratio: 4/3; cursor: pointer; position: relative; }
.photo-card:hover { transform: translateY(-0.5rem); }
.photo-card::after { content: '🔍'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2rem; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.photo-card:hover::after { opacity: 0.7; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.photo-card:hover img { transform: scale(1.05); }

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

/* Contact Section */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
.contact-text { font-size: 1.125rem; margin-bottom: 2rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { width: 3rem; height: 3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.25rem; }
.contact-box { padding: 2rem; border-radius: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; margin-bottom: 0.5rem; }
.form-input, .form-select, .form-textarea { width: 100%; max-width: 100%; padding: 0.75rem 1rem; border-radius: 0.5rem; border: none; outline: none; transition: box-shadow 0.3s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { box-shadow: 0 0 0 2px #c9a962; }
.date-flex { display: flex; gap: 1rem; }
.date-flex > div { flex: 1; min-width: 0; }
.submit-btn { width: 100%; padding: 1rem; border-radius: 0.5rem; border: none; font-weight: 600; cursor: pointer; transition: transform 0.3s; }
.submit-btn:hover { transform: scale(1.02); }

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .date-flex { flex-direction: column; gap: 1rem; }
    .contact-box { padding: 1.5rem; }
    .hero-pattern { background-attachment: scroll; }
}

/* Footer */
.footer { padding: 4rem 1.5rem; text-align: center; }
.footer-title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.footer-text { font-size: 0.875rem; }
.legal-link { cursor: pointer; text-decoration: underline; margin-top: 1rem; display: inline-block; font-size: 0.8rem; opacity: 0.7; transition: opacity 0.3s; }
.legal-link:hover { opacity: 1; }

/* Modal Styles */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal.show { display: flex; animation: fadeIn 0.3s; }
.modal-content { margin: auto; display: block; max-width: 90%; max-height: 90vh; border-radius: 4px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.close-modal { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 1001; }
.close-modal:hover { color: #c9a962; }

/* Extra Styles for Legal Modal */
.modal-content-text { background-color: #f8f6f3; padding: 3rem; max-width: 800px; width: 90%; max-height: 80vh; overflow-y: auto; border-radius: 1rem; color: #4a553a; text-align: left; }
.modal-content-text h2 { margin-bottom: 1.5rem; border-bottom: 1px solid #d4c5b0; padding-bottom: 0.5rem; }
.modal-content-text p { margin-bottom: 1rem; }

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