/**
 * Responsive Styles
 * Mobile-first approach for responsive design
 */

/* Tablet Devices (768px and up) */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .header .container {
        padding: 1rem 1.5rem;
        position: relative;
    }

    .logo {
        gap: 0.75rem;
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 110;
    }

    .navigation {
        position: static;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: var(--shadow);
        z-index: 109;
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: none;
    }

    .nav-menu a.active {
        background-color: var(--light-bg);
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Features with Image */
    .features-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Projekte Section */
    .projekte-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .projekte-grid {
        gap: 2rem;
    }

    .projekt-text {
        padding: 1.5rem;
    }

    .projekt-text h3 {
        font-size: 1.3rem;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
    }

    /* Services Section */
    .services-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .services-detail.reverse {
        direction: ltr;
    }

    /* Contact Section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Features/Services Grid */
    .features,
    .services-grid,
    .services-list {
        grid-template-columns: 1fr;
    }

    /* Calculator */
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .calculator-info {
        position: static;
    }
}

/* Small Mobile Devices (480px and down) */
@media (max-width: 480px) {
    :root {
        --primary-color: #fbbf24;
        --primary-dark: #f59e0b;
        --secondary-color: #6b7280;
        --secondary-dark: #4b5563;
        --text-color: #1f2937;
        --text-light: #6b7280;
        --bg-color: #ffffff;
        --light-bg: #f3f4f6;
        --grey-light: #e5e7eb;
        --border-color: #e5e7eb;
        --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        --line-height: 1.6;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .header .container {
        padding: 0.75rem 1rem;
        position: relative;
    }

    .logo {
        gap: 0.5rem;
    }

    .logo-placeholder {
        width: 50px;
        height: 50px;
    }

    .mobile-menu-toggle {
        right: 1rem;
    }

    /* Hero Section */
    .hero {
        padding: 3rem 1rem;
        margin-bottom: 2rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .cta-button,
    .submit-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Checkmarks */
    .checkmark {
        width: 24px;
        height: 24px;
        font-size: 0.95rem;
    }

    .checkmark-list li {
        gap: 0.75rem;
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }

    /* Feature Cards */
    .feature-card,
    .features-text {
        padding: 1.5rem;
    }

    /* Projekte Section */
    .projekte-intro {
        font-size: 0.95rem;
    }

    .projekte-grid {
        gap: 1.5rem;
    }

    .projekt-text {
        padding: 1.25rem;
    }

    .projekt-text h3 {
        font-size: 1.2rem;
    }

    .projekt-text p {
        font-size: 0.95rem;
    }

    .cta-section {
        padding: 1.5rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Services Preview */
    .services-preview {
        padding: 1.5rem;
    }

    .services-list {
        gap: 1rem;
    }

    .service-item-simple {
        padding: 1rem;
    }

    .service-item-simple h3 {
        font-size: 1rem;
    }

    /* Services Detail */
    .services-detail {
        padding: 1rem;
    }

    .service-text {
        padding: 0;
    }

    /* CTA Section */
    .cta-section {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    /* Footer */
    .footer-content {
        gap: 1.5rem;
    }

    /* Contact Info */
    .contact-info {
        padding: 1rem 0;
    }

    main {
        padding: 2rem 0;
        min-height: auto;
    }

    /* Form Elements */
    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .submit-button {
        width: 100%;
    }

    /* Calculator Mobile */
    .calculator-form {
        padding: 1.5rem;
    }

    .calculator-info {
        padding: 1.5rem;
    }

    .calculator-results {
        padding: 1.5rem;
    }

    .result-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .result-total {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Large Screens (1024px and up) */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .navigation,
    .cta-button,
    .service-link {
        display: none;
    }

    body {
        color: #000;
        background-color: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
