:root {
    --color-primary-yellow: #e6be1b;
    --color-primary-teal: #5a8a95;
    --color-text-dark: #1d1d1f;
    --color-text-light: #444444;
    --color-bg-light: #fbfbfd;
    --color-white: #ffffff;

    --font-headline: "microgramma-extended", sans-serif;
    --font-body: "courier-std", monospace;
    --font-video: "pf-videotext", sans-serif;

    --spacing-section: 120px;
    --border-radius: 20px;
    --btn-radius: 10px;

    --nav-height: 86px;

    --page-pad: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-style: normal;
    color: var(--color-text-dark);
    background-color: transparent;
    line-height: 1.6;
    overflow-x: hidden;
}

section { scroll-margin-top: 110px; }

.text-strong { font-weight: 700; color: var(--color-text-dark); }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-80 { margin-top: 80px; }
.mb-0 { margin-bottom: 0; }
.muted { color: #bbb; }

/* Print harmony: consistent micro-outline + QR card look */
.micro-outline {
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

/* Safeguard: keep card geometry stable (before micro-outline rollout) */
.painpoint-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: left;
    transition: transform 0.3s;
}

.feature-item {
    padding: 30px;
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.7);
}

.case-card {
    padding: 50px;
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.95);
    text-align: left;
}

.qr-card {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.9);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.10);
    backdrop-filter: blur(8px);
}

.qr-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--color-primary-yellow);
    display: inline-block;
}

/* Fix: Prevent ugly line breaks like a single "als" on its own */
.nowrap { white-space: nowrap; }

.bg-fixed {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -10;
    background-image: url('img/Background-Box1_L.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

h1, h2, h3, h4 {
    font-family: var(--font-headline);
    font-weight: 700;
    font-style: normal;
    text-transform: lowercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-align: center;
}

h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.2;
    text-align: left;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--color-text-dark);
    line-height: 1.2;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: left;
}

p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    max-width: 800px;
    line-height: 1.6;
}

.section-intro {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.highlight { color: var(--color-primary-teal); }
.highlight-yellow { color: var(--color-primary-yellow); }

.headline-dot {
    color: var(--color-primary-yellow);
    font-style: normal;
}

.highlight-outline {
    font-family: var(--font-video);
    font-weight: 400;
    font-style: normal;
    color: var(--color-white);
    -webkit-text-stroke: 1px #000;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
    letter-spacing: 2px;
}

.highlight-outline-inverse {
    font-family: var(--font-video);
    font-weight: 400;
    font-style: normal;
    color: #000000;
    -webkit-text-stroke: 1px #fff;
    letter-spacing: 2px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--nav-height);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: transform 0.35s ease, opacity 0.25s ease;
    will-change: transform;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Nav hide-on-scroll */
nav.nav-hidden {
    transform: translateY(-110%);
    opacity: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
    transform: translateY(10px);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
    z-index: 1001; /* Fix: keep above nav background */
}

.nav-links a {
    text-decoration: none;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-text-dark);
    text-transform: lowercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a:hover { color: var(--color-primary-teal); }
.nav-links a.btn { color: #ffffff; }
.nav-links a.btn:hover { color: #ffffff; }

.nav-toggle {
    display: none;
    width: 46px;
    height: 42px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1002; /* Fix: ensure toggle stays clickable */
}

.nav-toggle .bar {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: rgba(0,0,0,0.75);
    border-radius: 2px;
    transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}

.nav-toggle .bar:nth-child(1) { top: 13px; }
.nav-toggle .bar:nth-child(2) { top: 20px; }
.nav-toggle .bar:nth-child(3) { top: 27px; }

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: rgba(80, 80, 80, 0.4);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: lowercase;
    letter-spacing: 1px;
    border-radius: var(--btn-radius);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}

.btn:hover::after { left: 120%; }

.btn:hover {
    transform: scale(1.02);
    background-color: rgba(80, 80, 80, 0.7);
    border-color: rgba(255,255,255,0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-primary-yellow);
    color: var(--color-text-dark);
    border-radius: var(--btn-radius);
}

#cta .btn-secondary {
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: var(--color-primary-yellow);
    color: white;
    border-color: var(--color-primary-yellow);
}

/* Sections */
section {
    padding: var(--spacing-section) var(--page-pad);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HERO */
#hero {
    min-height: 100vh;
    text-align: left;
    padding-top: 150px;
    align-items: flex-start;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.hero-copy {
    max-width: 950px;
    margin-top: 50px;
}

#hero h1 { text-align: left; margin-bottom: 30px; }
#hero p { text-align: left; font-size: 1.1rem; color: var(--color-text-dark); max-width: 800px; }

.hero-visual {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;

    margin-top: 18px;
    padding-top: 10px;
    min-height: 420px;

    width: 100%;
}

.hero-visual img {
    width: clamp(420px, 36vw, 720px);
    height: auto;
    max-height: clamp(320px, 50vh, 600px);
    object-fit: cover;

    border-radius: 24px;
    filter: none;
    box-shadow: none;
    display: block;
}

.hero-glow {
    position: absolute;
    inset: 12%;
    background: radial-gradient(circle at 60% 45%, rgba(0,0,0,0.10), transparent 60%);
    filter: blur(30px);
    z-index: -1;
}

/* PAINPOINTS */
#painpoints {
    background-image: url('img/Background-Box3_L.jpg');
    background-size: cover;
    text-align: center;
}

.painpoint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.painpoint-card h3 { color: var(--color-primary-teal); }
.painpoint-card:hover { transform: translateY(-10px); }

/* SOLUTION */
#solution {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
    text-align: left;
}

.feature-item {
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.7);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-primary-yellow);
}

/* HOW IT WORKS */
#how-it-works {
    background-color: rgba(255,255,255,0.8);
}

.steps-wrapper {
    position: relative;
    max-width: 900px;
    width: 100%;
    margin-top: 40px;
    padding-left: 40px;
    --flow-progress: 0%;
}

.steps-wrapper::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0,0,0,0.10);
    border-radius: 2px;
}

.steps-wrapper::after {
    content: "";
    position: absolute;
    left: 14px;
    top: 0;
    height: var(--flow-progress);
    width: 2px;
    background: rgba(90,138,149,0.75);
    border-radius: 2px;
    transition: height 0.12s linear;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 80px;
    width: 100%;
    text-align: left;
}

.step-number {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--color-primary-teal);
    opacity: 0.4;
    line-height: 1;
    min-width: 60px;
}

/* USE CASES */
#use-cases {
    background: rgba(255,255,255,0.9);
}

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

.case-card {
    background: rgba(255,255,255,0.95);
    padding: 50px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    text-align: left;
}

/* Remove decorative blobs in use-case cards (keep clean white background) */
.case-card::after,
.case-card::before {
    content: none;
    display: none;
}

.case-tag {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--color-primary-yellow);
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

/* TESTIMONIALS */
.quote-slider {
    max-width: 900px;
    text-align: center;
}

.quote-text {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--color-text-dark);
    margin-bottom: 25px;
    text-transform: lowercase;
}

.quote-author {
    font-family: var(--font-body);
    color: var(--color-primary-teal);
    font-size: 0.9rem;
}

/* CTA */
#cta {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
}

#cta h2 { color: white; }
#cta p { color: #ccc; }

.cta-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

.cta-box {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
}

.cta-box h3 {
    color: var(--color-primary-yellow);
    font-size: 1.2rem;
    text-align: center;
}

.cta-box p { text-align: center; }

/* FOOTER */
footer {
    padding: 60px var(--page-pad);
    color: #888;
    text-align: center;
    font-size: 0.8rem;
    font-family: var(--font-body);
    position: relative;
    z-index: 2;
}

footer a { color: var(--color-primary-yellow); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: left;
}

.footer-bottom .copyright {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.footer-bottom .legal-links {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0;
}

.footer-bottom .legal-links a {
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text-dark);
}

.footer-bottom .legal-sep {
    color: rgba(0,0,0,0.35);
    font-family: var(--font-body);
    font-weight: 400;
}

@media (max-width: 640px) {
    .footer-bottom { justify-content: flex-start; }
}

/* PARTNERS */
#partners {
    padding-top: 70px;
    padding-bottom: 40px;
    text-align: center;
}

/* Make supported-by look identical in logic to the real-voices badge */
.partners-badge {
    justify-content: center;
    margin: 0 auto 22px;
    padding: 14px 22px;
}

.partners-badge-text {
    font-family: var(--font-headline);
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 1px;
    color: var(--color-text-dark);
}

/* Force 3 logos in one row on desktop */
#partners .partners-logos {
    margin: 26px auto 0;
    max-width: 980px;
    padding: 26px;
    border-radius: var(--border-radius);
    background: rgba(255,255,255,0.75);

    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    align-items: center;
    column-gap: 56px;
    row-gap: 18px;
}

#partners .partners-logos a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Scale to ~50% while keeping layout stable (no transform-based wrapping issues) */
#partners .partners-logos img {
    height: 44px;
    width: auto;
}

#partners .partners-logos img.logo-tall {
    height: 90px;
}


@media (max-width: 820px) {
    #partners .partners-logos {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }
}

/* ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 980px) {
    nav { padding: 16px 18px; }

    .nav-toggle { display: inline-block; }

    .nav-links {
        position: fixed;
        top: 70px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        gap: 18px;
        padding: 20px;
        background: rgba(255,255,255,0.92);
        backdrop-filter: blur(16px);
        border-radius: 16px;
        border: 1px solid rgba(0,0,0,0.06);
        z-index: 1001;
    }

    .nav-links.open { display: flex; }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    #hero { align-items: center; }

    .hero-copy { margin-top: 0; }

    .hero-visual {
        margin-top: 0;
        padding-top: 0;
        justify-content: center;
        min-height: 300px;
    }

    .hero-visual img {
        width: min(620px, 92vw);
        max-height: 360px;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }

    .logo-img {
        height: 70px;
        transform: translateY(10px);
    }

    .step { flex-direction: column; gap: 15px; margin-bottom: 60px; }
    .step-number { font-size: 2rem; }

    .steps-wrapper { padding-left: 0; }

    .steps-wrapper::before,
    .steps-wrapper::after { display: none; }
}

/* Legal Pages */
.legal-page {
    padding-top: 120px;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
}

.legal-content h1 {
    text-align: center;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
}

.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p {
    max-width: none;
    margin-bottom: 1rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.legal-content a {
    color: var(--color-primary-teal);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--color-primary-teal);
    text-decoration: none;
    font-family: var(--font-headline);
    font-size: 0.9rem;
    text-transform: lowercase;
}

.legal-back-link:hover {
    text-decoration: underline;
}

/* Accessibility / Focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(90, 138, 149, 0.55);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Legal Pages Typografie */
.legal-page h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  text-transform: lowercase;
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.legal-back-link {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Legal Content Box */
.legal-content {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  padding: clamp(24px, 4vw, 48px);
}
