/**
 * Auskunftsanwalt.de - Responsive Stylesheet
 * 
 * Mobile-First Media Queries
 * 
 * Breakpoints:
 * - Mobile: < 640px (default)
 * - Tablet: 640px - 1024px
 * - Desktop: > 1024px
 */

/* ==========================================================================
   Tablet (640px - 1024px)
   ========================================================================== */

@media screen and (max-width: 1024px) {
    /* Header */
    .header__menu {
        display: none;
    }

    .header__buttons {
        display: none;
    }

    .header__cta {
        display: none;
    }

    .header__portal {
        display: none;
    }

    .header__hamburger {
        display: flex;
    }

    /* Hero */
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__title {
        font-size: var(--font-size-4xl);
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__image {
        order: -1;
    }

    .hero__illustration {
        max-width: 300px;
    }

    /* Trust */
    .trust__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-md);
    }

    .trust__item {
        padding: var(--spacing-lg);
    }

    .trust__icon {
        font-size: 2.5rem;
    }

    .trust__title {
        font-size: var(--font-size-base);
    }

    /* Problem-Solution */
    .problem-solution__row {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .problem-solution__row--reverse {
        direction: ltr;
    }

    .problem-solution__image {
        order: -1;
    }

    .problem-solution__placeholder {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Process */
    .process__steps {
        flex-wrap: wrap;
        justify-content: center;
    }

    .process__step {
        flex: 0 0 45%;
        margin-bottom: var(--spacing-xl);
    }

    .process__connector {
        display: none;
    }

    /* USP */
    .usp__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .usp__card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        justify-self: center;
    }

    /* Pricing */
    .pricing__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .pricing__card--featured {
        transform: none;
        order: -1;
    }

    .pricing__card--featured:hover {
        transform: translateY(-8px);
    }

    /* FAQ */
    .faq__grid {
        grid-template-columns: 1fr;
    }

    /* Contact */
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .contact__form {
        grid-template-columns: 1fr;
    }

    .form__group--full {
        grid-column: 1;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__column:first-child {
        grid-column: 1 / -1;
        margin-bottom: var(--spacing-lg);
    }
}

/* ==========================================================================
   Mobile (< 640px)
   ========================================================================== */

@media screen and (max-width: 640px) {
    /* Typography */
    h1 {
        font-size: var(--font-size-3xl);
    }

    h2 {
        font-size: var(--font-size-2xl);
    }

    h3 {
        font-size: var(--font-size-xl);
    }

    /* Sections */
    section {
        padding: var(--spacing-2xl) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .section-subtitle {
        font-size: var(--font-size-base);
    }

    /* Container */
    .container {
        padding: 0 var(--spacing-md);
    }

    /* Buttons */
    .btn {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .btn--large {
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: var(--font-size-base);
    }

    /* Header */
    .header__nav {
        height: 100px; /* Mobile: kleinerer Start-Header */
        transition: height var(--transition-normal);
    }

    .header--scrolled .header__nav {
        height: 70px;
    }

    .header__logo {
        font-size: var(--font-size-lg);
    }

    .header__logo-img {
        height: 80px; /* Mobile: kleineres Logo am Start */
    }

    .header--scrolled .header__logo-img {
        height: 50px; /* Mobile: noch kleineres Logo beim Scrollen */
    }

    /* Hero */
    .hero {
        padding-top: calc(100px + var(--spacing-2xl)); /* Angepasst an mobile Header-Höhe */
        min-height: auto;
    }

    .hero__title {
        font-size: var(--font-size-2xl);
    }

    .hero__subtitle {
        font-size: var(--font-size-base);
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .hero__illustration {
        max-width: 250px;
    }

    .hero__illustration-icon {
        font-size: 3rem;
    }

    .hero__scroll {
        margin-top: var(--spacing-xl);
    }

    /* Trust */
    .trust {
        padding: var(--spacing-xl) 0;
    }

    .trust__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .trust__item {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
        text-align: left;
        padding: var(--spacing-md);
    }

    .trust__icon {
        font-size: 2rem;
        margin-bottom: 0;
    }

    .trust__title {
        margin-bottom: 0;
    }

    .trust__text {
        display: none;
    }

    /* Problem-Solution */
    .problem-solution__title {
        font-size: var(--font-size-xl);
    }

    .problem-solution__list li {
        font-size: var(--font-size-base);
    }

    .problem-solution__placeholder {
        aspect-ratio: 16/9;
    }

    .problem-solution__placeholder span {
        font-size: 3rem;
    }

    /* Process */
    .process__steps {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .process__step {
        flex: 1;
        display: flex;
        align-items: flex-start;
        gap: var(--spacing-lg);
        text-align: left;
        padding: var(--spacing-md);
        background-color: var(--color-background-light);
        border-radius: var(--radius-lg);
    }

    .process__number {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        flex-shrink: 0;
    }

    .process__icon {
        display: none;
    }

    .process__title {
        margin-top: 0;
    }

    /* USP */
    .usp__grid {
        grid-template-columns: 1fr;
    }

    .usp__card {
        padding: var(--spacing-xl);
    }

    .usp__card:last-child {
        max-width: none;
    }

    /* Testimonials */
    .testimonial {
        padding: var(--spacing-lg);
    }

    .testimonial__quote {
        font-size: var(--font-size-base);
    }

    .testimonial__author {
        flex-direction: column;
        text-align: center;
    }

    .testimonial__info {
        text-align: center;
    }

    /* Pricing */
    .pricing__card {
        padding: var(--spacing-xl);
    }

    .pricing__amount {
        font-size: var(--font-size-5xl);
    }

    /* CTA Section */
    .cta-section {
        padding: var(--spacing-2xl) 0;
    }

    .cta-section__title {
        font-size: var(--font-size-2xl);
    }

    .cta-section__text {
        font-size: var(--font-size-base);
    }

    /* Contact */
    .contact__form {
        padding: var(--spacing-lg);
    }

    /* Footer */
    .footer {
        padding-top: var(--spacing-2xl);
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer__column:first-child {
        margin-bottom: 0;
    }

    .footer__desc {
        max-width: none;
    }

    /* Cookie Banner */
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner__buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-banner__buttons .btn {
        width: 100%;
    }

    /* Back to Top */
    .back-to-top {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   Large Desktop (> 1280px)
   ========================================================================== */

@media screen and (min-width: 1280px) {
    :root {
        --container-max-width: 1280px;
    }

    .hero__title {
        font-size: var(--font-size-6xl);
    }
}

/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */

@media (hover: none) {
    /* Disable hover effects on touch devices */
    .btn:hover {
        transform: none;
    }

    .trust__item:hover,
    .usp__card:hover,
    .pricing__card:hover {
        transform: none;
    }

    .pricing__card--featured:hover {
        transform: scale(1.05);
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .header,
    .cookie-banner,
    .back-to-top,
    .hero__scroll,
    .testimonials__nav {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    section {
        page-break-inside: avoid;
        padding: 20pt 0;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .btn {
        border: 1px solid #000 !important;
        background: transparent !important;
        color: #000 !important;
    }
}

/* ==========================================================================
   High Contrast Mode
   ========================================================================== */

@media (prefers-contrast: high) {
    :root {
        --color-primary: #000080;
        --color-accent: #0080ff;
        --color-text: #000000;
        --color-background: #ffffff;
        --shadow-sm: none;
        --shadow-md: none;
        --shadow-lg: none;
        --shadow-xl: none;
    }

    .btn {
        border-width: 3px;
    }

    .faq__item,
    .pricing__card,
    .usp__card {
        border: 2px solid var(--color-primary);
    }
}
