* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #e8e8e8;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, #005fa3 0%, #003d6b 100%);
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    font-weight: 300;
}

.floating-call-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff6b35;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

.floating-call-btn:hover {
    background: #ff5220;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

section h2 {
    color: #005fa3;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #ff6b35;
    padding-bottom: 0.5rem;
}

section h3 {
    color: #005fa3;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

section h4 {
    color: #005fa3;
    margin-bottom: 0.5rem;
}

section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

section li {
    margin-bottom: 0.5rem;
    color: #555;
}

section p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 1rem;
}

/* Reviews */
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.review {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-stars {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.review blockquote {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.review-meta {
    font-size: 0.85rem;
    color: #999;
}

.review-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.review-cta {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.review-cta:hover {
    background: #ff5220;
}

/* Contact Info */
.contact-info {
    background: #f0f7ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-info strong {
    color: #005fa3;
}

/* Einsatzgebiet */
.einsatzgebiet ul {
    margin: 1rem 0;
}

.einsatzgebiet li {
    padding: 0.25rem 0;
}

/* Akkordeon Buttons */
.accordion-button {
    width: 100%;
    padding: 1rem;
    background: #005fa3;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-bottom: 1rem;
}

.accordion-button:hover {
    background: #003d6b;
}

.accordion-content {
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 0 0 12px 12px;
    margin-top: -1rem;
    margin-bottom: 1rem;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.service-card img {
    width: 100%;
    max-width: 120px;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: cover;
    height: 120px;
}

.service-card h3 {
    color: #005fa3;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
}

/* Footer */
footer {
    background: #005fa3;
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-top: 4px solid #ff6b35;
    flex-wrap: wrap;
}

footer img {
    height: 40px;
    background: white;
    padding: 4px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

footer a {
    color: white;
    text-decoration: underline;
    transition: color 0.3s ease;
    margin: 0 1rem;
    display: inline-block;
}

footer a:hover {
    color: #ffb84d;
}

footer div {
    flex: 1;
    min-width: 200px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #005fa3;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.cookie-content h4 {
    color: #005fa3;
    margin-bottom: 0.5rem;
}

.cookie-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.cookie-settings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-option {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #ff6b35;
}

.cookie-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.cookie-option input {
    margin-right: 0.5rem;
    cursor: pointer;
}

.cookie-option small {
    display: block;
    margin-top: 0.5rem;
    color: #999;
    font-size: 0.85rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #005fa3;
    color: white;
}

.btn-primary:hover {
    background: #003d6b;
}

.btn-secondary {
    background: #f0f0f0;
    color: #005fa3;
    border: 2px solid #005fa3;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.cookie-links {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.85rem;
}

.cookie-links a {
    color: #005fa3;
    text-decoration: underline;
    margin: 0;
}

/* Contact Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid #005fa3;
    background: linear-gradient(135deg, #005fa3 0%, #003d6b 100%);
    color: white;
}

.modal-header h2 {
    margin: 0;
    color: white;
    border: none;
    padding: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

/* Contact Form */
.contact-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #005fa3;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #005fa3;
    box-shadow: 0 0 0 3px rgba(0, 95, 163, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.form-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-buttons .btn-primary {
    background: #005fa3;
    color: white;
}

.form-buttons .btn-primary:hover {
    background: #003d6b;
    transform: translateY(-2px);
}

.form-buttons .btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.form-buttons .btn-secondary:hover {
    background: #e0e0e0;
}

/* Responsive Modal */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-buttons {
        flex-direction: column;
    }

    .form-buttons button {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 1rem;
    }

    main {
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    footer {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    footer a {
        margin: 0.25rem 0.5rem;
    }

    .floating-call-btn {
        top: 10px;
        right: 10px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

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

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

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 1.3rem;
    }

    .accordion-button {
        font-size: 1rem;
    }

    footer p {
        font-size: 0.9rem;
    }

    .floating-call-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* AOS Animations */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.6s;
    transition-timing-function: ease-in-out;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0);
}

[data-aos="fade-in"].aos-animate {
    opacity: 1;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {

    /* Page background and base text */
    body {
        background-color: #071018;
        color: #e6eef6;
    }

    header {
        background: linear-gradient(135deg, #00364f 0%, #001827 100%);
        color: #eaf6ff;
    }

    header p,
    header h1 {
        color: #eaf6ff;
    }

    /* Hero overlay box slightly darker transparent */
    header>div[style] {
        background: rgba(2, 36, 54, 0.72) !important;
        color: #fff !important;
    }

    section {
        background: #0e1a22;
        color: #d7e7f2;
        box-shadow: none;
    }

    section h2 {
        color: #8fd1ff;
        border-bottom-color: #ff8a50;
    }

    section h3,
    section h4 {
        color: #bfe6ff;
    }

    .review {
        background: #091216;
        color: #d6e9f6;
        border-left-color: #ff8a50;
        box-shadow: none;
    }

    .review blockquote {
        color: #cfe8f8;
    }

    .review-meta {
        color: #9fb6c8;
    }

    .contact-info {
        background: #061822;
        color: #d8eef9;
    }

    .einsatzgebiet ul {
        color: #d4eaf7;
    }

    .accordion-button {
        background: linear-gradient(180deg, #004b7a 0%, #00314b 100%);
        color: #fff;
    }

    .accordion-content {
        background: #071721;
        color: #d7e9f7;
    }

    .service-card {
        background: #07121a;
        color: #d7e7f2;
    }

    .services-grid .service-card img {
        filter: brightness(0.95) saturate(1.05);
    }

    footer {
        background: #001826;
        color: #cfeafc;
        border-top-color: #ff8a50;
    }

    footer a {
        color: #aee3ff;
    }

    .cookie-banner {
        background: #08131a;
        border-top-color: #00364f;
        color: #d9eef9;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.6);
    }

    .cookie-content h4 {
        color: #9fd8ff;
    }

    .cookie-content p,
    .cookie-links {
        color: #c6e6f9;
    }

    .cookie-option {
        background: #071216;
        border-left-color: #ff8a50;
    }

    /* Modal */
    .modal-content {
        background: #07121a;
        color: #e8f7ff;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    }

    .modal-header {
        background: linear-gradient(135deg, #00364f 0%, #001827 100%);
    }

    /* Forms */
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #08161b;
        border: 1px solid #17323a;
        color: #e6f4fb;
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        color: #6f8892;
    }

    .btn-primary {
        background: linear-gradient(180deg, #00628f 0%, #004a6a 100%);
        color: #fff;
    }

    .btn-secondary {
        background: #0b1f25;
        color: #bfe6f6;
        border-color: #17424a;
    }

    .floating-call-btn {
        background: #ff8a50;
        color: #08131a;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    }

    .floating-call-btn:hover {
        background: #ff7040;
    }

    /* Inputs focus */
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        box-shadow: 0 0 0 3px rgba(6, 100, 150, 0.14);
        border-color: #2aa1dc;
    }

    /* Small adjustments */
    .service-card h3,
    .service-card p {
        color: #d9eef7;
    }
}

/* iPhone / Safe area & mobile touch improvements */
:root {
    --safe-top: env(safe-area-inset-top);
    --safe-bottom: env(safe-area-inset-bottom);
    --safe-left: env(safe-area-inset-left);
    --safe-right: env(safe-area-inset-right);
}

html,
body {
    -webkit-text-size-adjust: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Make media elements responsive */
img,
picture,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure adequate touch targets */
.floating-call-btn {
    min-height: 48px;
    min-width: 48px;
    padding: 12px 18px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.12);
}

/* Move floating button to bottom-right on small screens and respect safe-area */
@media (max-width: 768px) {
    .floating-call-btn {
        top: auto;
        right: calc(16px + var(--safe-right));
        bottom: calc(16px + var(--safe-bottom));
        left: auto;
        border-radius: 14px;
        font-size: 1rem;
    }

    /* Reduce hero overlay padding on small screens (inline style overlay selector fallback) */
    header>div[style] {
        padding: 1rem !important;
        max-width: 92% !important;
    }

    header img.hero-image {
        max-height: 220px !important;
    }
}

/* Improve tap targets for interactive elements */
button,
.btn-primary,
.btn-secondary,
.accordion-button,
.review-cta {
    min-height: 44px;
    min-width: 44px;
}

/* Prevent content behind iPhone home indicator */
body {
    padding-bottom: calc(var(--safe-bottom) + 8px);
}