/* WSP SEO & KI – Frontend. Farben über --wsp-accent (Elementor-Primärfarbe oder Einstellung). */
:root { --wsp-accent: #2f5d8a; --wsp-accent-soft: #eaf0f6; --wsp-radius: 12px; --wsp-border: rgba(0, 0, 0, .12); --wsp-text: inherit; }

/* ---- Buttons ---- */
.wsp-button { display: inline-block; background: var(--wsp-accent); color: #fff !important; padding: 13px 26px; border: 2px solid var(--wsp-accent); border-radius: calc(var(--wsp-radius) - 4px); font: inherit; font-weight: 700; text-decoration: none !important; cursor: pointer; transition: filter .2s ease, transform .2s ease, box-shadow .2s ease; }
.wsp-button:hover { filter: brightness(.9); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.wsp-button--outline { background: transparent; color: var(--wsp-accent) !important; }
.wsp-button--outline:hover { background: var(--wsp-accent); color: #fff !important; }

/* ---- FAQ ---- */
.wsp-faq__heading { margin: 0 0 18px; }
.wsp-faq__item { border: 1px solid var(--wsp-border); border-radius: var(--wsp-radius); background: #fff; margin-bottom: 10px; overflow: hidden; transition: box-shadow .25s ease, border-color .25s ease; }
.wsp-faq__item:hover, .wsp-faq__item[open] { border-color: var(--wsp-accent); }
.wsp-faq__item[open] { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.wsp-faq__question { cursor: pointer; padding: 15px 52px 15px 18px; font-weight: 700; list-style: none; position: relative; }
.wsp-faq__question::-webkit-details-marker { display: none; }
.wsp-faq__question::before, .wsp-faq__question::after { content: ""; position: absolute; right: 18px; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: var(--wsp-accent); transition: transform .3s ease; }
.wsp-faq__question::after { transform: rotate(90deg); }
.wsp-faq__item[open] .wsp-faq__question::after { transform: rotate(0); }
.wsp-faq__answer { padding: 0 18px 16px; }
.wsp-faq__answer > :first-child { margin-top: 0; }
.wsp-faq__answer > :last-child { margin-bottom: 0; }
.wsp-faq-section { margin-top: 40px; }

/* ---- Elementor-V4-Accordion: Auf-/Zuklappen animieren (rein CSS, ::details-content) ---- */
details.e-accordion-item-base { interpolate-size: allow-keywords; }
details.e-accordion-item-base::details-content { transition: opacity .45s ease, height .45s ease, content-visibility .45s allow-discrete; opacity: 0; height: 0; overflow: hidden; }
details.e-accordion-item-base[open]::details-content { opacity: 1; height: auto; }
@media (prefers-reduced-motion: reduce) { details.e-accordion-item-base::details-content { transition: none; } }

/* ---- Bewertungen ---- */
.wsp-reviews { position: relative; }
.wsp-reviews__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.wsp-review { flex: 1 0 min(340px, 85%); max-width: 560px; scroll-snap-align: start; margin: 0; background: #fff; border: 1px solid var(--wsp-border); border-radius: var(--wsp-radius); padding: 22px; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease; }
.wsp-review:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0, 0, 0, .12); }
.wsp-review__stars { color: #e8a723; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 8px; }
.wsp-review__text { margin: 0 0 12px; border: 0; padding: 0; font-style: normal; flex: 1; }
.wsp-review__text p { margin: 0 0 .5em; }
.wsp-review__meta { font-size: .9rem; opacity: .85; }
.wsp-review__source { display: block; font-size: .78rem; opacity: .7; }
.wsp-reviews__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.wsp-reviews__btn { border: 1px solid var(--wsp-border); background: #fff; color: var(--wsp-accent); width: 40px; height: 40px; border-radius: 50%; font-size: 18px; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.wsp-reviews__btn:hover { background: var(--wsp-accent); color: #fff; transform: scale(1.07); }
.wsp-reviews__all { margin-top: 8px; font-size: .9rem; }

/* ---- Kontaktformular ---- */
.wsp-form { max-width: 680px; }
.wsp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .wsp-form__grid { grid-template-columns: 1fr; } }
.wsp-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.wsp-form label .req { color: #b00; }
.wsp-form input[type="text"], .wsp-form input[type="email"], .wsp-form input[type="tel"], .wsp-form select, .wsp-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--wsp-border); border-radius: calc(var(--wsp-radius) - 4px); font: inherit; background: #fff; color: #222; box-sizing: border-box; transition: border-color .15s ease, box-shadow .15s ease; }
.wsp-form input:focus, .wsp-form select:focus, .wsp-form textarea:focus { outline: none; border-color: var(--wsp-accent); box-shadow: 0 0 0 3px var(--wsp-accent-soft); }
.wsp-form__field { margin-bottom: 14px; }
.wsp-form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin: 14px 0; font-weight: 400 !important; }
.wsp-form__consent input { margin-top: 3px; }
.wsp-form__hp { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; overflow: hidden; }
.wsp-form__notice { border-radius: calc(var(--wsp-radius) - 2px); padding: 14px 18px; margin-bottom: 18px; }
.wsp-form__notice--ok { background: #e6f4ea; border: 1px solid #2f7a43; color: #1d4a2a; }
.wsp-form__notice--ok p { margin: 0; }
.wsp-form__notice--err { background: #fbeaea; border: 1px solid #c0392b; color: #7c2018; }

/* ---- Stellen ---- */
.wsp-jobs { display: grid; gap: 14px; margin: 26px 0; }
.wsp-job { display: block; text-decoration: none; background: #fff; border: 1px solid var(--wsp-border); border-radius: var(--wsp-radius); padding: 20px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.wsp-job:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .1); border-color: var(--wsp-accent); }
.wsp-job__title { display: block; font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; }
.wsp-job__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.wsp-job__chip { font-size: .8rem; font-weight: 600; background: var(--wsp-accent-soft); color: var(--wsp-accent); border-radius: 999px; padding: 4px 12px; }
.wsp-job__more { font-weight: 700; color: var(--wsp-accent); }
.wsp-job:hover .wsp-job__more { text-decoration: underline; }
.wsp-job-facts { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.wsp-job-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---- Popup ---- */
.wsp-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.wsp-popup[hidden] { display: none; }
.wsp-popup__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); }
.wsp-popup__box { position: relative; background: #fff; color: #222; border-radius: 16px; padding: 34px 28px 28px; max-width: 460px; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: wsp-pop .3s ease; }
@keyframes wsp-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wsp-popup__box { animation: none; } }
.wsp-popup__close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; color: #777; cursor: pointer; padding: 4px 8px; }
.wsp-popup__close:hover { color: #222; }
.wsp-popup__title { margin: 0 0 10px; font-size: 1.4rem; line-height: 1.2; }
.wsp-popup__text { margin: 0 0 16px; }
