/* =========================================================
   Steve Killian - Freelance KI
   Stylesheet - modern, responsive, accessible.
   Color: lila + grün-gelb auf hellem Hintergrund.
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
    /* Brand colors */
    --violet-deep: #1A0B33;
    --violet-900:  #2E1065;
    --violet-700:  #6D28D9;
    --violet-600:  #7C3AED;
    --violet-500:  #8B5CF6;
    --violet-300:  #C4B5FD;
    --violet-100:  #EDE9FE;

    --lime-500:    #84CC16;
    --lime-400:    #A3E635;
    --lime-300:    #BEF264;
    --lime-200:    #D9F99D;
    --lime-100:    #ECFCCB;

    --yellow-300:  #FDE047;
    --cyan-300:    #67E8F9;

    /* Semantic mapping */
    --violet:      var(--violet-600);
    --lime:        var(--lime-400);
    --cyan:        var(--cyan-300);
    --amber:       var(--yellow-300);

    /* Neutrals */
    --ink:         #0B0B14;
    --ink-soft:    #1F1F2E;
    --muted:       #4A4A5C;
    --soft:        #6B7280;
    --line:        #E5E1D8;
    --line-strong: #D4CFC1;

    --bg:          #FAFAF7;
    --bg-alt:      #F4F0E6;
    --surface:     #FFFFFF;
    --surface-2:   #FBFAF5;

    --on-dark:     #FAFAF7;
    --on-dark-mut: rgba(250, 250, 247, 0.72);

    /* Gradients */
    --grad-hero:   radial-gradient(120% 80% at 20% 20%, #2E1065 0%, #0F0A1F 55%, #050208 100%);
    --grad-accent: linear-gradient(135deg, var(--violet-500) 0%, var(--lime-400) 100%);
    --grad-text:   linear-gradient(135deg, #fff 0%, #D9F99D 60%, #C4B5FD 100%);

    /* Shadows */
    --shadow-sm:  0 1px 2px rgba(15, 10, 31, 0.06);
    --shadow-md:  0 8px 24px -8px rgba(15, 10, 31, 0.12), 0 2px 6px rgba(15, 10, 31, 0.05);
    --shadow-lg:  0 24px 48px -16px rgba(15, 10, 31, 0.18), 0 8px 16px -8px rgba(15, 10, 31, 0.08);
    --shadow-glow: 0 0 0 1px rgba(124, 58, 237, 0.15), 0 24px 60px -20px rgba(124, 58, 237, 0.35);

    /* Radii */
    --r-sm:  8px;
    --r-md:  14px;
    --r-lg:  22px;
    --r-xl:  32px;
    --r-pill: 999px;

    /* Type */
    --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --fs-eyebrow:  clamp(0.75rem, 0.1vw + 0.7rem, 0.85rem);
    --fs-body:     clamp(1rem, 0.2vw + 0.95rem, 1.075rem);
    --fs-lede:     clamp(1.05rem, 0.4vw + 0.95rem, 1.25rem);
    --fs-h3:       clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
    --fs-h2:       clamp(1.85rem, 2.2vw + 1rem, 3rem);
    --fs-h1:       clamp(1.55rem, 5.2vw + 0.4rem, 5.5rem);

    /* Spacing */
    --sp-1:   0.25rem;
    --sp-2:   0.5rem;
    --sp-3:   0.75rem;
    --sp-4:   1rem;
    --sp-5:   1.5rem;
    --sp-6:   2rem;
    --sp-7:   3rem;
    --sp-8:   4rem;
    --sp-9:   6rem;
    --sp-10:  8rem;

    --section-y:  clamp(4rem, 8vw, 8rem);
    --container:  1200px;
    --container-pad: clamp(1.25rem, 4vw, 2.5rem);

    /* Motion */
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-fast:   180ms;
    --dur-base:   320ms;
    --dur-slow:   600ms;
}

/* ---------- 2. RESET & BASE ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    background-image:
        radial-gradient(800px 600px at 90% -10%, rgba(196, 181, 253, 0.25), transparent 60%),
        radial-gradient(800px 600px at -10% 110%, rgba(190, 242, 100, 0.18), transparent 60%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

::selection {
    background: var(--violet-300);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--ink);
    color: var(--on-dark);
    padding: 0.75rem 1.25rem;
    border-radius: var(--r-md);
    z-index: 1000;
    font-weight: 500;
    transition: top var(--dur-base);
}
.skip-link:focus {
    top: 1rem;
}

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

.section {
    padding-block: var(--section-y);
    position: relative;
}

.section-head {
    max-width: 56rem;
    margin-inline: auto;
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--violet-700);
    margin-bottom: 1rem;
}
.section-eyebrow.on-dark {
    color: var(--lime-300);
}

.section-title {
    font-size: var(--fs-h2);
    margin-bottom: 1rem;
}
.section-title em {
    font-style: normal;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-title.on-dark {
    color: var(--on-dark);
}

.section-lede {
    font-size: var(--fs-lede);
    color: var(--muted);
    max-width: 42rem;
    margin-inline: auto;
}

/* ---------- 4. HEADER / NAV ---------- */
.site-header {
    --header-progress: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding-block: 0.75rem;
    isolation: isolate;
}
/* Bottom hairline that fades in with scroll */
.site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: rgba(15, 10, 31, 0.08);
    opacity: var(--header-progress, 0);
    pointer-events: none;
}
/* Light background layer (visible only when scrolled) */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(250, 250, 247, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    opacity: var(--header-progress, 0);
    pointer-events: none;
    z-index: -1;
}
/* When fully on the legal pages (no hero), show light style immediately */
.site-header.is-static {
    --header-progress: 1;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: #fff;
    color: color-mix(in srgb, #fff calc((1 - var(--header-progress, 0)) * 100%), var(--ink));
}

.logo-mark {
    color: var(--lime-300);
    color: color-mix(in srgb, var(--lime-300) calc((1 - var(--header-progress, 0)) * 100%), var(--violet-600));
    display: inline-flex;
    transition: transform var(--dur-base) var(--ease-out);
}
.logo:hover .logo-mark {
    transform: rotate(45deg) scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-menu li a {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 0.95rem;
    border-radius: var(--r-pill);
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(250, 250, 247, 0.88);
    color: color-mix(in srgb, rgba(250, 250, 247, 0.92) calc((1 - var(--header-progress, 0)) * 100%), var(--ink-soft));
    transition: background-color var(--dur-fast);
}
.nav-menu li a:hover {
    background: rgba(124, 58, 237, 0.12);
    color: var(--violet-300);
    color: color-mix(in srgb, var(--lime-300) calc((1 - var(--header-progress, 0)) * 100%), var(--violet-700));
}
.nav-menu li a.nav-cta {
    background: var(--lime-300);
    background: color-mix(in srgb, var(--lime-300) calc((1 - var(--header-progress, 0)) * 100%), var(--ink));
    color: var(--ink);
    color: color-mix(in srgb, var(--ink) calc((1 - var(--header-progress, 0)) * 100%), var(--on-dark));
    padding: 0.6rem 1.15rem;
    font-weight: 600;
    transition: transform var(--dur-fast);
}
.nav-menu li a.nav-cta:hover {
    transform: translateY(-1px);
    background: var(--lime-400);
    background: color-mix(in srgb, var(--lime-400) calc((1 - var(--header-progress, 0)) * 100%), var(--violet-700));
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
}
.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--dur-base), opacity var(--dur-base);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 5. BUTTONS ---------- */
.btn {
    --btn-bg: var(--violet-700);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.6rem;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.005em;
    border-radius: var(--r-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    transition: transform var(--dur-fast) var(--ease-out),
                box-shadow var(--dur-base),
                background-color var(--dur-base);
    white-space: nowrap;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.btn:active {
    transform: translateY(0);
}
.btn-arrow {
    transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-primary {
    --btn-bg: var(--violet-700);
    --btn-fg: #fff;
}
.btn-primary:hover {
    --btn-bg: var(--violet-600);
}

.btn-ghost {
    --btn-bg: transparent;
    --btn-fg: var(--on-dark);
    box-shadow: inset 0 0 0 1px rgba(250, 250, 247, 0.35);
}
.btn-ghost:hover {
    --btn-bg: rgba(250, 250, 247, 0.08);
}

.btn-lime {
    --btn-bg: var(--lime-300);
    --btn-fg: var(--ink);
}
.btn-lime:hover {
    --btn-bg: var(--lime-400);
}

.btn-outline-light {
    --btn-bg: transparent;
    --btn-fg: var(--on-dark);
    box-shadow: inset 0 0 0 1px rgba(250, 250, 247, 0.4);
}
.btn-outline-light:hover {
    --btn-bg: rgba(250, 250, 247, 0.08);
}

/* ---------- 6. HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--grad-hero);
    color: var(--on-dark);
    isolation: isolate;
    padding-block: clamp(2.5rem, 6vh, 4rem) clamp(4rem, 8vh, 6rem);
}

.hero-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Soft ellipse around the text + hard cut-off so the bottom 25% is fully calm */
    -webkit-mask-image:
        radial-gradient(ellipse 58% 40% at 50% 50%, transparent 25%, rgba(0,0,0,0.35) 55%, black 88%),
        linear-gradient(to bottom, black 0%, black 58%, transparent 75%);
    mask-image:
        radial-gradient(ellipse 58% 40% at 50% 50%, transparent 25%, rgba(0,0,0,0.35) 55%, black 88%),
        linear-gradient(to bottom, black 0%, black 58%, transparent 75%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}
.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.95;
    mix-blend-mode: screen;
    animation: aurora-drift 20s ease-in-out infinite alternate;
}
.aurora-1 {
    width: 65vmax;
    height: 65vmax;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.95), transparent 60%);
    top: -28%;
    left: -12%;
}
.aurora-2 {
    width: 60vmax;
    height: 60vmax;
    background: radial-gradient(circle, rgba(190, 242, 100, 0.7), transparent 60%);
    top: -5%;
    right: -18%;
    animation-duration: 24s;
    animation-delay: -8s;
}
.aurora-3 {
    width: 45vmax;
    height: 45vmax;
    background: radial-gradient(circle, rgba(103, 232, 249, 0.55), transparent 60%);
    top: 6%;
    left: 28%;
    animation-duration: 28s;
    animation-delay: -15s;
}
@keyframes aurora-drift {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(8%, -6%) scale(1.1); }
    66%  { transform: translate(-6%, 8%) scale(0.95); }
    100% { transform: translate(4%, 4%) scale(1.05); }
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* Soft ellipse around the text + hard cut-off so the bottom 25% is fully calm */
    -webkit-mask-image:
        radial-gradient(ellipse 60% 42% at 50% 50%, transparent 25%, rgba(0,0,0,0.4) 55%, black 88%),
        linear-gradient(to bottom, black 0%, black 58%, transparent 75%);
    mask-image:
        radial-gradient(ellipse 60% 42% at 50% 50%, transparent 25%, rgba(0,0,0,0.4) 55%, black 88%),
        linear-gradient(to bottom, black 0%, black 58%, transparent 75%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.4;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.15 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 56rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    border-radius: var(--r-pill);
    background: rgba(250, 250, 247, 0.08);
    border: 1px solid rgba(250, 250, 247, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: var(--fs-eyebrow);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-dark);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    opacity: 0;
    animation: fade-up 1s var(--ease-out) 0.1s forwards;
}
.hero-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime-300);
    box-shadow: 0 0 12px var(--lime-400);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.3); opacity: 0.6; }
}

.hero-title {
    font-size: var(--fs-h1);
    font-weight: 600;
    letter-spacing: -0.035em;
    /* Leave room for descenders (g/y) and stay on one line */
    line-height: 1.18;
    white-space: nowrap;
    color: #fff;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    opacity: 0;
    animation: fade-up 1s var(--ease-out) 0.25s forwards;
}
.title-accent {
    display: inline-block;
    /* Same gradient as the "echt" word in the section title */
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Padding + line-height so descenders (g, y) are not clipped */
    padding-inline: 0.05em;
    padding-block: 0.06em;
    line-height: 1.18;
}
.title-cursor {
    display: inline-block;
    width: 0.055em;
    height: 0.78em;
    margin-left: 0.04em;
    background: var(--violet-300);
    border-radius: 2px;
    vertical-align: -0.02em;
    animation: cursor-blink 1.05s steps(2, end) infinite;
    box-shadow: 0 0 12px rgba(196, 181, 253, 0.55);
}
@keyframes cursor-blink {
    50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .title-cursor { display: none; }
}

.hero-subtitle {
    font-size: var(--fs-lede);
    color: var(--on-dark-mut);
    max-width: 38rem;
    margin: 0 auto clamp(2rem, 4vw, 2.75rem);
    opacity: 0;
    animation: fade-up 1s var(--ease-out) 0.45s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    opacity: 0;
    animation: fade-up 1s var(--ease-out) 0.6s forwards;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fade-up 1s var(--ease-out) 0.75s forwards;
}
.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    border-radius: var(--r-pill);
    background: rgba(250, 250, 247, 0.06);
    border: 1px solid rgba(250, 250, 247, 0.16);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--on-dark-mut);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
    position: absolute;
    bottom: clamp(1.5rem, 4vh, 2.5rem);
    left: 0;
    right: 0;
    margin-inline: auto;
    width: max-content;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    color: var(--on-dark-mut);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    animation: fade-up 1s var(--ease-out) 1s forwards;
    transition: color var(--dur-base);
}
.hero-scroll:hover,
.hero-scroll:focus-visible {
    color: var(--lime-300);
}
.hero-scroll-text {
    display: block;
    line-height: 1;
}
.hero-scroll-arrow {
    display: block;
    opacity: 0.85;
    transition: transform var(--dur-base) var(--ease-out);
}
.hero-scroll:hover .hero-scroll-arrow,
.hero-scroll:focus-visible .hero-scroll-arrow {
    transform: translateY(3px);
}

/* ---------- 7. ANGEBOT (TILES) ---------- */
.angebot {
    background: var(--bg);
}

.tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.tile {
    --tile-accent: var(--violet);
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: transform var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base),
                border-color var(--dur-base);
    overflow: hidden;
    isolation: isolate;
}
.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 100% 0%, var(--tile-accent), transparent 50%);
    opacity: 0.08;
    z-index: -1;
    transition: opacity var(--dur-base);
}
.tile::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--tile-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-slow) var(--ease-out);
}
.tile:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--tile-accent) 40%, var(--line));
    box-shadow: var(--shadow-lg);
}
.tile:hover::before { opacity: 0.18; }
.tile:hover::after  { transform: scaleX(1); }

.tile-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.tile-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--tile-accent) 14%, white);
    color: color-mix(in srgb, var(--tile-accent) 80%, black 10%);
    transition: transform var(--dur-base) var(--ease-out);
}
.tile:hover .tile-icon {
    transform: rotate(-6deg) scale(1.05);
}
.tile-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--soft);
}

.tile-title {
    font-size: var(--fs-h3);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.tile-text {
    color: var(--muted);
    margin-bottom: 1.25rem;
    font-size: 0.98rem;
}

.tile-list {
    display: grid;
    gap: 0.5rem;
}
.tile-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
}
.tile-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 12px;
    height: 2px;
    background: var(--tile-accent);
    border-radius: 2px;
}
.tile-list li span {
    color: var(--soft);
    font-size: 0.85em;
}

/* ---------- 8. PROJEKTE ---------- */
.projekte {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform var(--dur-base) var(--ease-out),
                box-shadow var(--dur-base),
                border-color var(--dur-base);
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--violet-300);
}

.project-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--violet-deep);
    overflow: hidden;
}
.project-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 80% at 30% 30%, rgba(190, 242, 100, 0.35), transparent 60%),
        radial-gradient(60% 80% at 80% 70%, rgba(167, 139, 250, 0.55), transparent 60%);
}
.project-media[data-pattern="grid"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.project-media[data-pattern="dots"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 1.5px);
    background-size: 18px 18px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.project-media[data-pattern="waves"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 14px);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
}
.project-media[data-pattern="mesh"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        conic-gradient(from 45deg at 50% 50%, rgba(255, 255, 255, 0.06), rgba(190, 242, 100, 0.1), rgba(167, 139, 250, 0.12), rgba(255, 255, 255, 0.06));
    mix-blend-mode: overlay;
}

.project-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    padding: 0.35rem 0.75rem;
    border-radius: var(--r-pill);
    background: rgba(250, 250, 247, 0.92);
    color: var(--violet-700);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.project-body {
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}
.project-title {
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}
.project-text {
    color: var(--muted);
    font-size: 0.95rem;
    flex: 1;
}
.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}
.project-meta li {
    padding: 0.3rem 0.7rem;
    background: var(--bg-alt);
    border-radius: var(--r-pill);
    font-size: 0.78rem;
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

/* ---------- 9. ÜBER MICH ---------- */
.ueber {
    background: var(--bg);
}
.ueber-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}
.ueber-text .section-eyebrow {
    margin-bottom: 0.75rem;
}
.ueber-text .section-title {
    margin-bottom: 1.25rem;
    text-align: left;
}
.ueber-text p {
    color: var(--muted);
    margin-bottom: 1rem;
}

.ueber-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.75rem, 2vw, 1.5rem);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.stat {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
    font-weight: 700;
    color: var(--violet-700);
    letter-spacing: -0.02em;
    line-height: 1;
}
.stat-suffix {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 600;
    color: var(--lime-500);
    margin-left: 0.1rem;
    display: inline;
}
.stat-num + .stat-suffix {
    position: relative;
    top: -0.05em;
}
.stat-label {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--soft);
    line-height: 1.3;
}

.ueber-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(1.5rem, 3vw, 2rem);
    position: sticky;
    top: 100px;
}
.ueber-card h3 {
    font-size: var(--fs-h3);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}
.steps {
    display: grid;
    gap: 1.25rem;
}
.steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}
.step-num {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--grad-accent);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    flex-shrink: 0;
}
.steps strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--ink);
}
.steps p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ---------- 10. KONTAKT ---------- */
.kontakt {
    background: var(--bg-alt);
}
.kontakt-card {
    position: relative;
    background: var(--grad-hero);
    color: var(--on-dark);
    border-radius: var(--r-xl);
    padding: clamp(2.5rem, 6vw, 5rem);
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
.kontakt-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(50% 60% at 80% 30%, rgba(190, 242, 100, 0.3), transparent 60%),
        radial-gradient(50% 60% at 20% 80%, rgba(167, 139, 250, 0.45), transparent 60%);
    z-index: -1;
}
.kontakt-content .section-eyebrow {
    margin-bottom: 1rem;
}
.kontakt-content .section-title {
    text-align: left;
    margin-bottom: 1.25rem;
}
.kontakt-lede {
    font-size: var(--fs-lede);
    color: var(--on-dark-mut);
    margin-bottom: 2rem;
    max-width: 36rem;
}
.kontakt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.kontakt-meta {
    position: relative;
    height: 200px;
    display: none;
}
.kontakt-orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(250, 250, 247, 0.25);
    animation: orbit-rotate 24s linear infinite;
}
.kontakt-orbit::before {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 1px dashed rgba(190, 242, 100, 0.35);
}
.orbit-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--lime-300);
    box-shadow: 0 0 16px var(--lime-400);
}
.orbit-dot:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-dot:nth-child(2) {
    bottom: 18%;
    right: 18%;
    background: var(--violet-300);
    box-shadow: 0 0 16px var(--violet-500);
}
.orbit-dot:nth-child(3) {
    bottom: 18%;
    left: 18%;
    background: var(--cyan-300);
    box-shadow: 0 0 16px var(--cyan-300);
}
@keyframes orbit-rotate {
    to { transform: rotate(360deg); }
}

/* ---------- 11. FOOTER ---------- */
.site-footer {
    background: var(--ink);
    color: var(--on-dark-mut);
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: 1.5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-brand {
    max-width: 22rem;
}
.logo--footer {
    color: var(--on-dark);
    margin-bottom: 1rem;
}
.logo--footer .logo-mark {
    color: var(--lime-300);
}
.footer-tagline {
    color: var(--on-dark-mut);
    font-size: 0.9rem;
}
.footer-nav h4,
.footer-contact h4 {
    color: var(--on-dark);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-nav ul {
    display: grid;
    gap: 0.5rem;
}
.footer-nav a,
.footer-contact a {
    color: var(--on-dark-mut);
    font-size: 0.95rem;
    transition: color var(--dur-fast);
}
.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--lime-300);
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(250, 250, 247, 0.1);
    font-size: 0.82rem;
}
.footer-built {
    color: rgba(250, 250, 247, 0.4);
}

/* ---------- 12. SCROLL REVEAL ---------- */
[data-reveal] {
    opacity: 1;
}

.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- 13. RESPONSIVE ---------- */
@media (min-width: 540px) {
    .footer-bottom {
        font-size: 0.85rem;
    }
}

@media (min-width: 720px) {
    .tiles {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.2fr;
        gap: 3rem;
    }
}

@media (min-width: 900px) {
    .ueber-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: clamp(2.5rem, 5vw, 4.5rem);
    }
    .kontakt-card {
        grid-template-columns: 1.5fr 1fr;
    }
    .kontakt-meta {
        display: block;
        height: 280px;
    }
}

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

/* ---------- 14. MOBILE NAV ---------- */
@media (max-width: 819px) {
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 1rem;
        right: 1rem;
        background: rgba(250, 250, 247, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--line);
        border-radius: var(--r-lg);
        padding: 0.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--dur-base) var(--ease-out),
                    opacity var(--dur-base),
                    visibility 0s linear var(--dur-base);
    }
    .nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: transform var(--dur-base) var(--ease-out),
                    opacity var(--dur-base),
                    visibility 0s linear 0s;
    }
    .nav-menu li {
        width: 100%;
    }
    .nav-menu li a {
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: var(--r-md);
        font-size: 1rem;
        justify-content: space-between;
    }
    .nav-menu li a.nav-cta {
        margin-top: 0.25rem;
        justify-content: center;
    }
}

/* ---------- 15. ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-canvas { display: none; }
}

/* ---------- 15.5 LEGAL PAGES ---------- */
.legal {
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}
.legal .container {
    max-width: 56rem;
}
.legal-header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
.legal-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--violet-700);
    margin-bottom: 1.25rem;
    transition: gap var(--dur-base);
}
.legal-header .back-link:hover {
    gap: 0.6rem;
}
.legal-header h1 {
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.legal-header p {
    color: var(--muted);
    font-size: var(--fs-lede);
}
.legal-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(1.5rem, 4vw, 3rem);
}
.legal-content h2 {
    font-size: clamp(1.25rem, 1vw + 1.1rem, 1.6rem);
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.legal-content h2:first-child {
    margin-top: 0;
}
.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--ink-soft);
    font-weight: 600;
}
.legal-content p,
.legal-content ul,
.legal-content ol {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 0.98rem;
    line-height: 1.7;
}
.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem;
    list-style: disc;
}
.legal-content ol {
    list-style: decimal;
}
.legal-content li {
    margin-bottom: 0.4rem;
}
.legal-content a {
    color: var(--violet-700);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: color var(--dur-fast);
}
.legal-content a:hover {
    color: var(--violet-600);
}
.legal-content strong {
    color: var(--ink);
    font-weight: 600;
}
.legal-placeholder {
    background: var(--lime-100);
    border: 1px dashed var(--lime-500);
    color: var(--ink);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-weight: 500;
}
.legal-note {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--violet-100);
    border-left: 3px solid var(--violet-600);
    border-radius: var(--r-md);
    font-size: 0.92rem;
    color: var(--ink-soft);
}
.legal-note strong { color: var(--violet-700); }

/* ---------- 16. PRINT ---------- */
@media print {
    .site-header,
    .hero-canvas,
    .hero-aurora,
    .hero-grain,
    .hero-scroll,
    .nav-toggle { display: none; }
    body { background: white; color: black; }
    .hero { min-height: auto; background: white; color: black; }
    .hero-title, .section-title { color: black !important; }
}
