/* ==========================================================================
   NextGen AI Consulting — Stitch-Redesign „NextGen Consulting Brand Refresh"
   Warmes Off-White, Marineblau als Primärfarbe, Teal-Akzent,
   Plus Jakarta Sans, Karten-Layout mit weichen Radien.
   ========================================================================== */

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

:root {
    --surface: #FBF9F4;
    --surface-low: #F5F3EE;
    --surface-mid: #F0EEE9;
    --white: #FFFFFF;
    --navy: #002045;
    --navy-container: #1A365D;
    --blue-pale: #D6E3FF;
    --blue-soft: #ADC7F7;
    --blue-eyebrow: #A2C9FF;
    --teal: #2C7A7B;
    --text: #1B1C19;
    --text-soft: #43474E;
    --muted: #74777F;
    --line: rgba(196, 198, 207, 0.4);
    --line-soft: rgba(196, 198, 207, 0.25);
    --sans: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;
    --r-2xl: 24px;
    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 1.5rem);
}

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

html { scroll-behavior: smooth; }

body {
    overflow-x: clip;
    background: var(--surface);
    color: var(--text);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: var(--navy); color: #fff; }

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* --- Typografie-Rollen ------------------------------------------------------ */

h1, h2, h3 { color: var(--navy); text-wrap: balance; }

h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.4; }

.label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.eyebrow {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.lead { font-size: 1.125rem; color: var(--text-soft); }

.icon { width: 24px; height: 24px; flex-shrink: 0; }

/* --- Header --------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 249, 244, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 55, 72, 0.1);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.wordmark {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--navy);
    text-decoration: none;
}
.wordmark span { color: var(--teal); }

.site-nav { display: flex; gap: 2rem; align-items: center; }
/* Bewusst nur .nav-link: darf den Button (.btn-primary) im Header nicht überschreiben */
.site-nav .nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    color: var(--text-soft);
    transition: color 0.15s ease;
}
.site-nav .nav-link:hover { color: var(--navy); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-radius: var(--r-md);
    padding: 1rem 2rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: rgba(0, 32, 69, 0.05); }
.btn-small { padding: 0.7rem 1.4rem; }

/* --- Hero -------------------------------------------------------------------- */

.hero { padding: clamp(3.5rem, 8vw, 7rem) 0; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
}
.hero-grid > * { min-width: 0; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: var(--surface-mid);
    border-radius: 999px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-soft);
}
.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}

.hero h1 {
    font-size: clamp(2.5rem, 4.6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-lead { max-width: 36rem; margin-bottom: 2rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.2rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-soft);
}
.hero-note .icon { width: 17px; height: 17px; }

.hero-media {
    height: clamp(320px, 42vw, 600px);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--line-soft);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* --- Panel-Sektionen (Leistungen, Case, Kontakt) --------------------------------- */

.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }

.panel {
    border-radius: var(--r-2xl);
    padding: clamp(2rem, 5vw, 4.5rem);
}
.panel-soft { background: var(--surface-low); border: 1px solid var(--line-soft); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.centered { text-align: center; max-width: 42rem; margin-left: auto; margin-right: auto; }
.section-head p { margin-top: 0.9rem; }

/* --- Leistungen: Karten --------------------------------------------------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 32, 69, 0.08);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.card .eyebrow { margin-bottom: 0.4rem; }
.card h3 { margin-bottom: 0.9rem; }
.card p { color: var(--text-soft); }

/* --- Vorgehen: Timeline ----------------------------------------------------------- */

.timeline { position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 1rem;
    bottom: 1rem;
    width: 1px;
    background: var(--line);
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    position: relative;
}
.step + .step { margin-top: 3rem; }

.step-num {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--white);
    border: 2px solid var(--teal);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    font-style: italic;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}
.step:first-child .step-num { border-color: var(--navy); color: var(--navy); }
.step:last-child .step-num { border-color: var(--muted); color: var(--muted); }

.step-card {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    padding: 2rem;
    flex: 1;
    min-width: 0;
}

.step-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.step-badge {
    background: var(--surface-mid);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-soft);
    white-space: nowrap;
}

.step-card p { color: var(--text-soft); }

/* --- Case Study: Navy-Panel ---------------------------------------------------------- */

.panel-navy {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.panel-navy::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 55%);
    pointer-events: none;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 1;
}
.case-grid > * { min-width: 0; }

.panel-navy .eyebrow { color: var(--blue-eyebrow); }
.panel-navy h2 { color: var(--white); margin-bottom: 1.4rem; }
.panel-navy .lead { color: var(--blue-soft); margin-bottom: 2rem; }

.case-stat {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--navy-container);
    border: 1px solid rgba(214, 227, 255, 0.2);
    border-radius: var(--r-lg);
    padding: 1.5rem;
}
.case-stat .value {
    font-size: clamp(2.2rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #5EEAD4;
    line-height: 1;
    white-space: nowrap;
}
.case-stat p { color: var(--blue-pale); font-size: 0.95rem; }

/* Ablauf-Grafik: Eingang → KI → Entwurf */
.doc-demo {
    background: var(--surface);
    color: var(--text);
    border-radius: var(--r-lg);
    border: 1px solid var(--line-soft);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.flow-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: var(--surface-mid);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-md);
}
.flow-row .icon { color: var(--muted); }
.flow-row.is-ai .icon { color: var(--teal); }

.flow-arrow { display: flex; justify-content: center; color: var(--teal); }

.doc-output {
    background: var(--white);
    border: 1px solid rgba(0, 32, 69, 0.2);
    border-radius: var(--r-md);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 1.2rem;
}
.doc-output .label { color: var(--navy); display: block; margin-bottom: 0.5rem; }
.doc-output p { font-style: italic; color: var(--text-soft); font-size: 0.95rem; }

/* --- Über mich -------------------------------------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
}
.about-grid > * { min-width: 0; }

.portrait-wrap { position: relative; }
.portrait {
    aspect-ratio: 1;
    background: var(--surface-mid);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portrait .initials {
    font-size: clamp(4rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--muted);
    opacity: 0.25;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-wrap::after {
    content: '';
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(44, 122, 123, 0.15);
    filter: blur(28px);
    z-index: -1;
}

.about-body h2 { margin-bottom: 1.4rem; }
.about-body > p { font-size: 1.125rem; color: var(--text-soft); margin-bottom: 1.4rem; }
.about-body strong { color: var(--text); font-weight: 700; }

.fact-list { list-style: none; margin-top: 2rem; }
.fact-list li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    border-top: 1px solid var(--line-soft);
    padding: 1rem 0 0.4rem;
}
.fact-list li + li { margin-top: 0.8rem; }
.fact-list .icon { color: var(--navy); margin-top: 0.15rem; }
.fact-list .k { display: block; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.05em; color: var(--navy); }
.fact-list .v { color: var(--text-soft); }

/* --- FAQ ------------------------------------------------------------------------------------ */

.faq-list { max-width: 48rem; margin: 0 auto; }
.faq-list details {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.faq-list details + details { margin-top: 1rem; }

.faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    padding: 1.5rem;
    list-style: none;
    transition: background-color 0.15s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: var(--surface-low); }
.faq-list summary .icon { color: var(--navy); transition: transform 0.2s ease; }
.faq-list details[open] summary .icon { transform: rotate(180deg); }

.faq-list details > div {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-soft);
}

/* --- Kontakt ----------------------------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
}
.contact-grid > * { min-width: 0; }

.contact-aside h2 { margin-bottom: 1.4rem; }
.contact-aside .lead { margin-bottom: 2.5rem; }

.contact-channel {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-soft);
    font-size: 1.05rem;
    transition: color 0.15s ease;
}
.contact-channel + .contact-channel { margin-top: 1.4rem; }
.contact-channel:hover { color: var(--navy); }
.contact-channel .bubble {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    flex-shrink: 0;
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-xl);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.field { margin-bottom: 1.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field-row .field { margin-bottom: 1.4rem; }

.field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.field label .optional { color: var(--muted); font-weight: 400; letter-spacing: 0; }

.field input, .field textarea {
    width: 100%;
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 0.8rem 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #676B73; opacity: 1; }
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 1px var(--navy);
}
.field textarea { resize: vertical; min-height: 7.5rem; }

.field-consent { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 1.6rem; }
.field-consent input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.2rem;
    accent-color: var(--navy);
    flex-shrink: 0;
}
.field-consent label { font-size: 0.875rem; color: var(--text-soft); }
.field-consent a { color: var(--navy); }

.btn-block { width: 100%; }

/* Honeypot: für Menschen unsichtbar, für Bots ein normales Feld */
.field-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

.form-status {
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.4rem;
    font-size: 0.92rem;
    border-radius: var(--r-md);
    border: 1px solid var(--teal);
    background: rgba(44, 122, 123, 0.08);
    color: var(--text);
    display: none;
}
.form-status.is-error { border-color: #BA1A1A; background: #FFDAD6; }
.form-status.is-visible { display: block; }

/* --- Footer --------------------------------------------------------------------------------------- */

.site-footer {
    background: var(--surface-mid);
    border-top: 1px solid rgba(45, 55, 72, 0.1);
    padding: 3rem 0;
    margin-top: 2rem;
}
.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: baseline;
    justify-content: space-between;
}
.site-footer .brand { font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.mono-note { font-size: 0.9rem; color: var(--text-soft); }
.mono-note a { color: inherit; text-decoration: none; }
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-soft);
    text-decoration: none;
}
.footer-links a:hover { color: var(--navy); text-decoration: underline; }

/* --- Rechtsseiten (Impressum / Datenschutz) ---------------------------------------------------------- */

.legal { padding: clamp(3rem, 7vw, 5rem) 0; max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2.2rem; }
.legal h2 { font-size: 1.35rem; margin: 2.4rem 0 0.8rem; }
.legal h3 { font-size: 1.1rem; margin: 1.8rem 0 0.6rem; }
.legal p, .legal li { color: var(--text-soft); font-size: 0.98rem; margin-bottom: 0.9rem; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--navy); }

/* --- Scroll-Reveal -------------------------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .card, .card:hover { transform: none; }
}

/* --- Fokus-Sichtbarkeit ------------------------------------------------------------------------------------ */

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
}

/* --- Responsive ---------------------------------------------------------------------------------------------- */

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { height: clamp(260px, 50vw, 400px); }
    .card-grid { grid-template-columns: 1fr; }
    .case-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .portrait-wrap { max-width: 24rem; }
    .timeline::before { display: none; }
    .step { flex-direction: column; gap: 1rem; }
}

@media (max-width: 640px) {
    .site-nav .nav-link { display: none; }
    .hero-actions .btn { width: 100%; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .step-card, .contact-form, .card { padding: 1.5rem; }
}
