:root {
  --primary: #37685b;
  --primary-dark: #2d4544;
  --text: #464646;
  --bg-light: #ebe8e1ff;
  --bg-dark: #1a1a1a;
  --muted: #1a1a1a;
  --max-width: 1200px;
  --logo-gap: 2rem;
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video {
    max-width: 100%;
    height: auto;
}

/* Container mit festen Dimensionen */
.hero-container {
    min-height: 400px; /* Verhindert Sprünge */
}
/* Hilfsklassen */
.wrap { 
  max-width: var(--max-width); 
  margin: 0 auto; 
  padding: 0 1rem; 
}

.section { 
  padding: 2rem 1rem; 
}

h1, h2, h3 { 
  font-weight: bold; 
  line-height: 1.2; 
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h2 { 
  margin-bottom: 1rem; 
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

/* =========================
   Header / Navigation
========================= */
.site-header {
  position: sticky; 
  top: 0; 
  z-index: 1000;
  background: var(--bg-light);
  backdrop-filter: blur(4px);
  border-bottom: 2px solid var(--muted);
}

.header-inner { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  min-height: 64px;
  padding: 0.5rem 1rem;
}

.brand { 
  font-weight: 700; 
  color: var(--primary); 
  text-decoration: none; 
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  white-space: nowrap;
}

.main-nav ul { 
  list-style: none; 
  display: flex; 
  gap: 0.5rem; 
}

.main-nav a { 
  text-decoration: none; 
  color: var(--text); 
  font-weight: bold; 
  padding: 0.5rem; 
  font-size: 0.9rem;
  white-space: nowrap;
}

.main-nav a:hover, 
.main-nav a:focus { 
  color: var(--primary); 
  outline: none; 
}

/* Mobile Toggle */
#nav-toggle { 
  display: none; 
  background: none; 
  border: 0; 
  font-size: 1.5rem; 
  cursor: pointer; 
  padding: 0.5rem;
}

@media (max-width: 768px) {
  #nav-toggle { 
    display: block; 
  }
  
  .main-nav {
    position: absolute; 
    top: 100%; 
    right: 0;
    background: var(--bg-light);
    width: 100%;
    padding: 1rem;
    border-top: 1px solid #eee;
    display: none; 
    flex-direction: column; 
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .main-nav.open { 
    display: flex; 
  }
  
  .main-nav ul { 
    flex-direction: column; 
    gap: 0.5rem; 
    width: 100%;
  }
  
  .main-nav a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #eee;
  }
}

/* Tablet specific */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-nav ul { 
    gap: 0.8rem; 
  }
  
  .main-nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }
}

/* =========================
   Hero Section
========================= */
.hero {
  position: relative;
  height: 70vh; 
  min-height: 70vh;
  max-height: 800px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  overflow: hidden; 
  text-align: center;
}

.hero picture, 
.hero img { 
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  aspect-ratio: 1200 / 800;
}

.hero-overlay {
  position: relative; 
  z-index: 1; 
  color: #fff;
  padding: 2rem 1rem; 
  background: rgba(0,0,0,0.5);
  border-radius: 8px; 
  max-width: 90%;
  margin: 0 auto;
}

.hero h1 { 
  font-size: clamp(1.8rem, 5vw, 3.5rem); 
  margin-bottom: 1rem; 
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p { 
  margin-bottom: 1.5rem; 
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@media (max-width: 480px) {
  .hero {
    height: 60vh;
    min-height: 350px;
  }
  
  .hero-overlay {
    padding: 1.5rem 1rem;
  }
}

/* Button Styles */
.btn {
  display: inline-block; 
  background: var(--primary); 
  color: #fff;
  padding: 0.75rem 1.5rem; 
  text-decoration: none;
  border-radius: 6px; 
  font-weight: bold;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
}

.btn:hover, 
.btn:focus { 
  background: var(--primary-dark); 
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn.secondary { 
  background: var(--text); 
  border-color: var(--text);
}

.btn.secondary:hover, 
.btn.secondary:focus { 
  background: var(--bg-dark); 
  border-color: var(--bg-dark);
}

@media (max-width: 480px) {
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* =========================
   About & Services
========================= */
.about, .services {
  padding: 3rem 1rem;
}

.about-grid, 
.services-grid { 
  display: grid; 
  gap: 2rem; 
  align-items: center;
}

.about-image img, 
.services-image img { 
  width: 100%; 
  height: auto; 
  border-radius: 8px; 
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
  .about-grid, 
  .services-grid { 
    grid-template-columns: 1fr 1fr; 
  }
}

@media (max-width: 767px) {
  .about-text, 
  .services-text {
    order: 1;
  }
  
  .about-image, 
  .services-image {
    order: 2;
  }
}

.about-text p, 
.services-text p {
  margin-bottom: 1rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.about-text ul, 
.services-text ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.about-text li, 
.services-text li {
  margin-bottom: 0.5rem;
}

/* =========================
   Follow Me Section
========================= */
.follow-me {
  position: relative;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.follow-me h2 { 
  font-size: clamp(1.8rem, 4vw, 2.5rem); 
  margin-bottom: 0.5rem; 
}

.follow-me-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.1rem); 
  margin-bottom: 2rem; 
  color: rgba(255,255,255,0.85);
}

.social-grid {
  display: grid; 
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: var(--max-width); 
  margin: 0 auto;
}

@media (max-width: 480px) {
  .social-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.social-card {
  background: rgba(255,255,255,0.08);
  border-radius: 12px; 
  padding: 1.5rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex; 
  flex-direction: column; 
  align-items: center;
}

.social-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 12px 24px rgba(0,0,0,0.25); 
}

.social-icon {
  width: 50px; 
  height: 50px; 
  background: #fff; 
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: var(--primary); 
  margin-bottom: 1rem; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.social-icon svg { 
  width: 24px; 
  height: 24px; 
}

.social-card h3 { 
  margin-bottom: 0.5rem; 
  font-size: clamp(1.1rem, 2.5vw, 1.25rem); 
  font-weight: bold; 
}

.social-card p { 
  font-size: clamp(0.85rem, 2vw, 0.95rem); 
  margin-bottom: 1.5rem; 
  color: rgba(255,255,255,0.9); 
  text-align: center;
}

.social-btn {
  background: #fff; 
  color: var(--primary);
  padding: 0.6rem 1.2rem; 
  border-radius: 6px; 
  font-weight: bold; 
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
}

.social-btn:hover { 
  background: var(--primary-dark); 
  color: #fff; 
  transform: translateY(-2px);
}

/* =========================
   Contact Section
========================= */
.contact { 
  background: linear-gradient(180deg, var(--bg-light)); 
  padding: 3rem 1rem;
}

.contact-wrap { 
  display: grid; 
  gap: 2rem; 
  align-items: start; 
}

@media (min-width: 768px) { 
  .contact-wrap { 
    grid-template-columns: 1fr 1.2fr; 
  } 
}

.contact-copy h2 { 
  margin-bottom: 0.5rem; 
}

.contact-copy .muted { 
  color: var(--muted); 
  margin-bottom: 1rem; 
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}

.contact-list li { 
  margin: 0.5rem 0; 
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-list a { 
  color: var(--text); 
  text-decoration: none; 
  transition: color 0.3s ease;
}

.contact-list a:hover { 
  color: var(--primary); 
}

.contact-card {
  background: #fff; 
  border: 1px solid #eceff3; 
  border-radius: 14px; 
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(17,17,17,0.06);
}

@media (min-width: 640px) { 
  .contact-card { 
    padding: 2rem; 
  } 
}

.hp { 
  position: absolute; 
  left: -9999px; 
  top: 0; 
  height: 0; 
  width: 0; 
  overflow: hidden; 
}

.row { 
  display: grid; 
  gap: 1rem; 
}

@media (min-width: 640px) { 
  .row { 
    grid-template-columns: 1fr 1fr; 
  } 
}

.field { 
  display: flex; 
  flex-direction: column; 
  gap: 0.4rem; 
}

.field label { 
  font-weight: 600; 
  color: #222; 
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.field input, 
.field textarea {
  width: 100%; 
  padding: 0.85rem 1rem; 
  border: 1px solid #dfe3e8; 
  border-radius: 10px; 
  font: inherit;
  background: #fff; 
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.field textarea { 
  resize: vertical; 
  min-height: 120px;
}

.field input:hover, 
.field textarea:hover { 
  border-color: var(--primary); 
}

.field input:focus, 
.field textarea:focus {
  outline: none; 
  border-color: var(--primary); 
  box-shadow: 0 0 0 3px rgba(55, 104, 91, 0.1);
}

.chk { 
  display: flex; 
  gap: 0.6rem; 
  align-items: flex-start; 
  margin: 0.5rem 0 1rem; 
  font-size: clamp(0.85rem, 2vw, 0.95rem); 
}

.chk input { 
  margin-top: 0.2rem; 
  min-width: 16px;
}

.btn-send {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  width: 100%; 
  padding: 0.9rem 1.2rem; 
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none; 
  color: #fff; 
  font-weight: 700; 
  letter-spacing: 0.2px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.05s ease, box-shadow 0.2s ease, filter 0.2s ease;
  font-size: clamp(0.9rem, 2vw, 1rem);
  cursor: pointer;
}

@media (min-width: 480px) { 
  .btn-send { 
    width: auto; 
    min-width: 220px; 
  } 
}

.btn-send:hover { 
  filter: brightness(1.05); 
  box-shadow: 0 10px 26px rgba(45, 69, 68, 0.4); 
  transform: translateY(-2px);
}

.btn-send:active { 
  transform: translateY(1px); 
}

.form-note { 
  margin-top: 0.9rem; 
  font-weight: 600; 
  color: var(--primary); 
  font-size: clamp(0.85rem, 2vw, 0.9rem);
}

/* =========================
   Testimonials
========================= */
.testimonials {
  background: var(--bg-light);
  padding: 3rem 1rem;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.testi-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

@media (max-width: 768px) {
  .testi-gallery {
    grid-auto-columns: minmax(260px, 1fr);
  }
}

@media (max-width: 480px) {
  .testi-gallery {
    grid-auto-columns: minmax(240px, 1fr);
    gap: 0.8rem;
  }
}

.testi-gallery::-webkit-scrollbar { 
  height: 8px; 
}

.testi-gallery::-webkit-scrollbar-thumb { 
  background: var(--primary); 
  border-radius: 4px; 
}

.testimonial {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  scroll-snap-align: start;
  border-left: 4px solid var(--primary);
  font-style: italic;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  margin-bottom: 1rem;
}

.testimonial footer { 
  font-weight: bold; 
  color: var(--text); 
  font-style: normal;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
}

/* =========================
   Footer
========================= */
.site-footer {
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.95rem;
  padding-top: 2.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 0 1rem 2rem;
}

@media (min-width: 768px) {
  .footer-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (min-width: 1024px) {
  .footer-grid { 
    grid-template-columns: repeat(4, 1fr); 
  }
}

.footer-grid a { 
  color: #fff; 
  text-decoration: none; 
  transition: color 0.3s ease;
}

.footer-grid a:hover { 
  text-decoration: underline; 
  color: var(--primary);
}

.footer-grid p { 
  margin: 0.3rem 0; 
  font-size: clamp(0.85rem, 2vw, 0.95rem);
}

.footer-grid ul { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}

.footer-grid ul li { 
  margin-bottom: 0.4rem; 
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  padding: 1rem;
  font-size: clamp(0.8rem, 2vw, 0.85rem);
  color: rgba(255,255,255,0.7);
}

/* =========================
   Calendar Page Specific
========================= */
.cal-wrap { 
  max-width: 920px; 
  margin: 0 auto; 
}

.cal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.cal-header h1 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.cal-header p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--text);
  margin-bottom: 2rem;
}

.cal-benefits {
  background: linear-gradient(135deg, #ffffff, #ffffff);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  border-left: 4px solid var(--primary);
}

.cal-benefits h2 {
  color: var(--primary);
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  margin-bottom: 1rem;
}

.cal-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cal-benefits li {
  padding: 0.5rem 0;
  font-size: clamp(0.9rem, 2vw, 1rem);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cal-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 2rem 0;
}

#cal-inline, 
#my-cal-inline-meeting { 
  min-height: 600px; 
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 768px) {
  #cal-inline, 
  #my-cal-inline-meeting { 
    min-height: 500px; 
  }
  
  .cal-benefits {
    padding: 1rem;
    margin: 1.5rem 0;
  }
}

@media (max-width: 480px) {
  #cal-inline, 
  #my-cal-inline-meeting { 
    min-height: 450px; 
  }
  
  .cal-header {
    margin-bottom: 1.5rem;
  }
  
  .cal-benefits {
    padding: 1rem;
    margin: 1rem 0;
  }
}

.cal-info {
  margin: 3rem 0 2rem;
}

.cal-info h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
}

.faq-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.faq-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-left: 3px solid var(--primary);
}

.faq-item h3 {
  color: var(--primary);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin-bottom: 0.8rem;
}

.faq-item p {
  font-size: clamp(0.9rem, 2vw, 0.95rem);
  color: var(--text);
  line-height: 1.5;
}

.cal-footer {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  text-align: center;
}

.note { 
  color: var(--muted); 
  font-size: clamp(0.85rem, 2vw, 0.95rem); 
  margin: 0;
  line-height: 1.5;
}

.note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.note a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .faq-item {
    padding: 1rem;
  }
  
  .cal-footer {
    padding: 1rem;
    margin-top: 1.5rem;
  }
}

/* =========================
   Accessibility & Animation
========================= */
a:focus, 
button:focus, 
input:focus, 
textarea:focus { 
  outline: 3px solid var(--primary); 
  outline-offset: 2px; 
}

.section, 
.hero-overlay, 
.testimonial, 
.about-text, 
.services-text {
  opacity: 0; 
  transform: translateY(12px); 
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.inview { 
  opacity: 1; 
  transform: none; 
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, 
  *::before, 
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* =========================
   Print Styles
========================= */
@media print {
  .site-header,
  .site-footer,
  .btn,
  #nav-toggle,
  .social-grid {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

/* =========================
   High DPI / Retina Support
========================= */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Client-side form validation */
input:invalid, 
textarea:invalid { 
  border-color: #e74c3c; 
}

input:invalid:focus, 
textarea:invalid:focus { 
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1); 
}

input:valid, 
textarea:valid {
  border-color: #27ae60;
}

/* Loading states */
.btn-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Error and success states */
.form-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-success {
  color: #27ae60;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Parallax effect disable on mobile for performance */
@media (max-width: 768px) {
  .parallax {
    transform: none !important;
  }
}