/* Base styles (light, friendly palette) */
:root {
  --bg: #faf7f2;           /* warm paper */
  --panel: #ffffff;        /* cards, header */
  --muted: #6b7280;        /* subdued text */
  --text: #243240;         /* main ink */
  --brand: #1e538d;        /* warm blue */
  --brand-ink: #1e538d;    /* deeper blue */
  --accent: #d97706;       /* amber accent */
  --danger: #b91c1c;       /* error */
  --radius: 12px;
  --shadow: 0 8px 24px rgba(18, 18, 18, .08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  position: relative;
}

/* Background pattern that aligns with sections */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  pointer-events: none;
  z-index: -2;
}


/* Section-specific background patterns that align with container */
.hero::before,
.features::before,
.location::before,
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 4%;
  right: 4%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

@media (min-width: 1220px) {
  .hero::before,
  .features::before,
  .location::before,
  .contact::before {
    left: 50%;
    right: auto;
    width: 1120px;
    margin-left: -560px; /* Half of 1120px */
  }
}

.hero::before {
  background: radial-gradient(600px 300px at 70% 20%, rgba(47,133,90,.08), transparent 60%);
}

.features::before {
  background: radial-gradient(500px 250px at 25% 50%, rgba(217,119,6,.06), transparent 60%);
}

.location::before {
  background: radial-gradient(400px 200px at 75% 60%, rgba(47,133,90,.05), transparent 60%);
}

.contact::before {
  background: radial-gradient(350px 180px at 30% 70%, rgba(217,119,6,.04), transparent 60%);
}

/* Make media scale fluidly */
img { max-width: 100%; height: auto; }
/* Let Formkeep/Pym control iframe height; ensure full width */
.embed-wrapper { width: 100%; max-width: 100%; margin: 0 auto; }
.embed-frame { width: 100%; min-height: 900px; border: 0; border-radius: 12px; box-shadow: var(--shadow); background: #ffffff; }
/* Zapier Interfaces web component sizing */
zapier-interfaces-page-embed { display: block; width: auto; max-width: auto; margin: 0; padding: 0; height: 1000px;}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.welcome-image img { 
  width: 100%; 
  object-fit: cover; 
  border-radius: 12px; 
  border: 1px solid #eaeaea;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h1 { 
  font-family: "Roboto Slab", Georgia, serif; 
  font-size: 2.5rem;
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
}

/* Modern browsers with clamp support */
@supports (font-size: clamp(1.8rem, 3.5vw, 3rem)) {
  h1 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
}

h2 { 
  font-size: 2rem; 
  margin-bottom: .8rem; 
}

@media (max-width: 768px) {
  h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  h2 { font-size: 1.4rem; }
}

/* Modern browsers with clamp support */
@supports (font-size: clamp(1.4rem, 2.5vw, 2rem)) {
  h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
}
h3 { font-size: 1.1rem; margin-top: .4rem; color: #334155; }
p { margin: 0 0 1rem; color: var(--text); }
.lede { color: #475569; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky; 
  top: 0; 
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid #eaeaea;
}

/* Safari fallback for backdrop-filter */
@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(8px);
  }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; }
.brand { display: flex; align-items: center; font-weight: 700; letter-spacing: .2px; }
.brand-mark { 
  display: grid; 
  place-items: center; 
  width: 36px; 
  height: 36px; 
  border-radius: 9px; 
  background: linear-gradient(135deg, #e8f5ee, #ffffff); 
  border: 1px solid #d7eadd; 
  color: var(--brand); 
  font-weight: 800;
  margin-right: 0.6rem;
}

/* Modern browsers with gap support */
@supports (gap: 0.6rem) {
  .brand {
    gap: 0.6rem;
  }
  .brand-mark {
    margin-right: 0;
  }
}
.brand-text { font-weight: 700; }
.nav a { color: #334155; text-decoration: none; margin-left: 1rem; font-weight: 600; font-size: 100%;}
.nav a:hover { color: var(--brand-ink); }
.nav .cta { padding: .5rem .8rem; border-radius: 999px; background: rgba(47,133,90,.08); border: 1px solid rgba(47,133,90,.30); color: var(--brand-ink); }

/* Hero */
.hero { 
  padding: 3rem 0 2rem; 
  position: relative;
  background: var(--bg);
  z-index: 1;
}
.hero-inner { display: grid; }
.hero-inner > * + * {
  margin-top: 2rem;
}

/* Modern browsers with gap support */
@supports (gap: 2rem) {
  .hero-inner {
    gap: 2rem;
  }
  .hero-inner > * + * {
    margin-top: 0;
  }
}

.hero .hero-actions { 
  display: flex; 
  margin-top: 1.2rem; 
}
.hero .hero-actions > * + * {
  margin-left: 0.8rem;
}

/* Modern browsers with gap support */
@supports (gap: 0.8rem) {
  .hero .hero-actions {
    gap: 0.8rem;
  }
  .hero .hero-actions > * + * {
    margin-left: 0;
  }
}

.btn { 
  display: inline-flex; 
  align-items: center; 
  padding: .7rem 1rem; 
  border-radius: 12px; 
  border: 1px solid #dfe3ea; 
  color: var(--text); 
  text-decoration: none; 
  transition: transform .08s ease, background-color .2s, border-color .2s, box-shadow .2s; 
  background: var(--panel); 
  box-shadow: var(--shadow);
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(180deg, #1e538d, #1e538d); color: #ffffff; border-color: #1e538d; box-shadow: 0 6px 18px rgba(47,133,90,.25); }
.btn.ghost { background: #ffffff; }

/* Graphic Section */
.graphic-section { padding: 2rem 0; }
.graphic-image { width: 100%; max-width: 800px; height: auto; display: block; margin: 0 auto; border-radius: 12px; box-shadow: var(--shadow); }

/* Features */
.features { 
  padding: 0 0; 
  position: relative;
  background: var(--bg);
  z-index: 1;
}
.section-intro { color: #475569; font-size: 1.1rem; margin-bottom: 2rem; text-align: left; }

.services-grid { display: grid; }
.services-grid > * + * {
  margin-top: 2.5rem;
}

/* Modern browsers with gap support */
@supports (gap: 2.5rem) {
  .services-grid {
    gap: 2.5rem;
  }
  .services-grid > * + * {
    margin-top: 0;
  }
}
.service-category { 
  background: var(--panel); 
  border: 1px solid #eaeaea; 
  border-radius: var(--radius); 
  padding: 1.5rem; 
  box-shadow: var(--shadow); 
}
.service-category h3 { 
  color: var(--brand-ink); 
  font-size: 1.3rem; 
  margin-bottom: 1rem; 
  text-align: center;
  border-bottom: 2px solid #e8f5ee;
  padding-bottom: 0.5rem;
}
.service-items { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, 280px); 
}
.service-items > * + * {
  margin-top: 1rem;
}

/* Modern browsers with gap support */
@supports (gap: 1rem) {
  .service-items {
    gap: 1rem;
  }
  .service-items > * + * {
    margin-top: 0;
  }
}

/* Modern browsers with minmax support */
@supports (grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))) {
  .service-items {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}
.service-item { 
  text-align: center; 
  padding: 1rem; 
  border-radius: 8px; 
  background: #fafafa; 
  border: 1px solid #f0f0f0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-item:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 4px 12px rgba(47,133,90,.15); 
}
.service-item img { 
  width: 100%; 
  height: 180px; 
  object-fit: cover; 
  border-radius: 8px; 
  margin-bottom: 0.8rem; 
  border: 1px solid #eaeaea;
}
.service-item h4 { 
  color: var(--brand-ink); 
  font-size: 1.1rem; 
  margin: 0 0 0.5rem; 
}
.service-item p { 
  color: #475569; 
  font-size: 0.95rem; 
  margin: 0; 
  line-height: 1.5; 
}

.note { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius); background: #fff7ed; border: 1px solid #fde68a; color: #7c3e0a; }
.rich-text { margin-top: 1.2rem; color: #334155; }

/* About Us Section */
.about-us {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-us-header {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 100%);
  padding: 1.5rem 2rem;
  text-align: center;
}

.about-us-header h3 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.about-us-content {
  padding: 2rem;
}

.about-us-intro {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-ink);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.about-us-content p {
  margin-bottom: 1.2rem;
  color: #334155;
  line-height: 1.7;
}

.about-us-highlights {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr;
}

/* Fallback for browsers without gap support */
.about-us-highlights > * + * {
  margin-top: 1rem;
}

/* Modern browsers with gap support */
@supports (display: grid) and (gap: 1rem) {
  .about-us-highlights {
    gap: 1rem;
  }
  .about-us-highlights > * + * {
    margin-top: 0;
  }
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  margin-right: 0.8rem;
}

/* Fallback for browsers without gap support */
.highlight-text {
  flex: 1;
}

/* Modern browsers with gap support */
@supports (gap: 0.8rem) {
  .highlight-item {
    gap: 0.8rem;
  }
  .highlight-icon {
    margin-right: 0;
  }
}

.highlight-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 133, 90, 0.15);
  border-color: rgba(47, 133, 90, 0.3);
}

.highlight-text {
  color: #334155;
  font-weight: 500;
  line-height: 1.5;
}

.about-us-tagline {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(47, 133, 90, 0.08) 0%, rgba(47, 133, 90, 0.05) 100%);
  border: 1px solid rgba(47, 133, 90, 0.2);
  border-radius: 8px;
  text-align: center;
}

.about-us-tagline p {
  margin: 0;
  color: var(--brand-ink);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Impressions */
.impressions { padding: 3rem 0; }
.impressions h2 { text-align: center; margin-bottom: 1rem; }
.impressions .section-intro { text-align: center; margin-bottom: 2rem; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); }
.photo { grid-column: span 4; background: var(--panel); border: 1px solid #eaeaea; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.photo img { display: block; width: 100%; height: 220px; object-fit: cover; }
.photo figcaption { padding: .6rem .8rem; color: #475569; font-size: .95rem; }

/* Reviews */
.reviews { 
  padding: 3rem 0; 
  background: linear-gradient(135deg, rgba(47, 133, 90, 0.02) 0%, rgba(255, 255, 255, 0.02) 100%);
  position: relative;
  z-index: 1;
}
.reviews h2 { text-align: left; margin-bottom: 1rem; }
.reviews .section-intro { text-align: left; margin-bottom: 2.5rem; color: #475569; }
.reviews-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, 320px);
}
.reviews-grid > * + * {
  margin-top: 1.5rem;
}

/* Modern browsers with gap support */
@supports (gap: 1.5rem) {
  .reviews-grid {
    gap: 1.5rem;
  }
  .reviews-grid > * + * {
    margin-top: 0;
  }
}

/* Modern browsers with minmax support */
@supports (grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))) {
  .reviews-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}
.review-card { 
  background: var(--panel); 
  border: 1px solid #eaeaea; 
  border-radius: var(--radius); 
  padding: 1.5rem; 
  box-shadow: var(--shadow); 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.review-card:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 12px 32px rgba(47, 133, 90, 0.15); 
  border-color: rgba(47, 133, 90, 0.2);
}
.review-stars { 
  color: #fbbf24; 
  font-size: 1.2rem; 
  margin-bottom: 1rem; 
  display: block;
}
.review-text { 
  font-style: italic; 
  color: var(--text); 
  line-height: 1.6; 
  margin: 0 0 1rem; 
  font-size: 1rem;
  position: relative;
}
.review-text::before {
  content: '"';
  font-size: 3rem;
  color: rgba(47, 133, 90, 0.2);
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  font-family: serif;
  line-height: 1;
}
.review-author { 
  color: var(--brand-ink); 
  font-weight: 600; 
  font-size: 0.95rem; 
  display: block; 
  text-align: right;
  font-style: normal;
}

/* Location */
.location { 
  padding: 3rem 0; 
  position: relative;
  background: var(--bg);
  z-index: 1;
}
.location-grid { display: grid; grid-template-columns: 2fr 1fr; align-items: start; }
.location-grid > * + * {
  margin-top: 1rem;
}

/* Modern browsers with gap support */
@supports (gap: 1rem) {
  .location-grid {
    gap: 1rem;
  }
  .location-grid > * + * {
    margin-top: 0;
  }
}
.map-wrapper { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid #eaeaea; box-shadow: var(--shadow); background: #ffffff; }
.map-wrapper iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; filter: none; }
.address { background: var(--panel); border: 1px solid #eaeaea; border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.address a { color: var(--brand-ink); }

/* Contact */
.contact { 
  padding: 3rem 0 4rem; 
  position: relative;
  background: var(--bg);
  z-index: 1;
}
.contact .embed-wrapper { width: 100%; max-width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); }
.field { grid-column: span 6; display: grid; }
.field.full { grid-column: 1 / -1; }
.field span { font-weight: 600; color: #334155; }
.field input, .field textarea {
  width: 100%;
  background: #ffffff;
  color: var(--text);
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  padding: .75rem .85rem;
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: rgba(47,133,90,.45); box-shadow: 0 0 0 3px rgba(47,133,90,.18); }
.error { color: #b45309; min-height: 1.1em; }
.form-actions { display: flex; align-items: center; margin-top: .6rem; }
.form-actions > * + * {
  margin-left: 0.8rem;
}

/* Modern browsers with gap support */
@supports (gap: 0.8rem) {
  .form-actions {
    gap: 0.8rem;
  }
  .form-actions > * + * {
    margin-left: 0;
  }
}
.form-note { color: var(--muted); font-size: .95rem; }
.form-status { margin-top: .6rem; font-weight: 600; color: var(--brand-ink); }

/* Impressum */
.impressum-section { padding: 3rem 0 4rem; }
.impressum-section h1 { 
  text-align: center; 
  margin-bottom: 2rem; 
  color: var(--brand-ink);
  font-size: 2.5rem;
}

@media (max-width: 768px) {
  .impressum-section h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .impressum-section h1 {
    font-size: 1.8rem;
  }
}

/* Modern browsers with clamp support */
@supports (font-size: clamp(1.8rem, 3vw, 2.5rem)) {
  .impressum-section h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
  }
}
.impressum-content { 
  max-width: 800px; 
  margin: 0 auto; 
  background: var(--panel); 
  border: 1px solid #eaeaea; 
  border-radius: var(--radius); 
  padding: 2rem; 
  box-shadow: var(--shadow);
}
.impressum-content h2 { 
  color: var(--brand-ink); 
  font-size: 1.3rem; 
  margin-top: 2rem; 
  margin-bottom: 1rem; 
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.impressum-content h3 { 
  color: var(--brand-ink); 
  font-size: 1.1rem; 
  margin-top: 1.5rem; 
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.impressum-content p { 
  margin-bottom: 1rem; 
  line-height: 1.7; 
  color: #334155;
}

/* Scroll to Top Button - Simple Grey Arrow */
.scroll-to-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: #6b7280;
  text-decoration: none;
  display: block;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
  cursor: pointer;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  color: #374151;
  transform: translateY(-2px);
}

.scroll-to-top-btn svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Footer */
.site-footer { border-top: 1px solid #eaeaea; padding: 1.2rem 0 2rem; background: #ffffff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-links { display: flex; }
.footer-links > * + * {
  margin-left: 1rem;
}

/* Modern browsers with gap support */
@supports (gap: 1rem) {
  .footer-links {
    gap: 1rem;
  }
  .footer-links > * + * {
    margin-left: 0;
  }
}
.footer-links a { color: var(--brand-ink); text-decoration: none; }

/* Responsive */
@media (max-width: 900px) {
  .service-items { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .location-grid { grid-template-columns: 1fr; }
  .gallery .photo { grid-column: span 6; }
  .about-us-content { padding: 1.5rem; }
  .about-us-header { padding: 1.2rem 1.5rem; }
  .impressum-content { padding: 1.5rem; }
  .reviews-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .review-card { padding: 1.2rem; }
}
@media (max-width: 640px) {
  .nav a { margin-left: .6rem; }
  .nav { font-size: 60%; }
  .brand-text { font-size: 70%; }
  .service-items { grid-template-columns: 1fr; }
  .field { grid-column: 1 / -1; }
  .hero { padding-top: 2rem; min-height: unset; }
  .hero-inner { grid-template-columns: 1fr; }
  .gallery .photo { grid-column: 1 / -1; }
  .embed-frame { min-height: 1100px; }
  zapier-interfaces-page-embed { height: 900px; }
  
  /* Adjust background patterns for mobile */
  .hero::before,
  .features::before,
  .location::before,
  .contact::before {
    left: 0;
    right: 0;
    width: auto;
  }
  
  .hero::before {
    background: radial-gradient(400px 200px at 50% 30%, rgba(47,133,90,.06), transparent 60%);
  }
  
  .features::before {
    background: radial-gradient(350px 180px at 50% 40%, rgba(217,119,6,.04), transparent 60%);
  }
  
  .location::before {
    background: radial-gradient(300px 150px at 50% 50%, rgba(47,133,90,.04), transparent 60%);
  }
  
  .contact::before {
    background: radial-gradient(280px 140px at 50% 60%, rgba(217,119,6,.03), transparent 60%);
  }
  
  /* About Us Mobile */
  .about-us-content { padding: 1rem; }
  .about-us-header { padding: 1rem; }
  .about-us-header h3 { font-size: 1.2rem; }
  .about-us-intro { font-size: 1rem; }
  .highlight-item { padding: 0.8rem; }
  .about-us-tagline { padding: 1rem; }
  .about-us-tagline p { font-size: 1rem; }
  
  /* Impressum Mobile */
  .impressum-section { padding: 2rem 0 3rem; }
  .impressum-content { padding: 1rem; margin: 0 1rem; }
  .footer-links { flex-direction: column; }
  .footer-links > * + * {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  /* Reviews Mobile */
  .reviews { padding: 3rem 0; }
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews-grid > * + * {
    margin-top: 1rem;
  }
  .review-card { padding: 1rem; }
  .review-text { font-size: 0.95rem; }
  .review-text::before { font-size: 2.5rem; }
  
  /* Scroll to Top Button Mobile */
  .scroll-to-top-btn {
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
  }
}


