:root {
    --bg-color: #F8F2EA;
    --text-color: #0B0B0B;
    --secondary-text: #0B0B0B;
    --heading-color: #3300E2;
    --border-color: #000;
    --header-bg: #F8F2EA;
    --header-border: rgba(224, 224, 224, 0.5);
    --button-bg: #3300E2;
    --button-text: #fff;
    --button-hover: #3300E2;
    --footer-bg: #F8F2EA;
    --layout-width: 768px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 18px;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
}

* {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Text Selection Color */
::selection {
    background-color: #000;
    color: #fff;
}

::-moz-selection {
    background-color: #000;
    color: #fff;
}

/* Typography Scale */
h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--heading-color);
    text-transform: lowercase;
}

h2 {
    font-size: 2.25rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--heading-color);
    text-transform: lowercase;
    position: relative;
    z-index: 1;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--heading-color);
    text-transform: lowercase;
}

h4 {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--heading-color);
    text-transform: lowercase;
}

h5 {
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--heading-color);
    text-transform: lowercase;
}

h6 {
    font-size: 1.125rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--heading-color);
    text-transform: lowercase;
}

p {
    font-size: 1.25rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Global Link Styling in Body Content */
.content-container a,
.half-container a,
.faq-answer a,
p a {
    color: #0000EE;
    text-decoration: underline;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.content-container a:hover,
.half-container a:hover,
.faq-answer a:hover,
p a:hover {
    text-decoration: none;
}

/* Header */
header {
    width: 100%;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--header-border);
    z-index: 1000;
    transition: height 0.3s ease, box-shadow 0.3s ease, background 0.4s ease, border-color 0.4s ease;
}

header.shrink {
    height: 70px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
}

.header-container {
    max-width: var(--layout-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header-left {
    width: 25%;
    display: flex;
    align-items: center;
}

.header-left a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 70px;
    width: auto;
    align-self: center;
}

.header-right {
    width: 75%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 40px;
}

.header-right a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    transition: color 0.3s ease;
}

.header-right a:hover {
    color: #93929c;
}

.header-cta-button {
    background-color: var(--button-bg);
    color: var(--button-text) !important;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    border-radius: 25px;
}

.header-cta-button:hover {
    background-color: var(--button-hover);
    color: var(--button-text) !important;
}

/* Footer */
footer {
    width: 100%;
    height: 100px;
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    transition: background 0.4s ease, border-color 0.4s ease;
}

.footer-container {
    max-width: var(--layout-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-right a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: #93929c;
}

.footer-copyright {
    display: flex;
    align-items: center;
    margin-left: 0;
}

.footer-copyright a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-single {
        padding-top: 300px;
    }

    /* Header */
    .header-right {
        gap: 20px;
    }

    /* Hero Section */
    .hero-section {
        padding: 30px 0;
        margin-top: 0;
    }

    .hero-container {
        flex-direction: column;
        gap: 0;
        padding: 0 20px !important;
    }

    .hero-left,
    .hero-right {
        width: 100% !important;
        padding: 0;
    }

    .hero-left {
        padding: 0 20px 40px 20px;
    }

    .hero-right {
        padding: 0;
        min-height: 0 !important;
    }

    .hero-draggable-container {
        display: block !important;
        position: relative;
        overflow: visible;
    }

    .hero-image-mobile {
        display: block !important;
        width: 100%;
        height: auto;
    }

    .draggable-image {
        display: none !important;
    }

    .hero-left h1 {
        margin-bottom: 15px;
        margin-top: 0;
    }

    .hero-left h2 {
        font-size: 1.25rem;
    }

    /* Content Section */
    .content-section {
        padding: 30px 0;
    }

    /* Mood Section */
    .mood-section {
        padding: 30px 0;
    }

    .mood-container {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .mood-left,
    .mood-right {
        width: 100% !important;
        height: auto !important;
    }

    .mood-image {
        width: 100% !important;
        height: 400px !important;
        object-fit: cover;
    }

    .mood-right .mood-image {
        height: 400px !important;
    }

    /* Half Section */
    .half-section {
        padding: 30px 0;
    }

    .half-container {
        padding: 0 20px;
    }

    .half-container > * {
        width: 100% !important;
    }

    /* Two Images Section */
    .two-images-section {
        padding: 30px 0;
    }

    .two-images-container {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    .image-left,
    .image-right {
        width: 100% !important;
    }

    .split-image {
        width: 100%;
        display: block;
    }

    /* FAQ Section */
    .faq-section {
        padding: 30px 0;
    }

    /* Contact Section */
    .contact-section {
        padding: 30px 0;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 12px;
        padding: 20px;
    }

    footer {
        height: auto;
        padding: 30px 0;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-right {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        text-align: left;
        align-items: flex-start;
        order: 1;
    }

    .footer-copyright {
        width: 100%;
        justify-content: flex-start;
        order: 2;
    }

    /* Typography */
    .content-container h2,
    .contact-container h2,
    .faq-container h2,
    .half-container h2 {
        font-size: 28px;
    }

    .content-container p,
    .contact-container > p,
    .half-container p {
        font-size: 1.25rem;
    }

    .faq-question {
        font-size: 16px;
        padding: 15px;
    }

    .faq-answer p {
        font-size: 15px;
        padding: 0 15px 15px 15px;
    }

    /* Disable Lightbox on Mobile */
    .image-overlay {
        display: none !important;
    }

    .image-lightbox-trigger {
        cursor: default;
        pointer-events: none;
    }

    /* Fix Button Widths on Mobile */
    .hero-cta-button,
    .cta-button,
    .meeting-button,
    .half-container button,
    .content-container button {
        width: auto !important;
        display: inline-block !important;
    }

}

/* Hero Section */
.hero-section {
    margin-top: 0;
    padding: 150px 0 80px 0;
    background-color: var(--bg-color);
}

.hero-container {
    max-width: var(--layout-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-single {
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.hero-single {
    padding-top: 40px;
}

.hero-logo,
.hero-postits {
    width: 100%;
    height: auto;
    display: block;
}

.hero-logo {
    max-width: 520px;
}

.hero-postits {
    max-width: 600px;
    position: relative;
    overflow: visible;
    z-index: 2;
}

.hero-postits svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.postit-shape {
    touch-action: none;
    cursor: grab;
    will-change: transform;
}

.postit-shape.grabbing {
    cursor: grabbing;
}

.postit-shape:hover {
    cursor: grab;
}

.postit-shape.grabbing {
    cursor: grabbing;
}

.about-image-single img {
    cursor: default;
}

.about-image-single img:hover {
    cursor: pointer;
}

.hero-left {
    width: 50%;
}

.hero-left h1 {
    margin-bottom: 20px;
    color: var(--heading-color);
    margin-top: 80px;
}

.hero-left h2 {
    font-weight: 400;
    color: var(--heading-color);
    margin-bottom: 30px;
}

.hero-cta-button {
    display: inline-block;
    background-color: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    padding: 15px 40px;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: inherit;
    width: auto;
}

.hero-cta-button:hover {
    background-color: var(--button-hover);
}

.hero-right {
    width: 50%;
    position: relative;
    min-height: 600px;
}

.hero-draggable-container {
    position: relative;
    overflow: visible;
}

.hero-image-mobile {
    display: none;
}

.draggable-image {
    position: absolute;
    width: 400px;
    cursor: grab;
    user-select: none;
    transition: transform 0.1s ease;
    z-index: 1;
    will-change: transform;
}

.draggable-image:active {
    cursor: grabbing;
    z-index: 10;
}

.draggable-image img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Section */
.content-section {
    padding: 120px 0 80px;
    background-color: var(--bg-color);
}

#impressum {
    min-height: 90vh;
}

#impressum p {
    font-size: 1rem;
    line-height: 1.6;
}

.content-container {
    max-width: var(--layout-width);
    margin: 0 auto;
    padding: 0 20px;
}

.content-container h2 {
    margin-bottom: 30px;
    color: var(--heading-color);
    text-align: left;
}

.content-container p {
    color: var(--text-color);
    margin-bottom: 40px;
    text-align: left;
}

.about-postit-inline {
    width: 80px;
    height: auto;
    display: block;
    margin-bottom: 10px;
    position: relative;
    z-index: 100;
    --postit-x: 0px;
    --postit-y: 0px;
    transform: translate3d(var(--postit-x), var(--postit-y), 0);
    cursor: grab;
    touch-action: none; /* allow pointer events for dragging */
}

.about-postit-tilt-left {
    transform: rotate(-4deg) translate3d(var(--postit-x), var(--postit-y), 0);
    z-index: 100;
}

.about-postit-tilt-right {
    transform: rotate(4deg) translate3d(var(--postit-x), var(--postit-y), 0);
    z-index: 100;
}

.cta-button {
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: inherit;
    display: inline-block;
    width: auto;
}

.cta-button:hover {
    background-color: var(--button-hover);
}

.services-section .service-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 40px;
}

.about-image-single {
    margin-top: 40px;
}

.about-image-single img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.me-gallery-section {
    padding: 40px 0 20px;
    background: var(--bg-color);
}

.me-gallery-container {
    max-width: var(--layout-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.me-gallery-item {
    flex: 1;
    transform: translateY(0);
}

.me-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .me-gallery-container {
        flex-direction: row;
        gap: 12px;
    }
}

.cursor-image-wrapper {
    position: relative;
    cursor: none !important;
}

.cursor-image-wrapper img {
    cursor: none !important;
    display: block;
    width: 100%;
    height: auto;
}

.custom-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 180px;
    background: url('img/kreis.svg') center/contain no-repeat;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 1000;
    will-change: transform;
}

.custom-cursor.cursor-visible {
    opacity: 1;
}

.pinned-cursor {
    position: absolute;
    width: 180px;
    height: 180px;
    background: url('img/kreis.svg') center/contain no-repeat;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 900;
}

/* Mood Section */
.mood-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.mood-container {
    max-width: var(--layout-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.mood-left {
    width: 50%;
}

.mood-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mood-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Half Width Section */
.half-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.half-container {
    max-width: var(--layout-width);
    margin: 0 auto;
    padding: 0 20px;
}

.half-container > * {
    width: 66.66%;
}

.half-container button {
    width: auto;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.faq-container {
    max-width: var(--layout-width);
    margin: 0 auto;
    padding: 0 20px;
}

.faq-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 40px;
}

.faq-container h2 {
    margin-bottom: 20px;
    color: var(--heading-color);
    scroll-margin-top: 120px;
}

.faq-container > p {
    color: var(--text-color);
    margin-bottom: 40px;
}

/* FAQ Accordion */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: var(--bg-color);
    border: none;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
    transition: background-color 0.3s ease, color 0.4s ease;
    font-family: inherit;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-icon {
    font-size: 30px;
    font-weight: 200;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 1s cubic-bezier(0.4, 0, 0.2, 1), padding 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding: 20px;
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
}

/* Two Images Section */
.two-images-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.two-images-container {
    max-width: var(--layout-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
}

.image-left,
.image-right {
    width: 50%;
    position: relative;
    overflow: hidden;
}

.image-lightbox-trigger {
    cursor: none;
}

.split-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-lightbox-trigger:hover .split-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
}

.image-lightbox-trigger:hover .image-overlay {
    opacity: 1;
}

.glass-button {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, background 0.3s ease;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
}

.image-lightbox-trigger:hover .glass-button {
    transform: translate(-50%, -50%) scale(1);
    background: rgba(255, 255, 255, 0.3);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

#lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: scaleIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--bg-color);
    margin-bottom: 150px;
}

.contact-container {
    max-width: var(--layout-width);
    margin: 0 auto;
    padding: 0 20px;
}

.contact-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 40px;
}

.contact-container h2 {
    margin-bottom: 20px;
    color: var(--heading-color);
    scroll-margin-top: 120px;
}

.contact-container > p {
    color: var(--text-color);
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 18px;
}

.contact-label {
    font-weight: 600;
    color: var(--text-color);
}

.contact-link {
    color: #0000EE;
    text-decoration: underline;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contact-link:hover {
    color: #0000EE;
    text-decoration: none;
}

.meeting-button {
    margin-top: 30px;
}

/* Logo Carousel */
.logo-carousel {
    width: 100%;
    overflow: hidden;
    background: var(--bg-color);
    padding: 60px 0;
}

.carousel-track {
    display: flex;
    width: fit-content;
    animation: scroll 90s linear infinite;
}

.carousel-slide {
    display: flex;
    gap: 80px;
    padding: 0 40px;
}

.carousel-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.carousel-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    right: calc(20px + env(safe-area-inset-right, 0px));
    width: 50px;
    height: 50px;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background-color: var(--button-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn:active {
    transform: translateY(-1px);
}

.half-container h2 {
    margin-bottom: 30px;
    color: var(--heading-color);
    text-align: left;
}

.half-container p {
    color: var(--text-color);
    margin-bottom: 40px;
    text-align: left;
}
