/* ==========================================
   1. RESET & BASE
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: #ffffff;
    color: #0f172a;
    line-height: 1.6;
    padding-top: 70px;
}

h1, h2, h3, .logo, .price, .card-badge, .project-tag, button, .button, .button--outline {
    font-family: "Inter", Arial, sans-serif;
}

/* Eyebrow-Labels über Section-Titeln */
.eyebrow {
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: .8rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 12px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -60px;
    left: 10px;
    background: #2563eb;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 10px;
}


/* ==========================================
   2. GLOBAL TYPOGRAPHY & ELEMENTS
   ========================================== */

section {
    padding: 100px 10%;
    scroll-margin-top: 90px;
}

h1 {
    font-size: clamp(2.2rem, 5vw + 1rem, 4rem);
    line-height: 1.15;
    font-weight: 800;
}

h2 {
    text-align: center;
    font-size: clamp(1.7rem, 2.5vw + 1rem, 2.5rem);
    margin-bottom: 20px;
}

h2 + .section-intro {
    margin-top: -20px;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
}

p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.8;
}

.section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.05rem;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2563eb;
    color: #fff;
    padding: 16px 34px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
    border: 2px solid #2563eb;
    box-shadow: 0 12px 30px rgba(37,99,235,.25);
}

.button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(37,99,235,.35);
}

.button-arrow {
    font-size: .9em;
    transition: transform .25s ease;
}

.button:hover .button-arrow {
    transform: translateX(4px);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: .9rem;
    color: #475569;
}

.hero-trust i {
    color: #2563eb;
}

.button--outline {
    background: transparent;
    color: #2563eb;
}

.button--outline:hover {
    background: #2563eb;
    color: #fff;
}

/* Container-Limits (verhindert Ausufern auf großen Screens) */
.cards,
.steps,
.projects,
.footer-container,
.trust-grid,
.faq-list {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================
   3. HEADER & NAVIGATION
   ========================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: box-shadow .3s ease, background-color .3s ease;
}

header.scrolled {
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1;
    display: flex;
    align-items: center;
    color: white;
    margin: 0;
}

.logo span {
    color: #2563eb;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: .3s;
    position: relative;
    padding-bottom: 4px;
}

nav a:hover {
    color: #2563eb;
}

/* Active-State Navigation (via IntersectionObserver in script.js) */
nav a[data-nav-link].active {
    color: #60a5fa;
}

nav a[data-nav-link].active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #60a5fa;
    border-radius: 2px;
}

.instagram-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
}

.instagram-icon i {
    color: white;
    font-size: 24px;
}

/* Mobile Nav Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.nav-toggle:hover {
    background: transparent;
    transform: none;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 5px;
    transition: .3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* ==========================================
   4. HERO SECTION
   ========================================== */

.hero {
    min-height: calc(100vh - 70px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
    background:
        radial-gradient(circle at 80% 30%, rgba(37,99,235,.12), transparent 35%),
        linear-gradient(135deg, #ffffff, #eff6ff);
}

.hero-content {
    max-width: 620px;
}

.hero p {
    margin: 30px 0;
    max-width: 560px;
}

.hero-benefits {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
    margin-top: 45px;
}

.hero-benefits div {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 18px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 15px 40px rgba(15,23,42,.06);
}

.hero-benefits i {
    color: #2563eb;
    font-size: 24px;
}

.hero-benefits p {
    margin: 0;
    font-size: .9rem;
    white-space: normal;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.website-preview {
    width: 450px;
    height: 350px;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15,23,42,.18);
    border: 1px solid #e2e8f0;
}

.browser-bar {
    height: 38px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 18px;
}

.browser-bar span {
    width: 11px;
    height: 11px;
    background: #cbd5e1;
    border-radius: 50%;
}

.preview-content {
    padding: 45px;
}

.preview-content h3 {
    font-size: 2rem;
    color: #0f172a;
}

.preview-content p {
    margin-top: 20px;
    font-size: 1rem;
}

/* Desktop / Tablet */
@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: auto;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-benefits {
        max-width: 600px;
        margin: 40px auto 0;
    }
}

@media (max-width: 600px) {
    .hero-benefits {
        grid-template-columns: 1fr;
    }

    .website-preview {
        width: 100%;
    }
}


/* ==========================================
   5. CONTENT SECTIONS
   ========================================== */

/* Cards / Features */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15,23,42,.06);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(37,99,235,.14);
    border-color: #bfdbfe;
}

.card i {
    font-size: 35px;
    color: #2563eb;
    margin-bottom: 20px;
}

.card h3 {
    color: #0f172a;
    margin-bottom: 15px;
}

/* Why Section */
.why {
    background: #f8fafc;
}

/* Leistungen Section */
#leistungen {
    background: #ffffff;
}

/* ===========================
   ANGEBOTE
=========================== */

#angebote {
    background: #f8fafc;
}

.cards--pricing {
    align-items: stretch;
}

.cards--pricing .card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.card--highlight {
    border: 2px solid #2563eb;
    box-shadow: 0 25px 60px rgba(37,99,235,.15);
}

.card-badge {
    position: absolute;
    top: -14px;
    right: 30px;
    background: #2563eb;
    color: white;
    font-size: .8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
}

.price {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
}

.cards--pricing .card > .button,
.cards--pricing .card > .button--outline {
    margin-top: auto;
    text-align: center;
    align-self: flex-start;
}

.offer-list {
    list-style: none;
    margin: 20px 0;
}

.offer-list li {
    color: #64748b;
    margin-bottom: 10px;
    font-size: 1rem;
}

.offer-note {
    text-align: center;
    margin-top: 50px;
    color: #64748b;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Process / Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.steps div {
    padding: 35px;
}

.steps span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 65px;
    height: 65px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Projects */
.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.project {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 40px rgba(15,23,42,.08);
}

.project:hover {
    transform: translateY(-8px);
}

.project h3 {
    margin: 25px 25px 10px;
}

.project p {
    margin: 0 25px 25px;
}

.project-image {
    height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: 24px 24px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform .3s ease;
}

.project:hover .project-image img {
    transform: scale(1.04);
}

/* Gradient-Hintergründe für die Demo-Mockups (Elektro Voss, RheinFlotte) */
.project-image--voss {
    background: linear-gradient(135deg, #2563eb, #0f172a);
}

.project-image--rhein {
    background: linear-gradient(135deg, #0f766e, #164e63);
}

.project-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.project-overlay span {
    background: rgba(15,23,42,0.8);
    color: white;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    color: #0f172a;
}

.project-content ul {
    list-style: none;
    margin-top: 20px;
}

.project-content li {
    color: #64748b;
    margin-bottom: 8px;
}

.project--new {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    border: 2px dashed #cbd5e1;
    box-shadow: none;
}

.project-new-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    margin-bottom: 20px;
}

@media (max-width: 1100px) {
    .projects {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .projects {
        grid-template-columns: 1fr;
    }
}

/* Trust / Warum mit mir arbeiten */
#testimonials {
    background: #ffffff;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1280px;
    margin: 0 auto;
}

.trust-item {
    text-align: center;
    padding: 30px 20px;
}

.trust-item i {
    font-size: 28px;
    color: #2563eb;
    background: #eff6ff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin: 0 auto 20px;
}

.trust-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.trust-item p {
    font-size: .95rem;
}

/* FAQ */
#faq {
    background: #f8fafc;
}

.faq-list {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 8px 25px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: #0f172a;
    padding: 18px 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    color: #2563eb;
    font-weight: 400;
    flex-shrink: 0;
    transition: transform .3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding-bottom: 22px;
    margin: 0;
}

/* About Section */
.about {
    background: #f8fafc;
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: auto;
}

.about-container {
    max-width: 1100px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    text-align: left;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15,23,42,.08);
}

.about-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 18px;
    font-size: 28px;
    margin-bottom: 25px;
}

.about-card h3 {
    color: #0f172a;
}

.about-card ul {
    list-style: none;
    margin-top: 25px;
}

.about-card li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #64748b;
}

.about-card li i {
    color: #2563eb;
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-text {
        text-align: center;
    }
}


/* ==========================================
   6. CONTACT & FORMS
   ========================================== */

#kontakt {
    text-align: center;
}

#kontakt > p {
    max-width: 650px;
    margin: 0 auto;
}

form {
    max-width: 650px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

/* Honeypot-Feld (Spam-Schutz) */
.hidden-field {
    position: absolute;
    left: -9999px;
}

input,
textarea {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 16px;
    font-family: inherit;
    transition: .3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

textarea {
    resize: vertical;
}

button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}


/* ==========================================
   7. FOOTER
   ========================================== */

footer {
    background: #0f172a;
    color: white;
    padding: 70px 10% 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

footer h2 {
    text-align: left;
    font-size: 1.7rem;
    margin-bottom: 15px;
}

footer h2 span {
    color: #2563eb;
}

footer h3 {
    color: white;
    margin-bottom: 15px;
}

footer p {
    color: #94a3b8;
}

footer a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    transition: .3s;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
}


/* ==========================================
   8. SPECIAL PAGES (Thank You & Legal)
   ========================================== */

/* Thank You Page */
.thank-you {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 10%;
}

.thank-you h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.thank-you p {
    max-width: 550px;
    margin: 0 auto 30px;
}

/* Legal Pages (Impressum / Datenschutz) */
.legal {
    max-width: 850px;
    margin: 0 auto;
    padding: 120px 25px 80px;
}

.legal h1 {
    font-size: clamp(1.8rem, 4vw + 1rem, 2.8rem);
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 40px;
    text-align: left;
}

.legal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 45px;
    margin-bottom: 15px;
    text-align: left;
}

.legal h3 {
    font-size: 1.2rem;
    color: #0f172a;
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.legal ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.legal li {
    color: #475569;
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal a {
    color: #2563eb;
    text-decoration: none;
}

.legal a:hover {
    text-decoration: underline;
}


/* ==========================================
   9. ACCESSIBILITY
   ========================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}


/* ==========================================
   10. ANIMATION (Scroll-Reveal, via script.js gesteuert)
   ========================================== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ==========================================
   11. MEDIA QUERIES
   ========================================== */

/* Tablet-Ansicht (2 Spalten Layout) */
@media (max-width: 1100px) {
    .cards,
    .steps,
    .projects,
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        gap: 40px;
    }
}

/* Mobile Header & Haupt-Layout */
@media (max-width: 900px) {
    section {
        padding: 80px 6%;
    }

    p {
        font-size: 1rem;
    }

    header {
        min-height: 70px;
    }

    nav {
        padding: 12px 6%;
        min-height: 60px;
        position: relative;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-toggle {
        display: flex;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: #ffffff;
        border-bottom: 1px solid #e2e8f0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    nav ul.open {
        max-height: 600px;
    }

    nav ul li {
        width: 100%;
        padding: 15px 6%;
        border-top: 1px solid #f1f5f9;
    }

    nav ul li a {
        display: block;
        color: #0f172a;
    }

    nav ul li a[data-nav-link].active {
        color: #2563eb;
    }

    nav ul li a[data-nav-link].active::after {
        display: none;
    }

    .cards,
    .steps,
    .projects,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    footer {
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    footer h2 {
        text-align: center;
    }

    footer a {
        text-align: center;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* Kleine Smartphones */
@media (max-width: 600px) {
    .logo {
        font-size: 1.3rem;
    }

    .button {
        width: 100%;
        text-align: center;
    }

    .preview-content {
        padding: 30px;
    }

    .preview-content h3 {
        font-size: 1.5rem;
    }

    .card {
        padding: 25px;
    }

    .cards--pricing .card > .button,
    .cards--pricing .card > .button--outline {
        align-self: stretch;
    }

    .legal {
        padding: 90px 20px 60px;
    }

    .legal h2 {
        font-size: 1.3rem;
    }
}