:root {
    --ink: #0f1f2e;
    --ink-soft: #405365;
    --navy: #06283b;
    --ocean: #087d91;
    --aqua: #12b7c7;
    --coral: #f26a4f;
    --foam: #f5fafb;
    --line: #d9e5ea;
    --white: #ffffff;
    --shadow: 0 22px 70px rgba(6, 40, 59, 0.14);
}


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.layout {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 28px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(217, 229, 234, 0.9);
    box-shadow: 0 12px 34px rgba(6, 40, 59, 0.08);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 112px;
    height: auto;
    padding: 0;
}

.brand strong,
.brand small {
    display: block;
}

.brand-caption {
    display: block;
}

.brand small {
    color: var(--ocean);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
}

.main-nav a {
    color: var(--ink);
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--ocean);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--foam);
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--navy);
}

.hero {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: var(--navy);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease;
}

.hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}

.hero-slide .hero-media img {
    object-position: center center;
}

.hero-pill-nav {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 28px;
    z-index: 4;
    display: flex;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(3, 21, 34, 0.4);
    backdrop-filter: blur(10px);
}

.hero-pill {
    width: 28px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease, transform 180ms ease;
}

.hero-pill:hover,
.hero-pill:focus-visible {
    background: rgba(255, 255, 255, 0.78);
    transform: scaleY(1.15);
}

@media (max-width: 620px) {
    .hero-slide .hero-media img {
        object-position: 72% center;
    }

    .hero-theme-light .hero-copy-panel,
    .hero-theme-auto.hero-auto-light .hero-copy-panel {
        padding: 18px 18px 20px;
        border-radius: 12px;
        backdrop-filter: blur(10px) saturate(1.05);
    }

    .hero-logo {
        width: min(240px, 64vw);
        margin-bottom: 14px;
    }

    .hero-pill-nav {
        right: 50%;
        bottom: 18px;
        transform: translateX(50%);
    }

    .hero-pill {
        width: 20px;
        height: 10px;
    }

    .hero-pill.is-active {
        width: 36px;
    }
}

.hero-pill.is-active {
    width: 48px;
    background: var(--coral);
}

.hero-pill:focus-visible {
    outline: 3px solid rgba(34, 194, 205, 0.7);
    outline-offset: 3px;
}

@media (max-width: 620px) {
    .hero-pill.is-active {
        width: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}

.hero-media,
.hero-media img,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-copy-panel {
    width: min(720px, 100%);
    transition: color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.hero-theme-light .hero-overlay,
.hero-theme-auto.hero-auto-light .hero-overlay {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 27%, rgba(255, 255, 255, 0.38) 48%, transparent 70%),
        linear-gradient(0deg, rgba(6, 40, 59, 0.1), transparent 34%);
}

.hero-theme-light .hero-copy-panel,
.hero-theme-auto.hero-auto-light .hero-copy-panel {
    width: min(650px, 100%);
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--navy);
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.hero-theme-light .hero-copy,
.hero-theme-auto.hero-auto-light .hero-copy {
    color: rgba(6, 40, 59, 0.82);
}

.hero-theme-light .hero-logo,
.hero-theme-auto.hero-auto-light .hero-logo {
    width: min(260px, 58vw);
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 12px 34px rgba(6, 40, 59, 0.1);
    backdrop-filter: blur(8px);
}

.hero-theme-light h1,
.hero-theme-auto.hero-auto-light h1 {
    max-width: 620px;
    font-size: clamp(42px, 4.2vw, 56px);
}

.hero-theme-light .btn-ghost,
.hero-theme-auto.hero-auto-light .btn-ghost {
    border-color: rgba(6, 40, 59, 0.28);
    color: var(--navy);
    background: rgba(255, 255, 255, 0.48);
}

.hero-theme-light .hero-facts .hero-fact,
.hero-theme-auto.hero-auto-light .hero-facts .hero-fact {
    border-color: rgba(6, 40, 59, 0.24);
    color: var(--navy);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 5px 16px rgba(6, 40, 59, 0.08);
    text-shadow: none;
}

.hero-theme-light .hero-facts .hero-fact:hover,
.hero-theme-light .hero-facts .hero-fact:focus-visible,
.hero-theme-auto.hero-auto-light .hero-facts .hero-fact:hover,
.hero-theme-auto.hero-auto-light .hero-facts .hero-fact:focus-visible {
    border-color: rgba(18, 183, 199, 0.58);
    background: rgba(255, 255, 255, 0.94);
}

.hero-theme-plain .hero-overlay {
    background: linear-gradient(90deg, rgba(3, 21, 34, 0.38), transparent 68%);
}

.hero-theme-plain .hero-copy-panel {
    text-shadow: 0 2px 18px rgba(3, 21, 34, 0.72);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(3, 21, 34, 0.94), rgba(3, 21, 34, 0.72) 34%, rgba(3, 21, 34, 0.18) 72%),
        linear-gradient(0deg, rgba(3, 21, 34, 0.4), transparent 36%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 92px;
}

.hero-logo {
    width: min(330px, 70vw);
    height: auto;
    margin: 0 0 20px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

@media (max-width: 620px) {
    .hero-logo {
        width: min(240px, 64vw);
        margin-bottom: 14px;
    }

    .hero-theme-light .hero-copy-panel,
    .hero-theme-auto.hero-auto-light .hero-copy-panel {
        padding: 0;
    }

    .hero-theme-light h1,
    .hero-theme-auto.hero-auto-light h1 {
        font-size: 34px;
    }

    .hero-theme-light .hero-logo,
    .hero-theme-auto.hero-auto-light .hero-logo {
        width: min(220px, 58vw);
    }
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--aqua);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: 58px;
    line-height: 1.04;
}

.news-detail-title {
    font-size: 38px;
}

.news-detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 18px;
}

.news-detail-image--logo {
    max-height: 260px;
    object-fit: contain;
    padding: 32px;
    box-sizing: border-box;
    background: var(--foam);
}

h2 {
    margin-bottom: 14px;
    font-size: 38px;
    line-height: 1.12;
}

h3 {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.22;
}

.hero-copy {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
}

.hero-actions,
.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 28px;
}

.hero-facts .hero-fact {
    position: relative;
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    cursor: help;
}

.hero-facts .hero-fact:focus-visible {
    outline: 3px solid rgba(34, 194, 205, 0.55);
    outline-offset: 4px;
}

.hero-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    z-index: 10;
    width: min(300px, calc(100vw - 32px));
    padding: 14px 15px;
    border: 1px solid rgba(34, 194, 205, 0.28);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 44px rgba(6, 40, 59, 0.24);
    font-size: 14px;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translate(-50%, 8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    visibility: hidden;
}

.hero-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 14px;
    height: 14px;
    border-right: 1px solid rgba(34, 194, 205, 0.28);
    border-bottom: 1px solid rgba(34, 194, 205, 0.28);
    background: rgba(255, 255, 255, 0.98);
    transform: translateX(-50%) rotate(45deg);
}

.hero-fact:hover .hero-tooltip,
.hero-fact:focus-visible .hero-tooltip,
.hero-fact:focus-within .hero-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

@media (hover: none), (max-width: 820px) {
    .hero-facts .hero-fact {
        cursor: default;
    }

    .hero-tooltip {
        display: none;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: var(--ocean);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(6, 40, 59, 0.2);
}

.btn-primary {
    background: var(--coral);
}

.btn-secondary {
    background: var(--navy);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.09);
}

.hero-call-button {
    display: none;
}

.btn-small {
    min-height: 42px;
    padding: 9px 15px;
    background: var(--navy);
}

.btn.full {
    width: 100%;
}

.section {
    padding: 92px 0;
}

.section-tight {
    padding: 64px 0;
}

.muted {
    background: var(--foam);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading.split {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr minmax(240px, 380px);
    gap: 28px;
    align-items: end;
}

.section-heading.compact {
    margin-bottom: 0;
}

.section-heading p {
    color: var(--ink-soft);
}

.notice-grid,
.course-grid,
.process-grid,
.contact-grid,
.testimonial-grid {
    display: grid;
    gap: 18px;
}

.notice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notice-more {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notice-card,
.course-card,
.process-grid article,
.inquiry-form,
.admin-panel,
.testimonial-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 26px rgba(6, 40, 59, 0.06);
}

.testimonial-card {
    margin: 0;
    padding: 22px;
}

.testimonial-card p {
    margin: 10px 0;
    color: var(--ink);
}

.testimonial-card cite {
    display: block;
    font-style: normal;
    font-weight: 800;
    color: var(--ink-soft);
}

.testimonial-stars {
    color: var(--coral);
    letter-spacing: 2px;
}

.testimonial-source {
    margin-top: 18px;
    font-weight: 700;
    color: var(--ink-soft);
}

.review-summary-quote {
    margin: 0 auto 28px;
    padding: 0;
    max-width: 720px;
    text-align: center;
}

.review-summary-quote p {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
}

.review-summary-quote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 700;
    color: var(--ink-soft);
}

.notice-card,
.course-card {
    position: relative;
}

.notice-card {
    padding: 24px;
}

.notice-card[hidden] {
    display: none;
}

.notice-image-frame {
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    height: 180px;
    margin: -6px 0 18px;
    border-radius: 8px;
    background: var(--foam);
}

.notice-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.notice-image-frame--logo .notice-image {
    padding: 20px;
    box-sizing: border-box;
}

.pill {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--navy);
    background: #dff6f8;
    font-size: 12px;
    font-weight: 800;
}

.text-link {
    color: var(--ocean);
    font-weight: 800;
    text-decoration: none;
}

.feature-strip,
.service-layout,
.inquiry-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 34px;
    align-items: center;
}

.feature-strip {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
}

.feature-strip img,
.service-layout img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 8px;
}

.feature-strip p {
    color: rgba(255, 255, 255, 0.78);
}

.course-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.course-more {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.course-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    overflow: hidden;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(6, 40, 59, 0.12);
}

.course-card[hidden] {
    display: none;
}

.course-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.course-image-frame,
.course-detail-image-frame {
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;
    background: var(--foam);
}

.course-image-frame {
    width: calc(100% + 44px);
    aspect-ratio: 16 / 9;
    margin: -22px -22px 18px;
    border-radius: 8px 8px 0 0;
}

.course-detail-image-frame {
    width: min(100%, 920px);
    aspect-ratio: 16 / 9;
    margin: 0 0 18px;
    border-radius: 8px;
}

.frame-blur {
    position: absolute;
    inset: -14%;
    z-index: 0;
    width: calc(100% + 28%);
    height: calc(100% + 28%);
    max-width: none;
    object-fit: cover;
    filter: blur(28px) saturate(1.35) brightness(0.92);
    transform: scale(1.05);
}

.course-image-frame::after,
.course-detail-image-frame::after,
.notice-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0.22));
    backdrop-filter: blur(3px) saturate(1.15);
    -webkit-backdrop-filter: blur(3px) saturate(1.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.course-image,
.course-detail-image {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    background: transparent;
}

.course-summary p,
.course-summary ul,
.course-summary ol,
.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    margin-bottom: 10px;
}

.course-summary ul,
.course-summary ol,
.faq-answer ul,
.faq-answer ol {
    padding-left: 20px;
}

.course-summary a,
.faq-answer a {
    color: var(--ocean);
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.course-summary h2,
.course-summary h3,
.faq-answer h2,
.faq-answer h3 {
    margin: 14px 0 8px;
    font-size: 18px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.course-meta span + span::before {
    content: '·';
    margin-right: 4px;
    color: var(--line);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.page-share-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-share-row .eyebrow {
    margin-bottom: 0;
}

.share-widget {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.share-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}

.share-trigger:hover,
.share-trigger[aria-expanded="true"] {
    border-color: var(--ocean);
    background: var(--foam);
}

.share-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    min-width: 200px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 18px 44px rgba(6, 40, 59, 0.16);
}

.share-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.share-menu-item svg {
    flex-shrink: 0;
}

.share-menu-item:hover {
    background: var(--foam);
    color: var(--ocean);
}

.share-menu-item.is-copied {
    color: var(--ocean);
}

.main-nav .share-widget--icon {
    display: inline-flex;
    align-items: center;
    align-self: center;
    margin-top: auto;
    margin-bottom: auto;
    line-height: 0;
}

.share-widget--icon .share-trigger {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    vertical-align: middle;
}

.share-widget--icon .share-menu {
    right: 0;
    left: auto;
}

@media (max-width: 480px) {
    .page-share-row {
        flex-wrap: wrap;
    }
}

.course-intro-card {
    margin: 0 0 32px;
    padding: 26px 28px 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 26px rgba(6, 40, 59, 0.06);
}

.course-intro-card .course-summary {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--ink-soft);
    line-height: 1.6;
}

.course-intro-card .course-summary > *:last-child {
    margin-bottom: 0;
}

.course-intro-card .tag-list {
    margin: 0 0 22px;
}

.course-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.course-intro-card .tag-list:last-child,
.course-intro-card .course-summary:last-child {
    margin-bottom: 0;
}

.course-price-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
}

.course-price-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--coral);
}

.tag-list li {
    padding: 4px 8px;
    border-radius: 999px;
    color: #077783;
    background: #edf8fa;
    font-size: 12px;
    font-weight: 700;
}

.faq-list {
    margin-top: auto;
}

details {
    border-top: 1px solid var(--line);
}

summary {
    cursor: pointer;
    padding: 12px 0;
    font-weight: 800;
}

details p {
    margin-bottom: 14px;
    color: var(--ink-soft);
}

.faq-toggle {
    display: block;
    width: 100%;
    padding: 10px 0 0;
    border: 0;
    background: none;
    color: var(--ocean);
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.faq-toggle:hover {
    text-decoration: underline;
}

.course-card .btn {
    margin-top: 16px;
}

.admin-card-edit {
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    gap: 6px;
    margin-top: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--white);
    background: var(--coral);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-card-edit::before {
    content: "✎";
    font-size: 12px;
}

.admin-card-edit:hover {
    background: var(--navy);
}

.notice-card .admin-card-edit {
    float: right;
}

.process-grid {
    grid-template-columns: 1.05fr repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.process-grid article {
    padding: 24px;
}

.external-frame-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 26px rgba(6, 40, 59, 0.06);
}

.external-frame-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: absolute;
    inset: 0;
    background: var(--white);
    color: var(--ink-soft);
    font-weight: 700;
}

.external-frame-loader[hidden] {
    display: none;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(8, 125, 145, 0.18);
    border-top-color: var(--ocean);
    border-radius: 50%;
    animation: spinner-spin 700ms linear infinite;
}

@keyframes spinner-spin {
    to {
        transform: rotate(360deg);
    }
}

.admin-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 40, 59, 0.32);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
}

.admin-loading-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.admin-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 40px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 22px 50px rgba(6, 40, 59, 0.28);
}

.admin-loading-box .spinner {
    width: 36px;
    height: 36px;
    border-width: 4px;
}

.admin-loading-text {
    margin: 0;
    max-width: 320px;
    color: var(--ink);
    font-weight: 800;
    text-align: center;
}

.external-frame-placeholder {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 24px;
    background: var(--foam);
}

.external-frame-placeholder[hidden] {
    display: none;
}

.external-frame-placeholder h3 {
    margin-bottom: 6px;
}

.external-frame-placeholder p {
    margin-bottom: 0;
    color: var(--ink-soft);
}

.external-frame-status {
    margin-top: 10px;
    font-weight: 700;
    color: var(--ocean);
}

.external-frame {
    display: none;
    width: 100%;
    min-height: 720px;
    border: 0;
    background: var(--white);
}

.external-frame-panel.is-loaded .external-frame {
    display: block;
}

.contact-anfahrt {
    grid-column: 1 / -1;
    margin-top: 8px;
}

.contact-anfahrt .external-frame-panel {
    margin-top: 12px;
}

.external-frame--compact {
    min-height: 340px;
}

.step {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--coral);
    font-size: 28px;
    font-weight: 900;
}

.service-layout {
    grid-template-columns: minmax(420px, 0.92fr) minmax(0, 1fr);
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 26px 0;
}

.trust-badge {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    align-items: center;
    margin: 0 0 26px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.trust-badge img {
    width: 86px;
    height: 86px;
    object-fit: contain;
}

.trust-badge span {
    color: var(--ink-soft);
    font-weight: 800;
    line-height: 1.35;
}

.service-list span {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--foam);
    font-weight: 800;
}

.inquiry-section {
    color: var(--white);
    background: var(--navy);
}

.inquiry-section .eyebrow {
    color: #7ce4ec;
}

.inquiry-section p {
    color: rgba(255, 255, 255, 0.8);
}

.privacy-note {
    margin-top: 28px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
}

.inquiry-form {
    padding: 26px;
    color: var(--ink);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cddde4;
    border-radius: 8px;
    padding: 12px 13px;
    color: var(--ink);
    background: var(--white);
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    right: 7px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    color: var(--ink-soft);
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle[aria-pressed="true"] {
    color: var(--ocean);
    background: var(--foam);
}

.password-toggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

textarea {
    resize: vertical;
}

small,
.field-error {
    color: #b53625;
    font-weight: 700;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.check-row input {
    width: 18px;
    min-width: 18px;
    margin-top: 4px;
}

.hp-field {
    position: absolute;
    left: -9999px;
}

.form-message {
    margin-bottom: 16px;
    padding: 13px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.form-message.success {
    color: #0f5132;
    background: #d9f4e7;
}

.form-message.info {
    color: #08465c;
    background: #dff6f8;
}

.form-message.error {
    color: #842029;
    background: #f8d7da;
}

.contact-section {
    background: var(--foam);
}

.contact-grid {
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
}

.contact-grid a {
    color: var(--ocean);
    font-weight: 800;
    text-decoration: none;
}

.shop-note {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    border: 1px solid rgba(18, 183, 199, 0.36);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 26px rgba(6, 40, 59, 0.06);
}

.shop-note h3 {
    margin-bottom: 10px;
}

.shop-note-content p,
.shop-note-content ul,
.shop-note-content ol {
    margin-bottom: 12px;
}

.shop-note-content p:last-child,
.shop-note-content ul:last-child,
.shop-note-content ol:last-child {
    margin-bottom: 0;
}

.editable-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-edit-note {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px dashed var(--aqua);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(18, 183, 199, 0.08);
    font-size: 14px;
}

.admin-edit-note.compact {
    margin-top: 8px;
}

.admin-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    white-space: nowrap;
    color: var(--white);
    background: var(--coral);
    font-weight: 900;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-edit-link::before {
    content: "✎";
    display: inline-flex;
    align-items: center;
    color: var(--white);
    font-size: 12px;
}

.admin-edit-link:hover {
    background: var(--navy);
}

.site-footer {
    padding: 28px 0;
    color: rgba(255, 255, 255, 0.76);
    background: #061925;
}

.site-footer .layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    padding: 7px 9px;
    border-radius: 8px;
    background: var(--white);
}

.footer-brand img {
    width: 150px;
    height: auto;
}

.footer-copy {
    display: grid;
    gap: 4px;
}

.footer-copy p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
}

.footer-links a {
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--aqua);
}

.footer-ai-note {
    margin: 14px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.4);
}

.legal-content {
    max-width: 860px;
}

.legal-content h2,
.legal-content h3 {
    margin-top: 28px;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--ocean);
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.legal-content a.btn {
    color: var(--white);
    text-decoration: none;
}

.admin-body {
    min-height: 100vh;
    background: var(--foam);
}

.admin-body label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
}

.admin-body input,
.admin-body select,
.admin-body textarea {
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
}

.admin-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 34px 0;
}

.admin-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-header-title h2 {
    margin-bottom: 0;
}

.admin-nav-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    background: var(--foam);
    border-radius: 10px;
    box-shadow: 0 10px 24px -16px rgba(6, 40, 59, 0.5);
}

.admin-nav-brand {
    flex: none;
    display: flex;
    align-items: center;
}

.admin-nav-brand img {
    width: 88px;
    height: auto;
    display: block;
}

.admin-nav-rows {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-nav a,
.admin-nav-active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 7px;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.admin-nav a {
    color: var(--white);
    background: var(--navy);
}

.admin-nav-active {
    color: var(--navy);
    background: var(--aqua);
    cursor: default;
}

.admin-nav a.admin-nav-sensitive {
    background: #7a8790;
}

.admin-nav-active.admin-nav-sensitive {
    background: #c3ccd2;
    color: var(--navy);
}

.admin-nav-actions {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav-website,
.admin-nav-logout {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--navy);
    color: var(--white);
}

.admin-nav-website:hover {
    background: var(--ocean);
}

.admin-nav-logout {
    background: #7a8790;
}

.admin-nav-logout:hover {
    background: #5f6a72;
}

.admin-nav-website svg,
.admin-nav-logout svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-panel {
    padding: 24px;
    margin-bottom: 18px;
}

.admin-meta-line {
    margin: -4px 0 16px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.news-editor-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-heading-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 14px;
}

.admin-heading-row h2 {
    margin-bottom: 0;
}

.admin-heading-tag {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--foam);
    color: var(--ocean);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.sortable-list {
    display: grid;
    gap: 10px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}

.sortable-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    cursor: grab;
}

.sortable-item.is-dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.sortable-handle {
    color: var(--ink-soft);
    font-size: 20px;
    line-height: 1;
    user-select: none;
}

.sortable-label {
    flex: 1 1 auto;
    font-weight: 800;
}

.sortable-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.news-topic-list {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 36px);
}

.topic-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.topic-list-header h2 {
    margin-bottom: 0;
}

.topic-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.topic-filter-search {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: 13px;
}

.topic-filter-status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.topic-filter-status button {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--white);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.topic-filter-status button.is-active {
    color: var(--navy);
    background: var(--aqua);
    border-color: var(--aqua);
}

.topic-filter-empty {
    color: var(--ink-soft);
    font-size: 13px;
}

.topic-list {
    display: grid;
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    margin-right: -6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 183, 199, 0.55) transparent;
}

.topic-list::-webkit-scrollbar {
    width: 6px;
}

.topic-list::-webkit-scrollbar-track {
    background: transparent;
}

.topic-list::-webkit-scrollbar-thumb {
    background-color: rgba(18, 183, 199, 0.45);
    border-radius: 999px;
}

.topic-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(18, 183, 199, 0.7);
}

.topic-list-divider {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.topic-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.topic-row[hidden] {
    display: none;
}

.topic-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    background: var(--white);
    text-decoration: none;
}

.topic-item:hover,
.topic-item.is-active {
    border-color: var(--aqua);
    box-shadow: 0 10px 24px rgba(6, 40, 59, 0.08);
}

.topic-item img {
    width: 38px;
    height: 30px;
    border-radius: 5px;
    object-fit: cover;
}

.topic-item.no-image {
    grid-template-columns: 1fr;
}

.topic-item strong,
.topic-item small {
    display: block;
}

.topic-item strong {
    font-size: 13px;
    line-height: 1.25;
}

.topic-item small {
    color: var(--ink-soft);
    font-size: 11px;
}

.topic-item-date {
    opacity: 0.75;
    font-size: 10px;
}

.topic-status-form {
    display: flex;
}

.status-switch {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 3px;
    min-width: 52px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--white);
    cursor: pointer;
}

.status-switch input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.switch-track {
    position: relative;
    width: 32px;
    height: 18px;
    border-radius: 999px;
    background: #c7d3d9;
    transition: background 0.18s ease;
}

.switch-dot {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 2px 6px rgba(6, 40, 59, 0.18);
    transition: transform 0.18s ease;
}

.status-switch.is-on .switch-track {
    background: var(--aqua);
}

.status-switch.is-on .switch-dot {
    transform: translateX(14px);
}

.switch-label {
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.status-switch.is-on .switch-label {
    color: var(--ocean);
}

.status-switch:hover,
.status-switch:focus-within {
    border-color: var(--aqua);
    box-shadow: 0 8px 18px rgba(6, 40, 59, 0.08);
}

.news-edit-panel {
    min-width: 0;
}

.wysiwyg {
    margin-bottom: 14px;
}

.wysiwyg-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid #cddde4;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: var(--foam);
}

.wysiwyg-toolbar button {
    min-width: 38px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    font-weight: 800;
    cursor: pointer;
}

.wysiwyg-toolbar button:hover {
    color: var(--ocean);
    border-color: var(--aqua);
}

.wysiwyg-toolbar button[aria-pressed="true"],
.wysiwyg-toolbar button.is-active {
    color: var(--white);
    border-color: var(--ocean);
    background: var(--ocean);
}

.wysiwyg-editor {
    min-height: 220px;
    padding: 14px;
    border: 1px solid #cddde4;
    border-radius: 0 0 8px 8px;
    background: var(--white);
    outline: none;
}

.wysiwyg-editor:focus {
    border-color: var(--aqua);
    box-shadow: 0 0 0 3px rgba(18, 183, 199, 0.15);
}

.compact-editor {
    min-height: 130px;
}

.wysiwyg-source {
    display: none;
}

.wysiwyg.is-html-mode .wysiwyg-editor {
    display: none;
}

.wysiwyg.is-html-mode .wysiwyg-source {
    display: block;
    width: 100%;
    min-height: 220px;
    padding: 14px;
    border: 1px solid #cddde4;
    border-radius: 0 0 8px 8px;
    background: #081822;
    color: #eaf8fb;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.55;
    resize: vertical;
    outline: none;
}

.wysiwyg.is-html-mode .wysiwyg-source:focus {
    border-color: var(--aqua);
    box-shadow: 0 0 0 3px rgba(18, 183, 199, 0.15);
}

.wysiwyg.is-html-mode .compact-editor + .wysiwyg-source {
    min-height: 130px;
}

.image-manager {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--foam);
}

.image-manager h3 {
    margin-bottom: 14px;
}

.current-image-preview {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
    align-items: center;
    margin: 14px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-soft);
    font-weight: 800;
}

.current-image-preview img {
    width: 160px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    object-fit: cover;
}

.current-image-preview.is-empty {
    grid-template-columns: 1fr;
    min-height: 58px;
    border-style: dashed;
}

.image-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.image-slot {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--foam);
}

.image-slot .current-image-preview {
    margin: 0;
}

.image-slot-actions {
    display: flex;
    gap: 8px;
}

.upload-progress {
    margin-top: 12px;
    color: var(--ink-soft);
    font-weight: 800;
}

.upload-progress.is-active {
    color: var(--ocean);
}

.upload-progress.is-success {
    color: #067647;
}

.upload-progress.is-error {
    color: #b42318;
}

.upload-result-wrap {
    margin-top: 16px;
}

.upload-result-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: var(--white);
}

.upload-result-table th,
.upload-result-table td {
    padding: 10px 9px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.upload-result-table th {
    font-size: 12px;
    text-transform: uppercase;
}

.upload-badge {
    display: inline-flex;
    align-items: center;
    min-width: 92px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.upload-badge.is-ok {
    color: #067647;
    background: #dcfae6;
}

.upload-badge.is-error {
    color: #b42318;
    background: #fee4e2;
}

.upload-badge.is-skipped {
    color: var(--ink-soft);
    background: var(--foam);
}

.upload-badge.is-active,
.upload-badge.is-pending {
    color: var(--ocean);
    background: #edf8fa;
}

.upload-row-ok td {
    background: rgba(220, 250, 230, 0.36);
}

.upload-row-error td {
    background: rgba(254, 228, 226, 0.36);
}

.upload-conflict-dialog {
    width: min(760px, calc(100vw - 32px));
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(6, 40, 59, 0.28);
}

.upload-conflict-dialog::backdrop {
    background: rgba(6, 40, 59, 0.62);
}

.link-editor-modal {
    position: relative;
    width: min(420px, calc(100vw - 32px));
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(6, 40, 59, 0.28);
}

.link-editor-modal::backdrop {
    background: rgba(6, 40, 59, 0.62);
}

.link-editor-modal h3 {
    margin-bottom: 16px;
}

.link-editor-modal .topic-filter-status {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 18px;
}

.link-editor-modal .editor-actions {
    justify-content: flex-end;
}

.upload-conflict-header h3 {
    margin-bottom: 12px;
}

.upload-conflict-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.upload-conflict-grid section {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--foam);
}

.upload-conflict-grid h4,
.upload-conflict-grid strong,
.upload-conflict-grid small {
    display: block;
}

.upload-conflict-grid h4 {
    margin-bottom: 10px;
}

.upload-conflict-grid small {
    color: var(--ink-soft);
}

.upload-conflict-apply {
    margin: 6px 0 18px;
}

/* AI-Assistent: Rechtschreibpruefung & Textoptimierung */

.ai-spell-error {
    text-decoration: underline wavy #c0392b;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    cursor: help;
}

.ai-key-status {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.ai-key-status.ai-key-ok {
    color: #0f5132;
    background: #d9f4e7;
}

.ai-key-status.ai-key-missing {
    color: #842029;
    background: #f8d7da;
}

.ai-model-editor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.ai-model-editor fieldset {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--foam);
}

.ai-model-editor legend {
    padding: 0 8px;
    font-weight: 900;
    color: var(--ink);
}

.ai-field-wrap {
    position: relative;
}

.ai-field-wrap input,
.ai-field-wrap textarea {
    padding-right: 34px;
}

.ai-optimize-field-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    font-size: 13px;
    line-height: 1;
    color: var(--ink-soft);
    opacity: 0.65;
    cursor: pointer;
}

.ai-optimize-field-btn:hover {
    opacity: 1;
    background: var(--foam);
    border-color: var(--ocean);
}

.wysiwyg-toolbar button[data-ai-optimize-trigger] {
    margin-left: auto;
}

.ai-optimize-all-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    color: var(--white);
    background: var(--ocean);
    font-weight: 800;
    box-shadow: 0 14px 34px rgba(6, 40, 59, 0.28);
    cursor: pointer;
}

.ai-optimize-all-btn:hover {
    background: var(--navy);
}

.ai-optimize-all-btn[disabled] {
    opacity: 0.6;
    cursor: wait;
}

.ai-error-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 60;
    max-width: min(480px, calc(100vw - 32px));
    padding: 12px 18px;
    border-radius: 8px;
    color: #842029;
    background: #f8d7da;
    box-shadow: 0 14px 34px rgba(6, 40, 59, 0.2);
    transform: translate(-50%, 16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ai-error-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.ai-optimize-modal {
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 64px);
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(6, 40, 59, 0.28);
}

.ai-optimize-modal::backdrop {
    background: rgba(6, 40, 59, 0.62);
}

.ai-optimize-modal h3 {
    margin-bottom: 16px;
}

.ai-optimize-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 60vh;
    margin-bottom: 18px;
    overflow-y: auto;
}

.ai-optimize-item {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.ai-optimize-item.is-applied {
    opacity: 0.5;
}

.ai-optimize-item h4 {
    margin-bottom: 10px;
}

.ai-optimize-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 12px;
}

.ai-optimize-tag {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ai-optimize-content {
    padding: 10px;
    border-radius: 6px;
    background: var(--foam);
    font-size: 14px;
    line-height: 1.5;
}

.ai-optimize-modal .editor-actions {
    justify-content: flex-end;
}

.ai-optimize-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-fix-list-label {
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
}

.ai-fix-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.ai-fix-item {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--foam);
}

.ai-fix-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.ai-fix-checkbox input[type="checkbox"] {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
}

.ai-suggestion-original {
    color: #842029;
    text-decoration: line-through;
}

.ai-suggestion-arrow {
    color: var(--ink-soft);
}

.ai-suggestion-fix {
    color: #0f5132;
    font-weight: 800;
}

.ai-news-image-modal {
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 64px);
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(6, 40, 59, 0.28);
}

.ai-news-image-modal::backdrop {
    background: rgba(6, 40, 59, 0.62);
}

.ai-news-image-modal label {
    display: grid;
    gap: 8px;
    margin: 16px 0;
    font-weight: 800;
}

.ai-news-image-modal textarea {
    width: 100%;
    min-height: 180px;
    resize: vertical;
}

.ai-news-image-status {
    min-height: 24px;
    margin: 10px 0;
    color: var(--ink-soft);
    font-weight: 800;
}

.ai-news-image-status.is-error {
    color: #842029;
}

.ai-news-image-spinner {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--foam);
    color: var(--ink-soft);
    font-weight: 800;
}

.ai-news-image-spinner[hidden] {
    display: none !important;
}

.ai-news-image-spinner .spinner {
    width: 22px;
    height: 22px;
    border-width: 3px;
}

.ai-news-image-timer {
    min-width: 88px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.ai-news-image-spinner button {
    margin-left: 0;
}

.ai-news-image-spinner button:first-of-type {
    margin-left: auto;
}

.ai-news-image-preview {
    margin: 14px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--foam);
}

.ai-news-image-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    object-fit: cover;
    background: var(--white);
}

.ai-news-image-modal .editor-actions {
    justify-content: flex-end;
}

.ai-news-image-accept[hidden] {
    display: none !important;
}

.ai-news-prompt-overlay {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(6, 40, 59, 0.62);
}

.ai-news-prompt-overlay[hidden] {
    display: none !important;
}

.ai-news-prompt-box {
    width: min(820px, calc(100vw - 48px));
    max-height: min(760px, calc(100vh - 48px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 28px 70px rgba(6, 40, 59, 0.32);
}

.ai-news-prompt-box pre {
    min-height: 240px;
    max-height: 560px;
    margin: 0;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--foam);
    color: var(--ink);
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.5;
}

.gallery-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.gallery-header h4 {
    margin-bottom: 0;
}

.gallery-sort-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
}

.gallery-sort-control select {
    min-height: 38px;
    min-width: 170px;
    padding: 7px 36px 7px 10px;
    font-size: 14px;
}

.gallery-picker {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.gallery-category {
    display: grid;
    gap: 8px;
}

.gallery-category > strong {
    font-size: 13px;
    text-transform: uppercase;
}

.gallery-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-gutter: stable;
}

.gallery-strip button {
    flex: 0 0 108px;
    scroll-snap-align: start;
}

.gallery-picker button,
.gallery-modal-items button {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.gallery-picker button:hover,
.gallery-picker button.is-selected,
.gallery-modal-items button:hover,
.gallery-modal-items button.is-selected {
    border-color: var(--aqua);
}

.gallery-picker img,
.gallery-modal-items img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    object-fit: cover;
    transition: transform 0.22s ease, filter 0.22s ease;
    transform-origin: center;
}

.gallery-picker button:hover img,
.gallery-picker button:focus-visible img,
.gallery-modal-items button:hover img,
.gallery-modal-items button:focus-visible img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.1);
}

.gallery-modal {
    position: relative;
    width: min(1080px, calc(100vw - 32px));
    max-height: min(820px, calc(100vh - 32px));
    overflow: auto;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(6, 40, 59, 0.28);
}

.modal-close-x {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink-soft);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(6, 40, 59, 0.18);
}

.modal-close-x:hover {
    background: var(--navy);
    color: var(--white);
}

.gallery-modal::backdrop {
    background: rgba(6, 40, 59, 0.62);
}

.editor-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.preview-modal {
    position: relative;
    width: min(1200px, calc(100vw - 32px));
    height: min(900px, calc(100vh - 32px));
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(6, 40, 59, 0.28);
}

.preview-modal::backdrop {
    background: rgba(6, 40, 59, 0.62);
}

.preview-modal:not([open]) {
    display: none;
}

.preview-modal-frame {
    flex: 1 1 auto;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.preview-banner {
    padding: 10px 18px;
    background: var(--coral);
    color: var(--white);
    font-weight: 800;
    text-align: center;
}

.gallery-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-right: 40px;
}

.gallery-modal-header h3 {
    margin-bottom: 0;
}

.gallery-modal-grid {
    display: grid;
    gap: 24px;
}

.gallery-modal-section h4 {
    margin-bottom: 12px;
}

.gallery-modal-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.gallery-modal-items button {
    display: grid;
    gap: 10px;
    padding: 10px;
    border-color: var(--line);
    background: var(--white);
    text-align: left;
}

.gallery-modal-items button[hidden] {
    display: none;
}

.gallery-modal-items span,
.gallery-modal-items small,
.gallery-modal-items strong {
    display: block;
}

.gallery-modal-items small {
    color: var(--ink-soft);
    font-size: 12px;
}

.gallery-hover-preview {
    position: fixed;
    z-index: 1000;
    width: min(320px, calc(100vw - 24px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 22px 54px rgba(6, 40, 59, 0.22);
    opacity: 0;
    pointer-events: auto;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.gallery-hover-preview[hidden] {
    display: none;
}

.gallery-hover-preview.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-hover-preview::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 18px;
}

.gallery-hover-preview.is-right::before {
    left: -18px;
}

.gallery-hover-preview.is-left::before {
    right: -18px;
}

.gallery-hover-preview img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    object-fit: cover;
}

.gallery-hover-preview-body {
    display: grid;
    gap: 5px;
    padding-top: 10px;
}

.gallery-hover-preview-body strong,
.gallery-hover-preview-body small {
    display: block;
}

.gallery-hover-preview-body small {
    color: var(--ink-soft);
    font-size: 12px;
}

.gallery-hover-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.gallery-area-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.gallery-area {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.gallery-area summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    font-weight: 800;
}

.gallery-area summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: var(--white);
    background: var(--navy);
}

.gallery-area[open] summary::after {
    content: "-";
}

.gallery-area summary strong,
.gallery-area summary small {
    display: block;
}

.gallery-area summary small {
    color: var(--ink-soft);
    font-weight: 700;
}

.gallery-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    padding: 0 16px 16px;
}

.gallery-manage-card[hidden] {
    display: none;
}

.gallery-area[hidden] {
    display: none;
}

.gallery-manage-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--foam);
}

.gallery-manage-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    object-fit: cover;
    background: var(--white);
}

.gallery-image-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 6px;
}

.gallery-image-trigger img {
    transition: transform 160ms ease;
}

.gallery-image-trigger:hover img,
.gallery-image-trigger:focus-visible img {
    transform: scale(1.05);
}

.image-lightbox {
    position: relative;
    width: min(1200px, calc(100vw - 32px));
    height: min(900px, calc(100vh - 32px));
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(6, 40, 59, 0.28);
}

.image-lightbox::backdrop {
    background: rgba(6, 40, 59, 0.72);
}

.image-lightbox:not([open]) {
    display: none;
}

.image-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 56px 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--foam);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.image-lightbox-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.image-lightbox-controls button:not(.btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.image-lightbox-controls button:not(.btn):hover {
    border-color: var(--aqua);
    color: var(--ocean);
}

.image-lightbox-controls span {
    min-width: 48px;
    text-align: center;
    color: var(--ink-soft);
    font-weight: 800;
}

.image-lightbox-viewport {
    flex: 1 1 auto;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
}

.image-lightbox-viewport img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 120ms ease;
}

.gallery-manage-card h3 {
    margin-bottom: 4px;
    overflow-wrap: anywhere;
    font-size: 18px;
}

.gallery-manage-card p {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.usage-tooltip-wrap {
    position: relative;
    display: block;
}

.usage-tooltip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    z-index: 20;
    width: max-content;
    max-width: 260px;
    padding: 10px 12px;
    border: 1px solid rgba(189, 40, 28, 0.28);
    border-radius: 8px;
    color: #8f1f16;
    background: #fff4f1;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease;
    box-shadow: 0 12px 30px rgba(6, 40, 59, 0.18);
}

.usage-tooltip strong {
    display: block;
    margin-bottom: 6px;
}

.usage-tooltip ul {
    margin: 0;
    padding-left: 18px;
}

.usage-tooltip-wrap:hover .usage-tooltip,
.usage-tooltip-wrap:focus-within .usage-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.link-edit-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.faq-editor {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.faq-editor-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.faq-editor-header h3 {
    margin-bottom: 0;
}

.faq-edit-item {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--foam);
}

.faq-edit-item textarea {
    min-height: 86px;
}

.hero-fact-editor {
    display: grid;
    gap: 14px;
    margin: 16px 0;
}

.hero-fact-editor fieldset {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--foam);
}

.hero-fact-editor legend {
    padding: 0 8px;
    font-weight: 900;
    color: var(--ink);
}

.listing-intro {
    padding-bottom: 52px;
    background: linear-gradient(180deg, #f4fcfd 0%, #ffffff 100%);
}

.listing-intro .section-heading {
    max-width: 860px;
}

.listing-grid .course-card-actions,
.listing-grid .notice-card > .btn {
    margin-top: auto;
}

.listing-grid .notice-card {
    display: flex;
    flex-direction: column;
}

.listing-grid .course-card h2,
.listing-grid .notice-card h2 {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.22;
}

.course-list-price {
    margin-top: auto;
    color: var(--ocean);
    font-size: 18px;
}

.hero-appearance-help {
    margin: 16px 0;
}

.hero-appearance-help ul {
    margin: 10px 0;
    padding-left: 22px;
}

.hero-appearance-help li + li {
    margin-top: 6px;
}

.hero-appearance-help p:last-child {
    margin-bottom: 0;
}

.admin-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table th,
.admin-table td {
    padding: 11px 9px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    font-size: 13px;
    text-transform: uppercase;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.log-table {
    min-width: 860px;
}

.db-table {
    table-layout: fixed;
    font-size: 13px;
}

.db-table th,
.db-table td {
    padding: 5px 7px;
    width: 160px;
    overflow-wrap: break-word;
}

.db-table tbody tr:nth-child(even) {
    background: var(--foam);
}

.db-cell-input {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 3px 5px;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink);
    background: transparent;
    resize: vertical;
}

.db-cell-input:hover,
.db-cell-input:focus {
    border-color: #cddde4;
    background: var(--white);
}

.db-cell-input.is-dirty {
    border-color: #f0c36d;
    background: #fff6e0;
}

.admin-body input.is-dirty,
.admin-body select.is-dirty,
.admin-body textarea.is-dirty,
.admin-body .wysiwyg-editor.is-dirty {
    border-color: #f0c36d;
    background: #fff6e0;
}

textarea.db-cell-input {
    min-height: 38px;
    max-height: 220px;
    overflow-y: auto;
}

.db-cell-masked {
    color: var(--ink-soft);
    font-style: italic;
    font-size: 13px;
}

.db-table th:last-child,
.db-table td.db-row-actions {
    position: sticky;
    right: 0;
    z-index: 3;
    width: 84px;
    background: var(--white);
    box-shadow: -6px 0 6px -6px rgba(6, 40, 59, 0.2);
}

.db-table tbody tr:nth-child(even) td.db-row-actions {
    background: var(--foam);
}

.db-row-actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-icon-primary {
    color: var(--white);
    background: var(--ocean);
}

.btn-icon-primary:hover {
    background: var(--navy);
}

.btn-icon-secondary {
    color: var(--ink);
    background: var(--foam);
}

.btn-icon-secondary:hover {
    background: #e3edf0;
}

.db-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.db-search-form {
    position: sticky;
    top: 8px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 8px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.db-search-form input[type="search"] {
    flex: 1 1 240px;
    min-width: 200px;
    margin: 0;
}

.db-autosave-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 700;
}

.db-autosave-toggle input {
    width: auto;
    padding: 0;
    border: 0;
    background: none;
    accent-color: var(--ocean);
}

.db-pagination {
    margin-top: 16px;
}

.db-insert-form {
    margin-top: 12px;
}

.log-details {
    display: grid;
    grid-template-columns: minmax(130px, max-content) minmax(220px, 1fr);
    gap: 6px 14px;
    margin: 0;
}

.log-details dt {
    font-weight: 800;
    color: var(--muted);
}

.log-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-form select {
    min-width: 130px;
}

.local-seo-section {
    padding-top: 52px;
    padding-bottom: 52px;
    background: linear-gradient(180deg, #ffffff 0%, #f2fbfd 100%);
}

.local-seo-panel {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
    gap: 32px;
    align-items: start;
    padding: 26px;
    border: 1px solid rgba(18, 183, 199, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 40px rgba(6, 40, 59, 0.08);
}

.local-seo-content {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.75;
}

.local-seo-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.local-seo-images img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(6, 40, 59, 0.1);
}

.local-seo-images img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

.local-seo-content p + p {
    margin-top: 10px;
}

.local-seo-content h2,
.local-seo-content h3 {
    margin-top: 26px;
    color: var(--ink);
}

.local-seo-content h2:first-child,
.local-seo-content h3:first-child {
    margin-top: 0;
}

.check-list,
.local-seo-content ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li,
.local-seo-content ul li {
    position: relative;
    padding-left: 24px;
}

.check-list li::before,
.local-seo-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--aqua);
    font-weight: 900;
}

@media (max-width: 620px) {
    .check-list,
    .local-seo-content ul {
        grid-template-columns: 1fr;
    }

    .local-seo-images {
        grid-template-columns: 1fr;
    }

    .local-seo-images img:first-child {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 1080px) {
    .course-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-grid,
    .contact-grid,
    .local-seo-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-grid .section-heading {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .site-header {
        padding: 12px 18px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 18px;
        right: 18px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 8px;
        background: var(--white);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 10px 4px;
        color: var(--ink);
    }

    .main-nav .share-widget--icon {
        align-self: flex-start;
        margin-top: 4px;
    }

    .hero {
        min-height: 720px;
    }

    .hero-call-button {
        display: inline-flex;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(3, 21, 34, 0.95), rgba(3, 21, 34, 0.78) 48%, rgba(3, 21, 34, 0.42)),
            linear-gradient(0deg, rgba(3, 21, 34, 0.5), transparent 38%);
    }

    h1 {
        font-size: 42px;
    }

    .news-detail-title {
        font-size: 30px;
    }

    h2 {
        font-size: 31px;
    }

    .section {
        padding: 68px 0;
    }

    .section-heading.split,
    .feature-strip,
    .service-layout,
    .inquiry-layout,
    .local-seo-panel,
    .admin-grid,
    .news-editor-layout {
        grid-template-columns: 1fr;
    }

    .local-seo-images img:nth-child(n+4) {
        display: none;
    }

    .news-topic-list {
        position: static;
    }

    .feature-strip img,
    .service-layout img {
        height: 300px;
    }
}

@media (max-width: 620px) {
    .layout,
    .admin-shell {
        width: min(100% - 28px, 1120px);
    }

    .brand-logo {
        width: 104px;
    }

    .brand small {
        display: none;
    }

    .hero {
        min-height: 680px;
    }

    .hero-content {
        padding-top: 74px;
    }

    h1 {
        font-size: 34px;
    }

    .news-detail-title {
        font-size: 26px;
    }

    h2 {
        font-size: 27px;
    }

    .hero-copy {
        font-size: 17px;
    }

    .notice-grid,
    .course-grid,
    .process-grid,
    .contact-grid,
    .form-grid,
    .service-list,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .topic-row {
        grid-template-columns: 1fr;
    }

    .external-frame-placeholder {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .shop-note {
        grid-template-columns: 1fr;
    }

    .status-switch {
        grid-template-columns: auto 1fr;
        justify-items: start;
        min-width: 0;
    }

    .site-footer .layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-nav-bar {
        flex-wrap: wrap;
    }

    .admin-nav-rows {
        order: 3;
        flex-basis: 100%;
    }

    .admin-nav {
        justify-content: flex-start;
    }
}


/* Additions for the dynamic news/startpage markup introduced after the original stylesheet. */
.hero-section {
    position: relative;
    min-height: 760px;
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--white);
}

.hero-section .hero-bg,
.hero-section .hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-section .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
}

.hero-facts {
    padding: 0;
    list-style: none;
}

.hero-facts li {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 34px;
    align-items: center;
}

.two-column.compact {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.rich-text > :first-child {
    margin-top: 0;
}

.rich-text > :last-child {
    margin-bottom: 0;
}

.image-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.image-stack img,
.wide-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.image-stack img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 8;
}

.news-board {
    display: grid;
    gap: 28px;
}

.news-lane {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.lane-heading {
    position: sticky;
    top: 96px;
}

.lane-heading h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.lane-heading p:last-child {
    margin-bottom: 0;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.news-card,
.notice-panel,
.contact-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 26px rgba(6, 40, 59, 0.06);
}

.news-card {
    overflow: hidden;
}

.news-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--foam);
}

.news-card-image img,
.course-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body,
.course-card-body,
.notice-panel,
.contact-box {
    padding: 22px;
}

.news-card h3,
.course-card h3,
.notice-panel h3,
.contact-box h3 {
    margin-top: 0;
}

.news-card h3 a,
.course-card h3 a {
    text-decoration: none;
}

.course-card > img {
    height: 150px;
    margin: -22px -22px 18px;
    width: calc(100% + 44px);
    max-width: none;
}

.course-card-body {
    display: grid;
    gap: 10px;
    padding: 0;
}

.card-actions,
.center-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.center-actions {
    justify-content: center;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.step-grid article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 26px rgba(6, 40, 59, 0.06);
}

.step-grid span {
    display: inline-grid;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: var(--ocean);
    font-weight: 900;
}

.notice-band {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 26px;
    align-items: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-left: 6px solid var(--aqua);
    border-radius: 8px;
    background: var(--white);
}

.contact-box {
    margin-top: 24px;
}

@media (max-width: 1080px) {
    .news-card-grid,
    .step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-lane,
    .two-column,
    .notice-band {
        grid-template-columns: 1fr;
    }

    .lane-heading {
        position: static;
    }
}

@media (max-width: 620px) {
    .news-card-grid,
    .step-grid,
    .image-stack {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: 680px;
    }

    .card-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

.course-ccard-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
    gap: 22px;
    align-items: center;
    margin: 18px 0 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--foam);
}


.course-ccard-panel h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.course-ccard-panel p:last-child {
    margin-bottom: 0;
}

.course-ccard-image-frame {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 26px rgba(6, 40, 59, 0.08);
}

.course-ccard-image-frame img {
    width: 100%;
    height: auto;
}

@media (max-width: 620px) {
    .course-ccard-panel {
        grid-template-columns: 1fr;
    }
}
