/* ===========================
   CSS Custom Properties
   =========================== */
:root {
    --teal: #57747A;
    --teal-dark: #3d5258;
    --teal-light: #6d8e94;
    --coral: #FD776B;
    --coral-dark: #e05a4f;
    --coral-light: #ff9a91;
    --mint: #ACD7C8;
    --mint-dark: #8bc4b0;
    --mint-light: #c8e8dd;

    --bg-dark: #1a2b2e;
    --bg-light: #f5f8f7;
    --text-dark: #1a2b2e;
    --text-light: #ffffff;
    --text-muted: #7a8e92;

    --font: Arial, Helvetica, sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===========================
   Reset & Base
   =========================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg-light);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* ===========================
   Slide System
   =========================== */
.slide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(60px);
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s 0.7s;
    padding: 10px 80px 40px;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s 0s;
    z-index: 10;
}

.slide.exit-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s 0.7s;
}

/* ===========================
   Slide Backgrounds
   =========================== */
.slide-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.04;
    background-image:
        radial-gradient(circle at 20% 30%, var(--teal) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, var(--coral) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
    pointer-events: none;
}

.pattern-dots {
    opacity: 0.06;
    background-image: radial-gradient(circle, var(--coral) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

.slide-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
}

#slide3Bg {
    background-image: url('process_flow_bg.png');
}

/* Slide 3 & 4 dark themes */
.slide-3 {
    background: var(--bg-light);
    color: var(--text-dark);
}

.slide-4 {
    background: var(--bg-light);
}

.slide-5 {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: var(--text-light);
}

/* ===========================
   Logo (fixed, transitions between sizes)
   =========================== */
.logo {
    position: fixed;
    top: 30px;
    right: 35px;
    width: 100px;
    height: 100px;
    z-index: 200;
    opacity: 0.9;
    transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        top 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hero logo – very large on Folie 1 */
.logo-hero {
    width: 300px;
    height: 300px;
    top: 30px;
}

/* ===========================
   Dot Navigation
   =========================== */
.dot-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--teal);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.dot:hover {
    background: var(--teal-light);
    transform: scale(1.3);
}

.dot.active {
    background: var(--coral);
    border-color: var(--coral);
    transform: scale(1.2);
}

/* ===========================
   Slide Counter
   =========================== */
.slide-counter {
    position: fixed;
    bottom: 30px;
    right: 40px;
    z-index: 100;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.slide-counter .current {
    color: var(--coral);
    font-weight: 700;
}

/* ===========================
   Slide Content
   =========================== */
.slide-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1200px;
    transform: scale(1.20);
    transform-origin: top center;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ===========================
   Animation Items
   =========================== */
.anim-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide.active .anim-item {
    opacity: 1;
    transform: translateY(0);
}

.slide.active .anim-item:nth-child(1) {
    transition-delay: 0.1s;
}

.slide.active .anim-item:nth-child(2) {
    transition-delay: 0.25s;
}

.slide.active .anim-item:nth-child(3) {
    transition-delay: 0.4s;
}

.slide.active .anim-item:nth-child(4) {
    transition-delay: 0.55s;
}

.slide.active .anim-item:nth-child(5) {
    transition-delay: 0.7s;
}

.slide.active .anim-item:nth-child(6) {
    transition-delay: 0.85s;
}

/* ===========================
   FOLIE 1 – Einstieg
   =========================== */

/* Left-aligned layout like bsp1.png */
.slide-1-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    padding-bottom: 100px;
}

.hero-text-block {
    margin-bottom: 60px;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--coral);
    display: inline;
    font-size: inherit;
    margin-top: 4px;
}

.slide-5 .hero-title {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 4.5rem;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--teal);
    font-weight: 500;
    font-style: normal;
    max-width: 700px;
    line-height: 1.6;
}

/* Process Line */
.process-line {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    background: rgba(87, 116, 122, 0.06);
    border-radius: 16px;
    border: 1px solid rgba(87, 116, 122, 0.1);
    transition: var(--transition);
    min-width: 115px;
}

.process-step:hover {
    background: rgba(87, 116, 122, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(87, 116, 122, 0.15);
}

.step-icon {
    font-size: 2.4rem;
}

.process-step span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.process-arrow {
    color: var(--coral);
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(4px);
    }
}

/* Slide Hint */
.slide-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    animation: hintBounce 2s ease-in-out infinite;
}

@keyframes hintBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===========================
   FOLIE 2 – Digitalisierung vs Automatisierung
   =========================== */
.slide-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.slide-title.light {
    color: var(--text-light);
}

.slide-title .vs {
    color: var(--coral);
    font-weight: 400;
    font-style: italic;
    font-size: 2rem;
    margin: 0 10px;
}

.slide-title .badge {
    display: inline-block;
    background: var(--coral);
    color: white;
    font-size: 1rem;
    padding: 6px 18px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Chevron Arrow Bar (like bsp6.png) */
.chevron-bar {
    display: flex;
    margin-bottom: 10px;
    width: 100%;
}

.chevron {
    flex: 1;
    padding: 24px 32px 24px 40px;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    position: relative;
    clip-path: polygon(0% 0%, calc(100% - 30px) 0%, 100% 50%, calc(100% - 30px) 100%, 0% 100%, 30px 50%);
}

.chevron:first-child {
    clip-path: polygon(0% 0%, calc(100% - 30px) 0%, 100% 50%, calc(100% - 30px) 100%, 0% 100%);
    padding-left: 32px;
}

.chevron-digi {
    background: var(--mint);
    color: var(--teal-dark);
}

.chevron-auto {
    background: var(--coral);
    color: white;
}

.chevron span {
    position: relative;
    z-index: 2;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    margin-bottom: 20px;
}

.column {
    background: #eef2f1;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition);
    border-right: 1px solid rgba(87, 116, 122, 0.1);
    max-width: 570px;
}

.column:last-child {
    border-right: none;
}

.column:hover {
    transform: none;
    box-shadow: none;
    background: #e6eceb;
}

.column-body {
    padding: 20px 28px;
}

.feature-list {
    list-style: none;
    margin-bottom: 16px;
}

.feature-list li {
    padding: 5px 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.bullet {
    color: var(--coral);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.examples h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(87, 116, 122, 0.08);
    color: var(--teal);
    font-weight: 500;
    border: 1px solid rgba(87, 116, 122, 0.12);
    transition: var(--transition);
}

.tag:hover {
    background: rgba(87, 116, 122, 0.15);
}

.tag.accent {
    background: rgba(253, 119, 107, 0.1);
    color: var(--coral-dark);
    border-color: rgba(253, 119, 107, 0.15);
}

.tag.accent:hover {
    background: rgba(253, 119, 107, 0.2);
}

/* Quote / Merksatz Box */
.quote-box {
    background: linear-gradient(135deg, rgba(87, 116, 122, 0.06), rgba(172, 215, 200, 0.1));
    border-left: 4px solid var(--coral);
    border-radius: 0 16px 16px 0;
    padding: 20px 30px;
    margin-top: 6px;
}

.quote-box.dark {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--mint);
}

.merksatz {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--teal-dark);
    font-weight: 500;
}

.merksatz.light {
    color: var(--text-light);
}

.merksatz strong {
    color: var(--coral);
    font-weight: 700;
}

.quote-box.dark .merksatz strong {
    color: var(--mint);
}

/* ===========================
   FOLIE 3 – Prozessautomatisierung (Venn)
   =========================== */

/* Venn Diagram Container */
.venn-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 340px;
    margin-bottom: 20px;
    width: 100%;
}

.venn-circle {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    transition: var(--transition);
}

.venn-left {
    background: rgba(172, 215, 200, 0.5);
    left: calc(50% - 380px);
    z-index: 1;
}

.venn-right {
    background: rgba(87, 116, 122, 0.2);
    left: calc(50% + 20px);
    z-index: 1;
}

.venn-circle:hover {
    transform: scale(1.05);
    z-index: 5;
}

.venn-label {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.venn-sub {
    font-size: 1.1rem;
    color: var(--teal-dark);
    line-height: 1.5;
    font-weight: 500;
}

/* Question mark between circles */
.venn-question {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.venn-question span {
    font-size: 8rem;
    font-weight: 900;
    color: var(--coral);
    line-height: 1;
    opacity: 0.8;
    animation: questionPulse 3s ease-in-out infinite;
}

@keyframes questionPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Explanation */
.slide3-explanation {
    text-align: center;
    margin-bottom: 20px;
}

.slide3-explanation p {
    font-size: 1.3rem;
    color: var(--teal);
    font-weight: 500;
    line-height: 1.6;
}

.slide3-explanation strong {
    color: var(--coral-dark);
    font-weight: 700;
}

/* ===========================
   FOLIE 4 – Vibecoding
   =========================== */
.vibecode-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.vibe-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 36px 28px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    min-width: 200px;
    transition: var(--transition);
    border: 1px solid rgba(87, 116, 122, 0.08);
}

.vibe-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Big monochrome SVG icons */
.vibe-icon-svg {
    width: 100px;
    height: 100px;
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vibe-icon-svg svg {
    width: 100%;
    height: 100%;
}

.vibe-label {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    color: var(--teal-dark);
    line-height: 1.4;
}

/* Big arrow between steps */
.vibe-arrow-big {
    font-size: 2.5rem;
    color: var(--coral);
    font-weight: 700;
    padding: 0 8px;
    animation: arrowPulse 2s ease-in-out infinite;
}

/* ===========================
   FOLIE 5 – Fragen
   =========================== */
.question-mark {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-bottom: 10px;
    animation: questionPulse 3s ease-in-out infinite;
}

@keyframes questionPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.closing-statement {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    max-width: 650px;
    font-weight: 400;
}

.closing-statement strong {
    color: var(--mint);
    font-weight: 700;
}

/* ===========================
   Particle Effects (Slide 1)
   =========================== */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
    .slide {
        padding: 40px 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-title .highlight {
        font-size: 2.4rem;
    }

    .two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .process-line {
        gap: 4px;
    }

    .process-step {
        padding: 12px 14px;
        min-width: 80px;
    }

    .step-icon {
        font-size: 1.5rem;
    }

    .process-step span {
        font-size: 0.7rem;
    }

    .logo-large {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .slide {
        padding: 30px 24px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-title .highlight {
        font-size: 1.8rem;
    }

    .dot-nav {
        right: 12px;
        gap: 10px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .logo {
        width: 50px;
        height: 50px;
        top: 16px;
        right: 16px;
    }

    .logo-large {
        width: 70px;
        height: 70px;
    }

    .vibecode-flow,
    .process-flow {
        gap: 4px;
    }

    .vibe-step {
        padding: 16px 12px;
        min-width: 100px;
    }

    .flow-step {
        padding: 16px 12px;
        min-width: 90px;
    }

    .question-mark {
        font-size: 5rem;
    }
}