/* ============================================================
   Startseite – Custom HTML Blöcke
   Gilt für: Kontakt (.kb) und Unsere Leistungen (.lb)
   ============================================================ */

/* ============================================================
   Cover Text Block (.cv)
   ============================================================ */
.cv-text {
    padding-left: 1.25rem;
    position: absolute;
    z-index: 2;
    top: 30%;
    left: 36%;
    transform: translate(-50%, -16%);
    background: #ffffffba;
    padding: 20px 27px;
    display: inline-block;
}

.cv-text::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 5px;
  background-color: var(--color-primary);
}

.cv-text p {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin: 0;
}

@media (max-width: 575.98px) {
    .cv-text p {
        font-size: 1.2rem;
    }
}

/* ── Gemeinsam: Section ── */
.kb,
.lb,
.ld {
    padding: 72px 20px 80px;
}

.team {
    padding: 72px 20px 0;
}

/* ── Universell: Inner Container ── */
.sp-inner {
    max-width: 1140px;
    margin: 0 auto;
}

/* ── Universell: Titel ── */
.sp-title {
    display: block;
    width: fit-content;
    margin: 0 auto 2.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    padding-bottom: 0.75rem;
}

.sp-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* ============================================================
   Kontakt Block (.kb)
   ============================================================ */
.kb {
    background-color: #f0f0f0;
}

/* Kontaktdaten */
.kb__info {
    display: flex;
    justify-content: center;
    gap: 120px;
    margin-bottom: 3.5rem;
    text-align: center;
}

.kb__info-icon {
    color: var(--color-primary);
    margin-bottom: 0.6rem;
    line-height: 0;
}

.kb__info-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #555;
    margin: 0 0 0.2rem;
}

.kb__info-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.kb__info-value a {
    color: #111;
    text-decoration: none;
}

.kb__info-value a:hover {
    color: var(--color-primary);
}

.kb__subtitle {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Formular */
.kb__field {
    display: block;
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 10px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-family: var(--font-base);
    font-size: 0.92rem;
    color: var(--color-text);
    background: #fff;
    box-sizing: border-box;
    transition: border-color var(--transition);
    -webkit-appearance: none;
}

.kb__field::placeholder {
    color: #aaa;
}

.kb__field:focus {
    outline: none;
    border-color: var(--color-primary);
}

.kb__textarea {
    min-height: 140px;
    resize: vertical;
}

/* Datenschutz-Checkbox */
.kb__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 1rem 0 1.75rem;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.55;
}

.kb__check input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.kb__check label {
    cursor: pointer;
}

.kb__check a {
    color: #555;
    text-decoration: underline;
}

.kb__check a:hover {
    color: var(--color-primary);
}

/* Button */
.kb__submit-wrap {
    text-align: center;
}

.kb__btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 14px 52px;
    font-family: var(--font-base);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    transition: background var(--transition);
}

.kb__btn:hover {
    background: var(--color-primary-dark);
}

/* Responsive */
@media (max-width: 640px) {
    .kb__info {
        flex-direction: column;
        gap: 2.25rem;
    }
}

/* ============================================================
   Leistung Detail Block (.ld)
   ============================================================ */
.ld__intro {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    max-width: 640px;
    margin: -1.5rem auto 3rem;
    line-height: 1.65;
}

.ld__section {
    display: flex;
    align-items: stretch;
    margin-bottom: 48px;
}

.ld__section--reverse {
    flex-direction: row-reverse;
}

.ld__slider-col {
    flex: 0 0 50%;
    overflow: hidden;
}

.ld__text-col {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px;
}

.ld__text-col h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 1rem;
}

.ld__text-col p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.75;
    margin: 0;
}

.ld-slider {
    width: 100%;
    height: 460px;
}

.ld-slider .swiper-slide {
    height: 100%;
}

.ld__slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ld-slider .swiper-pagination {
    bottom: 14px;
}

.ld-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.65;
    width: 10px;
    height: 10px;
}

.ld-slider .swiper-pagination-bullet-active {
    opacity: 1;
}

@media (max-width: 767.98px) {
    .ld__section,
    .ld__section--reverse {
        flex-direction: column;
    }

    .ld__slider-col,
    .ld__text-col {
        flex: none;
        width: 100%;
    }

    .ld-slider {
        height: 280px;
    }

    .ld__text-col {
        padding: 28px 20px;
    }
}

/* ============================================================
   Leistungen Block (.lb)
   ============================================================ */
.lb {
    background-color: #fff;
}

/* Grid */
.lb__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 2.5rem;
}

/* Karte */
.lb__card {
    flex: 0 0 calc((100% - 48px) / 3);
    background-color: #f0f0f0;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}

.lb__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lb__img-wrap {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #d0d0d0;
}

.lb__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.lb__card:hover .lb__img {
    transform: scale(1.05);
}

.lb__body {
    padding: 14px 16px 18px;
}

.lb__card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.3rem;
}

.lb__card-desc {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .lb__card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media (max-width: 560px) {
    .lb__card {
        flex: 0 0 100%;
    }
}
