/* CAMP2GO Bau & Immobilien Schweiz - Haupt-Stylesheet */

:root {
  --primary: #1B4A38;
  --primary-dark: #123326;
  --primary-light: #25684f;
  --accent: #A3D9CF;
  --dark-bg: #121815;
  --card-dark: #1a231f;
  --border-dark: #27352f;
  --light-bg: #F8F9F8;
  --surface: #FFFFFF;
  --border-light: #E2E6E4;
  --text-main: #141C18;
  --text-muted: #5A6860;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--light-bg);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, select, textarea {
  font: inherit;
}

/* Desktop Layout Baseline: 1280px */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 2.1rem;
  height: 2.1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.brand-icon span {
  color: var(--accent);
}

.brand-sub {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #f0f2f1;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: #e4e7e5;
}

.btn-accent {
  background: var(--primary-light);
  color: #fff;
}

.btn-accent:hover {
  background: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.kicker-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 2px;
}

.hero h1 {
  font-size: 3rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  color: var(--primary);
}

.hero p.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border: 1px solid var(--border-light);
  aspect-ratio: 4/3;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 0.85rem 1.15rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  font-size: 0.75rem;
}

.hero-caption strong {
  display: block;
  color: var(--primary);
  font-size: 0.8125rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-light);
}

.metric-val {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.metric-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0.2rem 0;
}

.metric-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sections General */
.section {
  padding: 5.5rem 0;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 0.975rem;
}

/* Heritage Bridge */
.bridge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.bridge-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bridge-card.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-dark);
}

.bridge-card.primary h3 {
  color: #fff;
}

.quote-block {
  background: #f7f9f8;
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  font-style: italic;
  font-size: 0.875rem;
  color: var(--text-main);
  margin: 1.25rem 0;
  border-radius: 0 4px 4px 0;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.875rem;
  margin: 1.25rem 0;
}

.feature-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.check-icon {
  color: var(--primary);
  font-weight: 800;
}

.bridge-card.primary .check-icon {
  color: var(--accent);
}

/* Services Bento */
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }

.service-num {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Capacity Planner */
.dark-section {
  background: var(--dark-bg);
  color: #fff;
}

.dark-section h2, .dark-section h3 {
  color: #fff;
}

.planner-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.75rem;
  align-items: start;
}

.planner-box {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 2.25rem;
}

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

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
  color: #c4d1cb;
}

.type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.type-btn {
  background: #232f2a;
  border: 1px solid var(--border-dark);
  color: #ddd;
  padding: 0.85rem;
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8125rem;
}

.type-btn.active {
  background: var(--primary);
  border-color: var(--accent);
  color: #fff;
}

.range-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
}

.range-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkboxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.check-item {
  background: #202b26;
  border: 1px solid var(--border-dark);
  padding: 0.7rem 0.85rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.check-item input {
  accent-color: var(--accent);
}

.result-summary {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  padding: 2.25rem;
  position: sticky;
  top: 6rem;
}

.result-big {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0.25rem 0 0.5rem;
}

.specs-table {
  margin: 1.5rem 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 1rem 0;
  font-size: 0.8125rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
}

.spec-row span:first-child {
  color: #8f9f97;
}

.spec-row span:last-child {
  font-weight: 600;
  color: #fff;
}

/* Portfolio Gallery */
.gallery-intro {
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  cursor: pointer;
  height: 300px;
}

.gallery-item.col-7 {
  grid-column: span 7;
}

.gallery-item.col-5 {
  grid-column: span 5;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  color: #fff;
}

.gallery-tag {
  align-self: flex-start;
  background: rgba(0,0,0,0.6);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.gallery-text h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.gallery-text p {
  font-size: 0.75rem;
  color: #cbd5d0;
  line-height: 1.4;
}

/* Upcoming Cards */
.upcoming-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 2rem;
}

.upcoming-card {
  background: #1c2621;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.badge-year {
  display: inline-block;
  background: rgba(163, 217, 207, 0.15);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
}

.upcoming-card h4 {
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.upcoming-card p {
  color: #aab8b1;
  font-size: 0.8125rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-form-box {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2.5rem;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 0.875rem;
  border: 1px solid #d3dbd6;
  border-radius: 4px;
  background: #fff;
  color: var(--text-main);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 1.35rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-card strong {
  font-size: 0.9rem;
}

.contact-card span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: #0f1412;
  color: #8b9992;
  padding: 4.5rem 0 2.5rem;
  font-size: 0.8125rem;
  margin-top: auto;
  border-top: 1px solid #1c2621;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.75rem;
  margin-bottom: 3.5rem;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1c2621;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
}

/* Modals */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: #fff;
  border-radius: 8px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f0f2f1;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lightbox */
.lightbox-content {
  max-width: 950px;
  background: #000;
  color: #fff;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
}

.lightbox-img-wrap {
  position: relative;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.lightbox-img-wrap img {
  max-height: 70vh;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;
  padding: 0.75rem 1.15rem;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
  border-radius: 4px;
}

.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }

.lightbox-info {
  padding: 1.25rem 1.75rem;
  background: #141c18;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid,
  .bridge-grid,
  .planner-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .span-7,
  .services-grid .span-5 {
    grid-column: span 12;
  }

  .gallery-item.col-7,
  .gallery-item.col-5 {
    grid-column: span 12;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 2.35rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-action {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid var(--border-light);
  }

  .mobile-nav.open {
    display: flex;
  }

  .hero-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .input-row,
  .upcoming-grid,
  .type-selector,
  .checkboxes-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
