/* ===== Global ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Josefin Sans', sans-serif;
    /*outline: 1px solid red !important;*/
}

:root {
    --maxWidth: 1400px;
    --heightNavBar: 140px;

    --color_background: #262E34;
    --color_background_2nd: #2D383F;
    --color_primary: #89BCD9;
    --color_primaryRGB: 137, 188, 217;
    --color_secondary: #F8F5EC;
    --color_inactive: #262E341F;
    --color_error: #E44C36;
    --color_done: #97E163;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color_background);
    color: var(--color_secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

a {
    color: var(--color_primary);
    cursor: pointer;
    text-decoration: underline;
    font-size: 1.2rem;
}

h1 {
    font-size: 3.5rem;
    padding: 2.25rem 0;
    font-family: 'Anta', sans-serif;
    text-align: center;
}

h2 {
    margin-bottom: 2.5rem;
    color: var(--color_primary);
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
}

h3 {
    margin-bottom: 1.25rem;
    color: var(--color_secondary);
    font-size: 1.75rem;
    font-weight: 400;
}

h4 {
    margin-bottom: 1.25rem;
    color: var(--color_secondary);
    font-size: 1.5rem;
    font-weight: 400;
}

#dialog h3 {
    margin-top: 20px;
    color: var(--color_primary);
}

#hero h2 {
    color: var(--color_secondary);
}

section {
    width: 100%;
    max-width: var(--maxWidth);
}

.noLineHeight{
    line-height: 1.1rem !important;
}

/*section:not(#hero) {
    padding-top: var(--heightNavBar);
}*/

p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.onlyDesktop {
    display: block;
}

.onlyMobile {
    display: none;
}

.onlyMobileFlex {
    display: none;
}

.displayNone {
    display: none !important;
}

/* ===== Buttons ===== */
.btn {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1.125rem;
}

.btn_primary {
    background: var(--color_primary);
    border: 3px solid var(--color_background);
}

.btn_primary:hover {
    background: var(--color_secondary);
    border: 3px solid var(--color_background);
}

.btn_primary_clicked {
    background: var(--color_primary);
}

.btn_primary_inactive {
    border: 1px solid var(--color_secondary);
}

.btn_secondary {
    border: 1px solid var(--color_primary);
    background: transparent;
    color: var(--color_primary);
}

.btn_secondary:hover {
    background: #F8F5EC1F;
}

.btnLink {
    display: block;
    width: 100%;
    height: 100%;
}

.blueFont {
    color: var(--color_primary) !important;
}

.darkBlueFont {
    color: var(--color_background) !important;
}

.btnArrow {
    width: 38px;
    height: 89px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.btnDown {
    background-image: url("./img/arrowDown.svg");
}

.btnDown:hover {
    background-image: url("./img/arrowDown_hover.svg");
}

.btnLeft {
    background-image: url("./img/arrowLeft.svg");
    width: 64px !important;
    aspect-ratio: 1/1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.btnLeft a {
    display: block;
    width: 100%;
    height: 100%;
}

.btnLeft:hover {
    background-image: url("./img/arrowLeft_hover.svg");
}

.btnUp {

    background-image: url("./img/arrowUp.svg");
}

.btnUp:hover {
    background-image: url("./img/arrowUp_hover.svg");
}

/* ===== Utility Layout ===== */
.section-content {
    padding: 60px 60px;
    width: 100%;
    max-width: var(--maxWidth);
    margin: 0 auto;
}

.section-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
}

.col-left {
    flex: 1;
}

.col-right {
    flex: 1;
}

.maxWidthFlex {
    max-width: var(--maxWidth);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#whyMe,
#skills,
#projects,
#contact {
    scroll-margin-top: var(--heightNavBar);
}

/* ===== Ellipse Base ===== */
.ellipse {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ellipse-content {
    position: relative;
    z-index: 2;
}

.ellipse--testimonial {
    width: 380px;
    height: 460px;
}

.ellipse--learning {
    width: 360px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

/* ################### */

.ellipse {
    position: relative;
    overflow: hidden;
}

.ellipse-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* füllt komplett, ohne abzuschneiden */
    transition: opacity 0.3s ease;
}

.ellipse-img.hover {
    opacity: 0;
}

.ellipse:hover .ellipse-img.hover {
    opacity: 1;
}

.ellipse:hover .ellipse-img.default {
    opacity: 0;
}

/* #################### */
.ref_quote {
    height: 210px;
    overflow-y: auto;
}

#reference-content h3 {
    margin-bottom: 8px;
}

.scrollbar {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--color_primaryRGB), 0.75) transparent;
}

/* WebKit (Chrome, Edge, Safari) */
.scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar::-webkit-scrollbar-thumb {
    background: rgba(var(--color_primaryRGB), 0.75);
    border-radius: 10px;
    border: 1px solid transparent;
    background-clip: padding-box;
}
/* ===== Hero Section (desktop defaults) ===== */
#hero {
    padding: 0 0;
    display: flex;
    justify-content: center;
    height: calc(100vh - var(--heightNavBar));
}

.hero-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    position: relative;
    width: 100%;
}

.hero-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    height: 100%;
}

.hero-left {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.profile-ellipse {
    aspect-ratio: 3 / 4;
    width: 70%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("./img/profil_bg.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 40%;
}

.profile-ellipse:hover {
    background-image: url("./img/profil_bg_hover.svg");
}

.profile-ellipse img {
    position: absolute;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
}

.mobile-menu {
    display: none;
}

.name{
    width: 700px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.1;
}

/* ===== Social Media (desktop) ===== */
.socialMedia {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.socialMedia img {
    width: 40px;
    transition: 0.2s ease;
}

.socialMedia img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.socialLogo {
    width: 32px;
    aspect-ratio: 1/1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.socialMail {
    background-image: url("./img/btn_mail_default.svg");
}

.socialMail:hover {
    background-image: url("./img/btn_mail_hover_blue.svg");
}

.socialGit {
    background-image: url("./img/btn_git_default.svg");
}

.socialGit:hover {
    background-image: url("./img/btn_git_hover_blue.svg");
}

.socialLinkedIN {
    background-image: url("./img/btn_linkedin_default.svg");
}

.socialLinkedIN:hover {
    background-image: url("./img/btn_linkedin_hover_blue.svg");
}

.socialMailDark {
    background-image: url("./img/btn_mail_dark.svg");
}

.socialMailDark:hover {
    background-image: url("./img/btn_mail_white.svg");
}

.socialGitDark {
    background-image: url("./img/btn_git_dark.svg");
}

.socialGitDark:hover {
    background-image: url("./img/btn_git_white.svg");
}

.socialLinkedINDark {
    background-image: url("./img/btn_linkedin_dark.svg");
}

.socialLinkedINDark:hover {
    background-image: url("./img/btn_linkedin_white.svg");
}

.heroLogo {
    width: 64px;
    height: 32px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("./img/logo.svg");
}

.heroLogo:hover {
    background-image: url("./img/logo_hover.svg");
}

/* ===== Navbar ===== */
nav {
    width: 100%;
    height: var(--heightNavBar);
    background: var(--color_primary);
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 0 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .section {
    width: 100%;
    max-width: var(--maxWidth);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav .nav-links a {
    text-decoration: none;
    color: var(--color_background);
    font-size: 1.5rem;
    font-weight: 500;
}

.nav-item.active a {
    color: var(--color_secondary);
    font-weight: 700;
}

.language-switch {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    font-size: 1.1rem;
    font-weight: 500;
}

.lang {
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--color_background);
}

.lang.active {
    background-image: url("./img/active_language.svg");
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--color_secondary);
}

.aos-wrapper {
    overflow-x: hidden;
}

/* Why Me */
#whyMe .col-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

#whyMe .col-left img {
    width: 40px;
    height: 40px;
}


#whyMe .col-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-end;
}

#whyMe .col-right p {
    line-height: 1.6;
    opacity: 0.9;
    align-self: flex-start;
}

#whyMe .section-row{
    align-items: center;
}

/* Skills */
.skill-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    width: 50%;
}

.currentLearning {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    padding: 12px 0;
}

.currentLearning img {
    aspect-ratio: 1/1;
    height: 28px;
}

#currentLeraning {
    max-height: 120px;
    overflow-y: auto;
    padding: 0 0;
    z-index: 900;
    width: 75%;
}

#currentLeraning::-webkit-scrollbar {
    display: none;
}

#currentLearningHeader{
    padding-top: 38px;
}

/* Projects */
#projects .project-tabs {
    display: flex;
    width: 100%;
    max-width: var(--maxWidth);
    margin: 0 auto;
    padding: 0 40px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    color: var(--color_secondary);
    font-weight: 500;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    transition: 0.2s ease;
}
.tab h3{
    color: var(--color_primary);
}

.tab.active {
    background: var(--color_background_2nd);
    font-weight: 700;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.tab.active h3{
    color: var(--color_secondary);
    padding-top: 12px;
}

.selectetProject {
    width: 100%;
    background: var(--color_background_2nd);
    border-radius: 0 0 12px 12px;
    padding: 50px 50px 40px;
}

.project-list {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 420px;
    overflow-x: auto;
}

.project-list li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 32px;
}

.project-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 22px;
    aspect-ratio: 1/1;
    background-image: url("img/ListPoint.svg");
    background-size: contain;
    background-repeat: no-repeat;
}

.project-preview img {
    width: 100%;
    border-radius: 30px;
}

#projectPreview {
    padding-bottom: 32px;
}

#projectDescription {
    max-width: 50%;
}

#projectSkill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    flex: 1;
}

.project-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

/* References */
.references-content {
    display: flex;
    gap: 60px;
    justify-content: center;
}

.ref_text {
    inset: 0;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 300px;
}

.ref_text::-webkit-scrollbar {
    width: 0;
}

/* Contact */
#contact {
    text-align: center;
}

.contact-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 40px;
}

.contact-header h2 {
    grid-column: 2;
    justify-self: center;
}

.contact-header .btnUp {
    grid-column: 3;
    justify-self: end;
}

.contact-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 50px auto;
    text-align: left;
}

.contact-intro p {
    max-width: 600px;
    margin: 0 auto 50px auto;
    text-align: left;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.contactMail,
.contactPhone {
    padding-left: 32px;
    padding-top: 12px;
    background-repeat: no-repeat;
    background-position: left center;
    color: var(--color_secondary);
    text-decoration: none;
    background-size: 28px;
    width: 280px;
}

.contactMail:hover,
.contactPhone:hover {
    color: var(--color_primary);
}

.contactMail {
    background-image: url("./img/mail.svg");
}

.contactMail:hover {
    background-image: url("./img/mail_hover.svg");
}

.contactPhone {
    background-image: url("./img/phone.svg");
}

.contactPhone:hover {
    background-image: url("./img/phone_hover.svg");
}

/* Contact form */
.contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.contact-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contactLabel {
    color: #89BCD9;
    font-size: 1.1rem;
}

.contactInput {
    width: 100%;
    padding: 16px 20px;
    border-radius: 30px;
    border: 1px solid var(--color_primary);
    background: var(--color_background);
    color: var(--color_secondary);
    font-size: 1rem;
    outline: none;
    transition: 0.2s ease;
}

.contactInput:focus {
    border-color: var(--color_primary);
    box-shadow: 0 0 0 2px var(--color_primary);
}

.contactInput.error {
    border-color: var(--color_error);
    box-shadow: 0 0 0 2px var(--color_error);
}

.contactLabel.error {
    color: var(--color_error);
}

.inputBase.error {
    border-color: var(--color_error);
    box-shadow: 0 0 0 2px var(--color_error);
}

.contactDoneIcon {
    position: absolute;
    right: 16px;
    bottom: 18px;
    width: 22px;
    height: 22px;
    opacity: 0;
    transition: 0.2s ease;
}

.contactDoneIcon.visible {
    opacity: 1;
}

.inputBase {
    width: 100%;
    padding: 16px 20px;
    border-radius: 30px;
    border: 1px solid var(--color_primary);
    background: var(--color_background);
    color: var(--color_secondary);
    font-size: 1.1rem;
    outline: none;
    transition: 0.2s ease;
}

.inputBase:focus {
    border-color: var(--color_primary);
    box-shadow: 0 0 0 2px var(--color_primary);
}

.contact-row {
    display: flex;
    gap: 24px;
}

.contact-row .contact-field {
    flex: 1;
}

#contactMessage {
    height: 10em;
    resize: vertical;
    font-size: 1.1rem;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skill:hover {
    scale: 1.2;
}

.skill img {
    aspect-ratio: 1/1;
    height: 64px;
    padding-bottom: 12px;
}

/* Privacy + button */
.privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.1rem;
    line-height: 1.5;
    display: inline-block;
}

.btn_primary_inactive {
    background: var(--color_inactive);
    border: 1px solid #777;
    color: #777;
    cursor: not-allowed;
    pointer-events: none;
    width: auto;
        display: inline-block;
}

#contactSend {
    align-self: flex-end;
}

/* Checkbox */
.privacy input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    cursor: pointer;
    background-image: url("./img/checkbox_default.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: 0.2s ease;
}

.privacy input[type="checkbox"]:hover {
    background-image: url("./img/checkbox_hover.svg");
}

.privacy input[type="checkbox"]:checked {
    background-image: url("./img/checkbox_checked.svg");
}

.privacy input[type="checkbox"].error {
    background-image: url("./img/checkbox_error.svg");
}

/* Footer */
#footer {
    width: 100%;
    background: var(--color_primary);
    padding: 60px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color_background);
    font-size: 1.1rem;
}

#footer a {
    color: var(--color_background);
    text-decoration: none;
    font-size: 1.1rem;
}

#footer a:hover {
    color: var(--color_secondary);
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-center img {
    width: 55px;
}

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

.footer-right img {
    width: 40px;
    transition: 0.2s ease;
}

.footer-right img:hover {
    transform: scale(1.1);
    opacity: 0.8;
    background-color: var(--color_secondary);
}

/* ######### Dialog ############*/
.dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
}

#dialog {
    padding: 2rem;
    border: none;
    border-radius: 8px;
    background-color: var(--color_background);
    color: var(--color_secondary);
    position: fixed;
    margin: auto;
    inset: 0;
    max-width: var(--maxWidth);
}

#dialog::backdrop {
    background: rgba(0, 0, 0, 0.8);
}

#dialog.sendMessage {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    height: 320px;
    align-items: center;
    justify-content: center;
}

body.no-scroll {
    overflow: hidden;
}

#projectTechnology {
    padding-bottom: 24px;
}

#projectTechnology {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#projectTechnology .onlyDesktop {
    display: grid;
    grid-auto-flow: column;
    place-items: center;
    gap: clamp(12px, 4vw, 48px);
}

#projectTechnology .onlyMobile {
    text-align: center;
}

#projectTechnology .onlyDesktop img {
    aspect-ratio: 1/1;
    height: 48px;
    object-fit: contain;
}

#legalNotice {
    padding: 64px 12px;
    flex: 1;
}

#legalNotice h3 {
    padding-top: 12px;
}

#legalNotice ul {
    padding-left: 24px;
}

/* ===== Autofill ===== */
input.inputBase:-webkit-autofill,
input.inputBase:-webkit-autofill:hover,
input.inputBase:-webkit-autofill:focus,
textarea.inputBase:-webkit-autofill,
textarea.inputBase:-webkit-autofill:hover,
textarea.inputBase:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--color_background) inset !important;
    box-shadow: 0 0 0px 1000px var(--color_background) inset !important;
    -webkit-text-fill-color: var(--color_secondary) !important;
    caret-color: var(--color_secondary) !important;
    border-radius: 30px !important;
    padding: 16px 20px !important;
    transition: background-color 9999s ease-in-out 0s !important;
}

@media (min-height: 1300px) {

    .socialMedia {

            top: 15%;
            right: 2%;
        }
}