/* ===== БАЗА ===== */

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fb;
    color: #001633;
}

/* ===== HEADER ===== */

header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 0; /* снизу 0, чтобы расстояние считалось от hero */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    color: #001633;
}

/* оранжевый квадрат + белая иконка внутри */

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ff8c2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff; /* currentColor для SVG */
}

.logo-svg {
    width: 22px;
    height: 22px;
    display: block;
    color: inherit; /* тоже белый */
}

nav a {
    margin-left: 24px;
    text-decoration: none;
    color: #001633;
    font-size: 15px;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

/* ===== HERO (главная) ===== */

.hero {
    max-width: 1100px;
    margin: 32px auto 0;   /* расстояние от логотипа до заголовка */
    padding: 0 16px 0;     /* без нижнего паддинга, чтобы не увеличивать зазор */
    text-align: left;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    color: #001633;
}

.hero p.sub {
    font-size: 20px;
    margin-bottom: 26px;
    color: #4b5563;
}

/* старый фон отключаем, если вдруг где-то остался */
.hero-bg {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Кнопка в hero */

.btn-primary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;
    background: #0c3b78;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 32px; /* столько же, сколько отступ сверху у hero/leistiungen */
}

/* ===== ГЛАВНАЯ: "UNSERE LEISTUNGEN" ===== */

.leistungen-block {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 16px 72px; /* 32px сверху — как от кнопки до заголовка блока */
}

.leistungen-title {
    font-size: 32px;
    font-weight: 700;
    color: #001633;
    margin: 0 0 8px;
}

.leistungen-subtitle {
    color: #4b5563;
    margin: 0 0 28px;
}

/* 4 колонки на десктопе */

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch; /* выровнять высоту карточек */
}

/* карточка как ссылка */

.leistungen-grid a.leistung-card {
    text-decoration: none;
    color: inherit;
}

/* ===== ОБЩИЙ СТИЛЬ КАРТОЧЕК (главная + внутренние) ===== */

.leistung-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 22px 22px 24px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transition:
        background 0.18s ease-out,
        box-shadow 0.18s ease-out,
        transform 0.18s ease-out,
        color 0.18s ease-out;
    cursor: pointer;
}

/* контейнер под иконку */

.leistung-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #fff4e8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #ff7a1a; /* по умолчанию оранжевые линии у SVG */
}

/* если вдруг где-то нужен класс на img */
.leistung-card-icon-img {
    width: 24px;
    height: 24px;
}

/* текст в карточке */

.leistung-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #001633;
}

.leistung-card p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    flex-grow: 1; /* растягивает текст, чтобы "Mehr erfahren" был внизу */
}

.leistung-link {
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    color: #0b3c82;
    margin-top: auto; /* прижимает ссылку к низу карточки */
}

/* активная (оранжевая) карточка */

.leistung-card--accent {
    background: #ff7a1a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(248, 113, 40, 0.35);
}

.leistung-card--accent h3,
.leistung-card--accent p {
    color: #ffffff;
}

.leistung-card--accent .leistung-link {
    color: #ffffff;
}

.leistung-card--accent .leistung-card-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff; /* SVG внутри становится белым */
}

/* hover = как у акцентной карточки */

.leistung-card:hover {
    background: #ff7a1a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(248, 113, 40, 0.35);
}

.leistung-card:hover h3,
.leistung-card:hover p {
    color: #ffffff;
}

.leistung-card:hover .leistung-link {
    color: #ffffff;
}

.leistung-card:hover .leistung-card-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff; /* SVG становится белым при hover */
}

/* ===== ВНУТРЕННИЕ СТРАНИЦЫ (smartphone, tablet, display, battery) ===== */

.page {
    max-width: 1100px;
    margin: 40px auto 0;
    padding: 0 16px 56px;
}

.page-hero {
    margin-bottom: 32px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #001633;
}

.page-subtitle {
    margin: 0 0 20px;
    color: #4b5563;
}

.page-breadcrumb {
    font-size: 13px;
    margin-bottom: 12px;
    color: #6b7280;
}

.page-breadcrumb a {
    color: #0b3b78;
    text-decoration: none;
}

.page-breadcrumb a:hover {
    text-decoration: underline;
}

.page-section {
    margin-bottom: 40px;
}

.page-section h2 {
    font-size: 24px;
    margin: 0 0 10px;
    color: #001633;
}

.page-section p {
    margin: 0 0 14px;
    color: #4b5563;
}

/* 3 колонки как на скрине tablet */

.page-leistungen-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* ===== ШАГИ (Ablauf) ===== */

.steps-list {
    margin: 0;
    padding-left: 20px;
    color: #4b5563;
}

.steps-list li {
    margin-bottom: 10px;
}

.steps-list strong {
    color: #001633;
}

/* ===== FAQ ===== */

.faq {
    display: grid;
    gap: 16px;
}

.faq-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.faq-item h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #001633;
}

.faq-item p {
    margin: 0;
    color: #4b5563;
}

/* ===== БЛОК "WARUM GUT&FIX" ===== */

.why-block {
    max-width: 1100px;
    margin: 0 auto 56px;
    padding: 0 16px;
}

.why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.why-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #001633;
}

.why-subtitle {
    margin: 0 0 16px;
    color: #4b5563;
}

.why-list {
    margin: 0;
    padding-left: 18px;
    color: #4b5563;
}

.why-list li {
    margin-bottom: 8px;
}

.why-image-photo {
    width: 100%;
    display: block;
    border-radius: 24px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

/* ===== КОНТАКТ ===== */

.contact {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 72px;
}

.contact-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #001633;
}

.contact-subtitle {
    margin: 0 0 20px;
    color: #4b5563;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 24px;
}

.contact-info p,
.contact-note p {
    margin: 0 0 10px;
    color: #4b5563;
}

.contact-note ul {
    margin: 0 0 10px 18px;
    padding: 0;
    color: #4b5563;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 1024px) {
    .leistungen-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-leistungen-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .hero h1 {
        font-size: 30px;
    }
}

@media (max-width: 640px) {
    .leistungen-grid {
        grid-template-columns: 1fr;
    }

    .page-leistungen-grid {
        grid-template-columns: 1fr;
    }
}
.footer {
  background: #f2f2f2;
  padding: 32px 16px;
  font-size: 14px;
}
.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer-info p {
  margin: 0;
  line-height: 1.4;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links a {
  color: #001633;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.why-text {
    max-width: 520px;
}

.why-features {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.why-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.why-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #fff4e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff7a1a;
    flex-shrink: 0;
}

.why-feature-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.why-feature-title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #001633;
}

.why-feature-text {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}
.why-block {
    margin-top: 64px !important;
}
