/* Ergänzungen zur übernommenen Gestaltung (Lightbox, Formular-Meldungen). */

/* Lightbox */
.pd-lightbox-open { overflow: hidden; }
.pd-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .8);
  -webkit-user-select: none; user-select: none;
}
.pd-lightbox.is-open { display: flex; }
.pd-lightbox__stage { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 60px 20px 20px; box-sizing: border-box; }
.pd-lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 0 30px rgba(0, 0, 0, .3), 0 0 8px -5px rgba(0, 0, 0, .3); }
.pd-lightbox__bar { position: absolute; top: 0; left: 0; right: 0; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 20px; color: #fff; font-size: 15px; z-index: 2; }
.pd-lightbox__close,
.pd-lightbox__nav { background: none; border: 0; padding: 0; margin: 0; color: #fff; cursor: pointer; opacity: .9; box-shadow: none; }
.pd-lightbox__close:hover, .pd-lightbox__close:focus,
.pd-lightbox__nav:hover, .pd-lightbox__nav:focus { background: none; color: #fff; opacity: 1; }
.pd-lightbox__close { width: 40px; height: 40px; }
.pd-lightbox__close svg { width: 28px; height: 28px; fill: currentColor; }
.pd-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 100px; z-index: 2; }
.pd-lightbox__nav svg { width: 36px; height: 36px; fill: currentColor; filter: drop-shadow(0 0 3px rgba(0, 0, 0, .5)); }
.pd-lightbox__prev { left: 0; }
.pd-lightbox__next { right: 0; }
.pd-lightbox--single .pd-lightbox__nav,
.pd-lightbox--single .pd-lightbox__counter { display: none; }
@media (max-width: 767px) {
  .pd-lightbox__stage { padding: 55px 0 10px; }
  .pd-lightbox__nav { width: 44px; }
  .pd-lightbox__nav svg { width: 26px; height: 26px; }
}

/* Kontaktformular: Bestätigung und Fehlermeldungen */
.wpforms-confirmation-container-full { background: #e0ffc7; border: 1px solid #b4d39b; color: #333; padding: 15px; margin: 0 0 24px; }
.wpforms-confirmation-container-full p { margin: 0; }
.wpforms-error-container { color: #d63637; margin: 0 0 12px; }
.wpforms-error-container p { margin: 0; }
div.wpforms-container .wpforms-form em.wpforms-error { display: block; color: #d63637; font-size: 12px; font-style: normal; margin-top: 4px; }
div.wpforms-container .wpforms-form .wpforms-submit[disabled] { opacity: .6; cursor: default; }

/* Impressum/Datenschutz: Die Blog-Seitenleiste der alten Seite entfällt; die Textspalte
   behält ihre Breite (gleiche Zeilenumbrüche) und steht mittig statt links. */
@media (min-width: 922px) {
  .ast-separate-container.ast-no-sidebar #primary { margin-left: auto; margin-right: auto; }
}

.pd-form-privacy { font-size: 13px; line-height: 1.5; margin: 0 0 14px; }

/* Impressum / Datenschutz: Überschriften in ruhiger Größe */
.ast-separate-container .entry-content h1 { font-size: 30px; line-height: 1.25; margin: 0 0 22px; }
.ast-separate-container .entry-content h2 { font-size: 21px; line-height: 1.3; margin: 34px 0 12px; }
.ast-separate-container .entry-content h3 { font-size: 17px; line-height: 1.35; margin: 22px 0 8px; }
.ast-separate-container .entry-content ul { margin: 0 0 1.5em 1.4em; }
@media (max-width: 544px) {
  .ast-separate-container .entry-content h1 { font-size: 25px; }
  .ast-separate-container .entry-content h2 { font-size: 19px; }
}

/* Logo auf Tablet und Handy: in den Theme-Einstellungen stand 40 px bzw. 32 px Breite – kaum lesbar. */
@media (max-width: 921px) {
  header .custom-logo-link img, .ast-header-break-point .site-branding img, .ast-header-break-point .custom-logo-link img { max-width: 130px; width: 130px; }
}
@media (max-width: 544px) {
  header .custom-logo-link img, .ast-header-break-point .site-branding img, .ast-header-break-point .custom-logo-link img { max-width: 112px; width: 112px; }
}

/* Startseite: Die kleine Zeile über dem Slogan ist jetzt die Hauptüberschrift (H1) für Suchmaschinen,
   der Slogan eine H2. Beide behalten exakt ihr bisheriges Aussehen. */
.elementor-658 .elementor-heading-title.pd-kicker { font-size: 1.125rem; line-height: 1.2em; }
.elementor-658 .elementor-heading-title.pd-claim { font-size: 64px; line-height: 1.4em; }
@media (max-width: 921px) {
  .elementor-658 .elementor-heading-title.pd-kicker { font-size: 1rem; }
  .elementor-658 .elementor-heading-title.pd-claim { font-size: 48px; }
}
@media (max-width: 544px) {
  .elementor-658 .elementor-heading-title.pd-claim { font-size: 40px; }
}

/* Kontaktdaten als Links: sehen aus wie der umgebende Text */
.site-footer a.pd-plain, .elementor a.pd-plain { color: inherit; text-decoration: none; }
.site-footer a.pd-plain:hover, .elementor a.pd-plain:hover { color: var(--ast-global-color-0); }

/* ===== Korrekturen von Darstellungsfehlern der ursprünglichen Seite ===== */

/* Kopfzeile zwischen 922 und 1120 px (z. B. iPad quer): Menü brach in zwei Zeilen um */
@media (min-width: 922px) and (max-width: 1120px) {
  .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link { padding-left: 9px; padding-right: 9px; font-size: 14px; }
  .ast-header-button-1 .ast-custom-button { white-space: nowrap; padding-left: 14px; padding-right: 14px; font-size: 12px; }
  header .custom-logo-link img { max-width: 120px; width: 120px; }
}

/* Startseite, Tablet: Text lief in das Pflanzenbild. Aufbau jetzt wie auf dem Handy – Text oben auf Weiß, Bild darunter. */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-658 .elementor-element.elementor-element-440e44c:not(.elementor-motion-effects-element-type-background) { background-size: cover; }
  .elementor-658 .elementor-element.elementor-element-440e44c::before { background-position: 0 0; background-size: cover; }
  .elementor-658 .elementor-element.elementor-element-440e44c { --padding-bottom: 420px; }
  .elementor-658 .elementor-element.elementor-element-758d5fe { --margin-right: 0%; max-width: 640px; }
}

/* Startseite, Desktop: Deko-Grafik überdeckte den Text der dritten Leistung */
@media (min-width: 1025px) {
  .elementor-658 .elementor-element.elementor-element-9903f26 { padding-right: 56px; }
}

/* Dienstleistungen: lange Wörter sauber trennen statt mitten im Wort umbrechen */
.elementor-660 h4.elementor-heading-title { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: normal; word-break: normal; }
@media (min-width: 1025px) {
  .elementor-660 .elementor-element-f5caa53 > .e-con > .e-con:first-child { --width: 26%; }
  .elementor-660 .elementor-element-f5caa53 > .e-con > .e-con:nth-child(2) { --width: 40.67%; }
}
/* Dienstleistungen, Tablet: das Bild lag über Nummer und Überschrift. Jetzt drei Spalten wie am Desktop. */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-660 .elementor-element-f5caa53 > .e-con { --flex-wrap: nowrap; flex-wrap: nowrap; align-items: flex-start; }
  .elementor-660 .elementor-element-f5caa53 > .e-con > .e-con:first-child { --width: 30%; }
  .elementor-660 .elementor-element-f5caa53 > .e-con > .e-con:nth-child(2) { --width: 42%; --padding-left: 20px; --padding-right: 20px; }
  .elementor-660 .elementor-element-f5caa53 > .e-con > .e-con:nth-child(3) { --width: 28%; }
  .elementor-660 .elementor-element-f5caa53 > .e-con > .e-con:nth-child(3) .elementor-widget-image { margin-top: 0; }
  .elementor-660 .elementor-element.elementor-element-df74aa0 { margin-top: 40px; }
}
/* Dienstleistungen, Handy: „04." klebte direkt am Bild darüber */
@media (max-width: 767px) {
  .elementor-660 .elementor-element.elementor-element-df74aa0 { margin-top: 64px; }
}

/* Projekte: Deko-Grafik lag über dem Einleitungstext */
@media (min-width: 1025px) and (max-width: 1400px) {
  .elementor-661 .elementor-element.elementor-element-20b7863 { --margin-right: 160px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-661 .elementor-element.elementor-element-288c1a8 { --padding-bottom: 250px; }
}
/* Projekte: einheitliche Bildhöhe, damit das Raster keine Lücken hat (ab Tablet; Großansicht zeigt das ganze Foto) */
@media (min-width: 768px) {
  .elementor-661 .elementor-image-gallery .gallery-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
}
