:root {
  --sw-werk-section-gap: 2px;
  --sw-werk-border: rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  scroll-snap-type: y proximity;
}

.sw-werk-section {
  scroll-snap-align: start;
  scroll-margin-top: 110px;
  margin-top: var(--sw-werk-section-gap);
  padding-top: 0;
  opacity: 1;
  transform: none;
}

/* erstes Abschnitt ohne zusätzlichen Abstand */
.sw-werk-section:first-of-type {
  margin-top: 0;
}

html.sw-werk-js .sw-werk-section {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 450ms ease, transform 450ms ease;
}

html.sw-werk-js .sw-werk-section.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.sw-werk-section-title {
  max-width: 1200px;
  margin: 22px auto 18px;
  padding: 0 16px 14px;
  font-size: 64px !important;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.05;
  text-align: center;
  font-family: 'Dancing Script', cursive !important;
  border-bottom: 1px solid var(--sw-werk-border);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
  .sw-werk-section-title {
    font-size: 46px !important;
    margin: 16px auto 12px;
    padding-bottom: 10px;
  }
}

.sw-werk-iframe-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.sw-werk-iframe {
  width: 100%;
  border: 1px solid var(--sw-werk-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: block;
  min-height: 0;
}

@media (max-width: 640px) {
  .sw-werk-section-title {
    font-size: 22px;
  }

  .sw-werk-iframe {
    border-radius: 12px;
    min-height: 0;
  }
}
