:root {
    --color-bg: #F3FAFD;
    --color-text-dark: #153243;
    --color-text-alt: #143047;
    --color-accent: #34A6D8;
    --color-text-secondary: #5B6B7A;
    --color-border-light: #CFE7F4;
    --color-wheel-light: #E4FBFF;
    --color-wheel-cyan: #67C7EA;
    --color-wheel-blue: #176C9E;
    --color-wheel-dark: #062A43;
    --bg-circle-blue: rgba(75, 195, 240, 0.14);
    --bg-circle-green: rgba(31, 155, 104, 0.08);
    --radius-card: 26px;
    --radius-pill: 999px;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-weight-heavy: 900;
    --font-weight-normal: 400;
    --shadow-soft: 0 8px 24px rgba(21, 50, 67, 0.06);
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1 {
    font-weight: var(--font-weight-heavy);
    color: var(--color-text-dark);
    font-size: 2.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

h2.subtitle {
    font-weight: var(--font-weight-normal);
    color: var(--color-text-secondary);
    font-size: 1.25rem;
    margin-bottom: 24px;
}

p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

a {
    -webkit-tap-highlight-color: transparent;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(52, 166, 216, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 166, 216, 0.4);
}

.header {
    padding: 24px 0;
    position: relative;
    z-index: 10;
}

.logo {
    height: 48px;
    width: auto;
    display: block;
}

.hero {
    position: relative;
    padding: 40px 0 80px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.bg-circle-1 {
    background: var(--bg-circle-blue);
    width: 300px;
    height: 300px;
    top: -50px;
    right: -100px;
}

.bg-circle-2 {
    background: var(--bg-circle-green);
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -150px;
}

.bg-lines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(207, 231, 244, 0.2) 10px,
        rgba(207, 231, 244, 0.2) 11px
    );
    opacity: 0.5;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
}

.hero-content {
    max-width: 600px;
}

.hero-list {
    margin: 0 0 30px;
    padding-left: 22px;
    text-align: left;
    color: var(--color-text-secondary);
}

.hero-list li {
    margin-bottom: 12px;
}

.hero-list strong {
    color: var(--color-text-alt);
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.hero-visual::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 90%;
    border-radius: 50%;
    border: 3px solid var(--color-border-light);
    opacity: 0.7;
    z-index: 1;
}

.app-screen {
    width: 100%;
    height: auto;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    border: 4px solid rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 2;
    display: block;
}

.section {
    padding: 80px 0;
    position: relative;
    scroll-margin-top: 20px;
}

.bg-light-alt {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(207, 231, 244, 0.2) 100%
    );
}

.section-wrapper {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.section-wrapper.align-center {
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: var(--font-weight-heavy);
    color: var(--color-text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-text {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    position: relative;
    padding-left: 32px;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

.feature-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: bold;
}

.feature-list strong {
    color: var(--color-text-alt);
    font-weight: 700;
}

.card-visual {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-card);
    padding: 24px;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.card-circle-bg {
    position: absolute;
    width: 250%;
    height: 250%;
    background: radial-gradient(circle, var(--color-wheel-light) 0%, transparent 60%);
    top: -75%;
    left: -75%;
    z-index: 1;
    opacity: 0.6;
}

.card-visual .app-screen {
    position: relative;
    z-index: 2;
    max-width: 320px;
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-card) - 4px);
    box-shadow: 0 4px 12px rgba(21, 50, 67, 0.1);
}

.desktop-screen-link {
    display: block;
    position: relative;
    z-index: 2;
    width: 100%;
    text-decoration: none;
    cursor: zoom-in;
}

.mobile-inline-thumb {
    display: none;
}

/* Vergrößerung aller Screenshots – ohne JavaScript */
.image-lightbox {
    display: none;
}

.image-lightbox:target {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 42, 67, 0.86);
    cursor: zoom-out;
}

.image-lightbox-dialog {
    position: relative;
    z-index: 1;
    max-width: 94vw;
    max-height: 92vh;
}

.image-lightbox-dialog img {
    display: block;
    width: auto;
    height: auto;
    max-width: 94vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

.image-lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 30px;
    line-height: 36px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

/* Footer */
.footer {
    padding: 34px 0 40px;
    border-top: 1px solid var(--color-border-light);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 22px;
}

.footer-nav a {
    color: var(--color-text-alt);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-note {
    margin: 18px 0 0;
    text-align: center;
    font-size: 0.9rem;
}


/* =========================
   MOBILE BIS 991 PX
   ========================= */
@media (max-width: 991px) {
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .header {
        padding: 14px 0;
    }

    .logo {
        height: 42px;
    }

    .hero {
        padding: 22px 0 42px;
        display: block;
    }

    .hero-wrapper,
    .section-wrapper {
        display: block;
    }

    .hero-content {
        max-width: none;
        width: 100%;
        text-align: left;
    }

    h1 {
        font-size: 2.25rem;
        line-height: 1.05;
        text-align: center;
        margin-bottom: 8px;
    }

    h2.subtitle {
        font-size: 1.1rem;
        line-height: 1.35;
        text-align: center;
        margin-bottom: 24px;
    }

    /* Desktop-Großbilder mobil komplett ausblenden */
    .hero-visual,
    .section .visual-content {
        display: none;
    }

    /* Kleine Screenshots wirklich IM Text rechts */
    .mobile-inline-thumb {
        display: block;
        float: right;
        width: min(31vw, 118px);
        margin: 2px 0 12px 16px;
        text-decoration: none;
        cursor: zoom-in;
    }

    .mobile-inline-thumb img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 14px;
        border: 2px solid rgba(255, 255, 255, 0.9);
        box-shadow: 0 6px 18px rgba(21, 50, 67, 0.16);
    }

    /* Float nach jeder Text-Einheit sauber beenden */
    .hero-content::after,
    .text-content::after {
        content: "";
        display: table;
        clear: both;
    }

    .hero-list {
        list-style: none;
        padding: 0;
        margin: 0 0 22px;
        text-align: left;
    }

    .hero-list li {
        position: relative;
        padding-left: 21px;
        margin-bottom: 14px;
        color: var(--color-text-secondary);
        font-size: 0.98rem;
        line-height: 1.52;
    }

    .hero-list li::before {
        content: "•";
        position: absolute;
        left: 2px;
        top: -1px;
        color: var(--color-accent);
        font-size: 1.3rem;
        font-weight: 700;
    }

    .btn {
        display: block;
        width: min(100%, 300px);
        margin: 22px auto 0;
        padding: 13px 22px;
    }

    .section {
        padding: 42px 0;
    }

    .section-wrapper.align-center {
        text-align: left;
        max-width: none;
    }

    .section-title {
        font-size: 1.6rem;
        line-height: 1.15;
        margin-bottom: 12px;
    }

    .section-text,
    p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .section-text {
        margin-bottom: 16px;
    }

    /*
       Wichtig für den gewünschten Fließtext:
       Auf Mobilgeräten ist die Feature-Liste KEIN Flex-Container.
       Dadurch kann der Text wirklich am rechts gefloateten Bild vorbeilaufen.
    */
    .feature-list {
        display: block;
        list-style: none;
        padding: 0;
    }

    .feature-list li {
        padding-left: 23px;
        margin-bottom: 13px;
        font-size: 1rem;
        line-height: 1.52;
    }

    .feature-list li:last-child {
        margin-bottom: 0;
    }

    .feature-list li::before {
        font-size: 1.25rem;
        top: -1px;
    }

    .footer {
        padding: 28px 0 34px;
    }

    .footer-nav {
        gap: 10px 16px;
    }

    .footer-nav a {
        font-size: 0.92rem;
    }

    .footer-note {
        font-size: 0.88rem;
    }

    .image-lightbox:target {
        padding: 16px;
    }

    .image-lightbox-dialog img {
        max-width: 92vw;
        max-height: 88vh;
        border-radius: 14px;
    }

    .image-lightbox-close {
        top: -14px;
        right: -10px;
    }
}


/* =========================
   DESKTOP AB 992 PX
   ========================= */
@media (min-width: 992px) {
    .hero {
        padding: 80px 0 120px;
        min-height: 85vh;
    }

    .hero-wrapper {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        gap: 64px;
    }

    .hero-content {
        flex: 1;
    }

    h1 {
        font-size: 4rem;
    }

    h2.subtitle {
        font-size: 1.5rem;
    }

    .bg-circle-1 {
        width: 600px;
        height: 600px;
        top: -100px;
        right: -50px;
    }

    .bg-circle-2 {
        width: 800px;
        height: 800px;
        bottom: -200px;
        left: -200px;
    }

    .hero-visual {
        flex: 1;
        max-width: 380px;
    }

    .section-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 64px;
    }

    .section-wrapper.reverse {
        flex-direction: row-reverse;
    }

    .section-wrapper > div {
        flex: 1;
    }

    .section-title {
        font-size: 2.5rem;
    }
}
