:root {
  --cc-btn-primary-bg: #417154;
  --cc-text: #333;
}

.webstra-link-about {
  color: #333333;
}

.webstra-link-about:hover {
  color: #417154;
}

.promo-contact-section .card .icon {
  padding: 42px;
}

.testimonial-section-three {
  background: #ffffff;
}

.webstra-bg-giftcard {
  background-color: #f7f7f7;
}

.testimonial-section-three .card .quote {
  color: #417154;
}

.alt-color-bg-dark {
  background-color: #333333 !important;
}

.about-section .content .title {
  color: #0a0a0a;
}

.about-section .content .text {
  color: #333333;
}

.newsletter-section .content h2 {
  color: #0a0a0a;
}

.newsletter-section .content p {
  color: #333333;
}

.newsletter-section .content h2 span::after {
  background: #417154;
}

.newsletter-section .content h2 span::before {
  background: #417154;
}

.footer-area p {
  color: #333333;
}

.footer-area .footer-links li a {
  color: #333333;
}

.footer-area h3 {
  color: #0a0a0a;
}

.header-style-three .main-navbar-area {
  border-bottom: 2px solid #417154;
}

.newsletter-section .newsletter-form .form-control {
  background: white;
  border-color: #dedede;
}

.service-section {
  margin-top: 0px;
}

.header-left ul {
  list-style-type: circle;
  margin: 0;
  padding: 0;
}

.webstra-background-header {
  padding-top: 5px;
  padding-bottom: 5px;
  background-color: #417154;
}

.header-left a {
  color: white;
}

.header-left i {
  color: white;
  margin-right: 5px;
  vertical-align: middle;
  margin-top: -4px;
}

.header-left ul li {
  display: inline-block;
  position: relative;
  color: var(--whiteColor);
  margin-left: 35px;
  font-size: 15px;
}

@media (max-width: 575px) {
  .webstra-container-smaller {
    padding: 0px !important;
  }
}

.webstra-background-color {
  background-color: #f7f7f7;
}

.blog-section-two .card,
.blog-section-three .card,
.blog-single-area .blog-section .card {
  background: transparent;
}

.home-banner-area .slider-item::after {
  background: transparent;
}

/* Hero-Slider: Owl blendet .owl-carousel bis zu seinem Start aus (am Handy einige Sekunden), danach schob der
   Slider die ganze Seite nach unten. Vorher schon Platz und Hintergrund der ersten Folie zeigen, der Text erscheint
   wie bisher mit Owl und seiner Einblendung. */
.home-banner-area .banner-slider.owl-carousel:not(.owl-loaded) {
  display: block;
}
.home-banner-area .banner-slider:not(.owl-loaded) > .slider-item ~ .slider-item {
  display: none;
}
.home-banner-area .banner-slider:not(.owl-loaded) .banner-content {
  visibility: hidden;
}

.webstra-background-services {
  background-color: #417154;
  color: white;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 10px;
  padding-right: 10px;

  /* text overflow wrap ellipsis */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.webstra-card {
  background-image: url("/assets/images/service/service3.jpg");background-image:image-set(url(/bilder/service3-0a2b9bb8-1832.avif) type("image/avif") 1x, url(/bilder/service3-0a2b9bb8-1832.webp) type("image/webp") 1x);
  background-size: cover;
  background-color: #f7f7f7;
  padding: 100px;
}

@media (max-width: 500px) {
  .webstra-card {
    padding: 50px 20px 50px 20px;
  }
}

.service-section .card .image::after {
  background: none;
}

.webstra-content {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.webstra-card h3,
.webstra-card p {
  color: white;
}

.webstra-btn:hover {
  color: white;
  background-color: transparent;
  border-color: white;
}

.webstra-blume-background-left {
  position: absolute;
  top: -200px;
  left: -210px;
  width: 700px;
  z-index: -1;
}

.webstra-blume-background-right {
  position: absolute;
  top: -40px;
  right: -120px;
  width: 700px;
  z-index: -1;
}

.webstra-blume-background-left-bottom {
  position: absolute;
  bottom: 20px;
  left: 10px;
  width: 300px;
  z-index: -1;
}

.newsletter-section::before {
  background: #ffffff;
}

.newsletter-section {
  background: #ffffff;
}

.page-title-area::before {
  background: none !important;
}

.header-area.header-style-three {
  top: 0;
}

#header-whitespace {
  height: 131px;
}

@media (min-width: 300px) {
  #header-whitespace {
    height: 131px;
  }
}

@media (min-width: 407px) {
  #header-whitespace {
    height: 108px;
  }
}

@media (min-width: 431px) {
  #header-whitespace {
    height: 108.5px;
  }
}

@media (min-width: 1200px) {
  #header-whitespace {
    height: 134px;
  }
}

.aside-widget-area .tags a {
  background: #877261;
  color: white;
}

.webstra-blog-content {
  padding-bottom: 20px !important;
}

.terms-area .content h3,
.privacy-area .content h3 {
  margin-top: 0px !important;
}

.webstra-privacy-content p {
  margin-bottom: 20px !important;
}

.about-single-area .service-section-four .card .icon i {
  background: none;
}

.about-single-area .promo-service-section .card:hover {
  background: #f7f7f7;
}

.icon img {
  margin-top: 18px;
  margin-bottom: 18px;
  margin-left: 15px;
  margin-right: 15px;
}

.page-title-content {
  hyphens: manual;
}

.webstra-content-service {
  padding-top: 0px !important;
}

.webstra-card-service {
  background-color: #f7f7f7;
  padding: 10px;
  padding-bottom: 20px;
  height: 100%;
}

.webstra-card-service a {
  width: 100%;
}

.webstra-content-block {
}

.webstra-content-block p {
  margin-bottom: 0px;
  text-align: center;
}

.primary-btn.style-webstra {
  color: #417154;
  border-color: #417154;
  background: transparent;
  margin-top: 20px;
}

.primary-btn.style-webstra:hover {
  color: #ffffff;
  background: #417154;
}

.webstra-title-service {
  text-align: center;
  padding: 20px;
  background-color: #d0c59a;
  margin-bottom: 20px;
}

.webstra-image {
  margin-bottom: 20px !important;
}

.webstra-hr {
  margin: 20px 0px 16px 0px !important;
}

.webstra-list-service {
  display: flex;
  padding: 0px 10px 0px 10px;
  align-items: center;
}

.webstra-list-service img {
  height: 20px;
}

.webstra-list-service text {
  text-align: start;
  margin-left: 10px;
}

.webstra-image-float {
  margin-bottom: 20px;
}

@media (min-width: 992px) {
  .webstra-image-float {
    float: left;
    margin-right: 20px;
    width: 55%;
  }
}

@media (min-width: 1199px) {
  .webstra-image-float {
    float: left;
    margin-right: 20px;
    width: 34%;
  }
}

@media (min-width: 1399px) {
  .webstra-image-float {
    float: left;
    margin-right: 20px;
    width: 41%;
    margin-bottom: 10px;
  }
}

.webstra-image-float-right {
  margin-bottom: 20px;
}

@media (min-width: 992px) {
  .webstra-image-float-right {
    float: right;
    margin-left: 20px;
    width: 55%;
  }
}

@media (min-width: 1199px) {
  .webstra-image-float-right {
    float: right;
    margin-left: 20px;
    width: 34%;
  }
}

@media (min-width: 1399px) {
  .webstra-image-float-right {
    float: right;
    margin-left: 20px;
    width: 41%;
  }
}

.page-title-area {
  padding-top: 60px;
  padding-bottom: 60px;
}

.banner-content {
  padding-top: 140px !important;
  padding-bottom: 140px !important;
}

@media (max-width: 1199px) {
  .banner-content {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
  }
}

@media (max-width: 424px) {
  .banner-content {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}

.webstra-price-service {
  font-weight: 400 !important;
}

.webstra-top-service {
  text-align: center;
  margin-bottom: 20px;
}

.webstra-info {
  background-color: #417154;
  padding: 20px;
  color: white;
  display: flex;
  align-items: center;
}

.webstra-info img {
  width: 40px;
  margin-right: 20px;
}

@media (max-width: 425px) {
  .webstra-info {
    flex-direction: column;
    align-items: center;
  }
  .webstra-info img {
    margin-right: 0px;
    margin-bottom: 20px;
  }
  .webstra-info text {
    text-align: center;
  }
}

.webstra-vip {
  background-color: #f7f7f7;
  padding: 20px;
  display: flex;
  align-items: center;
}

.webstra-vip img {
  width: 100%;
}

/* Gutschein-Hinweis unter dem vip-Block, gleicher Aufbau */
.webstra-gutschein-block {
  margin-top: 24px;
}

.webstra-gutschein-block img {
  height: auto;
  box-shadow: 0 14px 30px rgba(40, 50, 40, 0.2);
}

.webstra-geschenk-form {
  max-width: none !important;
}

.grecaptcha-badge {
  display: none;
}

@media (min-width: 992px) {
  .webstra-shorter {
    margin-top: -40px;
  }
  .webstra-longer {
    margin-top: 40px;
  }
}

.page-title-area .page-title-content ul li:last-child {
  padding-left: 0px !important;
  margin-left: 0px !important;
}

.header-style-three
  .main-navbar-area
  .main-nav
  .navbar
  .navbar-nav
  .nav-item
  a {
  padding: 18px 0;
}

.main-navbar-area .main-nav .navbar .navbar-nav .nav-item:hover .dropdown-menu {
  top: 58px;
}

@media only screen and (max-width: 991px) {
  .service-section .card {
    cursor: pointer;
  }

  .service-section .card:hover .image {
    -webkit-transform: none;
    transform: none;
  }

  .service-section .card .content {
    bottom: 0;
  }

  .service-section .card .content .hover-content {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    opacity: 0;

    padding: 0;
  }

  .service-section .card .content .hover-content > a {
    height: 100%;
    width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  .service-section .card .content .hover-content {
    top: 0;
  }
}

.service-section .webstra-service-cards > div {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

@media only screen and (max-width: 991px) {
  .service-section .webstra-service-cards > div:nth-child(even) {
    padding-left: 0.25rem;
    padding-right: 0;
  }

  .service-section .webstra-service-cards > div:nth-child(odd) {
    padding-left: 0;
    padding-right: 0.25rem;
  }
}

@media (max-width: 1999px) {
  .webstra-logo1 {
    height: 45px !important;
  }
}

.aside-widget-area .widget-post .article-item .image img {
  object-fit: cover;
  aspect-ratio: 1;
}

#categories {
  cursor: pointer;
}

.webstra-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 3%;
  left: 3%;
  background-color: #417154;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 4px 2px 8px #6969692c;
  z-index: 100;
}

.blog-section-three .card .image {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
}

.blog-section-three .card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
  display: block;
}

/* Blog-Artikel-Bilder responsiv und im 16:9-Format */
.blog-section .card .image {
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.blog-section .card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
  display: block;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* Icon-Kreise für Hautanalyse-Seite */
.webstra-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #417154, #5a8a6b);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(65, 113, 84, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.webstra-icon-circle:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(65, 113, 84, 0.4);
}

.webstra-icon-circle i {
  font-size: 2rem;
  color: white;
}

/* Hautanalyse spezifische Card-Styles - Subtile Hervorhebung */
.hautanalyse-featured {
  position: relative;
  border: 2px solid #417154 !important;
  box-shadow: 0 8px 25px rgba(65, 113, 84, 0.15) !important;
}

.hautanalyse-featured::before {
  content: "Empfohlen";
  position: absolute;
  top: -10px;
  right: 20px;
  background: #417154;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 10;
}

.hautanalyse-featured .webstra-title-service {
  color: #417154 !important;
  font-weight: 700 !important;
}

.hautanalyse-featured .webstra-price-service {
  background: linear-gradient(135deg, #417154, #5a8a6b) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 700 !important;
}

.hautanalyse-featured .primary-btn {
  background: linear-gradient(135deg, #417154, #5a8a6b) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 25px !important;
  transition: all 0.3s ease !important;
}

.hautanalyse-featured .primary-btn:hover {
  background: linear-gradient(135deg, #5a8a6b, #417154) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(65, 113, 84, 0.3) !important;
}

.hautanalyse-featured .webstra-list-service {
  padding: 0.5rem 0 !important;
}

.hautanalyse-featured .webstra-list-service img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%)
    hue-rotate(346deg) brightness(104%) contrast(97%) !important;
}

/* Info-Blöcke für Hautanalyse - Container */
.info-blocks-container {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  gap: 1.5rem !important;
}

/* Info-Blöcke für Hautanalyse */
.info-block {
  border: 1px solid #e9ecef !important;
  background: white !important;
  transition: all 0.3s ease !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}

.info-block:hover {
  border-color: #417154 !important;
  background: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(65, 113, 84, 0.1) !important;
}

.info-block .webstra-content-block {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.info-icon {
  background: rgba(65, 113, 84, 0.1);
  padding: 0.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.product-image {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-image:hover img {
  transform: scale(1.05);
}

.info-icon img,
.info-icon i {
  stroke-width: 2px !important;
}

.info-block .webstra-title-service {
  color: #000000 !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

.info-block .ck-content {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.info-block .ck-content p {
  color: #6c757d;
  margin-bottom: 1rem;
  line-height: 1.5;
  flex: 1 !important;
}

.info-link {
  color: #417154 !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-top: auto !important;
}

.info-link:hover {
  color: #5a8a6b !important;
  text-decoration: none !important;
  transform: translateX(3px);
}

/* Höhenausgleich für Hautanalyse-Sektion - Flexbox-Methode */
.row.gy-5 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
}

.row.gy-5 > [class*="col-"] {
  display: flex !important;
  flex-direction: column !important;
}

.row.gy-5 .card {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hautanalyse-featured::before {
    top: -8px;
    right: 15px;
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
  }

  .info-block .d-flex {
    flex-direction: column;
    text-align: center;
  }

  .info-icon {
    margin: 0 auto 1rem auto !important;
  }

  .info-block {
    height: auto !important;
    min-height: auto !important;
  }
}

/* Footer Höhenausgleich */
.footer-top .row {
  display: flex !important;
  align-items: stretch !important;
}

.footer-top .row > [class*="col-"] {
  display: flex !important;
  flex-direction: column !important;
}

.footer-widget {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Online-Gutschein (Geschenkgutschein-Seite) */
.webstra-gs {
  background: #ffffff;
}

.webstra-gs h2,
.webstra-gs-ablauf h2,
.webstra-gs-text h2 {
  margin-bottom: 14px;
  font-size: 32px;
}

.webstra-gs-vorschau-spalte {
  position: sticky;
  top: 160px;
  margin-bottom: 30px;
}

/* Desktop: Vorschau so groß, dass sie samt Hinweis ganz in den Bildschirm passt
   (160 px Abstand oben für die Kopfzeile, darunter Hinweiszeile und Luft),
   sonst bleibt beim Mitlaufen der untere Teil abgeschnitten */
@media (min-width: 992px) {
  .webstra-gs-vorschau-spalte {
    max-width: max(360px, calc(100vh - 215px));
    margin-left: auto;
    margin-right: auto;
  }
}

/* Gedruckte Klappkarte in 3D (Post/Abholung): 21 × 10,5 cm, Falz oben an der Längsseite.
   Deckel = Vorderseite außen, „Ein Geschenk für dich“ innen; Unterteil = Gutschein innen, Rückseite außen */
.webstra-gs-karte3d[hidden],
.webstra-gutschein-vorschau[hidden] {
  display: none;
}

.k3d-buehne {
  position: relative;
  aspect-ratio: 1 / 1;
  perspective: 1800px;
  perspective-origin: 50% 30%;
  cursor: pointer;
}

.k3d-karte {
  position: absolute;
  left: 4%;
  width: 92%;
  top: 50%;
  aspect-ratio: 2 / 1;
  transform-style: preserve-3d;
  transform: translateY(-50%) rotateX(24deg) rotateZ(-4deg);
  transition: transform 1s cubic-bezier(0.3, 0.7, 0.2, 1);
}

/* Aufgeklappt: Unterteil rutscht nach unten, damit der Deckel darüber Platz hat */
.k3d-buehne[data-zustand="offen"] .k3d-karte {
  transform: translateY(-4%) rotateX(38deg) rotateZ(0deg);
}

.k3d-buehne[data-zustand="hinten"] .k3d-karte {
  transform: translateY(-50%) rotateX(24deg) rotateY(180deg) rotateZ(4deg);
}

.k3d-unten,
.k3d-deckel {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.k3d-deckel {
  transform-origin: 50% 0;
  transform: translateZ(1px);
  transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* fast flach aufgeklappt wie in der Flyeralarm-Vorschau, mit leichtem Knick am Falz */
.k3d-buehne[data-zustand="offen"] .k3d-deckel {
  transform: translateZ(1px) rotateX(160deg);
}

.k3d-seite {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(120, 100, 70, 0.08);
}

/* Robins echte Karte aus dem Flyeralarm-Designer (Außen- und Innenseite, je 21 × 21 cm), in vier Hälften geschnitten */
.k3d-vorderseite {
  background-image: url(/assets/images/gutschein/karte-vorderseite.jpg);background-image:image-set(url(/bilder/karte-vorderseite-c469580f-1040.avif) type("image/avif") 1x, url(/bilder/karte-vorderseite-c469580f-1040.webp) type("image/webp") 1x);
}

.k3d-innen-unten {
  background-image: url(/assets/images/gutschein/karte-innen-unten.jpg);background-image:image-set(url(/bilder/karte-innen-unten-1b093819-1040.avif) type("image/avif") 1x, url(/bilder/karte-innen-unten-1b093819-1040.webp) type("image/webp") 1x);
}

.k3d-innen-oben {
  background-image: url(/assets/images/gutschein/karte-innen-oben.jpg);background-image:image-set(url(/bilder/karte-innen-oben-04732daf-1040.avif) type("image/avif") 1x, url(/bilder/karte-innen-oben-04732daf-1040.webp) type("image/webp") 1x);
  transform: rotateX(180deg);
}

.k3d-rueckseite {
  background-image: url(/assets/images/gutschein/karte-rueckseite.jpg);background-image:image-set(url(/bilder/karte-rueckseite-36b78165-1040.avif) type("image/avif") 1x, url(/bilder/karte-rueckseite-36b78165-1040.webp) type("image/webp") 1x);
  transform: rotateY(180deg) translateZ(1px);
}

/* weicher Schatten unter der Karte (flach auf der Bühne, damit er beim Umdrehen nicht vor der Rückseite liegt) */
.k3d-buehne::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 60%;
  height: 12%;
  background: radial-gradient(closest-side, rgba(40, 35, 25, 0.32), rgba(40, 35, 25, 0));
  transition: top 1s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.k3d-buehne[data-zustand="offen"] .k3d-buehne::before,
.k3d-buehne[data-zustand="offen"]::before {
  top: 86%;
}

.k3d-knoepfe {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.k3d-knoepfe button {
  padding: 6px 12px;
  border: 1px solid #d9d2c5;
  background: #ffffff;
  color: #333333;
  font-size: 13px;
  line-height: 1.3;
  border-radius: 0;
  cursor: pointer;
}

.k3d-knoepfe button[aria-pressed="true"] {
  border-color: #417154;
  background: #417154;
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .k3d-karte,
  .k3d-deckel {
    transition: none;
  }
}

.webstra-gutschein-vorschau {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 18px 40px rgba(40, 50, 40, 0.18);
}

.webstra-gutschein-vorschau img {
  display: block;
  width: 100%;
  height: auto;
}

.webstra-gutschein-vorschau [data-feld] {
  position: absolute;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 400;
  font-style: normal;
}

.webstra-gutschein-vorschau [data-feld="gruss"] {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
}

.webstra-gutschein-vorschau [data-feld="gruss"] > span {
  display: -webkit-box;
  width: 100%;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.webstra-gutschein-vorschau[data-layout="d"] [data-feld="gruss"] > span,
.webstra-gutschein-vorschau[data-layout="e"] [data-feld="gruss"] > span {
  -webkit-line-clamp: 3;
}

/* Hochformat (b) schmaler, damit es neben dem Formular ganz zu sehen ist */
.webstra-gutschein-vorschau[data-layout="b"] {
  max-width: 72%;
  margin: 0 auto;
}

.webstra-gs-klein {
  margin: 8px 0 0;
  font-size: 14px;
  color: #777777;
}

/* Motive: zwei beschriftete Reihen zu je fünf (mit „Gutschein“ / mit Anlass als Überschrift) */
.webstra-gs-motive {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
}

.webstra-gs-gruppe {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #6b6b6b;
}

.webstra-gs-gruppe strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #222222;
}

.webstra-gs-motive + .webstra-gs-gruppe {
  margin-top: 18px;
}

/* Gestaltungen: Kacheln zeigen das gewählte Motiv in der jeweiligen Gestaltung */
.webstra-gs-layouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.webstra-gs-schritt[hidden],
.webstra-gs-motiv[hidden] {
  display: none;
}

/* Filter „Alle | Fotos | Gezeichnet“ rechts neben der Überschrift „Motiv“ */
.webstra-gs-schritt-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.webstra-gs-schritt-kopf h3 {
  margin-bottom: 0 !important;
}

.webstra-gs-reihen {
  display: inline-flex;
  border: 1px solid #d9d9d9;
  background: #ffffff;
}

.webstra-gs-reihen button {
  padding: 7px 16px;
  border: 0;
  background: transparent;
  color: #333333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.webstra-gs-reihen button[aria-selected="true"] {
  background: #417154;
  color: #ffffff;
}

.webstra-gs-reihen button:focus-visible {
  outline: 2px solid #417154;
  outline-offset: 2px;
}

.webstra-gs-motiv,
.webstra-gs-layout {
  position: relative;
  margin: 0;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.2s;
}

/* Namen dürfen umbrechen („Gesichtspflege“, „Für Schwangere“), sonst würden die Spalten ungleich breit */
.webstra-gs-motiv > span,
.webstra-gs-layout > span:last-child {
  display: block;
  hyphens: manual;
}

.webstra-gs-motiv input,
.webstra-gs-layout input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.webstra-gs-motiv img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin-bottom: 6px;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.webstra-gs-layout-bild {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  margin-bottom: 6px;
  background: #ece8e1;
}

.webstra-gs-layout-bild img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.webstra-gs-layout-hoch .webstra-gs-layout-bild img {
  height: 92%;
}

.webstra-gs-motiv:has(input:checked),
.webstra-gs-layout:has(input:checked) {
  border-color: #417154;
  font-weight: 600;
}

.webstra-gs-motiv:has(input:focus-visible),
.webstra-gs-layout:has(input:focus-visible) {
  outline: 2px solid #417154;
  outline-offset: 2px;
}

@media (max-width: 1199px) {
  .webstra-gs-motiv,
  .webstra-gs-layout {
    font-size: 12px;
  }
}

.webstra-gs-schritte {
  padding: 34px;
  border-radius: 0;
  background: #f7f7f7;
}

.webstra-gs-einleitung {
  margin-bottom: 26px;
}

.webstra-gs-schritt {
  padding: 22px 0;
  border-top: 1px solid #e3e3e3;
}

.webstra-gs-schritt h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  /* so hoch wie die Filterknöpfe neben „Motiv“, damit keine Überschrift beim Wechsel der Versandart springt */
  min-height: 37px;
  margin-bottom: 14px;
  font-size: 20px;
}

/* Schrittnummern zählen nur sichtbare Schritte (Motiv und Gruß fehlen bei Post und Abholung) */
.webstra-gs-schritte {
  counter-reset: gs-schritt;
}

.webstra-gs-schritt {
  counter-increment: gs-schritt;
}

.webstra-gs-schritt h3 > span::before {
  content: counter(gs-schritt);
}

.webstra-gs-schritt h3 > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #417154;
  color: #ffffff;
  font-size: 15px;
}

.webstra-gs-schritt h3 small {
  font-size: 14px;
  font-weight: 400;
  color: #888888;
}

.webstra-gs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.webstra-gs-chip {
  padding: 9px 18px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  background: #ffffff;
  color: #333333;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.webstra-gs-chip:hover {
  border-color: #417154;
}

.webstra-gs-chip.aktiv {
  border-color: #417154;
  background: #417154;
  color: #ffffff;
}

.webstra-gs-eigener {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  background: #ffffff;
  cursor: text;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.webstra-gs-eigener input {
  width: 118px;
  padding: 9px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #333333;
  font-weight: 500;
}

.webstra-gs-eigener input::placeholder {
  color: #888888;
  font-weight: 400;
}

.webstra-gs-eigener span {
  color: #888888;
}

.webstra-gs-eigener:focus-within,
.webstra-gs-eigener.aktiv {
  border-color: #417154;
  box-shadow: inset 0 0 0 1px #417154;
}

.webstra-gs-eigener.aktiv span {
  color: #333333;
}

.webstra-gs-fehler {
  margin: 10px 0 0;
  font-size: 14px;
  color: #b42318;
}

.webstra-gs-gruss {
  position: relative;
  margin-top: 10px;
}

.webstra-gs-gruss textarea {
  padding-bottom: 26px;
}

/* Textfelder wachsen per Skript mit dem Text, ohne eigene Bildlaufleiste und ohne Ziehgriff */
#gutscheinForm textarea {
  overflow: hidden;
  resize: none;
}

/* Unten derselbe Abstand wie oben (das Theme setzt unten 0) */
#gutscheinForm textarea[name="note"] {
  padding-bottom: 15px;
}

.webstra-gs-zaehler {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 12px;
  color: #999999;
}

.webstra-gs-versand label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px 15px;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  background: #ffffff;
  font-size: 15px;
  cursor: pointer;
}

.webstra-gs-versand label:has(input:checked) {
  border-color: #417154;
  background: #f4f8f5;
}

.webstra-gs-versand input {
  accent-color: #417154;
}

.webstra-gs-versand i {
  font-size: 22px;
  color: #417154;
}

.webstra-gs-versand strong {
  display: block;
  color: #222222;
}

.webstra-gs-anmerkung summary {
  margin: 4px 0 10px;
  color: #417154;
  cursor: pointer;
}

.webstra-gs-summe {
  margin-top: 6px;
  padding: 22px;
  border: 1px solid #e3e3e3;
  border-radius: 0;
  background: #ffffff;
}

.webstra-gs-summe-zeile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 17px;
}

.webstra-gs-summe-zeile strong {
  flex-shrink: 0;
  font-size: 26px;
  color: #222222;
  white-space: nowrap;
}

.webstra-gs-summe .primary-btn {
  width: 100%;
  margin-top: 16px;
}

.webstra-gs-vertrauen {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.webstra-gs-vertrauen li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.webstra-gs-vertrauen i {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1.1;
  color: #417154;
}

.webstra-gs-ablauf {
  background: #f7f7f7;
  text-align: center;
}

.webstra-gs-ablauf h2 {
  margin-bottom: 36px;
}

.webstra-gs-ablauf i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #417154;
  color: #ffffff;
  font-size: 28px;
}

.webstra-gs-ablauf h3 {
  font-size: 20px;
}

.webstra-gs-ablauf p {
  max-width: 320px;
  margin: 0 auto 20px;
}

.webstra-gs-text {
  background: #f7f7f7;
}

.webstra-gs-fragen dt {
  margin-top: 16px;
  color: #222222;
}

.webstra-gs-fragen dd {
  margin: 4px 0 0;
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 991px) {
  /* steht hier nach dem letzten Schritt, vor der Bestellübersicht (das Skript der Seite setzt sie um) */
  .webstra-gs-vorschau-spalte {
    position: static;
    max-width: 460px;
    margin: 6px auto 18px;
  }
  /* Vorschau und 3D-Karte in einem Feld mit fester Höhe, damit das Formular beim Wechsel nicht springt */
  .webstra-gs-vorschau-feld {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 0.92;
  }

  .webstra-gs-vorschau-feld > .webstra-gutschein-vorschau {
    width: 100%;
  }

  .webstra-gs-vorschau-feld > .webstra-gutschein-vorschau[data-layout="b"] {
    max-width: 58%;
  }

  .webstra-gs-vorschau-feld > .webstra-gs-karte3d {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }

  .webstra-gs-vorschau-feld > .webstra-gs-karte3d[hidden] {
    display: none;
  }

  .webstra-gs-vorschau-feld .k3d-buehne {
    flex: 1;
    aspect-ratio: auto;
  }

  /* etwas schmalere Karte, damit sie aufgeklappt über den Knöpfen bleibt */
  .webstra-gs-vorschau-feld .k3d-karte {
    left: 9%;
    width: 82%;
  }

  .webstra-gs-vorschau-spalte [data-gs-vorschau-text] {
    min-height: 3em;
  }
}

/* sehr schmale Handys: der Hinweis zur gedruckten Karte braucht drei Zeilen, sonst springt die Seite beim Versandwechsel */
@media (max-width: 340px) {
  .webstra-gs-vorschau-spalte [data-gs-vorschau-text] {
    min-height: 4.6em;
  }
}


@media (max-width: 575px) {
  .webstra-gs-schritte {
    padding: 22px 16px;
  }

  .webstra-gs-summe {
    padding: 18px 16px;
  }

  .webstra-gs-summe-zeile {
    font-size: 16px;
  }

  .webstra-gs-summe-zeile strong {
    font-size: 24px;
  }

  /* Handy: drei je Zeile, damit die Namen unter den Kacheln ganz zu lesen sind */
  .webstra-gs-motive {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .webstra-gs-motiv,
  .webstra-gs-layout {
    font-size: 11px;
  }

  .webstra-gs-layouts {
    gap: 6px;
  }

  .webstra-gs h2,
  .webstra-gs-ablauf h2,
  .webstra-gs-text h2 {
    font-size: 26px;
  }
}

/* Gutschein an anderen Stellen der Website */

/* Kopfzeile: Gutschein-Hinweis links, nur auf Desktop (ab 1200 px, wie das große Menü).
   Absolut gesetzt, damit Höhe der Leiste und Lage von E-Mail/Telefon genau wie vorher bleiben
   (#header-whitespace hat eine feste Höhe, sonst entsteht ein weißer Streifen über dem Hero). */
.webstra-kopf-gutschein {
  display: none !important;
}

@media (min-width: 1200px) {
  .header-left ul {
    position: relative;
  }

  .header-left ul li.webstra-kopf-gutschein {
    display: inline-block !important;
    position: absolute;
    left: 0;
    top: 1px;
    margin-left: 0;
  }
}

/* Startseite: dunkelgrünes Band, damit sich der Gutschein von „Aktuelles“ (#f7f7f7) abhebt */
.webstra-start-gutschein {
  background: #417154;
  color: #ffffff;
}

.webstra-start-gutschein .title,
.webstra-start-gutschein .text,
.webstra-start-gutschein-punkte li {
  color: #ffffff;
}

.webstra-start-gutschein .primary-btn {
  background: #ffffff;
  color: #417154;
  border-color: #ffffff;
}

.webstra-start-gutschein .primary-btn:hover,
.webstra-start-gutschein .primary-btn:focus-visible {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.webstra-start-gutschein-bilder {
  position: relative;
  display: block;
  max-width: 560px;
  margin: 0 auto 40px;
  aspect-ratio: 1 / 0.78;
}

.webstra-start-gutschein-bilder img {
  position: absolute;
  width: 80%;
  height: auto;
  border-radius: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s;
}

.webstra-start-gutschein-bilder img:first-child {
  left: 0;
  top: 0;
  transform: rotate(-5deg);
}

.webstra-start-gutschein-bilder img:last-child {
  right: 0;
  bottom: 0;
  transform: rotate(4deg);
}

.webstra-start-gutschein-bilder:hover img:first-child {
  transform: rotate(-7deg) translateX(-6px);
}

.webstra-start-gutschein-bilder:hover img:last-child {
  transform: rotate(6deg) translateX(6px);
}

.webstra-start-gutschein-punkte {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.webstra-start-gutschein-punkte li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.webstra-start-gutschein-punkte i {
  font-size: 20px;
  color: #ffffff;
}

.webstra-behandlung-gutschein {
  margin: 24px 0 0;
  font-size: 15px;
}

.webstra-behandlung-gutschein i {
  margin-right: 4px;
  font-size: 18px;
  vertical-align: -3px;
  color: #417154;
}

.webstra-behandlung-gutschein a {
  font-weight: 600;
  color: #417154;
  text-decoration: underline;
}

/* Schmale Handys: lange Seitentitel wie „Geschenkgutschein“ passen in eine Zeile, nichts läuft aus dem Bild */
@media (max-width: 400px) {
  .page-title-content h1 {
    font-size: 8.6vw;
    overflow-wrap: anywhere;
  }
}

/* Überschrift „Vorschau“ mit Schrittnummer: nur dort, wo die Vorschau unter den Schritten steht (Handy/Tablet) */
.webstra-gs-vorschau-kopf {
  display: none;
}

@media (max-width: 991px) {
  /* wie die anderen Schritte: Trennlinie oben über die volle Breite, die Vorschau selbst bleibt höchstens 460 px breit */
  .webstra-gs-vorschau-kopf {
    display: block;
    padding: 22px 0 0;
  }

  .webstra-gs-vorschau-spalte {
    max-width: none;
    margin: 0 0 18px;
  }

  .webstra-gs-vorschau-spalte > :not(.webstra-gs-vorschau-kopf) {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Handy/Tablet: Bei der E-Mail-Vorschau ist das Feld nur so hoch wie der Gutschein, sonst klafft unter der
   Überschrift „Vorschau“ eine Lücke. Die feste Höhe bleibt für die 3D-Karte (Post/Abholung). Springen stört
   hier nicht mehr, weil die Vorschau unter allen Schritten steht. */
@media (max-width: 991px) {
  .webstra-gs-vorschau-feld:has(> .webstra-gutschein-vorschau:not([hidden])) {
    aspect-ratio: auto;
  }

  .webstra-gs-vorschau-feld:has(> .webstra-gutschein-vorschau:not([hidden])) ~ [data-gs-vorschau-text] {
    margin-top: 14px;
  }
}
