/* =========================================================
   IN∞FINN∞IT – Portfolio Test Design
   ========================================================= */

:root {
    --blue-900: #102a56;
    --blue-800: #173b73;
    --blue-700: #245aa0;
    --blue-500: #4387d1;
    --blue-300: #9fc8ee;
    --blue-100: #edf5fc;

    --ink: #17243a;
    --muted: #617087;
    --white: #ffffff;

    --border: rgba(36, 90, 160, 0.14);
    --shadow: 0 18px 45px rgba(16, 42, 86, 0.10);
    --shadow-soft: 0 10px 28px rgba(16, 42, 86, 0.07);

    --radius-lg: 32px;
    --radius-md: 22px;
    --radius-sm: 14px;

    --max-width: 1180px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        linear-gradient(180deg,
            #f7fbff 0%,
            #ffffff 35%,
            #f4f9fe 100%);
    line-height: 1.7;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    padding: 18px 5vw;

    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 125px;
    height: auto;
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    position: relative;

    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;

    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--blue-700);
}


/* =========================================================
   GENERAL
   ========================================================= */

main {
    overflow: hidden;
}

.section {
    width: min(var(--max-width), 90%);
    margin: 0 auto;
    padding: 110px 0;
}

.section-label {
    margin-bottom: 42px;

    color: var(--blue-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   Unterseiten – Seiteneinleitung
--------------------------------------------------------- */

.page-intro {
    width: min(var(--max-width), 90%);
    margin: 0 auto;
    padding: 90px 0 55px;
}

.page-intro h1 {
    margin: 0 0 18px;

    color: var(--blue-900);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-lead {
    max-width: 720px;
    margin: 0;

    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: min(900px, 90%);
    margin: 0 auto;
    padding: 110px 0 100px;

    text-align: left;
}

.hero::before {
    content: "";

    position: absolute;
    inset: 8% -10% auto 25%;
    z-index: -2;

    height: 500px;

    background:
        radial-gradient(circle,
            rgba(67, 135, 209, 0.16) 0%,
            rgba(67, 135, 209, 0.06) 35%,
            transparent 70%);

    pointer-events: none;
}

.hero-content {
    width: 100%;
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 18px;

    color: var(--blue-700);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.hero h1 {
    margin: 0;

    color: var(--blue-900);
    font-size: clamp(3rem, 6.2vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.hero-tagline {
    margin: 30px 0 18px;

    color: var(--blue-700);
    font-size: 1.1rem;
    font-weight: 700;
}

.hero-intro {
    max-width: 570px;
    margin: 0 0 34px;

    color: var(--muted);
    font-size: 1.08rem;
}


/* =========================================================
   HERO / PROFILE VISUAL
   ========================================================= */

.hero-visual {
    width: min(430px, 90vw);
    height: 430px;
    margin: 55px auto 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-frame {
    position: relative;
    z-index: 2;

    width: min(370px, 82%);
    aspect-ratio: 0.78;

    overflow: hidden;

    border-radius: 46% 54% 42% 58% / 38% 43% 57% 62%;

    background: var(--white);
    box-shadow:
        0 28px 70px rgba(16, 42, 86, 0.18),
        0 0 0 12px rgba(255, 255, 255, 0.72);

    transform: rotate(2deg);
}

.profile-frame img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center top;

    transform: rotate(-2deg) scale(1.015);
}

.infinity-orbit {
    position: absolute;
    z-index: 1;

    width: 500px;
    height: 310px;

    border: 2px solid rgba(67, 135, 209, 0.28);
    border-radius: 50%;

    transform:
        rotate(-18deg) skewX(-18deg);

    box-shadow:
        0 0 35px rgba(67, 135, 209, 0.12);

    pointer-events: none;
}

.infinity-orbit::before {
    content: "";

    position: absolute;
    inset: 26px 62px;

    border: 1px solid rgba(67, 135, 209, 0.16);
    border-radius: 50%;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 12px 22px;

    border-radius: 999px;

    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 750;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: white;
    background: var(--blue-700);
    box-shadow: 0 10px 24px rgba(36, 90, 160, 0.22);
}

.button-primary:hover {
    background: var(--blue-800);
}

.button-secondary {
    color: var(--blue-800);
    background: var(--blue-100);
}

.button-secondary:hover {
    background: #dcecf9;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about {
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
    gap: 90px;
    align-items: start;
}

.about h2,
.contact h2 {
    margin: 0;

    color: var(--blue-900);
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.about-content {
    width: min(900px, 90%);
    margin: 0 auto;
}


.about-text {
    max-width: 650px;
    margin: 0 auto;

    color: var(--muted);
    font-size: 1.05rem;
}

.about-text p {
    margin: 0 0 22px;
}

.text-link {
    display: inline-block;
    margin-top: 10px;

    color: var(--blue-700);
    font-weight: 750;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.about-cta {
    width: min(900px, 90%);
    margin: 80px auto;
}

.about-cta .button {
    margin-top: 28px;
}

/* =========================================================
   Bild vergrößern
   ========================================================= */

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background: rgba(10, 20, 40, 0.88);
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox-image {
    display: block;
    max-width: 95vw;
    max-height: 90vh;
    width: auto;
    height: auto;

    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;

    width: 44px;
    height: 44px;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);
    color: var(--blue-900);

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;
}

/* =========================================================
   FEATURED PROJECT
   ========================================================= */

.featured-project {
    padding-top: 70px;
}

.project-card {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;

    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: white;
    box-shadow: var(--shadow);
}

.project-image {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px;
    background: #e8f4fc;
    overflow: hidden;
}

.project-image img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;

    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(20, 50, 90, 0.12);
}

.project-image-button {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.project-image-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.project-image-button:hover img {
    transform: scale(1.02);
}

.project-content {
    padding: 55px 50px;
}

.project-type {
    margin: 0 0 16px;

    color: var(--blue-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-content h2 {
    margin: 0 0 22px;

    color: var(--blue-900);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.project-content>p:not(.project-type) {
    color: var(--muted);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    padding: 0;
    margin: 28px 0;

    list-style: none;
}

.project-meta li {
    padding: 7px 12px;

    border-radius: 999px;

    color: var(--blue-800);
    background: var(--blue-100);

    font-size: 0.78rem;
    font-weight: 700;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    position: relative;

    min-height: 250px;
    padding: 32px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-soft);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-number {
    display: block;
    margin-bottom: 45px;

    color: var(--blue-500);
    font-size: 0.8rem;
    font-weight: 800;
}

.service-card h3 {
    margin: 0 0 12px;

    color: var(--blue-900);
    font-size: 1.35rem;
}

.service-card p {
    margin: 0;

    color: var(--muted);
    font-size: 0.95rem;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
    padding-bottom: 120px;
}

.contact-content {
    width: min(760px, 90%);
    margin: 0 auto;
    padding: 55px;
    border-radius: var(--radius-lg);

    /* Infinity-Hintergrund */
    background:
        linear-gradient(rgba(255, 255, 255, 0.88),
            rgba(255, 255, 255, 0.78)),
        url("/assets/img/infinity4.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    box-shadow: var(--shadow);
}

.contact-content h2 {
    margin-top: 0;
    color: var(--blue-900);
}

.contact-content p {
    max-width: 580px;
    margin: 18px 0 0;
    color: var(--text-main);
}


/* ---------------------------------------------------------
   Kontaktformular
--------------------------------------------------------- */

.contact-form {
    display: grid;
    gap: 1.25rem;
    margin-top: 30px;
}

.contact-form label {
    display: block;
    margin-bottom: 0.35rem;

    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;

    font-family: inherit;
    font-size: 1rem;

    border: 1px solid #d1d5db;
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--blue-700);
    box-shadow: 0 0 0 3px rgba(77, 126, 168, 0.15);
}


/* ---------------------------------------------------------
   Formular-Hinweise
--------------------------------------------------------- */

.form-hint,
.form-required-note {
    margin-top: 0.4rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   Datenschutz-Checkbox
--------------------------------------------------------- */

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;

    color: var(--text-main);
    font-weight: 400;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-label a {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Absende-Button
--------------------------------------------------------- */

.contact-form .button-primary {
    justify-self: start;
}

.contact .button-primary {
    flex-shrink: 0;
    margin-top: 20px;

    box-shadow: none;
}


/* ---------------------------------------------------------
   Erfolgs- / Fehlermeldungen
--------------------------------------------------------- */

.form-success,
.form-error {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 14px;
}

.form-success {
    border: 1px solid rgba(77, 126, 168, 0.3);
}

.form-error {
    border: 1px solid rgba(180, 60, 60, 0.35);
}

.form-success h2 {
    margin-top: 0;
}


/* ---------------------------------------------------------
   Honeypot
--------------------------------------------------------- */

.form-honeypot {
    position: absolute;
    left: -10000px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


/* ---------------------------------------------------------
   Direkte Kontaktmöglichkeiten
--------------------------------------------------------- */

.contact-direct {
    width: min(760px, 90%);
    margin: 5rem auto 0;
}

.contact-direct h2 {
    margin-bottom: 0.75rem;
}


/* =========================================================
FOOTER
========================================================= */

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    padding: 28px 5vw;

    border-top: 1px solid var(--border);

    color: var(--muted);
    font-size: 0.85rem;
}

.site-footer .brand {
    flex-shrink: 0;
}

.site-footer .brand img {
    display: block;
    width: 105px;
    height: auto;
}

.site-footer nav {
    display: flex;
    gap: 20px;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--blue-700);
}

/* =========================================================
   PROJEKTE – SEITENLAYOUT
========================================================= */

/* ---------------------------------------------------------
   Allgemeine Projektbereiche
--------------------------------------------------------- */

.projects-section {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 90px 0;
}

.section-heading {
    margin-bottom: 45px;
}

.section-heading .section-label {
    display: block;
    margin-bottom: 14px;
}

.section-heading h2 {
    margin: 0 0 18px;
}

.section-description {
    max-width: 720px;
    margin: 0;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   Hervorgehobenes Kundenprojekt
--------------------------------------------------------- */

.project-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);

    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;

    box-shadow: var(--shadow);
}

.project-feature .project-image {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 420px;
    padding: 28px;

    background: #e8f4fc;
    overflow: hidden;
}

.project-feature .project-image img {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 16px;

    box-shadow: 0 12px 30px rgba(20, 50, 90, 0.12);
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 48px 42px;
}

.project-info h3 {
    margin: 8px 0 18px;
}

.project-info p {
    line-height: 1.7;
}


/* ---------------------------------------------------------
   Projektnummer / Kategorie
--------------------------------------------------------- */

.project-number {
    display: inline-block;

    color: #4d7ea8;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Projektdetails
--------------------------------------------------------- */

.project-details {
    margin: 25px 0 30px;
    padding: 0;

    list-style: none;
}

.project-details li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.project-details strong {
    font-weight: 700;
}


/* ---------------------------------------------------------
   Projektkarten
--------------------------------------------------------- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.project-grid .project-card {
    display: flex;
    flex-direction: column;

    background: #ffffff;
    border-radius: 26px;
    overflow: hidden;

    box-shadow: var(--shadow);
}

.project-card-image {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 280px;
    padding: 20px;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 34px;
}

.project-card-content h3 {
    margin: 8px 0 16px;
}

.project-card-content p {
    line-height: 1.7;
}


/* ---------------------------------------------------------
   Status
--------------------------------------------------------- */

.project-status {
    display: inline-flex;
    align-self: flex-start;

    margin-top: auto;
    padding: 8px 13px;

    border-radius: 999px;

    background: #eef6fb;
    color: #4d7ea8;

    font-size: 0.78rem;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Auszeichnungen
--------------------------------------------------------- */

.project-award {
    margin-top: 24px;
    padding: 16px 18px;

    border-left: 4px solid #4d7ea8;
    border-radius: 0 12px 12px 0;

    background: #eef6fb;
}

.project-award-note {
    margin-top: -12px;
    font-size: 0.9rem;
}


/* ---------------------------------------------------------
   Studienprojekte
--------------------------------------------------------- */

.project-grid-study {
    align-items: stretch;
}

.project-card-study .project-card-image {
    min-height: 250px;
}

.project-card-study .project-card-content {
    padding-top: 32px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .hero {
        width: 90%;
        padding-top: 80px;
    }

    .hero-content {
        max-width: 720px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 11vw, 5.4rem);
        max-width: 100%;
    }

    .hero-visual {
        width: min(400px, 90vw);
        height: 400px;
        margin-top: 45px;
    }

    .profile-frame {
        width: min(330px, 75%);
    }

    .infinity-orbit {
        width: 430px;
        height: 270px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

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

    .contact-content {
        padding: 35px 28px;
    }

    .project-feature {
        grid-template-columns: 1fr;
    }

    .project-feature .project-image {
        min-height: auto;
    }

    .project-info {
        padding: 38px 32px;
    }

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


@media (max-width: 650px) {

    .site-header {
        padding: 16px 5%;
    }

    .main-nav {
        gap: 14px;
    }

    .main-nav a {
        font-size: 0.8rem;
    }

    .section {
        width: 90%;
        padding: 80px 0;
    }

    .page-intro {
        width: 90%;
        padding: 65px 0 40px;
    }

    .page-intro h1 {
        font-size: clamp(2.4rem, 12vw, 3.6rem);
    }

    .hero {
        width: 90%;
        padding: 65px 0 80px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 18vw, 5.2rem);
    }

    .hero-intro {
        font-size: 1rem;
    }

    .hero-visual {
        min-height: 380px;
    }

    .profile-frame {
        width: 260px;
    }

    .infinity-orbit {
        width: 330px;
        height: 220px;
    }

    .project-content {
        padding: 35px 28px;
    }

    .project-image {
        padding: 18px;
    }

    .project-image img {
        border-radius: 14px;
    }

    .contact-content {
        padding: 35px 28px;
    }

    .site-footer {
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        padding: 24px 5%;
    }

    .site-footer nav {
        gap: 14px;
    }

    .projects-section {
        padding: 65px 0;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .project-feature {
        border-radius: 22px;
    }

    .project-feature .project-image {
        padding: 16px;
    }

    .project-feature .project-image img {
        border-radius: 12px;
    }

    .project-info {
        padding: 30px 24px;
    }

    .project-card {
        border-radius: 22px;
    }

    .project-card-image {
        min-height: 180px;
        padding: 18px;
    }

    .project-card-content {
        padding: 28px 24px;
    }

    .project-details {
        margin-top: 20px;
    }

    .contact-direct {
        margin-top: 4rem;
    }
}


@media (max-width: 600px) {

    .hero {
        width: 92%;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 11vw, 3.6rem);
        letter-spacing: -0.06em;
        white-space: nowrap;
    }

    .brand img {
        width: 125px;
    }
}