/* --- HOME PAGE OVERRIDES --- */
.home-page,
.home-page body {
    background-color: #C0D6ED !important;
}

.home-page .header {
    background: #C0D6ED !important;
    border-bottom: 4px solid #0F1423 !important;
}

[data-theme="dark"] .home-page .header {
    background: var(--header-bg) !important;
    border-bottom: 4px solid var(--text-color) !important;
}

.home-page .header .header-inner {
    color: var(--text-color) !important;
}

.home-page .header .nav-btn {
    border-color: var(--text-color) !important;
    color: var(--text-color) !important;
}

.home-page .header .nav-btn:hover {
    background-color: var(--text-color) !important;
    color: var(--bg-color) !important;
}

.home-page .header .albert-btn {
    background-color: #a8c1de !important;
    color: #0F1423 !important;
}

[data-theme="dark"] .home-page .header .albert-btn {
    background-color: var(--albert-btn-bg) !important;
    color: var(--text-color) !important;
}

.home-page .header .albert-btn:hover {
    background-color: var(--text-color) !important;
    color: var(--bg-color) !important;
}

.home-page .header .albert-btn:hover .albert-icon {
    filter: brightness(0) invert(1) !important;
}

[data-theme="dark"] .home-page .header .albert-btn:hover .albert-icon {
    filter: brightness(0) !important;
}

.home-page .header #current-date {
    color: var(--text-color) !important;
}



/* --- HERO & SERVICES WRAPPER --- */
.hero-services-wrapper {
    position: relative;
    z-index: 10;
}

.sticky-sidebar-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    /* JS handles the stop – no CSS constraint */
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 50;
}

/* Reset: Removed all conditional anchored states */
.service-left {
    position: sticky;
    top: 20vh;
    /* Higher initial stick point */
    margin-top: 10vh;
    /* Start higher on the page */
    align-self: start;
    height: max-content;
    z-index: 10;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Disabled until scrolled out of Hero */
}

/* Interactivity becomes active just before/during/after the snap */
.service-left.is-hoverable {
    pointer-events: auto;
}

/* While in Hero section (not hoverable), list appears completely solid black */
.service-left:not(.is-hoverable) .service-list li {
    color: var(--text-color);
    border-bottom-color: var(--text-color);
}





/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 2.667rem;
    padding-top: 5vh;
    box-sizing: border-box;
}

/* Hero Background Gradient/Blur Effect representing the "clouds" */
.hero-bg {
    position: absolute;
    top: -10%;
    left: 0%;
    width: 100%;
    height: 120%;
    z-index: -1;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(circle at 20% 60%, rgba(240, 230, 210, 0.6) 0%, rgba(255, 255, 255, 0) 50%);
    filter: blur(40px);
}

[data-theme="dark"] .hero-bg {
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(circle at 20% 60%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%);
}

.hero-content {
    text-align: center;
    margin-top: 5vh;
}

.main-logo {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Scroll modifications */
body.scrolled .main-logo,
body.menu-open .main-logo {
    opacity: 0;
    pointer-events: none;
}

body.scrolled .nav-logo,
body.menu-open .nav-logo {
    opacity: 1;
    pointer-events: auto;
}

/* --- COMMON SECTION STYLES --- */
.section {
    padding-top: 5vh;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.667rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 1.333rem;
}

/* --- WHAT I DO --- */
.what-i-do .grid-5 {
    align-items: flex-end;
    /* All elements align at the bottom of the section row */
    min-height: 500px;
}

@media (max-width: 1024px) {
    .what-i-do .grid-5 {
        min-height: 300px;
    }
}

.what-i-do .flex-between {
    gap: 5vw;
}

.service-right {
    flex: 1;
}



.service-list li {
    font-family: var(--font-heading);
    font-size: 2.667rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: end;
    border-bottom: 2px solid var(--service-inactive);
    padding: 0.8rem 0;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1.1;
    color: var(--service-inactive);
}

.service-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
    /* Zero buffer for perfect baseline align */
}

/* Active state is always 100% */
.service-list li.active,
.service-list li.active:hover,
.service-list:hover li.active {
    color: var(--text-color) !important;
    border-bottom-color: var(--text-color) !important;
}

/* Any non-active hovered item uses the active proxy value (e.g. 60% opacity) */
.service-list li:hover:not(.active) {
    color: var(--service-active) !important;
    border-bottom-color: var(--service-active) !important;
}

/* Images in What I Do column 2 */
/* Images in What I Do column 2 */
.service-image-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0;
    height: 100%;
}

.service-image {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0px 4px 3px rgba(0, 0, 0, 0.3));
    /* Soft drop shadow */
}

.service-details {
    padding-bottom: 0;
}

.service-title {
    font-family: var(--font-main);
    font-size: 1.6rem;
    margin-bottom: 1.333rem;
}

.service-text {
    margin-bottom: 2rem;
    font-size: 1rem;
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.btn-outline {
    display: inline-block;
    padding: 0.667rem 2rem;
    border: 2px solid var(--text-color);
    border-radius: 40px;
    font-family: var(--font-main);
    font-size: 1.067rem;
    font-weight: 700;
    transition: all 0.3s;
    margin-bottom: 0;
    /* Flush with bottom */
}

.btn-outline:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* --- HOW I DO IT --- */
.how-i-do-it {
    padding-top: 45vh;
    padding-bottom: 30vh;
}

.how-i-do-it .cards-container {
    margin-top: 4rem;
    align-items: stretch;
    /* Ensure all children stretch to tallest row height */
}

.section-desc {
    font-size: 1rem;
    width: calc(50% - 17.5px);
    /* Forces description to be visually 1 column wide inside a 2-column container */
}

.card {
    border: 2px solid transparent;
    padding: 2rem;
    background: transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;

    /* Individual Image Controls - easily adjustable per card */
    --img-top: -85px;
    --img-right: -35px;
    --img-width: 110px;
    --img-rotate: 0deg;

    /* Staggering / Layout */
    --base-y: 0px;
    --hover-y: 0px;
    --scroll-y: 0px;
    transform: translateY(calc(var(--base-y) + var(--hover-y) + var(--scroll-y)));
    transition: transform 0.4s ease;
}

/* Specific Adjustments for individual cards if needed */

.card-1 {
    --img-top: -130px;
    --img-right: -30px;
    --img-width: 140px;
}

.card-2 {
    --img-top: -140px;
    --img-right: -25px;
    --img-width: 110px;
}

.card-3 {
    --img-top: -100px;
    --img-right: -30px;
    --img-width: 110px;
}

.card-4 {
    --img-rotate: -90deg;
    --img-top: -130px;
    --img-right: 10px;
    --img-width: 100px;
}

/* Background & Border for the card box */
.card::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--card-border);
    background: rgba(201, 224, 231, 0.15);
    z-index: -1;
    pointer-events: none;
    transition: background 0.3s ease;
}

.card:hover::after {
    background: rgba(255, 255, 255, 0.1);
}

/* Big outlined numbers behind the cards */
.card::before {
    position: absolute;
    bottom: calc(100% - 40px);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 16.667rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 2px var(--card-border);
    z-index: -2;
    line-height: 1;
    pointer-events: none;
    /* Clip path cuts off overlap into the card */
    clip-path: inset(-50% -50% 40px -50%);
}

.card-1::before {
    content: "1";
}

.card-2::before {
    content: "2";
}

.card-3::before {
    content: "3";
}

.card-4::before {
    content: "4";
}

/* Illustration Base Style */
.card-illustration {
    position: absolute;
    top: var(--img-top);
    right: var(--img-right);
    width: auto;
    max-width: var(--img-width);
    height: auto;
    z-index: 5;
    filter: drop-shadow(0px 4px 3px rgba(0, 0, 0, 0.3));
    pointer-events: none;
    transform: rotate(var(--img-rotate));
    transition: transform 0.4s ease;
}

.card:hover .card-illustration {
    transform: rotate(var(--img-rotate)) translateY(-5px) scale(1.05);
}

.card:hover {
    --hover-y: -10px;
}

/* Stagger cards visually like the design (1 & 3 High, 2 & 4 Low) */
.card-2 {
    --base-y: 100px;
}

.card-3 {
    --base-y: -20px;
}

.card-4 {
    --base-y: 80px;
}

.card-step {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.333rem;
    margin-bottom: -0.4rem;
}

/* Organic squiggly shapes behind the numbers */
.card-step::before {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    background-image: url('../Ressourcen/Icons/Squiggly-Form.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.8;
    z-index: -3;
    pointer-events: none;
    bottom: calc(100% + 25px);
    left: 50%;
    --shape-x: -50%;
    --shape-y: 0px;
    --shape-rot: 0deg;
    transform: translate(var(--shape-x), var(--shape-y)) rotate(var(--shape-rot));
}

[data-theme="dark"] .card-step::before {
    background-image: url('../Ressourcen/Icons/Squiggly-Form-Dark.svg');
}

.card-1 .card-step::before {
    --shape-x: calc(-50% + 25px);
    --shape-y: 10px;
    --shape-rot: 15deg;
}

.card-2 .card-step::before {
    --shape-x: calc(-50% - 10px);
    --shape-y: 20px;
    --shape-rot: -25deg;
}

.card-3 .card-step::before {
    --shape-x: calc(-50% + 15px);
    --shape-y: -5px;
    --shape-rot: 35deg;
}

.card-4 .card-step::before {
    --shape-x: calc(-50% - 25px);
    --shape-y: 15px;
    --shape-rot: -40deg;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1.333rem;
}

.card-text {
    font-size: 1rem;
    text-align: justify;
}





/* ================================
   ALBERT CHATBOT MODAL
================================ */
/* --- PHILOSOPHY --- */
.philosophy {
    padding-top: 17.5vh;
    padding-bottom: 20vh;
}

.philosophy-title {
    font-family: var(--font-heading);
    font-size: 2.933rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 2.667rem;
    text-transform: uppercase;
}

.philosophy-label {
    font-family: var(--font-main);
    font-size: 1.333rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.philosophy-text-columns {
    font-size: 1.067rem;
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    line-height: 1.4;
    position: relative;
}

/* Background square shape behind the top right of the text */
.philosophy-text-columns::before {
    content: "";
    position: absolute;
    top: -75px;
    right: -55px;
    width: 110px;
    height: 110px;
    background-image: url('../Ressourcen/Icons/Square.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

[data-theme="dark"] .philosophy-text-columns::before {
    background-image: url('../Ressourcen/Icons/Square-Dark.svg');
}

.philosophy-body {
    column-count: 2;
    column-gap: 35px;
    font-size: 1rem;
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    margin-bottom: 2rem;
}

.philosophy-blog-link {
    display: flex;
    justify-content: flex-end;
    font-family: var(--font-main);
}

.philosophy-image-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    align-self: center;
}

.philosophy-image {
    width: 100%;
    max-width: 297px;
    /* Reduced since it's in a single column of grid-5 */
    height: auto;
    object-fit: contain;
    /* Optional: shadow to match card style if desired, though screenshot seems clean */
    filter: drop-shadow(0px 4px 3px rgba(0, 0, 0, 0.3));
    margin-right: 30px;
    transition: transform 0.3s ease-in-out;
}

.philosophy-image:hover {
    transform: translateY(-5px) scale(1.01);
}



/* --- CONTACT SECTION --- */
.contact {
    padding-top: 15vh;
    padding-bottom: 20vh;
}

.contact-title {
    font-size: 2.4rem;
    line-height: 1.1;
    margin-bottom: 40px;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.contact-title em {
    font-style: italic;
    font-weight: 400;
}

.contact-title strong {
    font-weight: 800;
}

.contact-intro {
    align-self: center;
    margin-top: -20px;
}

.contact-image-container {
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.contact-image {
    width: 90%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 4px 3px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease-in-out;
    margin: 0 auto;
}

.contact-image:hover {
    transform: translateY(-5px) scale(1.01);
}

/* Form Styles */
.contact-form-container {
    align-self: center;
}

.mad-libs-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-family: var(--font-main);
    width: 100%;
}

.form-line {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.form-text {
    font-size: 1.6rem;
    font-weight: 600;
    white-space: nowrap;
}

.form-text em {
    font-style: italic;
    font-weight: inherit;
}

.form-text strong {
    font-weight: 800;
    font-style: italic;
}

.input-wrapper {
    flex-grow: 1;
    min-width: 120px;
    position: relative;
    border-bottom: 2px solid var(--text-color);
    transform: none;
    margin-left: 0;
}

.input-wrapper input[type="text"] {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1.333rem;
    font-family: var(--font-main);
    color: var(--text-color);
    padding: 5px 0;
    text-align: left;
    font-weight: 100;
}

.input-wrapper input::placeholder {
    color: rgba(15, 20, 35, 0.65);
    font-style: normal;
}

[data-theme="dark"] .input-wrapper input::placeholder {
    color: rgba(240, 240, 240, 0.65);
}

.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus,
.input-wrapper input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: var(--text-color) !important;
}

/* Custom Dropdown */
.custom-select-wrapper {
    cursor: pointer;
    position: relative;
    z-index: 100;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 1.333rem;
    text-align: left;
    color: rgba(15, 20, 35, 0.65);
    transition: color 0.3s;
    width: 100%;
    overflow: hidden;
    font-weight: 100;
}

[data-theme="dark"] .custom-select-trigger {
    color: rgba(244, 241, 238, 0.65);
}

.custom-select-trigger .placeholder {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    margin-right: 10px;
    text-align: left;
}

.custom-select-trigger.has-value {
    color: var(--text-color);
}

.dropdown-icon {
    transition: transform 0.3s;
}

.custom-select-wrapper.open .dropdown-icon {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border: 2px solid var(--text-color);
    z-index: 100;
    display: none;
    flex-direction: column;
    box-shadow: 0 4px 3px rgba(0, 0, 0, 0.3);
}

.custom-select-wrapper.open .custom-options {
    display: flex;
}

.custom-option {
    padding: 10px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 30px;
    transition: background 0.2s;
}

.custom-option:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .custom-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Checkbox and Button */
.form-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.privacy-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.privacy-text {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-color);
    opacity: 0.7;
    line-height: 1.1;
}

.checkmark {
    position: relative;
    top: 2px;
    height: 14px;
    width: 14px;
    min-width: 14px;
    background-color: transparent;
    border: 1px solid var(--text-color);
}

.privacy-checkbox:hover input ~ .checkmark {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .privacy-checkbox:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.1);
}

.privacy-checkbox input:checked ~ .checkmark {
    background-color: transparent;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.privacy-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.privacy-checkbox .checkmark:after {
    left: 4px;
    top: 1px;
    width: 3px;
    height: 7px;
    border: solid var(--text-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.submit-btn {
    border: 2px solid var(--text-color);
    color: var(--text-color);
    border-radius: 40px;
    background: transparent;
    padding: 0.75rem 2.25rem;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 40px;
}

.submit-btn:hover {
    background: var(--text-color) !important;
    color: var(--bg-color) !important;
}
