/* =====================================================
   BLUEOUTDESIGN WEBDESIGN
   style.css
===================================================== */


/* =====================================================
   VARIABLEN
===================================================== */

:root {
    --blue: #1687ed;
    --blue-light: #35a8ff;
    --blue-dark: #0864b5;

    --background: #05070d;
    --background-2: #080d17;

    --card: #0d1420;
    --card-hover: #111c2b;

    --border: rgba(255, 255, 255, 0.08);

    --text: #ffffff;
    --text-light: #cbd5e1;
    --text-muted: #8290a3;

    --max-width: 1200px;
}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =====================================================
   CONTAINER
===================================================== */

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
}


/* =====================================================
   HEADER
===================================================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(5, 7, 13, 0.88);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}

nav {
    width: min(calc(100% - 40px), var(--max-width));

    min-height: 78px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =====================================================
   LOGO
===================================================== */

nav > a:first-child {
    font-size: 24px;

    font-weight: 800;

    letter-spacing: -0.5px;
}

nav > a:first-child::after {
    content: "";

    display: inline-block;

    width: 7px;
    height: 7px;

    margin-left: 4px;

    background: var(--blue);

    border-radius: 50%;
}


/* =====================================================
   NAVIGATION
===================================================== */

nav div {
    display: flex;

    align-items: center;

    gap: 28px;
}

nav div a {
    color: var(--text-light);

    font-size: 14px;

    transition: color 0.2s ease;
}

nav div a:hover {
    color: var(--blue-light);
}


/* =====================================================
   MAIN
===================================================== */

main {
    min-height: 60vh;
}


/* =====================================================
   SECTIONS
===================================================== */

section {
    width: min(calc(100% - 40px), var(--max-width));

    margin: 0 auto;

    padding: 100px 0;
}


/* =====================================================
   HERO
===================================================== */

#hero {
    min-height: 720px;

    width: 100%;

    max-width: none;

    padding: 160px max(20px, calc((100% - 1200px) / 2)) 130px;

    display: flex;

    align-items: center;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(22, 135, 237, 0.18),
            transparent 35%
        );
}

#hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -180px;
    top: 80px;

    background: rgba(22, 135, 237, 0.12);

    filter: blur(100px);

    border-radius: 50%;
}

#hero > div {
    max-width: 800px;

    position: relative;

    z-index: 1;
}

#hero p:first-child {
    color: var(--blue-light);

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 22px;
}

#hero h1 {
    font-size: clamp(42px, 7vw, 78px);

    line-height: 1.03;

    letter-spacing: -3px;

    margin-bottom: 28px;
}

#hero > div > p:nth-of-type(2) {
    max-width: 650px;

    color: var(--text-muted);

    font-size: 18px;

    margin-bottom: 35px;
}


/* =====================================================
   BUTTONS
===================================================== */

#hero a,
section a[href*="kontakt"],
section a[href*="kontakt.html"],
button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 50px;

    padding: 0 24px;

    border-radius: 9px;

    background: var(--blue);

    color: #ffffff;

    font-weight: 700;

    border: none;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

#hero a:hover,
section a[href*="kontakt"]:hover,
section a[href*="kontakt.html"]:hover,
button:hover {
    background: var(--blue-light);

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(22, 135, 237, 0.25);
}

#hero > div > div {
    display: flex;

    gap: 14px;

    flex-wrap: wrap;
}

#hero > div > div a:last-child {
    background: transparent;

    border: 1px solid var(--border);

    color: var(--text-light);
}

#hero > div > div a:last-child:hover {
    border-color: var(--blue);

    color: #ffffff;
}


/* =====================================================
   ÜBERSCHRIFTEN
===================================================== */

section > div:first-child p:first-child,
section > p:first-child {
    color: var(--blue-light);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 12px;
}

section h2 {
    font-size: clamp(32px, 5vw, 52px);

    line-height: 1.1;

    letter-spacing: -1.5px;

    margin-bottom: 18px;
}

section h3 {
    font-size: 21px;

    margin-bottom: 10px;
}

section > div:first-child > p:last-child {
    color: var(--text-muted);

    max-width: 650px;
}


/* =====================================================
   LEISTUNGEN
===================================================== */

#leistungen > div:nth-child(2) {
    margin-top: 50px;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

#leistungen article {
    padding: 32px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

#leistungen article:hover {
    transform: translateY(-5px);

    background: var(--card-hover);

    border-color: rgba(22, 135, 237, 0.35);
}

#leistungen article p {
    color: var(--text-muted);
}


/* =====================================================
   PREISE
===================================================== */

#preise > div:nth-child(2) {
    margin-top: 50px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

#preise article {
    padding: 35px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;

    position: relative;
}

#preise article:nth-child(2) {
    border-color: rgba(22, 135, 237, 0.5);

    box-shadow:
        0 0 50px rgba(22, 135, 237, 0.08);
}

#preise article > p {
    color: var(--blue-light);

    font-size: 28px;

    font-weight: 800;

    margin: 15px 0 25px;
}

#preise ul {
    list-style: none;

    margin-bottom: 30px;
}

#preise li {
    color: var(--text-muted);

    padding: 8px 0;

    border-bottom: 1px solid var(--border);
}

#preise li::before {
    content: "✓";

    color: var(--blue-light);

    margin-right: 10px;
}


/* =====================================================
   REFERENZEN
===================================================== */

#referenzen {
    text-align: center;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(22, 135, 237, 0.04),
            transparent
        );
}

#referenzen > p,
#referenzen > h2 {
    text-align: center;
}

#referenzen > p:last-child {
    max-width: 650px;

    margin: 0 auto;

    color: var(--text-muted);
}


/* =====================================================
   ABLAUF
===================================================== */

#ablauf article {
    margin-top: 20px;

    padding: 25px;

    border-left: 2px solid var(--blue);

    background: var(--card);

    border-radius: 0 12px 12px 0;
}

#ablauf article span {
    color: var(--blue-light);

    font-weight: 800;

    font-size: 13px;
}

#ablauf article p {
    color: var(--text-muted);
}


/* =====================================================
   KONTAKT
===================================================== */

#kontakt {
    max-width: 850px;
}

#kontakt > p {
    color: var(--text-muted);
}

#kontakt form {
    margin-top: 40px;

    display: grid;

    gap: 10px;
}

#kontakt label {
    color: var(--text-light);

    font-size: 14px;

    margin-top: 10px;
}

#kontakt input,
#kontakt textarea,
#kontakt select {
    width: 100%;

    padding: 14px 15px;

    background: #080e18;

    color: #ffffff;

    border: 1px solid var(--border);

    border-radius: 9px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#kontakt textarea {
    resize: vertical;

    min-height: 150px;
}

#kontakt input:focus,
#kontakt textarea:focus,
#kontakt select:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 3px rgba(22, 135, 237, 0.1);
}

#kontakt button {
    margin-top: 15px;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    padding: 35px 20px;

    border-top: 1px solid var(--border);

    background: #03050a;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 25px;

    flex-wrap: wrap;

    color: var(--text-muted);

    font-size: 13px;
}

footer a:hover {
    color: var(--blue-light);
}


/* =====================================================
   UNTERSEITEN
===================================================== */

main > section:first-child:not(#hero) {
    padding-top: 140px;
}

main > section:first-child:not(#hero) > p:first-child {
    color: var(--blue-light);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;
}

main > section:first-child:not(#hero) h1 {
    max-width: 900px;

    font-size: clamp(40px, 6vw, 70px);

    line-height: 1.05;

    letter-spacing: -2px;

    margin: 15px 0 25px;
}

main > section:first-child:not(#hero) > p:last-child {
    max-width: 700px;

    color: var(--text-muted);

    font-size: 18px;
}


/* =====================================================
   ALLGEMEINE ARTIKEL
===================================================== */

main article {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 30px;
}

main article p {
    color: var(--text-muted);
}


/* =====================================================
   FORMULARE
===================================================== */

form {
    max-width: 800px;
}

form input,
form textarea,
form select {
    width: 100%;

    padding: 14px;

    margin-bottom: 10px;

    background: #080e18;

    color: white;

    border: 1px solid var(--border);

    border-radius: 9px;

    outline: none;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: var(--blue);
}

form button {
    margin-top: 15px;
}


/* =====================================================
   LISTEN
===================================================== */

main ul {
    list-style: none;

    margin: 20px 0;
}

main li {
    padding: 7px 0;

    color: var(--text-muted);
}

main li::before {
    content: "✓";

    color: var(--blue-light);

    margin-right: 10px;
}


/* =====================================================
   MOBILE MENU BUTTON
===================================================== */

.mobile-menu-button {
    display: none;

    width: 45px;
    height: 45px;

    padding: 10px;

    background: transparent;

    border: 1px solid var(--border);

    border-radius: 8px;

    cursor: pointer;

    flex-direction: column;

    justify-content: center;

    gap: 5px;
}

.mobile-menu-button span {
    display: block;

    width: 100%;
    height: 2px;

    background: white;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.mobile-menu-button.active span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =====================================================
   AUSWAHL
===================================================== */

::selection {
    background: var(--blue);

    color: white;
}


/* =====================================================
   RESPONSIVE TABLET
===================================================== */

@media (max-width: 900px) {

    nav div {
        gap: 16px;
    }

    #hero {
        min-height: 650px;

        padding-top: 120px;

        padding-bottom: 100px;
    }

    #hero h1 {
        font-size: clamp(42px, 9vw, 65px);
    }

    #preise > div:nth-child(2) {
        grid-template-columns: 1fr;
    }

    #preise article {
        max-width: 600px;

        width: 100%;

        margin: 0 auto;
    }

    section {
        padding: 80px 0;
    }
}


/* =====================================================
   RESPONSIVE MOBILE
===================================================== */

@media (max-width: 650px) {

    .container {
        width: calc(100% - 30px);
    }

    header {
        position: sticky;
    }

    nav {
        width: calc(100% - 30px);

        min-height: 70px;

        padding: 12px 0;

        flex-direction: row;

        align-items: center;
    }

    nav div {
        display: none;

        position: absolute;

        top: calc(100% + 10px);

        left: 15px;

        width: calc(100% - 30px);

        padding: 15px;

        background: #080d17;

        border: 1px solid var(--border);

        border-radius: 12px;

        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.4);

        flex-direction: column;

        gap: 8px;
    }

    nav div.mobile-open {
        display: flex;
    }

    nav div a {
        width: 100%;

        padding: 11px;

        background:
            rgba(255, 255, 255, 0.03);

        border-radius: 7px;

        text-align: center;
    }

    .mobile-menu-button {
        display: flex;
    }

    #hero {
        min-height: 600px;

        padding:
            100px 20px 80px;

        background:
            radial-gradient(
                circle at 70% 30%,
                rgba(22, 135, 237, 0.15),
                transparent 50%
            );
    }

    #hero h1 {
        font-size: clamp(40px, 12vw, 55px);

        letter-spacing: -2px;
    }

    #hero > div > p:nth-of-type(2) {
        font-size: 16px;
    }

    #hero > div > div {
        flex-direction: column;

        align-items: stretch;
    }

    #hero > div > div a {
        width: 100%;
    }

    section {
        width: calc(100% - 30px);

        padding: 70px 0;
    }

    section h2 {
        font-size: 34px;
    }

    #leistungen > div:nth-child(2) {
        grid-template-columns: 1fr;
    }

    #leistungen article {
        padding: 25px;
    }

    #preise > div:nth-child(2) {
        gap: 15px;
    }

    #preise article {
        padding: 27px;
    }

    main > section:first-child:not(#hero) {
        padding-top: 90px;
    }

    main > section:first-child:not(#hero) h1 {
        font-size: 42px;
    }

    main > section:first-child:not(#hero) > p:last-child {
        font-size: 16px;
    }

    footer {
        flex-direction: column;

        text-align: center;

        gap: 12px;
    }
}


/* =====================================================
   KLEINE SMARTPHONES
===================================================== */

@media (max-width: 400px) {

    #hero h1 {
        font-size: 37px;
    }

    nav > a:first-child {
        font-size: 21px;
    }

    section h2 {
        font-size: 30px;
    }
}