
/* =========================================
   ELEKTRIKER DEMO – BRAUNweb & design
   Passend zu deinem ersten elektriker HTML
   ========================================= */

/* ---------- FARBEN ---------- */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;

    --dark: #0f172a;
    --dark-light: #1e293b;

    --light: #f8fafc;
    --white: #ffffff;

    --gray: #64748b;
    --border: #e2e8f0;

    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 14px;
}

/* ---------- RESET ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: "Inter", Arial, sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(90%, 1200px);
    margin-inline: auto;
}

section {
    scroll-margin-top: 90px;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 3px 15px rgba(15, 23, 42, 0.04);
}

.header-container {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.main-nav a {
    color: var(--dark);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    flex-shrink: 0;
    color: var(--white);
    background: var(--primary);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease,
                transform 0.2s ease;
}

.header-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Sprachumschalter */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.lang-button {
    padding: 6px 8px;
    color: var(--gray);
    background: transparent;
    border: 0;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
}

.lang-button:hover,
.lang-button.active {
    color: var(--primary);
    background: #eff6ff;
}

/* =========================================
   HERO / STARTBEREICH
   ========================================= */

.hero {
    position: relative;
    isolation: isolate;
    min-height: 590px;
    display: flex;
    align-items: center;
    padding: 100px 0;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(
        135deg,
        #0f172a,
        #1e3a8a
    );
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-background .image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 590px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #1e293b,
        #334155
    );
}

.hero-background .image-placeholder span {
    padding: 12px 20px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.65);
    border: 1px dashed #94a3b8;
    border-radius: 8px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.92),
        rgba(15, 23, 42, 0.65)
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 760px;
}

.hero-label,
.section-label {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-label {
    padding: 7px 13px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 30px;
}

.hero h1 {
    max-width: 750px;
    margin-bottom: 22px;
    color: var(--white);
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.hero-text > p {
    max-width: 650px;
    margin-bottom: 32px;
    color: #e2e8f0;
    font-size: 1.1rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* =========================================
   BUTTONS
   ========================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 13px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

.button-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.hero .button-primary {
    color: var(--white);
    background: var(--primary);
}

.hero .button-secondary {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero .button-secondary:hover {
    color: var(--dark);
    background: var(--white);
}

.button-dark {
    color: var(--white);
    background: var(--dark);
    border-color: var(--dark);
}

.button-dark:hover {
    background: var(--dark-light);
}

/* =========================================
   BILDER / PLATZHALTER
   ========================================= */

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 20px;
    overflow: hidden;
    color: var(--gray);
    background: #e9eef5;
    border: 1px dashed #b8c5d6;
    border-radius: 10px;
    text-align: center;
}

.image-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* =========================================
   KURZINFO
   ========================================= */

.intro {
    position: relative;
    z-index: 2;
    padding: 38px 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 35px;
}

.intro-item {
    position: relative;
    padding: 10px 15px;
}

.intro-number {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.intro-item h3 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.08rem;
}

.intro-item p {
    color: var(--gray);
    font-size: 0.92rem;
}

/* =========================================
   ALLGEMEINE SECTIONS
   ========================================= */

.section {
    padding: 90px 0;
}

.section-light {
    color: var(--dark);
    background: var(--white);
}

.section-dark {
    color: var(--white);
    background: var(--dark);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 14px;
    color: var(--dark);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.6px;
}

.section-heading > p {
    color: var(--gray);
    font-size: 1rem;
}

.section-heading-light h2 {
    color: var(--white);
}

.section-heading-light > p {
    color: #cbd5e1;
}

.section-heading-light .section-label {
    color: #fbbf24;
}

/* =========================================
   LEISTUNGEN
   ========================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.service-card {
    height: 100%;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease,
                border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #93b4fa;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--primary);
    background: #eff6ff;
    border-radius: 12px;
    font-size: 1.7rem;
}

.service-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.15rem;
    line-height: 1.4;
}

.service-card p {
    color: var(--gray);
    font-size: 0.94rem;
}

/* =========================================
   PROJEKTE
   ========================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.project-card {
    height: 100%;
    overflow: hidden;
    color: var(--dark);
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image .image-placeholder {
    min-height: 220px;
    height: 220px;
    border: 0;
    border-radius: 0;
    background: #334155;
    color: #f1f5f9;
}

.project-image .image-placeholder span {
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.55);
    border-radius: 6px;
}

.project-content {
    padding: 25px;
}

.project-content > span {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-content h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.15rem;
    line-height: 1.4;
}

.project-content p {
    color: var(--gray);
    font-size: 0.92rem;
}

/* =========================================
   ÜBER UNS
   ========================================= */

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 65px;
}

.about-image .image-placeholder {
    min-height: 390px;
    height: 100%;
    background: #e9eef5;
}

.about-content h2 {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.25;
}

.about-content > p {
    margin-bottom: 16px;
    color: var(--gray);
}

.about-points {
    display: grid;
    gap: 12px;
    margin-top: 25px;
}

.about-points > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-points strong {
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #15803d;
    background: #dcfce7;
    border-radius: 50%;
    font-size: 0.9rem;
}

.about-points span {
    color: var(--dark);
    font-weight: 600;
}

/* =========================================
   ABLAUF / PROCESS
   ========================================= */

.process-section {
    background: var(--light);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.process-item {
    padding: 25px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--primary);
    background: #eff6ff;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 800;
}

.process-item h3 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.1rem;
}

.process-item p {
    color: var(--gray);
    font-size: 0.92rem;
}

/* =========================================
   CALL TO ACTION
   ========================================= */

.cta {
    padding: 80px 0;
    color: var(--white);
    background: linear-gradient(
        120deg,
        #1d4ed8,
        #1e3a8a
    );
    text-align: center;
}

.cta .section-label {
    color: #fde68a;
}

.cta h2 {
    max-width: 750px;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.25;
}

.cta p {
    max-width: 650px;
    margin: 0 auto 28px;
    color: #dbeafe;
}

.cta .button-dark {
    color: var(--dark);
    background: var(--white);
    border-color: var(--white);
}

.cta .button-dark:hover {
    color: var(--primary);
    background: #eff6ff;
}

/* =========================================
   KONTAKT
   ========================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: 45px;
}

.contact-info {
    padding: 30px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contact-info h3 {
    margin-bottom: 12px;
    color: var(--dark);
    font-size: 1.35rem;
}

.contact-info > p {
    margin-bottom: 28px;
    color: var(--gray);
    font-size: 0.94rem;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.contact-detail strong {
    color: var(--dark);
    font-size: 0.9rem;
}

.contact-detail span {
    color: var(--gray);
    overflow-wrap: anywhere;
}

/* Kontaktformular */

.contact-form-wrapper {
    min-width: 0;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.form-group label {
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--dark);
    background: var(--white);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.form-group textarea {
    min-height: 145px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-button {
    width: 100%;
}

/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    padding: 55px 0 30px;
    color: #cbd5e1;
    background: var(--dark);
}

.footer-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 35px;
}

.site-footer strong {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.site-footer p {
    max-width: 400px;
    color: #94a3b8;
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* =========================================
   TASTATUR / ZUGÄNGLICHKEIT
   ========================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

::selection {
    color: var(--white);
    background: var(--primary);
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1000px) {
    .header-container {
        gap: 15px;
    }

    .main-nav {
        gap: 14px;
    }

    .main-nav a {
        font-size: 0.85rem;
    }

    .brand {
        font-size: 1.2rem;
    }

    .header-button {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        gap: 35px;
    }

    .contact-grid {
        gap: 25px;
    }
}

/* =========================================
   HANDY
   ========================================= */

@media (max-width: 700px) {
    html {
        scroll-padding-top: 75px;
    }

    .container {
        width: min(92%, 1200px);
    }

    .header-container {
        min-height: 72px;
        flex-wrap: wrap;
        justify-content: space-between;
        padding-top: 12px;
        padding-bottom: 12px;
        gap: 10px;
    }

    .brand {
        font-size: 1.15rem;
    }

    .main-nav {
        order: 3;
        width: 100%;
        display: flex;
        justify-content: flex-start;
        gap: 10px;
        padding: 4px 0 8px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .main-nav a {
        flex-shrink: 0;
        padding: 6px 9px;
        font-size: 0.82rem;
    }

    .header-button {
        margin-left: auto;
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .lang-switch {
        gap: 2px;
    }

    .lang-button {
        padding: 6px;
        font-size: 0.8rem;
    }

    .hero {
        min-height: 520px;
        padding: 80px 0;
    }

    .hero-background .image-placeholder {
        min-height: 520px;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        letter-spacing: -0.8px;
    }

    .hero-text > p {
        font-size: 1rem;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .intro {
        padding: 25px 0;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .intro-item {
        padding: 10px 0;
    }

    .section {
        padding: 65px 0;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 1.85rem;
    }

    .services-grid,
    .projects-grid,
    .process-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card {
        padding: 25px;
    }

    .project-image .image-placeholder {
        height: 200px;
        min-height: 200px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image .image-placeholder {
        min-height: 250px;
    }

    .process-item {
        padding: 22px;
    }

    .cta {
        padding: 65px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 25px;
    }

    .footer-links {
        gap: 14px 20px;
    }
}

/* =========================================
   KLEINE HANDYS
   ========================================= */

@media (max-width: 380px) {
    .brand {
        font-size: 1rem;
    }

    .header-button {
        padding: 7px 9px;
        font-size: 0.78rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .section-heading h2 {
        font-size: 1.65rem;
    }

    .contact-info,
    .contact-form-wrapper {
        padding: 18px;
    }
}

/* =========================================
   WENIGER ANIMATIONEN
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
