/* ============================================================
   OFFICEKLAR – Responsive Styles
   ------------------------------------------------------------
   Breakpoints (Desktop-first):
   1200 px – Navigation kompakter
   1024 px – Offcanvas-Navigation, Grids reduzieren
    900 px – Hero & Split-Sections einspaltig
    768 px – 3er-Grids einspaltig, Steps vertikal
    560 px – Buttons full-width, Feinjustierung
    375 px – kleinste Geräte
   ============================================================ */


/* ------------------------------------------------------------
   ≤ 1200 px
   ------------------------------------------------------------ */
@media (max-width: 1200px) {

    .main-nav__list {
        gap: 1.1rem;
    }

    .main-nav__list a {
        font-size: 0.9rem;
    }

    .audience__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ------------------------------------------------------------
   ≤ 1024 px – mobile Navigation aktiv
   ------------------------------------------------------------ */
@media (max-width: 1024px) {

    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .header__cta {
        display: none; /* CTA wandert ins Offcanvas-Menü */
    }

    .section-head--split {
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: start;
    }

    .services__grid {
        gap: 1.25rem;
    }
}


/* ------------------------------------------------------------
   ≤ 900 px – Split-Sections einspaltig
   ------------------------------------------------------------ */
@media (max-width: 900px) {

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero__media {
        justify-self: center;
        width: min(100%, 420px);
        /* Etwas Innenabstand, damit Badge & Offset-Fläche nicht anstoßen */
        margin-inline: 1rem;
    }

    .hero__badge {
        left: -0.5rem;
    }

    .craft__grid,
    .about__grid,
    .benefits__grid {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }

    /* Bildreihenfolge: Inhalt zuerst, Bild danach */
    .craft__media {
        order: 2;
    }

    .craft__media img {
        aspect-ratio: 16 / 11;
    }

    .about__media {
        justify-self: center;
        width: min(100%, 420px);
        margin-inline: 1rem;
    }

    .services__grid,
    .compare__panel {
        grid-template-columns: 1fr;
    }

    .compare__col--plain {
        border-right: 1px solid var(--color-border-soft);
        border-bottom: none;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .compare__col--highlight {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

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


/* ------------------------------------------------------------
   ≤ 768 px – Karten & Steps untereinander
   ------------------------------------------------------------ */
@media (max-width: 768px) {

    .problem__grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Horizontale Linie ausblenden, vertikale Linie andeuten */
    .step:not(:last-child)::before {
        top: 68px;
        bottom: -2.1rem;
        left: 27px;
        right: auto;
        width: 1.5px;
        height: auto;
        background-image: linear-gradient(to bottom, var(--color-border) 55%, transparent 45%);
        background-size: 1.5px 12px;
    }

    .step p {
        max-width: var(--text-max-width);
    }

    .about__values {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

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

    .footer__col--brand {
        grid-column: 1 / -1;
    }

    .footer__bottom {
        flex-direction: column;
    }
}


/* ------------------------------------------------------------
   ≤ 560 px – Buttons full-width, Feinschliff
   ------------------------------------------------------------ */
@media (max-width: 560px) {

    .hero__actions,
    .cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions .btn,
    .cta__actions .btn,
    .craft__content .btn,
    .about__content .btn {
        width: 100%;
        white-space: normal;
        text-align: center;
    }

    .hero__trust {
        flex-direction: column;
        gap: 0.7rem;
    }

    .hero__badge {
        position: static;
        margin-top: 1rem;
        box-shadow: var(--shadow-card);
        white-space: normal;
    }

    .hero__media {
        margin-inline: 0;
        width: 100%;
    }

    .portrait-frame::before {
        inset: 6% -4% -4% 6%;
    }

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

    .compare__col {
        padding: 1.75rem 1.5rem;
    }

    .topbar__text {
        font-size: 0.7813rem;
    }
}


/* ------------------------------------------------------------
   ≤ 375 px – kleinste Geräte
   ------------------------------------------------------------ */
@media (max-width: 375px) {

    :root {
        --container-pad: 1.1rem;
    }

    .brand {
        font-size: 1.35rem;
    }

    .btn {
        padding: 13px 20px;
        font-size: 0.9375rem;
        white-space: normal;
        text-align: center;
    }

    .card {
        padding: 1.5rem 1.35rem;
    }
}
