/* ==========================================================================
   Andreas Kalkusinski - Personal Website
   Bold & Modern Design System (2026)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Refined & Warm */
    --color-primary: #2563eb;
    --color-primary-light: #3b82f6;
    --color-primary-dark: #1d4ed8;
    --color-primary-subtle: #eff6ff;

    --color-accent: #f97316;
    --color-accent-light: #fb923c;

    /* Neutrals - Warmer tones */
    --color-bg: #fafafa;
    --color-bg-alt: #ffffff;
    --color-surface: #ffffff;
    --color-surface-elevated: #ffffff;

    --color-text: #18181b;
    --color-text-secondary: #52525b;
    --color-text-muted: #a1a1aa;
    --color-text-inverted: #ffffff;

    --color-border: #e4e4e7;
    --color-border-light: #f4f4f5;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    --gradient-warm: linear-gradient(135deg, #fef3c7 0%, #fce7f3 50%, #ede9fe 100%);
    --gradient-surface: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);

    /* Typography */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Type Scale - More dramatic */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;
    --text-7xl: 6rem;

    /* Spacing - More generous */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 720px;
    --container-padding: clamp(1.5rem, 5vw, 3rem);

    /* Borders */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Shadows - Softer, more layered */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 60px rgba(37, 99, 235, 0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
}

/* --------------------------------------------------------------------------
   Font Faces
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/plus-jakarta-sans-variable.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, picture, video, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    background: none;
    border: none;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.text-muted {
    color: var(--color-text-muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
.section {
    padding-block: var(--space-24);
}

@media (min-width: 768px) {
    .section {
        padding-block: var(--space-32);
    }
}

.section__header {
    margin-bottom: var(--space-16);
    text-align: center;
}

.section__header--left {
    text-align: left;
    max-width: 600px;
}

.section__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.section__title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-block: var(--space-4);
    transition: all var(--duration-base) var(--ease-out);
}

.header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-light);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: transform var(--duration-base) var(--ease-out);
}

.nav__logo:hover img {
    transform: scale(1.05) rotate(5deg);
}

.nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: var(--space-2);
}

@media (min-width: 768px) {
    .nav__toggle {
        display: none;
    }
}

.nav__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: var(--radius-full);
    transition: all var(--duration-base) var(--ease-out);
    transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: var(--space-6);
    flex-direction: column;
    gap: var(--space-2);
    border-bottom: 1px solid var(--color-border);
}

.nav__menu.is-open {
    display: flex;
}

@media (min-width: 768px) {
    .nav__menu {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: var(--space-2);
        padding: 0;
        background: none;
        border: none;
    }
}

.nav__link {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.nav__link:hover {
    color: var(--color-text);
    background: var(--color-border-light);
}

.nav__link--cta {
    color: var(--color-text-inverted);
    background: var(--color-text);
}

.nav__link--cta:hover {
    color: var(--color-text-inverted);
    background: var(--color-primary);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--duration-base) var(--ease-out);
    cursor: pointer;
}

.btn--primary {
    color: var(--color-text-inverted);
    background: var(--color-text);
}

.btn--primary:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn--ghost {
    color: var(--color-text);
    background: transparent;
    border: 2px solid var(--color-border);
}

.btn--ghost:hover {
    border-color: var(--color-text);
    transform: translateY(-3px);
}

.btn--ghost svg {
    transition: transform var(--duration-base) var(--ease-out);
}

.btn--ghost:hover svg {
    transform: translateX(4px);
}

.btn--large {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

/* Magnetic Button Effect */
.btn--magnetic {
    transition: transform var(--duration-fast) var(--ease-out);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: calc(72px + var(--space-16));
    padding-bottom: var(--space-16);
}

.hero > .container {
    flex: 1;
    display: grid;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero > .container {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-16);
    }
}

.hero__content {
    max-width: 640px;
}

.hero__greeting {
    display: inline-block;
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

.hero__title {
    margin-bottom: var(--space-8);
}

.hero__title-line {
    display: block;
}

.hero__title-line:first-child {
    font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
    color: var(--color-text-secondary);
    font-weight: 500;
}

.hero__title-highlight {
    font-size: clamp(var(--text-4xl), 8vw, var(--text-7xl));
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-10);
    max-width: 520px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* Hero Image */
.hero__image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
}

.hero__image-placeholder {
    aspect-ratio: 4 / 5;
    background: var(--gradient-warm);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    box-shadow: var(--shadow-xl);
}

.hero__image-backdrop {
    position: absolute;
    top: 10%;
    left: 10%;
    right: -10%;
    bottom: -10%;
    background: var(--color-primary-subtle);
    border-radius: var(--radius-2xl);
    z-index: 1;
}

/* Scroll Indicator */
.hero__scroll {
    display: none;
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (min-width: 1024px) {
    .hero__scroll {
        display: flex;
    }
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text-muted), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(1);
        opacity: 1;
    }
    50% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
}

/* --------------------------------------------------------------------------
   Bento Grid Section
   -------------------------------------------------------------------------- */
.bento {
    background: var(--color-bg-alt);
}

.bento__grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .bento__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto;
    }
}

@media (min-width: 1024px) {
    .bento__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto auto;
    }
}

.bento__card {
    position: relative;
    padding: var(--space-8);
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
    transform-style: preserve-3d;
}

.bento__card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-lg);
}

/* Card Sizes */
@media (min-width: 768px) {
    .bento__card--large {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .bento__card--large {
        grid-column: span 2;
        grid-row: span 2;
        padding: var(--space-12);
    }
}

.bento__card--quote {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border: none;
}

@media (min-width: 1024px) {
    .bento__card--quote {
        grid-row: span 2;
    }
}

/* Card Content */
.bento__card-number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: 800;
    color: var(--color-border-light);
    line-height: 1;
    margin-bottom: var(--space-4);
}

.bento__card--large .bento__card-number {
    font-size: var(--text-7xl);
}

.bento__card-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.bento__card--large .bento__card-title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
}

.bento__card-text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.bento__card--large .bento__card-text {
    font-size: var(--text-lg);
    max-width: 480px;
}

/* Quote Card */
.bento__quote {
    text-align: center;
    padding: var(--space-4);
}

.bento__quote p {
    font-family: var(--font-display);
    font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
    font-weight: 600;
    color: var(--color-text-inverted);
    line-height: 1.4;
}

/* Decoration */
.bento__decoration--dots {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(var(--color-border) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-12);
}

.service {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
}

.service:hover {
    border-color: var(--color-border);
}

.service.is-open {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.service__header {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6) var(--space-8);
    cursor: pointer;
}

.service__number {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text-muted);
}

.service__title {
    flex: 1;
    font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
}

.service__toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-border-light);
    color: var(--color-text-secondary);
    transition: all var(--duration-base) var(--ease-out);
}

.service:hover .service__toggle {
    background: var(--color-border);
}

.service.is-open .service__toggle {
    background: var(--color-primary);
    color: var(--color-text-inverted);
    transform: rotate(45deg);
}

.service__content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--duration-slow) var(--ease-out);
}

.service.is-open .service__content {
    grid-template-rows: 1fr;
}

.service__content-inner {
    overflow: hidden;
    padding-inline: var(--space-8);
}

.service__description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    padding-top: var(--space-2);
    padding-bottom: var(--space-6);
}

.service__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding-bottom: var(--space-6);
}

.service__tags li {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    border-radius: var(--radius-full);
}

.service__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--color-primary);
    padding-bottom: var(--space-8);
    transition: gap var(--duration-base) var(--ease-out);
}

.service__link:hover {
    gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta {
    background: var(--color-text);
    color: var(--color-text-inverted);
}

.cta__content {
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
}

.cta__title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    color: var(--color-text-inverted);
    margin-bottom: var(--space-6);
}

.cta__text {
    font-size: var(--text-lg);
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: var(--space-10);
}

.cta .btn--primary {
    background: var(--color-text-inverted);
    color: var(--color-text);
}

.cta .btn--primary:hover {
    background: var(--color-primary-light);
    color: var(--color-text-inverted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--color-bg);
    padding-block: var(--space-16);
    border-top: 1px solid var(--color-border-light);
}

.footer__grid {
    display: grid;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
}

.footer__logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform var(--duration-base) var(--ease-out);
}

.footer__logo:hover img {
    transform: rotate(10deg);
}

.footer__tagline {
    margin-top: var(--space-2);
    color: var(--color-text-muted);
}

.footer__nav,
.footer__legal {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__nav a,
.footer__legal a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: color var(--duration-fast);
}

.footer__nav a:hover,
.footer__legal a:hover {
    color: var(--color-text);
}

.footer__bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border-light);
}

.footer__bottom p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Animations & Effects
   -------------------------------------------------------------------------- */

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.4s; }

.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Card tilt effect */
[data-tilt] {
    transform-style: preserve-3d;
    transition: transform var(--duration-fast) var(--ease-out);
}

[data-tilt]:hover {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

/* Selection */
::selection {
    background: var(--color-primary);
    color: var(--color-text-inverted);
}

/* --------------------------------------------------------------------------
   Container Narrow
   -------------------------------------------------------------------------- */
.container--narrow {
    max-width: var(--container-narrow);
}

/* --------------------------------------------------------------------------
   Active Navigation Link
   -------------------------------------------------------------------------- */
.nav__link--active {
    color: var(--color-text);
    font-weight: 600;
}

/* CTA button active state - keep white text */
.nav__link--cta.nav__link--active {
    color: var(--color-text-inverted);
}

/* --------------------------------------------------------------------------
   Text Gradient Utility
   -------------------------------------------------------------------------- */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --------------------------------------------------------------------------
   Page Hero (Sub Pages)
   -------------------------------------------------------------------------- */
.page-hero {
    padding-top: calc(72px + var(--space-16));
    padding-bottom: var(--space-16);
    background: var(--color-bg-alt);
}

@media (min-width: 768px) {
    .page-hero {
        padding-top: calc(72px + var(--space-24));
        padding-bottom: var(--space-24);
    }
}

.page-hero__content {
    max-width: 800px;
}

.page-hero__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.page-hero__title {
    font-size: clamp(var(--text-4xl), 7vw, var(--text-6xl));
    margin-bottom: var(--space-6);
}

.page-hero__description {
    font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

/* --------------------------------------------------------------------------
   Story Section (Über mich)
   -------------------------------------------------------------------------- */
.story__grid {
    display: grid;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .story__grid {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--space-16);
    }
}

.story__image {
    display: flex;
    justify-content: center;
}

.story__image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 5;
    background: var(--gradient-warm);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    box-shadow: var(--shadow-xl);
}

.story__title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
    margin-bottom: var(--space-8);
}

.story__text p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.story__text p:last-child {
    margin-bottom: 0;
}

.story__text strong {
    color: var(--color-text);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Timeline Section
   -------------------------------------------------------------------------- */
.timeline-section {
    background: var(--color-bg-alt);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin-inline: auto;
    padding-left: var(--space-16);
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-border-light));
}

@media (min-width: 768px) {
    .timeline {
        padding-left: var(--space-20);
    }

    .timeline::before {
        left: 32px;
    }
}

.timeline__item {
    position: relative;
    padding-bottom: var(--space-12);
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__marker {
    position: absolute;
    left: calc(-1 * var(--space-16) - 12px);
    top: 0;
    width: 48px;
    height: 48px;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .timeline__marker {
        left: calc(-1 * var(--space-20) - 8px);
        width: 64px;
        height: 64px;
    }
}

.timeline__number {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .timeline__number {
        font-size: var(--text-base);
    }
}

.timeline__content {
    background: var(--color-surface);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    transition: all var(--duration-base) var(--ease-out);
}

.timeline__content:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
}

.timeline__period {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.timeline__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-1);
}

@media (min-width: 768px) {
    .timeline__title {
        font-size: var(--text-2xl);
    }
}

.timeline__subtitle {
    font-size: var(--text-base);
    font-weight: 500;
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.timeline__text {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Values Section
   -------------------------------------------------------------------------- */
.values__grid {
    display: grid;
    gap: var(--space-6);
    margin-top: var(--space-12);
}

@media (min-width: 768px) {
    .values__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-card {
    background: var(--color-surface);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    text-align: center;
    transition: all var(--duration-base) var(--ease-out);
    transform-style: preserve-3d;
}

.value-card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-lg);
}

.value-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text-inverted);
}

.value-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.value-card__text {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Personal Section
   -------------------------------------------------------------------------- */
.personal__grid {
    display: grid;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .personal__grid {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-16);
    }
}

.personal__content .section__label {
    display: block;
    margin-bottom: var(--space-2);
}

.personal__content .section__title {
    margin-bottom: var(--space-8);
}

.personal__text p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.personal__text p:last-child {
    margin-bottom: 0;
}

.personal__image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--gradient-warm);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    box-shadow: var(--shadow-xl);
}

/* --------------------------------------------------------------------------
   Offer Section (Angebot Page)
   -------------------------------------------------------------------------- */
.offer {
    background: var(--color-bg);
}

.offer--alt {
    background: var(--color-bg-alt);
}

.offer__grid {
    display: grid;
    gap: var(--space-12);
}

@media (min-width: 1024px) {
    .offer__grid {
        grid-template-columns: 1.5fr 1fr;
        gap: var(--space-16);
    }

    .offer__grid--reverse {
        grid-template-columns: 1fr 1.5fr;
    }

    .offer__grid--reverse .offer__content {
        order: 2;
    }

    .offer__grid--reverse .offer__sidebar {
        order: 1;
    }
}

.offer__number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: 800;
    color: var(--color-border-light);
    line-height: 1;
    margin-bottom: var(--space-4);
}

.offer__title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
    margin-bottom: var(--space-8);
}

.offer__intro {
    font-size: var(--text-xl);
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.offer__text {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-8);
}

.offer__details {
    margin-bottom: var(--space-8);
}

.offer__details h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.offer__list {
    list-style: none;
}

.offer__list li {
    position: relative;
    padding-left: var(--space-6);
    padding-bottom: var(--space-4);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.offer__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.offer__list li strong {
    display: block;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.offer__approach h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.offer__approach p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.offer__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.offer__card {
    background: var(--color-surface);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
}

.offer__card h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

.offer__card ul {
    list-style: none;
}

.offer__card li {
    padding-block: var(--space-2);
    padding-left: var(--space-5);
    position: relative;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.offer__card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Pricing Philosophy Section
   -------------------------------------------------------------------------- */
.pricing-philosophy {
    background: var(--color-bg-alt);
}

.pricing-philosophy__title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
    margin-bottom: var(--space-8);
}

.pricing-philosophy__content p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.pricing-philosophy__content p:last-child {
    margin-bottom: 0;
}

.pricing-philosophy__content strong {
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Projects Section (Projekte Page)
   -------------------------------------------------------------------------- */
.projects {
    padding-block: var(--space-24);
}

.projects--alt {
    background: var(--color-bg-alt);
}

.projects__intro {
    max-width: 700px;
    margin-bottom: var(--space-16);
}

.projects__intro p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.projects__grid {
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 1024px) {
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Featured Project Card */
.project-card {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
    transform-style: preserve-3d;
}

.project-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transform: translateY(-8px);
}

.project-card--featured {
    display: grid;
    grid-template-rows: auto 1fr;
}

@media (min-width: 768px) {
    .project-card--featured {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}

.project-card__visual {
    position: relative;
    overflow: hidden;
}

.project-card__image-placeholder {
    aspect-ratio: 4 / 3;
    background: var(--gradient-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    transition: transform var(--duration-slow) var(--ease-out);
}

@media (min-width: 768px) {
    .project-card__image-placeholder {
        aspect-ratio: auto;
        height: 100%;
        min-height: 300px;
    }
}

.project-card:hover .project-card__image-placeholder {
    transform: scale(1.05);
}

.project-card__content {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .project-card__content {
        padding: var(--space-10);
    }
}

.project-card__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    width: fit-content;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}

.project-card__label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.project-card__title {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
    margin-bottom: var(--space-4);
}

.project-card__description {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    flex: 1;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.project-card__tags span {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 500;
    background: var(--color-border-light);
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.project-card:hover .project-card__tags span {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--color-primary);
    transition: gap var(--duration-base) var(--ease-out);
}

.project-card__link:hover {
    gap: var(--space-3);
}

.project-card__link svg {
    transition: transform var(--duration-base) var(--ease-out);
}

.project-card__link:hover svg {
    transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Client Projects List (Projekte Page)
   -------------------------------------------------------------------------- */
.projects__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.project-item {
    position: relative;
    background: var(--color-surface);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    transition: all var(--duration-base) var(--ease-out);
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .project-item {
        padding: var(--space-8) var(--space-10);
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: var(--space-4) var(--space-8);
    }
}

.project-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.project-item::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: height var(--duration-base) var(--ease-out), top var(--duration-base) var(--ease-out);
}

.project-item:hover::before {
    top: 0;
    height: 100%;
}

.project-item__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

@media (min-width: 768px) {
    .project-item__header {
        grid-column: 1 / -1;
    }
}

.project-item__title {
    font-size: var(--text-xl);
    flex: 1;
    min-width: 200px;
}

@media (min-width: 768px) {
    .project-item__title {
        font-size: var(--text-2xl);
    }
}

.project-item__type {
    padding: var(--space-1) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    border-radius: var(--radius-full);
}

.project-item__description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .project-item__description {
        grid-column: 1;
    }
}

.project-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: flex-start;
}

@media (min-width: 768px) {
    .project-item__tags {
        justify-content: flex-end;
        grid-column: 2;
        grid-row: 2;
    }
}

.project-item__tags span {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 500;
    background: var(--color-border-light);
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.project-item:hover .project-item__tags span {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

/* Projects More Info */
.projects__more {
    margin-top: var(--space-8);
    padding: var(--space-8);
    background: var(--gradient-warm);
    border-radius: var(--radius-xl);
    text-align: center;
}

.projects__more p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   References Section (Legacy - keeping for backwards compatibility)
   -------------------------------------------------------------------------- */
.references {
    background: var(--color-bg-alt);
}

.references__grid {
    display: grid;
    gap: var(--space-6);
    margin-top: var(--space-12);
}

@media (min-width: 768px) {
    .references__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .references__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-item__client {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------------------
   Contact Section (Kontakt Page)
   -------------------------------------------------------------------------- */
.contact {
    background: var(--color-bg-alt);
}

.contact__grid {
    display: grid;
    gap: var(--space-12);
}

@media (min-width: 1024px) {
    .contact__grid {
        grid-template-columns: 1.3fr 1fr;
        gap: var(--space-16);
        align-items: start;
    }
}

/* Contact Form Wrapper */
.contact__form-wrapper {
    position: relative;
}

/* Contact Form */
.contact-form {
    background: var(--color-surface);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-base) var(--ease-out);
}

.contact-form:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

@media (min-width: 768px) {
    .contact-form {
        padding: var(--space-12);
    }
}

.contact-form__row {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .contact-form__row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-form__group {
    margin-bottom: var(--space-6);
}

.contact-form__row .contact-form__group {
    margin-bottom: 0;
}

.contact-form__row + .contact-form__group {
    margin-top: var(--space-6);
}

.contact-form__label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.contact-form__input,
.contact-form__textarea,
.contact-form__select {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-bg);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-out);
}

.contact-form__input:hover,
.contact-form__textarea:hover,
.contact-form__select:hover {
    border-color: var(--color-border);
}

.contact-form__input:focus,
.contact-form__textarea:focus,
.contact-form__select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-surface);
    box-shadow: 0 0 0 4px var(--color-primary-subtle);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: var(--color-text-muted);
}

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

.contact-form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352525b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    cursor: pointer;
}

.contact-form__privacy {
    margin-bottom: var(--space-8);
}

.contact-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.contact-form__checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.contact-form__checkbox span {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.contact-form__checkbox a {
    color: var(--color-primary);
    font-weight: 500;
}

.contact-form__checkbox a:hover {
    text-decoration: underline;
}

.contact-form__submit {
    width: 100%;
    gap: var(--space-3);
}

@media (min-width: 640px) {
    .contact-form__submit {
        width: auto;
    }
}

.contact-form__submit svg {
    transition: transform var(--duration-base) var(--ease-out);
}

.contact-form__submit:hover svg {
    transform: translate(4px, -4px);
}

.contact-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-form__message {
    margin-top: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    text-align: center;
}

.contact-form__message--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.contact-form__message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Contact Info Sidebar */
.contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact__info-card {
    background: var(--color-surface);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    transition: all var(--duration-base) var(--ease-out);
}

.contact__info-card:hover {
    border-color: var(--color-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact__info-card--highlight {
    background: var(--gradient-primary);
    border: none;
    color: var(--color-text-inverted);
}

.contact__info-card--highlight:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.contact__info-card--highlight h3,
.contact__info-card--highlight p {
    color: var(--color-text-inverted);
}

.contact__info-card--highlight p {
    color: #ffffff !important;
}

.contact__info-card--highlight .contact__info-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-text-inverted);
}

.contact__info-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.contact__info-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.contact__info-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.contact__info-card address {
    font-style: normal;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.contact__email {
    display: inline-block;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-inverted);
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.contact__email:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

/* Process Card */
.contact__info-card--process {
    background: var(--gradient-warm);
    border: none;
}

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

.contact__process {
    list-style: none;
    margin-bottom: var(--space-4);
}

.contact__process li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact__process li:last-child {
    border-bottom: none;
}

.contact__process-number {
    width: 28px;
    height: 28px;
    background: var(--color-surface);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact__process-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Page Hero with Visual (Contact page coffee)
   -------------------------------------------------------------------------- */

.page-hero--with-visual .page-hero__grid {
    display: grid;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 768px) {
    .page-hero--with-visual .page-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }
}

.page-hero__visual {
    display: flex;
    justify-content: center;
}

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

.coffee-visual__video {
    width: 280px;
    height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.coffee-visual__text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-top: var(--space-2);
    font-style: italic;
}

@media (max-width: 767px) {
    .page-hero__visual {
        order: -1;
    }

    .coffee-visual__video {
        width: 180px;
        height: 180px;
    }

    .coffee-visual__text {
        font-size: var(--text-sm);
    }
}

/* Page Hero Compact Variant */
.page-hero--compact {
    padding-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .page-hero--compact {
        padding-bottom: var(--space-12);
    }
}

/* Legacy form classes - keeping for backwards compatibility */
.form__group {
    margin-bottom: var(--space-6);
}

.form__label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--color-text-muted);
}

.form__textarea {
    min-height: 160px;
    resize: vertical;
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352525b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    cursor: pointer;
}

.form__row {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 640px) {
    .form__row {
        grid-template-columns: repeat(2, 1fr);
    }

    .form__row .form__group {
        margin-bottom: 0;
    }
}

.form__privacy {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.form__privacy a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form__submit {
    width: 100%;
}

@media (min-width: 640px) {
    .form__submit {
        width: auto;
    }
}

/* Contact Legacy Classes - keeping for backwards compatibility */
.contact__availability {
    background: var(--color-primary-subtle);
    border-color: transparent;
}

.contact__availability h3 {
    color: var(--color-primary);
}

.contact__promise h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.contact__promise ul {
    list-style: none;
}

.contact__promise li {
    padding-block: var(--space-2);
    padding-left: var(--space-6);
    position: relative;
    color: var(--color-text-secondary);
}

.contact__promise li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Legal Pages (Impressum & Datenschutz)
   -------------------------------------------------------------------------- */
.legal {
    padding-top: calc(72px + var(--space-16));
    padding-bottom: var(--space-16);
}

@media (min-width: 768px) {
    .legal {
        padding-top: calc(72px + var(--space-24));
        padding-bottom: var(--space-24);
    }
}

.legal__title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
    margin-bottom: var(--space-12);
}

.legal__content h2 {
    font-size: var(--text-2xl);
    margin-top: var(--space-12);
    margin-bottom: var(--space-6);
}

.legal__content h2:first-child {
    margin-top: 0;
}

.legal__content h3 {
    font-size: var(--text-xl);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.legal__content h4 {
    font-size: var(--text-lg);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.legal__content p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.legal__content ul {
    list-style: disc;
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.legal__content li {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-2);
}

.legal__content address {
    font-style: normal;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.legal__content a {
    color: var(--color-primary);
}

.legal__content a:hover {
    text-decoration: underline;
}

.legal__content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin-block: var(--space-12);
}

.legal__note {
    padding: var(--space-6);
    background: var(--color-primary-subtle);
    border-radius: var(--radius-lg);
    color: var(--color-text);
}

.legal__note strong {
    color: var(--color-primary);
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS & OUT-OF-THE-BOX ELEMENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Enhanced Mobile Navigation
   -------------------------------------------------------------------------- */
.nav__menu {
    animation: slideDown 0.3s var(--ease-out);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav__menu.is-open .nav__link {
    animation: fadeInUp 0.4s var(--ease-out) both;
}

.nav__menu.is-open li:nth-child(1) .nav__link { animation-delay: 0.05s; }
.nav__menu.is-open li:nth-child(2) .nav__link { animation-delay: 0.1s; }
.nav__menu.is-open li:nth-child(3) .nav__link { animation-delay: 0.15s; }
.nav__menu.is-open li:nth-child(4) .nav__link { animation-delay: 0.2s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Nav fullscreen overlay */
@media (max-width: 767px) {
    .nav__menu.is-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-surface);
        padding: calc(72px + var(--space-8)) var(--space-6) var(--space-8);
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: var(--space-4);
        z-index: 99;
    }

    .nav__menu.is-open .nav__link {
        font-size: var(--text-2xl);
        padding: var(--space-4) var(--space-6);
        text-align: center;
        border-radius: var(--radius-lg);
    }

    .nav__menu.is-open .nav__link:hover,
    .nav__menu.is-open .nav__link--active {
        background: var(--gradient-warm);
    }

    .nav__menu.is-open .nav__link--cta {
        margin-top: var(--space-4);
        background: var(--gradient-primary);
        color: var(--color-text-inverted);
    }
}

/* --------------------------------------------------------------------------
   Mobile Hero Improvements
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding-top: calc(72px + var(--space-8));
        padding-bottom: var(--space-12);
    }

    .hero > .container {
        gap: var(--space-8);
    }

    .hero__greeting {
        font-size: var(--text-base);
        margin-bottom: var(--space-4);
    }

    .hero__title {
        margin-bottom: var(--space-6);
    }

    .hero__description {
        font-size: var(--text-base);
        margin-bottom: var(--space-8);
    }

    .hero__cta {
        flex-direction: column;
    }

    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__image-wrapper {
        order: -1;
    }

    .hero__image {
        max-width: 280px;
    }

    .hero__image-backdrop {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Mobile Bento Grid - Reimagined
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .bento__grid {
        gap: var(--space-4);
    }

    .bento__card {
        padding: var(--space-6);
    }

    .bento__card-number {
        font-size: var(--text-4xl);
        margin-bottom: var(--space-2);
    }

    .bento__card-title {
        font-size: var(--text-xl);
        margin-bottom: var(--space-2);
    }

    .bento__card-text {
        font-size: var(--text-sm);
    }

    /* Quote card special treatment on mobile */
    .bento__card--quote {
        padding: var(--space-8) var(--space-6);
    }

    .bento__quote p {
        font-size: var(--text-lg);
    }
}

/* --------------------------------------------------------------------------
   Mobile Services - Touch-friendly
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .services__list {
        margin-top: var(--space-8);
        gap: var(--space-3);
    }

    .service__header {
        padding: var(--space-5) var(--space-5);
        gap: var(--space-4);
    }

    .service__number {
        font-size: var(--text-xs);
    }

    .service__title {
        font-size: var(--text-base);
    }

    .service__toggle {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .service__content-inner {
        padding-inline: var(--space-5);
    }

    .service__description {
        font-size: var(--text-base);
    }

    .service__tags {
        gap: var(--space-2);
    }

    .service__tags li {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
    }
}

/* --------------------------------------------------------------------------
   Mobile Page Hero
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .page-hero {
        padding-top: calc(72px + var(--space-8));
        padding-bottom: var(--space-10);
    }

    .page-hero__title {
        font-size: var(--text-3xl);
    }

    .page-hero__description {
        font-size: var(--text-base);
    }
}

/* --------------------------------------------------------------------------
   Mobile Story Section
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .story__grid {
        gap: var(--space-8);
    }

    .story__image-placeholder {
        max-width: 280px;
    }

    .story__title {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-6);
    }

    .story__text p {
        font-size: var(--text-base);
    }
}

/* --------------------------------------------------------------------------
   Mobile Timeline
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .timeline__item {
        padding-left: var(--space-8);
    }

    .timeline__marker {
        left: 0;
    }

    .timeline__number {
        font-size: var(--text-xs);
        width: 24px;
        height: 24px;
    }

    .timeline__period {
        font-size: var(--text-xs);
    }

    .timeline__title {
        font-size: var(--text-lg);
    }

    .timeline__subtitle {
        font-size: var(--text-sm);
    }

    .timeline__text {
        font-size: var(--text-sm);
    }
}

/* --------------------------------------------------------------------------
   Mobile Values Grid
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .values__grid {
        gap: var(--space-4);
    }

    .value-card {
        padding: var(--space-6);
    }

    .value-card__icon {
        font-size: var(--text-2xl);
        width: 48px;
        height: 48px;
    }

    .value-card__title {
        font-size: var(--text-lg);
    }

    .value-card__text {
        font-size: var(--text-sm);
    }
}

/* --------------------------------------------------------------------------
   Mobile Offer Sections
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .offer__grid {
        gap: var(--space-8);
    }

    .offer__number {
        font-size: var(--text-4xl);
    }

    .offer__title {
        font-size: var(--text-2xl);
    }

    .offer__intro,
    .offer__text {
        font-size: var(--text-base);
    }

    .offer__details h3,
    .offer__approach h3 {
        font-size: var(--text-lg);
    }

    .offer__list li {
        font-size: var(--text-sm);
        padding-left: var(--space-5);
    }

    .offer__sidebar {
        gap: var(--space-4);
    }

    .offer__card {
        padding: var(--space-5);
    }

    .offer__card h4 {
        font-size: var(--text-base);
    }

    .offer__card li {
        font-size: var(--text-sm);
    }
}

/* --------------------------------------------------------------------------
   Mobile Project Cards
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .projects__grid {
        gap: var(--space-6);
    }

    .project-card__content {
        padding: var(--space-6);
    }

    .project-card__title {
        font-size: var(--text-xl);
    }

    .project-card__description {
        font-size: var(--text-sm);
    }

    .project-card__image-placeholder {
        aspect-ratio: 16 / 9;
        min-height: 180px;
    }

    /* Project Items */
    .project-item {
        padding: var(--space-5);
    }

    .project-item__title {
        font-size: var(--text-lg);
    }

    .project-item__description {
        font-size: var(--text-sm);
    }

    .project-item__tags {
        gap: var(--space-1);
    }

    .project-item__tags span {
        font-size: 0.7rem;
        padding: var(--space-1) var(--space-2);
    }
}

/* --------------------------------------------------------------------------
   Mobile Contact Form
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .contact-form {
        padding: var(--space-6);
    }

    .contact-form__row {
        gap: var(--space-4);
    }

    .contact-form__label {
        font-size: var(--text-sm);
    }

    .contact-form__input,
    .contact-form__textarea,
    .contact-form__select {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-base);
    }

    .contact-form__submit {
        padding: var(--space-4) var(--space-6);
    }

    /* Contact Info Cards */
    .contact__info {
        gap: var(--space-4);
    }

    .contact__info-card {
        padding: var(--space-5);
    }

    .contact__info-icon {
        width: 40px;
        height: 40px;
        margin-bottom: var(--space-3);
    }

    .contact__info-card h3 {
        font-size: var(--text-base);
    }

    .contact__email {
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-4);
    }
}

/* --------------------------------------------------------------------------
   Mobile CTA
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .cta__title {
        font-size: var(--text-2xl);
    }

    .cta__text {
        font-size: var(--text-base);
    }

    .cta .btn--large {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Mobile Footer
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .footer {
        padding-block: var(--space-10);
    }

    .footer__grid {
        gap: var(--space-8);
        text-align: center;
    }

    .footer__nav,
    .footer__legal {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-4);
    }

    .footer__bottom {
        text-align: center;
    }
}

/* ==========================================================================
   OUT-OF-THE-BOX CREATIVE ELEMENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Quirky Hover States - Things behave unexpectedly (in a good way)
   -------------------------------------------------------------------------- */

/* Cards that slightly rotate on hover - not boring straight lifts */
.bento__card:hover {
    transform: translateY(-4px) rotate(-0.5deg);
}

.bento__card:nth-child(even):hover {
    transform: translateY(-4px) rotate(0.5deg);
}

/* Project items slide AND rotate slightly */
.project-item:hover {
    transform: translateX(8px) rotate(0.3deg);
}

/* --------------------------------------------------------------------------
   Playful Cursor Effects
   -------------------------------------------------------------------------- */
.btn--magnetic:hover {
    cursor: pointer;
}

/* CTA buttons have a playful bounce */
.btn--primary:active {
    transform: translateY(-1px) scale(0.98);
}

/* --------------------------------------------------------------------------
   Unexpected Color Pops
   -------------------------------------------------------------------------- */

/* Random accent colors for tags on hover */
.project-card:hover .project-card__tags span:nth-child(3n+1) {
    background: #fef3c7;
    color: #92400e;
}

.project-card:hover .project-card__tags span:nth-child(3n+2) {
    background: #fce7f3;
    color: #9d174d;
}

.project-card:hover .project-card__tags span:nth-child(3n) {
    background: #ede9fe;
    color: #5b21b6;
}

/* Service tags get colorful too */
.service.is-open .service__tags li:nth-child(odd) {
    background: linear-gradient(135deg, #eff6ff, #ede9fe);
}

/* --------------------------------------------------------------------------
   Glitch/Quirk Text Effect for "Out of the box" vibe
   -------------------------------------------------------------------------- */
.hero__title-highlight {
    position: relative;
}

/* Subtle "thinking different" indicator on the quote */
.bento__quote::before {
    content: '💡';
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: var(--text-xl);
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

/* --------------------------------------------------------------------------
   Asymmetric Design Elements
   -------------------------------------------------------------------------- */

/* Hero image has an intentionally "off" backdrop */
@media (min-width: 1024px) {
    .hero__image-backdrop {
        transform: rotate(3deg);
        border-radius: var(--radius-2xl) var(--radius-sm) var(--radius-2xl) var(--radius-sm);
    }
}

/* Story image placeholder has playful border radius */
.story__image-placeholder {
    border-radius: var(--radius-2xl) var(--radius-sm) var(--radius-2xl) var(--radius-sm);
}

/* Personal image - different corners */
.personal__image-placeholder {
    border-radius: var(--radius-sm) var(--radius-2xl) var(--radius-sm) var(--radius-2xl);
}

/* --------------------------------------------------------------------------
   Interactive "Easter Eggs"
   -------------------------------------------------------------------------- */

/* Logo has a fun spin on long hover */
.nav__logo img {
    transition: transform 0.5s var(--ease-out);
}

.nav__logo:hover img {
    transform: scale(1.1) rotate(10deg);
}

/* Footer logo easter egg */
.footer__logo:hover {
    color: var(--color-primary);
    letter-spacing: 0.05em;
    transition: all 0.3s var(--ease-out);
}

/* --------------------------------------------------------------------------
   Scroll-triggered micro-interactions (CSS only)
   -------------------------------------------------------------------------- */

/* Timeline markers pulse when in view */
.timeline__marker {
    animation: pulseSoft 2s ease-in-out infinite;
    animation-play-state: paused;
}

.timeline__item:hover .timeline__marker {
    animation-play-state: running;
}

@keyframes pulseSoft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

/* --------------------------------------------------------------------------
   Mobile Touch Feedback
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .btn:active {
        transform: scale(0.97);
    }

    .nav__link:active {
        transform: scale(0.98);
        background: var(--color-border-light);
    }

    .service__header:active {
        background: var(--color-border-light);
    }

    .project-item:active {
        transform: scale(0.99);
    }

    .contact__info-card:active {
        transform: scale(0.98);
    }
}

/* --------------------------------------------------------------------------
   Smooth Scroll Snap for Mobile (optional sections)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 72px;
    }
}

/* --------------------------------------------------------------------------
   Print Styles - because sometimes people still print
   -------------------------------------------------------------------------- */
@media print {
    .header,
    .footer,
    .hero__scroll,
    .btn,
    .nav__toggle {
        display: none !important;
    }

    .hero,
    .section {
        padding: var(--space-8) 0;
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}
