:root {
    --bg-1: #171b2f;
    --bg-2: #1f2440;
    --bg-3: #2a294f;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-2: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.1);
    --text-main: #f4f1ff;
    --text-muted: #9da3c0;
    --accent: #ff5fc7;
    --accent-2: #b58dff;
    --accent-3: #8d7bff;
    --dark-pill: rgba(9, 12, 22, 0.72);

    /* Bootstrap Form-Validierung überschreiben */
    --bs-form-invalid-color: #ff8db0;
    --bs-form-invalid-border-color: #ff5fc7;
    --bs-form-valid-color: #b189ff;
    --bs-form-valid-border-color: #b189ff;


    /* Bootstrap Alert-Farben über RGB-Variablen überschreiben */
    /* accent (pink) für danger: #ff5fc7 → 255, 95, 199 */
    --bs-danger-rgb: 255, 95, 199;
    /* accent-2 (lila) für success: #b189ff → 177, 137, 255 */
    --bs-success-rgb: 177, 137, 255;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    color: var(--text-main);
    background:
            radial-gradient(circle at 85% 10%, rgba(255, 95, 199, 0.14), transparent 20%),
            radial-gradient(circle at 10% 100%, rgba(141, 123, 255, 0.14), transparent 22%),
            linear-gradient(140deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
}

a {
    text-decoration: none;
}

.navbar-custom {
    z-index: 1050;
    /*padding: 24px 38px 12px;*/
    backdrop-filter: blur(16px);
    background: linear-gradient(180deg, rgba(25, 29, 52, 0.92), rgba(25, 29, 52, 0.55), transparent);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 800;
    color: #292044;
    background: linear-gradient(135deg, #8d7bff, #c594ff);
    box-shadow: 0 8px 24px rgba(168, 123, 255, 0.3);
}

.brand-text {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-text span {
    color: var(--accent-2);
}

.nav-link.custom-link {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-inline: 1rem !important;
}

.nav-link.custom-link:hover,
.nav-link.custom-link.active {
    color: white;
}

.main-content {
    position: relative;
    z-index: 2;
}

/*.section-spacing {
    padding: 84px 38px;
}*/

.eyebrow {
    color: var(--accent-2);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-weight: 600;
}

.section-title {
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    font-weight: 800;
    margin-top: 0.9rem;
    margin-bottom: 0;
}

.section-copy {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.85;
}

.hero {
    /*min-height: calc(100vh - 120px);*/
    display: flex;
    align-items: center;
}

/*
.hero-left {
    padding-top: 52px;
    padding-bottom: 40px;
}
*/

.hero-title {
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.hero-title .accent {
    color: var(--accent);
    display: block;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    letter-spacing: 0.01em;
    margin-bottom: 2rem;
}

.btn-main,
.btn-outline-main {
    min-width: 170px;
    height: 58px;
    border-radius: 18px;
    font-size: 1.08rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-main {
    background: linear-gradient(135deg, #b189ff, #9a7dff);
    color: #241d3d;
    border: none;
    box-shadow: 0 16px 30px rgba(177, 137, 255, 0.28);
}

.btn-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(177, 137, 255, 0.36);
    color: #241d3d;
}

.btn-outline-main {
    border: 2px solid rgba(181, 141, 255, 0.9);
    color: #c69dff;
    background: transparent;
}

.btn-outline-main:hover {
    background: rgba(198, 157, 255, 0.08);
    color: white;
}

.social-column {
    margin-top: 2rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.social-line {
    width: 2px;
    height: 84px;
    border-radius: 999px;
    background: linear-gradient(to bottom, rgba(181, 141, 255, 0.9), transparent);
    margin-bottom: 0.5rem;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.1rem;
    transition: all 0.25s ease;
}

.social-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.hero-right {
    position: relative;
    min-height: 620px;
}

.device-stack {
    position: absolute;
    right: 20%; /* 8% */
    top: 2%;
    width: min(420px, 88%);
    height: 610px;
    transform: rotate(14deg);
}

.phone-frame {
    position: absolute;
    inset: 0;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(31, 38, 71, 0.95), rgba(21, 24, 47, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.38);
    overflow: hidden;
}

.phone-frame::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(15, 20, 39, 0.75), rgba(25, 29, 58, 0.55));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.screen-content {
    position: absolute;
    inset: 0;
    /*padding: 44px 28px;*/
}

.screen-heading {
    font-size: 1.95rem;
    font-weight: 800;
    color: rgba(241, 247, 255, 0.95);
    line-height: 1.1;
}

.code-line,
.ui-block,
.metric-card {
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}

.code-line {
    height: 10px;
    border-radius: 999px;
}

.ui-block {
    height: 78px;
}

.metric-card {
    height: 118px;
    padding: 20px;
}

.card-glass {
    height: 100%;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.portfolio-card {
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    border-color: rgba(181, 141, 255, 0.36);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.portfolio-card:hover .portfolio-image {
    filter: grayscale(0%);
}

.portfolio-visual {
    aspect-ratio: 16 / 10;
    background:
            radial-gradient(circle at 80% 30%, rgba(255, 95, 199, 0.24), transparent 22%),
            linear-gradient(140deg, rgba(177, 137, 255, 0.18), rgba(27, 31, 59, 0.5)),
            #15192f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.portfolio-image {
    position: absolute;
    inset: 20px 24px 46px 24px;
    width: calc(100% - 48px);
    height: calc(100% - 66px);
    object-fit: cover;
    object-position: top;
    opacity: 0.7;
    border-radius: 16px;
    z-index: 1;
    filter: grayscale(100%);
}

.portfolio-visual::before {
    content: "";
    position: absolute;
    inset: 20px 24px 46px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 2;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.82rem;
    font-weight: 500;
}

.resume-card {
    padding: 1.75rem;
}

.resume-timeline {
    position: relative;
    padding-left: 1.4rem;
}

.resume-timeline::before {
    content: "";
    position: absolute;
    left: 0.32rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, rgba(181, 141, 255, 0.9), rgba(255, 255, 255, 0.06));
}

.timeline-item {
    position: relative;
    padding: 0 0 1.6rem 1.2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -0.12rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b189ff, #ff5fc7);
    box-shadow: 0 0 0 5px rgba(177, 137, 255, 0.1);
}

.skill-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b189ff, #ff5fc7);
}

/*.contact-info-card,
.contact-form-card {
    !*height: 100%;*!
    !*padding: 2rem;*!
}*/

.contact-chip {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(177, 137, 255, 0.22), rgba(255, 95, 199, 0.18));
    color: white;
    font-size: 1.15rem;
}

.form-control,
.form-select {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    min-height: 54px;
    padding: 0.95rem 1rem;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.form-control:focus,
.form-select:focus {
    color: white;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(181, 141, 255, 0.7);
    box-shadow: 0 0 0 0.22rem rgba(177, 137, 255, 0.14);
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

.form-select option {
    color: #141827;
}

/* Form Validation Styles */

/* Invalid: Ausrufezeichen in Pink (#ff8db0) */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid,
.form-control.is-invalid,
.form-select.is-invalid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ff8db0'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ff8db0' stroke='none'/%3e%3c/svg%3e");
}

/* Valid: Häkchen in Lila (#b189ff) */
.was-validated .form-control:valid,
.was-validated .form-select:valid,
.form-control.is-valid,
.form-select.is-valid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23b189ff' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
}

.alert-danger {
    background-color: rgba(255, 95, 199, 0.08);
    border-color: rgba(255, 95, 199, 0.35);
    color: #ff8db0;
}



/* ── Alert Overrides ─────────────────────────────────────── */
/*
.alert-danger {
    --bs-alert-bg: rgba(255, 95, 199, 0.08);
    --bs-alert-border-color: rgba(255, 95, 199, 0.35);
    --bs-alert-color: #ff8db0;
    background-color: var(--bs-alert-bg);
    border-color: var(--bs-alert-border-color);
    color: var(--bs-alert-color);
}

.alert-danger:focus,
.alert-danger:focus-visible {
    outline: 2px solid rgba(255, 95, 199, 0.5);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.22rem rgba(255, 95, 199, 0.15);
}

.alert-success {
    --bs-alert-bg: rgba(177, 137, 255, 0.08);
    --bs-alert-border-color: rgba(177, 137, 255, 0.35);
    --bs-alert-color: #c4a8ff;
    background-color: var(--bs-alert-bg);
    border-color: var(--bs-alert-border-color);
    color: var(--bs-alert-color);
}

.alert-success:focus,
.alert-success:focus-visible {
    outline: 2px solid rgba(177, 137, 255, 0.5);
    outline-offset: 2px;
    box-shadow: 0 0 0 0.22rem rgba(177, 137, 255, 0.15);
}
*/

.footer {
    /*padding: 0 38px 38px;*/
}

.footer-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
}


@media (max-width: 991.98px) {
    .device-stack {
        left: 8%;
        width: min(300px, 90%);
        height: 420px;
    }

    .hero-right {
        min-height: 480px;
        margin-top: 10px;
    }

    .social-column {
        flex-direction: row;
        gap: 0.65rem;
    }

    .social-line {
        width: 56px;
        height: 2px;
        margin-bottom: 0;
        margin-right: 0.35rem;
        background: linear-gradient(to right, rgba(181, 141, 255, 0.9), transparent);
    }

    /*.navbar-custom {
        padding-inline: 24px;
    }

    .section-spacing {
        padding: 64px 24px;
    }

    .hero {
        min-height: auto;
        padding-top: 10px;
    }

    .hero-left {
        padding-top: 24px;
    }

    .hero-right {
        min-height: 480px;
        margin-top: 10px;
    }*/

/*    .device-stack {
        right: 50%;
        top: 20px;
        width: min(360px, 88%);
        height: 520px;
        transform: translateX(50%) rotate(10deg);
    }*/
}

/* ── Cookie Consent ──────────────────────────────────────── */
#cookieConsent {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: min(680px, calc(100% - 2rem));
    animation: cookieSlideUp 0.4s ease;
}

#cookieConsent.cookie-consent--hidden {
    animation: cookieSlideDown 0.4s ease forwards;
}

@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0);    }
}

@keyframes cookieSlideDown {
    from { opacity: 1; transform: translateX(-50%) translateY(0);    }
    to   { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.cookie-consent__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-radius: 24px;
    background: rgba(31, 36, 64, 0.92);
    border: 1px solid rgba(181, 141, 255, 0.25);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
}

.cookie-consent__text {
    flex: 1 1 300px;
}

.cookie-consent__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.cookie-consent__body {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.cookie-consent__options {
    margin-top: 0.9rem;
}

.cookie-consent__option {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.84rem;
    color: var(--text-main);
    cursor: pointer;
}

.cookie-consent__checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: #b189ff;
    cursor: pointer;
}

.cookie-consent__link {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent__link:hover {
    color: white;
}

.cookie-consent__actions {
    display: flex;
    gap: 0.65rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-consent__btn {
    height: 44px;
    padding: 0 1.4rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s ease;
    border: none;
}

.cookie-consent__btn--primary {
    background: linear-gradient(135deg, #b189ff, #9a7dff);
    color: #241d3d;
    box-shadow: 0 8px 22px rgba(177, 137, 255, 0.28);
}

.cookie-consent__btn--primary:hover {
    box-shadow: 0 12px 28px rgba(177, 137, 255, 0.38);
    transform: translateY(-1px);
}

.cookie-consent__btn--outline {
    background: transparent;
    border: 2px solid rgba(181, 141, 255, 0.5);
    color: #c69dff;
}

.cookie-consent__btn--outline:hover {
    background: rgba(181, 141, 255, 0.08);
    color: white;
}

.cookie-settings-btn {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.cookie-settings-btn:hover {
    color: var(--accent-2);
}

@media (max-width: 575.98px) {
    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 767.98px) {
    /*.navbar-custom {
        padding: 18px 18px 6px;
    }

    .brand-text {
        font-size: 1.5rem;
    }

    .section-spacing {
        padding: 54px 18px;
    }

    .hero-title {
        font-size: clamp(2.9rem, 15vw, 4.4rem);
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .btn-main,
    .btn-outline-main {
        width: 100%;
        min-width: unset;
    }

    .social-column {
        flex-direction: row;
        gap: 0.65rem;
    }

    .social-line {
        width: 56px;
        height: 2px;
        margin-bottom: 0;
        margin-right: 0.35rem;
        background: linear-gradient(to right, rgba(181, 141, 255, 0.9), transparent);
    }

    .hero-right {
        min-height: 420px;
    }*/

/*    .device-stack {
        width: min(300px, 90%);
        height: 420px;
    }*/

/*    .contact-info-card,
    .contact-form-card,
    .resume-card {
        padding: 1.35rem;
    }

    .footer {
        padding: 0 18px 18px;
    }*/
}

/* ── Anti-Spam: Honeypot ──────────────────────────────────────────────────── */
.honeypot-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    tab-index: -1;
}

/* ── Anti-Spam: Math-CAPTCHA ─────────────────────────────────────────────── */
.captcha-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.captcha-input {
/*    width: 130px;*/
}

/*@media (max-width: 575.98px) {*/
/*    .captcha-input {*/
/*        width: 100%;*/
/*    }*/
/*}*/
