:root {
    --bg: #eaf0f4;
    --panel: #ffffff;
    --panel-soft: #f7f9fc;
    --text: #132a4a;
    --muted: #5f7392;
    --line: #d7e2ee;
    --navy: #122946;
    --navy-2: #1a385c;
    --orange: #ef9821;
    --orange-2: #f7b04f;
    --blue: #54a9ea;
    --blue-soft: #dcedfb;
    --radius: 24px;
    --shadow: 0 14px 36px rgba(18, 41, 70, 0.08);
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

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

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

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

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

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 10px 0;
    backdrop-filter: blur(14px);
    background: rgba(234, 240, 244, 0.88);
    border-bottom: 1px solid rgba(215, 226, 238, 0.9);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
}

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

.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange), #ffe1a8 78%, var(--blue));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}


.brand-logo {
    display: inline-flex;
    align-items: center;
}

.brand-logo .custom-logo-link,
.brand-logo img {
    display: block;
}

.brand-logo img {
    max-height: 38px;
    width: auto;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: 0.86rem;
    line-height: 1.1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #e98600;
}

.brand-copy small {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
}

.primary-nav {
    justify-self: center;
}

.fddl-menu {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.88rem;
}

.fddl-menu a:hover,
.footer-menu a:hover,
.site-footer a:hover,
.text-link:hover {
    color: var(--blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(18, 41, 70, 0.12);
}

.button-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: #fff;
}

.button-outline {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--line);
    color: var(--text);
}

.button-dark {
    background: var(--navy);
    color: #fff;
}

.button-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--navy);
    border-radius: 999px;
}

.section-compact {
    padding: 14px 0 12px;
}

.top-area-buttons,
.section-heading {
    margin-bottom: 14px;
}

.top-area-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.top-area-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    background: #fff1df;
    color: #cc7a06;
    font-size: 0.78rem;
    font-weight: 900;
    border: 1px solid rgba(239, 152, 33, 0.26);
    box-shadow: 0 8px 18px rgba(18, 41, 70, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.top-area-button:hover {
    transform: translateY(-1px);
    background: #fff;
    color: var(--navy);
    box-shadow: 0 10px 24px rgba(18, 41, 70, 0.12);
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff1df;
    color: #cc7a06;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid rgba(239, 152, 33, 0.18);
}

.tag-soft {
    background: var(--blue-soft);
    color: #2579c0;
    border-color: rgba(84, 169, 234, 0.18);
}

.tag-muted {
    background: #ebeff5;
    color: #486280;
    border-color: #dde5ef;
}

.tag-dark {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.info-card > .tag,
.panel > .tag {
    display: flex;
    width: fit-content;
    margin-bottom: 12px;
}

.info-card > .tag + h3,
.panel > .tag + h2 {
    margin-top: 0;
}


.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
    gap: 16px;
    align-items: stretch;
}

.hero-copy,
.dashboard-card,
.info-card,
.panel,
.content-article,
.faq-item,
.not-found-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 18px 18px 14px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(2.45rem, 5.3vw, 4.55rem);
    line-height: 0.9;
    letter-spacing: -0.06em;
    font-weight: 900;
    max-width: 780px;
}

.hero-text {
    max-width: 720px;
    font-size: 1rem;
    line-height: 1.62;
    color: var(--muted);
    margin: 0 0 18px;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.stat-card {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-bottom: 4px;
}

.stat-card strong {
    font-size: 1.42rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.dashboard-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.78);
}

.dashboard-eyebrow {
    color: var(--muted);
    font-weight: 800;
    font-size: 0.78rem;
}

.dashboard-card h2 {
    margin: 6px 0 14px;
    font-size: clamp(1.8rem, 3.2vw, 3.4rem);
    line-height: 0.93;
    letter-spacing: -0.05em;
}

.focus-card {
    background: linear-gradient(135deg, #ef9821, #86c5f2);
    color: #fff;
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 10px;
}

.focus-card span {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.focus-card strong {
    display: block;
    font-size: clamp(1.2rem, 1.7vw, 1.7rem);
    line-height: 1.08;
    margin-bottom: 6px;
}

.focus-card p,
.mini-card p,
.dashboard-note p,
.info-card p,
.panel p,
.site-footer p,
.entry-content,
.faq-answer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
}

.dashboard-mini-grid,
.card-grid,
.access-grid,
.footer-grid,
.archive-grid {
    display: grid;
    gap: 16px;
}

.dashboard-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
}

.mini-card {
    padding: 15px;
    border-radius: 18px;
    background: #f5f7fb;
}

.mini-card h3,
.info-card h3,
.panel h2,
.site-footer h3,
.entry-header h1,
.archive-grid h2 {
    margin: 0 0 8px;
    font-size: clamp(1.28rem, 1.9vw, 1.72rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.dashboard-note {
    padding: 2px 2px 0;
}

.content-section {
    padding: 14px 0;
}

.section-heading h2 {
    margin: 0 0 6px;
    font-size: clamp(1.72rem, 3vw, 2.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.section-heading p,
.entry-meta,
.archive-header .entry-content {
    color: var(--muted);
    margin: 0;
    line-height: 1.56;
    font-size: 0.98rem;
}

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

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

.info-card,
.panel,
.content-article,
.not-found-card {
    padding: 18px;
}

.info-card ul,
.site-footer ul,
.check-list {
    margin: 12px 0 14px 0;
    padding-left: 18px;
    color: var(--text);
}

.info-card li,
.site-footer li,
.check-list li {
    margin-bottom: 8px;
    line-height: 1.48;
}

.text-link {
    font-weight: 800;
    color: var(--text);
}


.check-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}

.check-list li {
    position: relative;
    padding-left: 32px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eff8e8;
    color: #6cae34;
    font-weight: 900;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    font-size: 1.02rem;
    font-weight: 800;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--blue);
}

.faq-item[open] summary::after {
    content: '–';
}

.faq-answer {
    padding: 0 20px 18px;
}

.default-page {
    min-height: 40vh;
}

.entry-header {
    margin-bottom: 12px;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

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

.site-footer {
    padding: 16px 0 22px;
}

.site-footer .container {
    background: linear-gradient(180deg, #1d344f, #122946);
    color: #fff;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.footer-grid {
    padding: 22px;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
}

.footer-brand {
    margin-bottom: 12px;
}

.site-footer h3 {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9bb7d6;
}

.site-footer ul,
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li,
.footer-menu li {
    margin-bottom: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.84rem;
    color: #cbd9e8;
}

.footer-menu {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 1120px) {
    .hero-grid,
    .card-grid-3,
    .card-grid-2,
    .access-grid,
    .footer-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 10px 0 0;
    }

    .header-inner {
        grid-template-columns: auto auto;
    }

    .primary-nav,
    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: inline-block;
        justify-self: end;
    }

    .site-header.menu-open .header-inner {
        grid-template-columns: 1fr auto;
    }

    .site-header.menu-open .primary-nav,
    .site-header.menu-open .header-actions {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
    }

    .site-header.menu-open .primary-nav {
        margin-top: 8px;
    }

    .site-header.menu-open .fddl-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.95);
    }

    .site-header.menu-open .header-actions {
        gap: 12px;
        margin-top: 12px;
    }
}

@media (max-width: 780px) {
    .container,
    .narrow-container {
        width: min(100% - 20px, var(--container));
    }

    .hero-copy h1 {
        font-size: clamp(2.1rem, 12vw, 3.5rem);
    }

    .dashboard-card h2,
    .section-heading h2 {
        font-size: clamp(1.7rem, 9vw, 2.5rem);
    }

    .stats-grid,
    .dashboard-mini-grid,
    .footer-bottom {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero-actions,
    .header-actions,
    .button,
    .top-area-buttons,
    .top-area-button {
        width: 100%;
    }

    .button,
    .top-area-button {
        min-height: 40px;
    }

    .footer-grid,
    .footer-bottom,
    .dashboard-card,
    .info-card,
    .panel,
    .content-article {
        padding: 16px;
    }

    .faq-item summary,
    .faq-answer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Breadcrumb-Zeilen vollständig ausblenden, auch wenn ein Plugin sie ausgibt. */
.breadcrumbs-lite,
.breadcrumb,
.breadcrumbs,
.entry-breadcrumbs,
.page-breadcrumbs,
.site-breadcrumbs,
.rank-math-breadcrumb,
.yoast-breadcrumb,
.aioseo-breadcrumbs,
.bcn-breadcrumb-trail,
.woocommerce-breadcrumb,
nav[aria-label*="Breadcrumb" i],
nav[aria-label*="Brotkr" i] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Sichere HTML-Links in Hinweis-Textfeldern */
.rich-text {
    color: var(--muted);
    line-height: 1.58;
}

.rich-text p {
    margin: 0 0 0.65em;
    color: inherit;
    line-height: inherit;
}

.rich-text p:last-child {
    margin-bottom: 0;
}

.rich-text a {
    color: var(--blue);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer .rich-text {
    color: #cbd9e8;
}

.site-footer .rich-text a {
    color: #fff;
}

/* ===== Lernbereich-Seiten ===== */
.learning-page-hero {
    padding-top: 18px;
}

.learning-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.learning-crumbs a {
    color: var(--navy);
}

.learning-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(330px, 0.78fr);
    gap: 32px;
    align-items: start;
}

.learning-hero-copy {
    padding-top: 18px;
}

.learning-hero-copy h1 {
    margin: 12px 0 14px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
    color: var(--navy);
}

.learning-access-card h2 {
    margin-bottom: 16px;
}

.focus-card-locked {
    background: linear-gradient(135deg, rgba(18, 41, 70, 0.92), rgba(26, 56, 92, 0.9));
}

.focus-card-locked p,
.focus-card-locked span,
.focus-card-locked strong {
    color: #fff;
}

.learning-message-card {
    padding: 28px;
}

.learning-message-card h2 {
    margin: 10px 0 10px;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--navy);
}

.compact-actions {
    margin-top: 18px;
}

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

.learning-material-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.learning-material-card h3 {
    margin-top: 10px;
}

.learning-material-card p {
    margin-bottom: 12px;
}

.learning-material-card ul {
    margin-bottom: 18px;
}

.learning-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.learning-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--panel-soft);
    color: var(--muted);
    border: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 900;
}

.learning-card-link {
    margin-top: auto;
}

.learning-editor-content {
    padding-top: 0;
}

@media (max-width: 980px) {
    .learning-hero-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .learning-material-grid {
        grid-template-columns: 1fr;
    }

    .learning-hero-copy h1 {
        font-size: clamp(2.15rem, 12vw, 3.3rem);
    }
}

/* ===== Geschäftsfall 4 – Onlineversion ===== */
/* Ablenkungsfreier Geschäftsfall-Arbeitsbereich */
body.gf4-standalone-template {
    margin: 0;
    background: var(--bg);
}

body.gf4-standalone-template .gf4-standalone-main {
    min-height: 100vh;
}

body.gf4-standalone-template .gf4-tool-section {
    padding: 6px 0 8px;
    min-height: 100vh;
}

body.gf4-standalone-template .gf4-wide-container {
    width: calc(100vw - 12px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

body.gf4-standalone-template .gf4-toolbar {
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 18px;
}

body.gf4-standalone-template .gf4-toolbar h2 {
    margin: 4px 0 2px;
    font-size: clamp(1.15rem, 1.4vw, 1.55rem);
}

body.gf4-standalone-template .gf4-toolbar p {
    font-size: 0.82rem;
}

body.gf4-standalone-template .gf4-toolbar .tag {
    display: none;
}

body.gf4-standalone-template .gf4-toolbar-actions .button {
    min-height: 32px;
    border-radius: 12px;
    padding: 0 11px;
    font-size: 0.8rem;
    white-space: nowrap;
}

body.gf4-standalone-template .gf4-split {
    min-height: calc(100vh - 86px);
    border-radius: 18px;
}

body.gf4-standalone-template .gf4-workspace-pane {
    max-height: calc(100vh - 86px);
}

body.gf4-standalone-template .gf4-pdf-pane iframe {
    min-height: calc(100vh - 120px);
}

body.gf4-standalone-template .gf4-pane-head {
    padding: 8px 10px;
}

body.gf4-standalone-template .gf4-print-area {
    padding: 10px;
}

body.gf4-standalone-template .gf4-task-card {
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 18px;
}

.gf4-page-hero {
    padding-bottom: 20px;
}

.gf4-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.gf4-hero-actions .button,
.gf4-toolbar-actions .button,
.gf4-task-actions .button {
    min-height: 38px;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 0.88rem;
}

.gf4-tool-section {
    padding: 12px 0 42px;
}

.gf4-wide-container {
    width: min(1480px, calc(100% - 24px));
}

.gf4-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    margin-bottom: 14px;
}

.gf4-toolbar h2 {
    margin: 8px 0 4px;
    color: var(--navy);
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.gf4-toolbar p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.gf4-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.gf4-split {
    display: grid;
    grid-template-columns: var(--gf4-left, 43%) 10px minmax(420px, 1fr);
    gap: 0;
    min-height: calc(100vh - 138px);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow);
}

.gf4-pdf-pane,
.gf4-workspace-pane {
    min-width: 0;
    background: var(--panel);
}

.gf4-pdf-pane {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
}

.gf4-pdf-pane iframe {
    width: 100%;
    flex: 1 1 auto;
    min-height: 720px;
    border: 0;
    background: #fff;
}

.gf4-pane-head {
    position: sticky;
    top: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(247, 249, 252, 0.96);
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    font-size: 0.88rem;
}

.gf4-pane-head a,
.gf4-task-nav a {
    color: var(--blue);
    font-weight: 800;
}

.gf4-divider {
    width: 10px;
    border: 0;
    padding: 0;
    cursor: col-resize;
    background: linear-gradient(90deg, rgba(215, 226, 238, 0.4), rgba(18, 41, 70, 0.13), rgba(215, 226, 238, 0.4));
}

.gf4-divider:hover,
body.gf4-is-resizing .gf4-divider {
    background: linear-gradient(90deg, rgba(239, 152, 33, 0.18), rgba(239, 152, 33, 0.65), rgba(239, 152, 33, 0.18));
}

body.gf4-is-resizing {
    cursor: col-resize;
    user-select: none;
}

.gf4-workspace-pane {
    max-height: calc(100vh - 138px);
    overflow: auto;
}

.gf4-workspace-head {
    top: 0;
}

.gf4-task-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gf4-task-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--navy);
    font-size: 0.82rem;
}

.gf4-print-area {
    padding: 14px;
}

.gf4-task-card {
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 10px 24px rgba(18, 41, 70, 0.05);
    scroll-margin-top: 78px;
}

.gf4-task-heading {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}

.gf4-task-number {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--blue));
}

.gf4-task-card h2 {
    margin: 8px 0 5px;
    color: var(--navy);
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.gf4-task-card h3 {
    margin: 18px 0 8px;
    color: var(--navy);
    font-size: 1.02rem;
    line-height: 1.2;
}

.gf4-task-card h4 {
    margin: 16px 0 8px;
    color: var(--navy);
}

.gf4-task-card p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.gf4-mail-grid,
.gf4-payment-grid,
.gf4-fax-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gf4-account-grid,
.gf4-error-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gf4-form-grid label,
.gf4-input-table td,
.gf4-input-table th {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--navy);
}

.gf4-form-grid label {
    display: grid;
    gap: 5px;
}

.gf4-full {
    grid-column: 1 / -1;
}

.gf4-form-grid input,
.gf4-form-grid textarea,
.gf4-input-table input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 500;
    padding: 9px 10px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.gf4-form-grid textarea {
    resize: vertical;
    min-height: 82px;
}

.gf4-form-grid input:focus,
.gf4-form-grid textarea:focus,
.gf4-input-table input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(84, 169, 234, 0.16);
}

.gf4-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.gf4-input-table,
.gf4-solution-table {
    width: 100%;
    border-collapse: collapse;
}

.gf4-input-table th,
.gf4-input-table td,
.gf4-solution-table th,
.gf4-solution-table td {
    padding: 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.gf4-input-table th,
.gf4-solution-table th {
    background: var(--panel-soft);
}

.gf4-input-table tr:last-child td,
.gf4-solution-table tr:last-child td,
.gf4-solution-table tr:last-child th {
    border-bottom: 0;
}

.gf4-booking-table th:nth-child(1),
.gf4-booking-table td:nth-child(1) { min-width: 96px; }
.gf4-booking-table th:nth-child(2),
.gf4-booking-table th:nth-child(3),
.gf4-booking-table td:nth-child(2),
.gf4-booking-table td:nth-child(3) { min-width: 90px; }
.gf4-booking-table th:nth-child(4),
.gf4-booking-table td:nth-child(4) { min-width: 112px; }

.gf4-task-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.gf4-result {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 900;
    color: var(--muted);
    background: var(--panel-soft);
}

.gf4-result:empty {
    display: none;
}

.gf4-result.ok {
    color: #146c2e;
    background: #e9f8ec;
}

.gf4-result.warn {
    color: #94620a;
    background: #fff6df;
}

.gf4-result.bad {
    color: #9b2626;
    background: #fff0f0;
}

.gf4-form-grid input.is-correct,
.gf4-form-grid textarea.is-correct,
.gf4-input-table input.is-correct {
    border-color: #52b36d;
    background: #f2fff5;
}

.gf4-form-grid input.is-partial,
.gf4-form-grid textarea.is-partial,
.gf4-input-table input.is-partial {
    border-color: #e0aa32;
    background: #fff9e8;
}

.gf4-form-grid input.is-wrong,
.gf4-form-grid textarea.is-wrong,
.gf4-input-table input.is-wrong {
    border-color: #d75f5f;
    background: #fff4f4;
}

.gf4-solution-panel {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #bee0fa;
    background: #f2f9ff;
    color: var(--text);
}

.gf4-solution-panel h3 {
    margin-top: 0;
}

.gf4-solution-panel dl {
    display: grid;
    grid-template-columns: minmax(120px, 0.35fr) 1fr;
    gap: 6px 10px;
    margin: 10px 0;
}

.gf4-solution-panel dt {
    font-weight: 900;
    color: var(--navy);
}

.gf4-solution-panel dd {
    margin: 0;
    color: var(--text);
}

.gf4-pdf-wrapper {
    width: 760px;
    max-width: 100%;
    padding: 18px;
    color: #132a4a;
    background: #fff;
    font-family: Inter, Arial, sans-serif;
}

.gf4-pdf-wrapper h1 {
    font-size: 24px;
    margin: 0 0 8px;
}

.gf4-pdf-wrapper .gf4-task-card {
    box-shadow: none;
    page-break-inside: avoid;
}

.gf4-pdf-wrapper .gf4-solution-panel {
    display: block !important;
    margin-top: 12px;
    page-break-inside: avoid;
}

.gf4-pdf-wrapper .gf4-task-actions,
.gf4-pdf-wrapper .gf4-result {
    display: none !important;
}

.gf4-pdf-value {
    min-height: 30px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-weight: 500;
    white-space: pre-wrap;
}

@media (max-width: 1120px) {
    .gf4-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .gf4-toolbar-actions {
        justify-content: flex-start;
    }

    .gf4-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .gf4-divider {
        display: none;
    }

    .gf4-pdf-pane iframe {
        min-height: 520px;
    }

    .gf4-workspace-pane {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 760px) {
    .gf4-form-grid,
    .gf4-mail-grid,
    .gf4-payment-grid,
    .gf4-fax-grid,
    .gf4-account-grid,
    .gf4-error-grid {
        grid-template-columns: 1fr;
    }

    .gf4-task-heading {
        grid-template-columns: 1fr;
    }

    .gf4-pane-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .gf4-task-nav {
        flex-wrap: wrap;
    }

    .gf4-toolbar-actions .button {
        width: 100%;
    }
}

@media print {
    .site-header,
    .site-footer,
    .gf4-page-hero,
    .gf4-toolbar,
    .gf4-pdf-pane,
    .gf4-divider,
    .gf4-workspace-head,
    .gf4-task-actions,
    .gf4-solution-panel[hidden] {
        display: none !important;
    }

    .gf4-split,
    .gf4-workspace-pane,
    .gf4-print-area,
    .gf4-wide-container,
    .container {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        box-shadow: none !important;
        border: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }

    .gf4-task-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
    }
}
