:root {
    --ink: #101827;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f6f9fc;
    --white: #ffffff;
    --primary: #1f6fbe;
    --primary-dark: #164e8f;
    --accent: #d56d92;
    --gold: #c9a45d;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    z-index: 999;
    background: var(--ink);
    color: var(--white);
    padding: 10px 14px;
}

.skip-link:focus {
    left: 10px;
}

.topbar {
    background: #13243a;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
}

.topbar-inner {
    max-width: 1240px;
    min-height: 38px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 26px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(226, 232, 240, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.nav {
    max-width: 1240px;
    min-height: 84px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

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

.brand img {
    width: 190px;
    max-height: 74px;
    height: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 999px;
    color: #233044;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    background: var(--ink);
    color: var(--white);
    transform: translateY(-1px);
}

.nav-actions {
    min-width: 1px;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary,
.btn-blue {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 18px 42px rgba(31, 111, 190, 0.22);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--ink);
}

.hero {
    min-height: 720px;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(12, 26, 43, 0.92) 0%, rgba(12, 26, 43, 0.82) 30%, rgba(12, 26, 43, 0.28) 58%, rgba(12, 26, 43, 0.04) 100%),
        url("assets/optimized/hero.jpg") center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 150px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.96));
    pointer-events: none;
}

.hero-inner {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 96px clamp(24px, 5vw, 76px) 132px;
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 540px;
    padding: 34px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    color: inherit;
    font-size: clamp(42px, 5.4vw, 66px);
    line-height: 1.03;
    letter-spacing: -0.018em;
    font-weight: 760;
}

.hero p,
.page-hero p {
    max-width: 560px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 1.65vw, 20px);
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

section,
.page-section {
    padding: 100px 24px;
}

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

.grid-2,
.split-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 76px;
    align-items: center;
}

h1,
h2,
h3 {
    color: var(--ink);
}

.welcome-section h2,
.split-panel h2,
.cta h2,
.section-header h2,
.section-strip h2,
.content h2 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    font-weight: 900;
}

.lead,
.section-strip p,
.section-header p {
    color: var(--muted);
    font-size: 18px;
}

[data-benefits-text],
[data-pricing-intro] {
    white-space: pre-line;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 720ms ease,
        transform 720ms ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.image-frame {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--soft);
    box-shadow: var(--shadow);
}

.image-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.section-strip {
    padding: 96px 24px 26px;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    text-align: center;
}

.section-strip p {
    max-width: 900px;
    margin: 0 auto;
}

.services-band {
    padding: 46px 24px 110px;
    background: #ffffff;
}

.services-overview-band {
    padding: 44px 24px 72px;
    background: #acd2f1;
}

.service-overview-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 52px;
}

.service-overview-item {
    display: block;
    color: #020817;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.service-overview-item:hover {
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.service-overview-icon {
    display: block;
    width: 36px;
    height: 36px;
    margin: 0 0 12px;
    color: #5572d6;
}

.service-overview-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.service-overview-title {
    display: block;
    margin-bottom: 12px;
    color: #000000;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.35;
}

.service-overview-text {
    display: block;
    color: #000000;
    font-size: 16px;
    line-height: 1.58;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.services-overview-section {
    padding-top: 86px;
}

.services-intro-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
    margin-bottom: 58px;
}

.services-intro-copy {
    max-width: 620px;
}

.services-intro-copy h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
}

.services-intro-copy .lead {
    margin-top: 22px;
}

.services-cover {
    overflow: hidden;
    border-radius: 24px;
    background: var(--soft);
    box-shadow: var(--shadow-soft);
}

.services-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 32%;
}

.leistungen-title-band {
    padding: 72px 24px 58px;
    background: linear-gradient(180deg, #edf6ff 0%, #f6fbff 100%);
}

.leistungen-title-band .container,
.leistungen-card-section .container {
    max-width: 940px;
}

.leistungen-title-band h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.leistungen-card-section {
    padding: 70px 24px 104px;
    background: var(--white);
}

.service-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 34px;
}

.service-card-grid .card {
    border-radius: 0;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}

.service-card-grid .card::after {
    display: none;
}

.service-card-grid .card-image img {
    aspect-ratio: 1.08 / 1;
}

.service-card-grid .card-body {
    padding: 24px 26px 30px;
}

.service-card-grid .card h3 {
    font-size: 18px;
    line-height: 1.2;
}

.service-card-grid .card p {
    font-size: 14px;
    line-height: 1.65;
}

.card-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.card-link:hover {
    color: var(--primary-dark);
}

.card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.card::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1.18 / 1;
    object-fit: cover;
}

.card-icon {
    display: none;
}

.card-body {
    padding: 26px 24px 32px;
}

.card h3 {
    margin: 0 0 11px;
    color: var(--ink);
    font-size: 21px;
    line-height: 1.22;
    letter-spacing: -0.015em;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.pricing-grid.compact {
    grid-template-columns: 1fr;
    margin-top: 28px;
}

.price-card,
.contact-box {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    padding: 24px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.price-card {
    border-left: 4px solid var(--primary);
}

.price-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 21px;
}

.benefit-list {
    padding: 0;
    margin: 30px 0 0;
    list-style: none;
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(203, 213, 225, 0.72);
}

.benefit-list li {
    position: relative;
    padding: 15px 0 15px 28px;
    border-bottom: 1px solid rgba(203, 213, 225, 0.72);
    color: var(--ink);
    font-size: 16px;
    font-weight: 720;
    line-height: 1.55;
}

.benefit-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.cta {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}

.contact-form {
    display: grid;
    gap: 12px;
}

.spam-field {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px;
    background: var(--white);
    color: var(--text);
    font: inherit;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    justify-self: start;
}

.page-hero {
    padding: 72px 24px 58px;
    color: var(--ink);
    background: linear-gradient(180deg, #edf6ff 0%, #f6fbff 100%);
}

.page-hero-services,
.page-hero-contact,
.page-hero-about,
.page-hero-billing {
    background: linear-gradient(180deg, #edf6ff 0%, #f6fbff 100%);
}

.page-hero .container,
.content {
    max-width: 940px;
}

.page-hero h1 {
    max-width: 820px;
    color: var(--ink);
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.page-hero .eyebrow {
    color: var(--primary-dark);
}

.page-hero p {
    max-width: 700px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.page-hero + section {
    padding-top: 70px;
}

.content {
    margin: 0 auto;
}

.content p,
.content li {
    font-size: 18px;
}

.content a {
    color: var(--primary-dark);
    font-weight: 800;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.site-footer {
    padding: 60px 24px 28px;
    background: #101827;
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}

.site-footer h2,
.site-footer h3 {
    margin-top: 0;
    color: var(--white);
}

.site-footer ul {
    display: grid;
    gap: 9px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.footer-bottom {
    max-width: 1240px;
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
}

.admin-body {
    background: var(--soft);
}

.admin-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 18px 70px;
}

.admin-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.editor-panel,
.login-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

.login-card {
    max-width: 460px;
    margin: 80px auto;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

label {
    color: var(--ink);
    font-weight: 850;
}

.json-editor {
    min-height: 560px;
    font-family: Consolas, monospace;
    font-size: 14px;
}

.service-detail-hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    color: var(--white);
    background-position: center;
    background-size: cover;
}

.service-detail-hero-content {
    padding-top: 90px;
    padding-bottom: 96px;
}

.service-detail-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--white);
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.service-detail-hero p:not(.eyebrow) {
    max-width: 650px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 1.5vw, 20px);
}

.service-detail-content {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(36px, 6vw, 86px);
    align-items: center;
}

.service-detail-panel {
    max-width: 660px;
}

.service-detail-panel .eyebrow {
    color: var(--primary-dark);
}

.service-detail-panel h2 {
    margin: 0 0 22px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.025em;
}

.service-detail-panel p {
    color: #48617f;
    font-size: 18px;
    white-space: pre-line;
}

.service-detail-list {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(203, 213, 225, 0.72);
}

.service-detail-list li {
    position: relative;
    padding: 15px 0 15px 30px;
    border-bottom: 1px solid rgba(203, 213, 225, 0.72);
    color: var(--ink);
    font-weight: 760;
}

.service-detail-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 25px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.service-detail-cta {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(203, 213, 225, 0.72);
}

.service-detail-cta strong {
    display: block;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.35;
}

@media (max-width: 1120px) {
    .cards,
    .service-overview-links,
    .pricing-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav {
        flex-wrap: wrap;
        min-height: 82px;
    }

    .nav-links {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 16px;
    }

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

    .nav-links a,
    .nav-links a:hover,
    .nav-links a[aria-current="page"] {
        border-radius: 0;
        background: transparent;
        color: var(--text);
        padding: 12px 0;
    }

    .grid-2,
    .split-panel,
    .services-intro-panel,
    .service-detail-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-intro-panel {
        gap: 30px;
        margin-bottom: 42px;
    }

    .hero {
        min-height: 640px;
    }

    .service-detail-hero {
        min-height: 540px;
        background-position: 58% center;
    }
}

@media (max-width: 640px) {
    .topbar-inner {
        min-height: 0;
        padding: 8px 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .brand img {
        width: 156px;
        max-height: 62px;
    }

    .hero {
        min-height: 660px;
        background:
            linear-gradient(180deg, rgba(10, 18, 32, 0.78), rgba(10, 18, 32, 0.54)),
            url("assets/optimized/hero.jpg") 58% center / cover no-repeat;
    }

    .hero-inner {
        padding: 76px 18px 112px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .service-detail-hero {
        min-height: 590px;
        background-position: 58% center;
    }

    .service-detail-hero-content {
        padding-top: 70px;
        padding-bottom: 78px;
    }

    .service-detail-hero h1 {
        font-size: 38px;
    }

    .service-detail-hero p:not(.eyebrow) {
        font-size: 16px;
    }

    .page-hero {
        padding: 54px 18px 42px;
    }

    .page-hero h1 {
        font-size: 32px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .hero-actions,
    .button-row {
        flex-direction: column;
    }

    .btn,
    .contact-form .btn {
        width: 100%;
    }

    section,
    .page-section {
        padding: 72px 18px;
    }

    .section-strip {
        padding: 74px 18px 20px;
    }

    .services-overview-section {
        padding-top: 64px;
    }

    .services-cover {
        border-radius: 18px;
    }

    .cards,
    .service-card-grid,
    .service-overview-links,
    .pricing-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-overview-links {
        gap: 34px;
    }

    .services-overview-band {
        padding: 42px 18px 56px;
    }

    .service-overview-title {
        font-size: 22px;
    }

    .leistungen-title-band {
        padding: 54px 18px 42px;
    }

    .leistungen-card-section {
        padding: 48px 18px 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
