:root {
    --dark: #19324D;
    --primary: #28577A;
    --light: #6FC3DF;

    --background: #EEF4F7;
    --card: #FFFFFF;

    --text: #19324D;
    --text-light: #64748B;
    --disabled: #AAB7C2;

    --border: rgba(25, 50, 77, 0.10);

    --danger: #D64545;
    --warning: #E2B84B;
    --success: #55A66A;
}


/* ============================================================
   GRUNDLAGEN
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--card);
    line-height: 1.6;
}

body.modal-open {
    overflow: hidden;
}

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

.container {
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
}


/* ============================================================
   HEADER
   ============================================================ */

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;

    background: rgba(255, 255, 255, .90);
    backdrop-filter: blur(16px);

    border-bottom: 1px solid var(--border);
}

.nav {
    min-height: 76px;

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

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;

    border-radius: 10px;

    background: transparent;

    font-size: 14px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand-text {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.menu {
    display: flex;
    align-items: center;
    gap: 30px;

    font-size: 14px;
    font-weight: 600;
}

.menu a {
    transition: color .2s ease;
}

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

.nav-cta {
    padding: 11px 18px;

    color: white !important;
    background: var(--primary);

    border-radius: 8px;
}

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    margin: 5px auto;

    background: var(--dark);
}


/* ============================================================
   TYPOGRAFIE
   ============================================================ */

.eyebrow {
    color: var(--primary);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;

    margin-bottom: 18px;
}

h1,
h2 {
    line-height: 1.08;
    letter-spacing: -.045em;
}

h1 {
    max-width: 700px;

    font-size: clamp(48px, 6vw, 76px);
    font-weight: 800;
}

h1 span,
h2 span {
    color: var(--primary);
}

h2 {
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 800;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 0 22px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: white;
    background: var(--primary);

    box-shadow:
        0 10px 25px rgba(40, 87, 122, .18);
}

.button-secondary {
    border: 1px solid var(--border);
    background: white;
}

.button-light {
    color: var(--dark);
    background: white;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    min-height: 780px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 40%,
            rgba(111, 195, 223, .25),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #f8fbfc 0%,
            var(--background) 100%
        );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;

    align-items: center;

    gap: 70px;

    padding-top: 76px;
}

.hero-text {
    max-width: 590px;

    margin: 27px 0 34px;

    color: var(--text-light);

    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.automation-animation-frame {
    position: relative;
    width: 100%;
    height: 560px;
}

.automation-animation-frame iframe {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
    transition: opacity .25s ease;
    border: 0;
    overflow: hidden;
}

#automatedAnimation {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#manualAnimation {
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}


.animation-click-hint {
    position: absolute;
    right: 18px;
    bottom: 18px;

    z-index: 20;

    padding: 8px 13px;

    border: 0;
    border-radius: 20px;

    background: rgba(25, 50, 77, .9);
    color: white;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease;
}

.animation-click-hint:hover {
    transform: translateY(-2px);
    background: var(--primary);
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
    padding: 125px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.section-heading > p:last-child {
    margin-top: 20px;
    color: var(--text-light);
}


/* ============================================================
   SERVICES
   ============================================================ */

.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.service-card {
    min-height: 285px;

    padding: 30px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: white;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.service-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 18px 45px rgba(25, 50, 77, .09);
}

.service-number {
    color: var(--light);

    font-weight: 800;
    font-size: 15px;

    margin-bottom: 55px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 16px;
}


/* ============================================================
   SOLUTION
   ============================================================ */

.solution-section {
    background: var(--background);
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 90px;

    align-items: start;
}

.solution-copy > p,
.about-section p {
    color: var(--text-light);
    font-size: 17px;
}

.principles {
    margin-top: 35px;

    border-top: 1px solid rgba(25, 50, 77, .12);
}

.principles div {
    display: flex;

    gap: 25px;

    padding: 17px 0;

    border-bottom: 1px solid rgba(25, 50, 77, .12);
}

.principles strong {
    color: var(--primary);
    font-size: 12px;
}

.principles span {
    font-weight: 700;
}


/* ============================================================
   ABOUT
   ============================================================ */

.about-section {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: .65fr 1.35fr;

    gap: 100px;

    align-items: center;
}

.about-section p {
    max-width: 700px;
    margin-top: 22px;
}

.about-badge {
    width: 280px;
    height: 280px;

    border-radius: 50%;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    background: var(--dark);
    color: white;

    box-shadow:
        25px 25px 0 rgba(111, 195, 223, .28);
}

.about-badge span {
    font-size: 72px;
    font-weight: 800;

    letter-spacing: -.08em;
}

.about-badge small {
    margin-top: 10px;

    font-size: 9px;
    line-height: 1.5;

    letter-spacing: .16em;

    text-align: center;

    color: var(--light);
}


/* ============================================================
   KONTAKT
   ============================================================ */

.contact-section {
    padding: 100px 0;

    background: var(--dark);
}

.contact-box {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 50px;
}

.contact-section .eyebrow {
    color: var(--light);
}

.contact-section h2 {
    color: white;
}

.contact-section h2 span {
    color: var(--light);
}

.contact-section p:last-child {
    max-width: 580px;

    margin-top: 20px;

    color: #b8c7d3;
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    padding: 35px 0;

    background: #10273b;
    color: #aebdca;

    font-size: 12px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto auto;

    align-items: center;

    gap: 30px;
}

.footer strong,
.footer span {
    display: block;
}

.footer strong {
    color: white;
    font-size: 12px;
}

.footer span {
    margin-top: 3px;

    font-size: 9px;
    letter-spacing: .12em;
}

.footer-links {
    display: flex;
    gap: 22px;
}


/* ============================================================
   IMPRESSUM / DATENSCHUTZ MODAL
   ============================================================ */

.modal {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;

    inset: 0;

    background: rgba(25, 50, 77, .65);

    backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    z-index: 2;

    width: min(700px, 100%);
    max-height: 85vh;

    overflow-y: auto;

    padding: 45px;

    border-radius: 18px;

    background: white;

    box-shadow:
        0 30px 80px rgba(25, 50, 77, .25);
}

.modal-close {
    position: absolute;

    top: 18px;
    right: 20px;

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: var(--background);
    color: var(--dark);

    font-size: 26px;
    line-height: 1;

    cursor: pointer;
}

.modal-close:hover {
    background: var(--light);
}

.impressum-text {
    margin-top: 30px;

    color: var(--text-light);

    font-size: 15px;
}

.impressum-text h3 {
    margin-top: 28px;
    margin-bottom: 8px;

    color: var(--dark);

    font-size: 17px;
}

.impressum-text p {
    margin-bottom: 15px;
}

#datenschutz-modal h2,
#impressum-modal h2 {
    font-size: 40px;
}


/* ============================================================
   RESPONSIVE – TABLET
   ============================================================ */

@media (max-width: 900px) {

    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid,
    .solution-grid,
    .about-grid {
        grid-template-columns: 1fr;

        gap: 55px;
    }

    .hero {
        min-height: auto;

        padding-bottom: 90px;
    }

    .hero-visual {
        min-height: 480px;
    }

    .about-grid {
        gap: 60px;
    }

    .about-badge {
        width: 220px;
        height: 220px;
    }

    .contact-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-inner {
        grid-template-columns: 1fr;

        gap: 15px;
    }
}


/* ============================================================
   RESPONSIVE – MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .container {
        width: min(100% - 32px, 1160px);
    }

    .nav {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .menu {
        position: absolute;

        top: 68px;
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 10px 16px 18px;

        background: rgba(255, 255, 255, .98);

        border-bottom: 1px solid var(--border);
    }

    .menu.open {
        display: flex;
    }

    .menu a {
        padding: 14px 8px;
    }

    .nav-cta {
        text-align: center;

        margin-top: 8px;
    }

    .hero-grid {
        padding-top: 120px;
    }

    h1 {
        font-size: clamp(42px, 13vw, 60px);
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 430px;
    }

    .automation-card {
        width: 96%;

        min-height: 410px;

        padding: 22px;
    }

    .automation-heading strong {
        font-size: 17px;
    }

    .automation-heading span {
        font-size: 11px;
    }

    .process-visual {
        height: 155px;
    }

    .processing-area {
        width: 110px;
    }

    .processor {
        width: 70px;
        height: 70px;
    }

    .processor-icon {
        font-size: 18px;
    }

    .processor-label {
        font-size: 6px;
    }

    .queue {
        top: 88px;
    }

    .automation-benefits span {
        font-size: 8px;
        padding: 6px 8px;
    }

    .section {
        padding: 85px 0;
    }

    .services {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .service-number {
        margin-bottom: 35px;
    }

    .solution-grid {
        gap: 40px;
    }

    .about-grid {
        gap: 50px;
    }

    .about-badge {
        margin: 0 auto;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .modal {
        padding: 12px;
    }

    .modal-content {
        max-height: 90vh;

        padding: 32px 24px;

        border-radius: 14px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
    }

    #datenschutz-modal h2,
    #impressum-modal h2 {
        font-size: 30px;
    }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition: none !important;
    }
}