/* Public site: sea photo behind floating panels, readable course cards. */

html {
    scroll-behavior: smooth;
    font-size: calc((15px + 0.390625vw) * 0.8);
    --content-max: 72rem;
    --panel-max: 86.4rem;
    --panel-gutter: 0.7rem;
    --panel-inset-min: 1.5rem;
}

html,
body,
button,
input,
select,
textarea,
.button {
    font-family: Raleway, sans-serif;
    font-weight: 300;
}

.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border-radius: 8px !important;
}

body,
input,
select,
textarea {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 300;
    color: #2a3a42;
}

h1, h2, h3, h4, h5, h6,
p, li, dt, dd, label, legend,
blockquote, figcaption, summary,
.site-nav a {
    font-family: Raleway, sans-serif;
}

h1 {
    font-weight: 100;
}

h2, h3 {
    font-weight: 300;
}

h4, h5, h6,
b, strong,
dt, label {
    font-weight: 600;
}

code, kbd, pre, samp {
    font-family: Raleway, sans-serif;
}

.page-home {
    background-color: #3a5c70;
}

.page-home::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: var(--sea-image);
    background-size: cover;
    background-position: center 55%;
    background-repeat: no-repeat;
}

.inner {
    max-width: var(--content-max) !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

article.wrapper,
section.wrapper {
    width: calc(100% - (2 * var(--panel-gutter))) !important;
    max-width: var(--panel-max) !important;
    box-sizing: border-box;
    padding: 3.2rem var(--panel-inset-min) !important;
    margin: 2.4rem auto 0 !important;
    overflow: visible;
    background-color: rgba(247, 250, 252, 0.9);
    border-radius: 25px;
}

article.wrapper.style1,
section.wrapper.style1 {
    background-color: rgba(65, 123, 157, 0.88);
}

@media screen and (max-width: 480px) {
    article.wrapper,
    article.wrapper article,
    section.wrapper,
    section.wrapper article {
        text-align: left;
    }

    article.wrapper,
    section.wrapper {
        margin: 1.25rem auto 0 !important;
        padding: 2.4rem var(--panel-inset-min) !important;
        border-radius: 18px;
    }
}

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

.panel-photo {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(36, 52, 60, 0.08);
}

.panel-photo img {
    display: block;
    width: 100%;
    height: 14rem;
    object-fit: contain;
    object-position: center;
    opacity: 0.4;
}

.panel-intro {
    display: grid;
    gap: 1.25rem 1.75rem;
    align-items: start;
    margin: 0 0 1.5rem;
}

.panel-intro h2 {
    margin-top: 0;
}

.panel-aside {
    margin: 0 auto;
    width: min(100%, 14rem);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 252, 247, 0.55);
}

.panel-aside img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.55;
}

#kurse.wrapper.style1 .panel-photo {
    background: rgba(255, 255, 255, 0.08);
}

@media screen and (min-width: 720px) {
    .panel-intro {
        grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
        align-items: start;
    }

    .panel-photo img {
        height: 16rem;
    }

    .panel-aside {
        width: 16rem;
    }
}

.decorator {
    display: none;
}

h1, h2, h3, h4 {
    line-height: 1.25;
    text-wrap: balance;
}

h2 {
    font-size: 1.85rem;
    font-weight: 300;
    margin: 0 0 0.7em;
}

/* Overlay nav so the photo remains visible at the top */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10001;
    height: auto;
    line-height: 1.3;
    text-align: left;
    background: linear-gradient(to bottom, rgba(20, 40, 55, 0.35), transparent);
    color: #fff;
}

.site-header-inner {
    max-width: var(--panel-max) !important;
    width: calc(100% - (2 * var(--panel-gutter))) !important;
    margin: 0 auto;
    padding: 1.2rem var(--panel-inset-min) 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem 0.2rem;
    font-family: Raleway, Arial, Helvetica, sans-serif;
    font-weight: 300;
}

.site-header input.nav-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
    pointer-events: none;
}

.site-header input.nav-toggle + label.nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.35rem 0.2rem;
    border: 0;
    background: none;
}

.site-header input.nav-toggle + label.nav-toggle-label:before {
    content: none;
    display: none;
}

.site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.1rem;
}

.site-nav a {
    display: block;
    color: #fff !important;
    background: none !important;
    padding: 0.55rem 0 !important;
    text-decoration: none;
    font-family: Raleway, Arial, Helvetica, sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.nav-toggle:checked ~ .site-nav {
    display: flex;
}

@media screen and (max-width: 719px) {
    .site-header {
        position: fixed;
        background: none;
        pointer-events: none;
        padding-top: env(safe-area-inset-top, 0);
    }

    .site-header-inner {
        pointer-events: none;
    }

    .site-header input.nav-toggle + label.nav-toggle-label {
        pointer-events: auto;
        color: rgba(255, 255, 255, 0.62);
        background: rgba(65, 123, 157, 0.22);
        border-radius: 8px;
        padding: 0.5rem 0.6rem;
        min-width: 2.4rem;
        min-height: 2.4rem;
        font-size: 1.1rem;
        box-shadow: none;
    }

    .site-header:has(.nav-toggle:checked),
    .site-header:has(.nav-toggle:checked) .site-header-inner,
    .nav-toggle:checked ~ .site-nav,
    .nav-toggle:checked ~ .site-nav a {
        pointer-events: auto;
    }

    .nav-toggle:checked ~ .site-nav {
        background: rgba(65, 123, 157, 0.92);
        border-radius: 12px;
        padding: 0.35rem 0.45rem;
        margin-top: 0.4rem;
        box-shadow: none;
    }

    .nav-toggle:checked ~ .site-nav a {
        display: flex !important;
        align-items: center;
        min-height: 2.85rem;
        padding: 0.75rem 0.9rem !important;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08) !important;
    }
}

@media screen and (min-width: 720px) {
    .site-header input.nav-toggle,
    .site-header input.nav-toggle + label.nav-toggle-label {
        display: none;
    }

    .site-nav {
        display: flex;
        flex-direction: row;
        width: auto;
        gap: 0.15rem;
    }

    .site-nav a {
        padding: 0.35rem 0.85rem !important;
        opacity: 0.92;
    }

    .site-nav a:hover {
        opacity: 1;
    }
}

/* Hero sits on the sea photo and fills the first screen */
#banner {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    box-sizing: border-box;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none !important;
    background-attachment: scroll;
    text-align: center;
}

#banner .hero-inner {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 2.4rem var(--panel-inset-min) !important;
    background-color: rgba(65, 123, 157, 0.37);
    border-radius: 0;
    display: flex;
    justify-content: center;
    text-align: center;
}

#banner .hero-inner .inner {
    max-width: var(--content-max) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    background: none;
    border-radius: 0;
    text-align: center;
}

#banner .hero-inner header {
    margin: 0 auto;
    text-align: center;
}

#banner h1 {
    font-size: clamp(2.1rem, 4.8vw, 3.4rem);
    font-weight: 100;
    letter-spacing: 0.01em;
    line-height: 1.12;
    color: #fff;
    margin: 0 0 0.35em;
    text-align: center;
}

#banner .hero-lead {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.15rem;
    font-weight: 300;
    margin: 0;
    text-align: center;
}

#banner .hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.4rem;
}

#banner .hero-row .button {
    width: auto !important;
    padding: 0 1.5em !important;
}

@media screen and (max-width: 736px) {
    #banner .hero-inner {
        padding: 2rem var(--panel-inset-min) !important;
        border-radius: 0;
    }
}

@media screen and (min-width: 800px) {
    #banner .hero-inner {
        justify-content: flex-start;
        padding-left: 10vw !important;
        padding-right: 22vw !important;
    }

    #banner .hero-inner .inner {
        margin-left: 0 !important;
        margin-right: auto !important;
        text-align: left;
    }

    #banner .hero-row {
        justify-content: flex-start;
    }

    #banner h1,
    #banner .hero-lead,
    #banner .hero-inner header {
        text-align: left;
    }
}

/* Jump boxes */

#boxes .flex.flex-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

#boxes .flex.flex-3 article {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.4rem 0.5rem;
    margin: 0;
}

#boxes .flex.flex-3 article:before {
    display: none;
}

#boxes .flex.flex-3 article header {
    margin: 0 0 0.35em;
    min-height: 2.6em;
}

#boxes .flex.flex-3 article header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1.3;
}

#boxes .flex.flex-3 article p {
    margin: 0 0 1.1em;
    min-height: 1.7em;
    flex: 1 1 auto;
}

#boxes .flex.flex-3 article footer {
    margin-top: auto;
}

@media screen and (min-width: 800px) {
    #boxes .flex.flex-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem 2rem;
    }
}

#kurse,
#kurse .course-card,
#medien,
#medien .media-box,
#contact,
.contact-form {
    text-align: left !important;
}

@media screen and (min-width: 800px) {
    .course-card,
    .media-box {
        padding: 1.75rem 2rem 1.85rem;
    }
}

#kurse .box,
#kurse .course-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 1.35rem !important;
    box-sizing: border-box;
}

#kurse .table-wrapper {
    overflow: visible;
}

.course-card {
    padding: 1.5rem 1.4rem 1.6rem;
    text-align: left;
    background: #fffefb;
    border: 0;
    border-radius: 14px;
    color: #24343c;
}

#kurse.wrapper article.course-card header,
.course-card header {
    margin: 0 0 1rem !important;
}

#kurse.wrapper.style1 .course-card,
#kurse.wrapper.style1 .course-card * {
    color: #24343c !important;
    white-space: normal !important;
}

#kurse.wrapper.style1 .course-card a {
    color: #1e5a78 !important;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

#kurse.wrapper.style1 .course-card .meta-label,
#kurse.wrapper.style1 .course-card .course-facts dt {
    color: #2f6a86 !important;
}

#kurse.wrapper.style1 .course-card .course-chip,
#kurse.wrapper.style1 .course-card .button,
#kurse.wrapper.style1 .course-card .button * {
    color: #fff !important;
    text-decoration: none !important;
}

.course-card,
.course-meta .meta-value,
.course-facts dd,
.course-body-text,
.course-note,
.course-enroll-text {
    font-weight: 300;
}

.course-card b,
.course-card strong {
    font-weight: 600;
    white-space: normal !important;
}

.course-card p,
.course-card dl,
.course-card dt,
.course-card dd,
.course-card h3,
.course-card h4 {
    margin-top: 0;
}

.course-card p,
.course-card dl {
    margin: 0;
}

.course-card h3 {
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.3;
    margin: 0.45em 0 0;
}

.course-chip {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.22em 0.75em;
    border-radius: 999px;
    background: #417b9d;
    color: #fff;
}

#kurse.wrapper.style1 .course-card .course-chip {
    color: #fff;
}

.course-meta {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0.85rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    background: rgba(65, 123, 157, 0.12);
    border-radius: 10px;
}

.course-meta .meta-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2f6a86;
    margin: 0 0 0.2rem;
}

.course-meta li {
    min-width: 0;
}

.course-meta .meta-value {
    display: block;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: normal;
}

.course-meta .meta-value b,
.course-meta .meta-value strong {
    white-space: normal;
}

.course-facts {
    margin: 0 0 0.4rem;
    padding: 0;
    display: grid;
    gap: 0;
}

.course-facts .fact {
    display: grid;
    gap: 0.25rem;
    margin: 0;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(65, 123, 157, 0.18);
}

.course-facts dt {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #2f6a86;
}

.course-facts dd {
    margin: 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.course-body-text {
    line-height: 1.7;
}

.course-note {
    margin: 0.85rem 0 0;
    padding: 0.7rem 0.85rem;
    line-height: 1.6;
    font-style: italic;
    background: rgba(65, 123, 157, 0.08);
    border-radius: 8px;
}

.course-facts .course-enroll {
    margin-top: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(65, 123, 157, 0.28);
}

.course-enroll-dd {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.course-enroll-text {
    margin: 0;
    line-height: 1.55;
    white-space: normal;
}

.course-enroll-text > *:last-child {
    margin-bottom: 0;
}

.course-enroll-text .course-cta {
    margin: 0.35rem 0 0.15rem;
}

.course-enroll-note {
    font-size: 0.98rem;
    opacity: 0.95;
}

.course-cta {
    display: inline-block;
    margin-top: 0;
    white-space: nowrap;
    font-size: 0.82rem !important;
    font-weight: 600;
    height: 2.15em;
    line-height: 2.15em;
    padding: 0 0.95em;
}

.finished-list {
    padding-left: 1.1rem;
    margin: 0;
}

.finished-list li {
    margin: 0 0 0.55rem;
}

.finished-collapse {
    margin-top: 0.85rem;
}

.finished-collapse summary {
    cursor: pointer;
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    list-style: none;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: inherit;
}

.finished-collapse summary::-webkit-details-marker {
    display: none;
}

.finished-collapse summary::before {
    content: "▸ ";
}

.finished-collapse[open] summary::before {
    content: "▾ ";
}

.finished-collapse .finished-list {
    margin-top: 0.75rem;
}

@media screen and (min-width: 720px) {
    .course-meta {
        grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
        gap: 1rem 1.25rem;
        padding: 1rem 1.15rem;
    }

    .course-facts .fact.has-label {
        grid-template-columns: 9rem minmax(0, 1fr);
        gap: 0.35rem 1.2rem;
        align-items: start;
    }
}

.person {
    display: grid;
    gap: 1.1rem;
    margin: 0 0 2.6rem;
}

.person .portrait {
    width: 8.5rem;
    height: 8.5rem;
    border-radius: 50%;
    object-fit: cover;
}

@media screen and (min-width: 720px) {
    .person {
        grid-template-columns: 8.5rem minmax(0, 1fr);
        align-items: start;
    }
}

.fold {
    margin: 0 0 1.1rem;
    border-bottom: 1px solid rgba(65, 123, 157, 0.22);
    padding-bottom: 0.7rem;
}

.fold summary {
    cursor: pointer;
    font-weight: 500;
    font-size: 1.15rem;
}

.person .fold {
    border-bottom: none;
    margin: 0.5rem 0 0;
    padding-bottom: 0;
}

.person .fold summary {
    font-size: 1rem;
}

.fold-body {
    margin-top: 0.75rem;
}

.contact-form .field {
    margin: 0 0 1rem;
}

.contact-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 100%;
}

.contact-form .actions {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    overflow: auto;
}

.contact-modal[hidden] {
    display: none !important;
}

.contact-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 42, 50, 0.55);
}

.contact-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(36rem, 100%);
    margin: 1.5rem auto;
    border-radius: 16px;
    background: #f7fafc;
    border: 1px solid rgba(65, 123, 157, 0.28);
    box-shadow: 0 18px 48px rgba(26, 42, 50, 0.28);
    color: #24343c;
}

.contact-modal-header {
    position: relative;
    padding: 1.15rem 3rem 0.5rem 1.25rem;
}

.contact-modal-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 500;
    color: #2f6a86;
}

.contact-modal-lead {
    margin: 0;
    font-weight: 300;
    color: #2f6a86;
}

.contact-modal-x {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #24343c;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.contact-modal-x:hover,
.contact-modal-x:focus {
    background: rgba(65, 123, 157, 0.12);
    outline: none;
}

.contact-modal-body {
    padding: 0.5rem 1.25rem 0.75rem;
}

.contact-modal-body .contact-form,
.contact-modal-body .contact-form label {
    color: #24343c;
}

.contact-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 0.75rem 1.25rem 1.1rem;
    border-top: 1px solid rgba(65, 123, 157, 0.18);
}

.contact-modal-footer .button {
    margin: 0;
}

body.contact-modal-open {
    overflow: hidden;
}

#medien .box,
.media-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0 0 1rem !important;
    text-align: left;
    background: #fffefb;
    border: 0;
    border-radius: 14px;
    padding: 1.5rem 1.4rem;
}

#medien.wrapper.style1 .media-box,
#medien.wrapper.style1 .media-box h4,
#medien.wrapper.style1 .media-box li {
    color: #24343c;
}

#medien.wrapper.style1 .media-box a {
    color: #1e5a78;
}

.media-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.media-box li {
    margin: 0 0 0.65rem;
    overflow-wrap: anywhere;
}

.insight-embed {
    width: 100% !important;
    margin: 0 0 1.5rem !important;
    padding: 1.5rem 1.4rem;
    background: rgba(255, 252, 247, 0.94);
    color: #2a3a42;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-sizing: border-box;
}

#kurse.wrapper.style1 .insight-embed,
#kurse.wrapper.style1 .insight-embed h4 {
    color: #24343c !important;
}

.insight-embed iframe,
.insight-embed object {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 8px;
}

.insight-placeholder {
    padding: 1.1rem 0.2rem 0.4rem;
}

.insight-placeholder p {
    margin: 0 0 0.9rem;
}

.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    background: rgba(30, 48, 58, 0.96);
    color: #f4f8fa;
    padding: 1.1rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom));
}

.consent-inner {
    max-width: var(--panel-max);
    margin: 0 auto;
}

.consent-banner p {
    margin: 0;
    line-height: 1.55;
}

.consent-banner a {
    color: #fff;
    text-decoration: underline;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.consent-banner .button.alt {
    color: #fff !important;
    background: transparent;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.consent-reset {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.page-legal .consent-reset {
    color: #fff;
}

.welcome-poem {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: transparent;
    font-weight: 300;
}

.page-legal #banner {
    min-height: 0 !important;
    padding: 7.5rem 0 0 !important;
    justify-content: flex-end;
}

.page-legal #banner .hero-inner {
    justify-content: center;
    padding: 1.6rem var(--panel-inset-min) !important;
}

.page-legal .hero-inner .inner,
.page-legal #banner h1 {
    text-align: left;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-legal #banner h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 0;
}

.page-legal .wrapper {
    margin-top: 1.6rem !important;
}

.legal-page {
    color: #24343c;
}

.legal-lead {
    margin: 0 0 1.6rem;
    font-size: 1.05rem;
}

.legal-block {
    margin: 0 0 1.6rem;
    padding: 1.15rem 0 0;
    border-top: 1px solid rgba(65, 123, 157, 0.2);
}

.legal-block h2 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 0.55em;
}

.legal-block p,
.legal-block address {
    margin: 0 0 0.7em;
    font-style: normal;
    line-height: 1.65;
}

.legal-dl {
    margin: 0 0 0.9rem;
}

.legal-dl > div {
    display: grid;
    gap: 0.2rem 1rem;
    margin: 0 0 0.75rem;
}

.legal-dl dt {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #2f6a86;
}

.legal-dl dd {
    margin: 0;
}

.legal-note {
    margin: 0.5rem 0 0;
}

.legal-page ul {
    margin: 0 0 0.7em;
    padding-left: 1.2rem;
}

.legal-page li {
    margin: 0 0 0.35em;
}

.page-legal #footer {
    max-width: var(--panel-max);
    width: calc(100% - (2 * var(--panel-gutter)));
    margin: 1.5rem auto 2.5rem;
    text-align: center;
}

.page-legal #footer .inner {
    max-width: var(--content-max);
    padding: 1rem 0 0;
}

.page-legal #footer a {
    color: #fff;
}

@media screen and (min-width: 720px) {
    .legal-dl > div {
        grid-template-columns: 8rem minmax(0, 1fr);
        align-items: start;
    }

    .page-legal #banner .hero-inner {
        padding-left: var(--panel-inset-min) !important;
        padding-right: var(--panel-inset-min) !important;
    }
}

/* Login (editor auth) — same sea panels as legal pages, narrow form */

.page-login #banner {
    min-height: 0 !important;
    padding: 7.5rem 0 0 !important;
    justify-content: flex-end;
}

.page-login #banner .hero-inner {
    justify-content: center;
    padding: 1.6rem var(--panel-inset-min) !important;
}

.page-login .hero-inner .inner,
.page-login #banner h1 {
    text-align: center;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-login #banner h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 0;
}

.page-login .wrapper {
    margin-top: 1.6rem !important;
    max-width: 28rem !important;
    width: calc(100% - (2 * var(--panel-gutter))) !important;
}

.page-login .wrapper .inner {
    max-width: none !important;
}

.page-login #footer {
    max-width: var(--panel-max);
    width: calc(100% - (2 * var(--panel-gutter)));
    margin: 1.5rem auto 2.5rem;
    text-align: center;
}

.page-login #footer .inner {
    max-width: var(--content-max);
    padding: 1rem 0 0;
}

.page-login #footer a {
    color: #fff;
}

.login-panel {
    color: #24343c;
}

.login-status {
    margin: 0 0 1.4rem;
    font-size: 1.05rem;
    font-weight: 300;
    color: #2f6a86;
}

.login-status-alert {
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    background: rgba(65, 123, 157, 0.12);
    color: #24343c;
}

.login-form {
    display: grid;
    gap: 1.1rem;
}

.login-field {
    display: grid;
    gap: 0.35rem;
}

.login-field label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #2f6a86;
}

.login-field input[type="text"],
.login-field input[type="email"],
.login-field input[type="password"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.login-error {
    color: #a33;
    font-size: 0.9rem;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 300;
}

.login-remember label {
    margin: 0;
    font-weight: 300;
    text-transform: none;
    letter-spacing: normal;
    font-size: 1rem;
    color: #24343c;
}

.login-actions {
    margin-top: 0.35rem;
}

.login-actions .button {
    width: 100%;
    text-align: center;
}

.login-flash {
    margin-top: 0.25rem;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    background: rgba(163, 51, 51, 0.1);
    color: #a33;
}

@media screen and (min-width: 720px) {
    .page-login #banner .hero-inner {
        padding-left: var(--panel-inset-min) !important;
        padding-right: var(--panel-inset-min) !important;
    }
}

/* Course editor — sea panels, card lists, stacked form */

.page-editor #banner {
    min-height: 0 !important;
    padding: 7.5rem 0 0 !important;
    justify-content: flex-end;
}

.page-editor #banner .hero-inner {
    justify-content: center;
    padding: 1.6rem var(--panel-inset-min) !important;
}

.page-editor .hero-inner .inner,
.page-editor #banner h1 {
    text-align: left;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-editor #banner h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 0;
}

.page-editor .wrapper {
    margin-top: 1.6rem !important;
}

.page-editor #footer {
    max-width: var(--panel-max);
    width: calc(100% - (2 * var(--panel-gutter)));
    margin: 1.5rem auto 2.5rem;
    text-align: center;
}

.page-editor #footer .inner,
.page-editor .editor-footer {
    max-width: var(--content-max);
    padding: 1rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.page-editor #footer a,
.page-editor .editor-footer a {
    color: #fff;
}

.editor-logout {
    display: inline;
    margin: 0;
}

.editor-logout .consent-reset {
    color: #fff;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.app-version {
    margin-left: 0.35rem;
    opacity: 0.75;
    font-size: 0.9em;
    font-weight: 400;
    white-space: nowrap;
}

.editor-panel {
    color: #24343c;
}

.editor-create {
    display: grid;
    gap: 1.25rem;
    padding-bottom: 5.5rem;
}

.editor-block {
    margin: 0;
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(65, 123, 157, 0.18);
}

.editor-block-rows {
    background: rgba(255, 255, 255, 0.72);
}

.editor-optional {
    font-size: 0.85em;
    font-weight: 400;
    color: #5a6d76;
    text-transform: none;
    letter-spacing: 0;
}

.editor-grunddaten {
    display: grid;
    gap: 1rem;
}

.editor-archive-grid {
    display: grid;
    gap: 1rem;
    margin-top: 0.85rem;
}

.editor-visibility-row {
    display: grid;
    gap: 1.25rem;
}

.editor-visibility-row > .editor-block {
    min-width: 0;
}

.editor-advanced {
    margin: 0;
}

.editor-advanced > summary {
    cursor: pointer;
    font-weight: 600;
    color: #2f6a86;
    list-style: none;
}

.editor-advanced > summary::-webkit-details-marker {
    display: none;
}

.editor-advanced > summary::before {
    content: "▸ ";
}

.editor-advanced[open] > summary::before {
    content: "▾ ";
}

.editor-advanced .editor-lead {
    margin-top: 0.75rem;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.editor-lead {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    font-weight: 300;
    color: #2f6a86;
}

.editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0 0 1.6rem;
}

.editor-actions-sticky {
    position: sticky;
    bottom: 0.75rem;
    z-index: 20;
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(247, 250, 252, 0.96);
    border: 1px solid rgba(65, 123, 157, 0.28);
    box-shadow: 0 8px 24px rgba(36, 52, 60, 0.12);
    align-items: center;
}

.editor-actions-sticky .editor-sticky-logout {
    margin-left: auto;
}

.editor-logout-btn {
    background: #b33a3a !important;
    border-color: #9a2f2f !important;
    color: #fff !important;
}

.editor-logout-btn:hover,
.editor-logout-btn:focus {
    background: #9a2f2f !important;
    border-color: #7f2626 !important;
    color: #fff !important;
}

.editor-actions .button,
.editor-actions input[type="submit"] {
    margin: 0;
}

.editor-section {
    margin: 0 0 1.5rem;
    padding: 1.15rem 1.15rem 1.25rem;
    border-radius: 16px;
    border: 1px solid transparent;
}

.editor-section h2,
.editor-section-title {
    margin: 0 0 0.85rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.editor-section-title {
    color: #2f6a86;
}

.editor-section-current {
    background: rgba(72, 140, 110, 0.18);
    border-color: rgba(56, 118, 90, 0.35);
}

.editor-section-current h2,
.editor-section-current .editor-course-meta {
    color: #2d6a4f;
}

.editor-section-finished {
    background: rgba(214, 178, 70, 0.22);
    border-color: rgba(176, 140, 40, 0.38);
}

.editor-section-finished h2,
.editor-section-finished .editor-course-meta {
    color: #8a6a12;
}

.editor-section-hidden {
    background: rgba(176, 84, 84, 0.16);
    border-color: rgba(148, 64, 64, 0.34);
}

.editor-section-hidden h2,
.editor-section-hidden .editor-course-meta {
    color: #8f3d3d;
}

.editor-course-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.editor-course-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(36, 52, 60, 0.08);
}

.editor-section-current .editor-course-card {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(56, 118, 90, 0.18);
}

.editor-section-finished .editor-course-card {
    background: rgba(255, 252, 240, 0.82);
    border-color: rgba(176, 140, 40, 0.2);
}

.editor-section-hidden .editor-course-card {
    background: rgba(255, 248, 248, 0.78);
    border-color: rgba(148, 64, 64, 0.18);
}

.editor-collapse {
    margin-top: 0.75rem;
}

.editor-collapse summary {
    cursor: pointer;
    display: inline-block;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    color: inherit;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(36, 52, 60, 0.12);
    list-style: none;
}

.editor-collapse summary::-webkit-details-marker {
    display: none;
}

.editor-collapse summary::before {
    content: "▸ ";
}

.editor-collapse[open] summary::before {
    content: "▾ ";
}

.editor-collapse .editor-course-list {
    margin-top: 0.75rem;
}

.editor-course-card-muted {
    opacity: 0.85;
}

.editor-course-main {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.editor-course-title {
    font-weight: 500;
    line-height: 1.35;
    color: #24343c;
}

.editor-course-meta {
    font-size: 0.92rem;
    font-weight: 300;
    color: #2f6a86;
}

.editor-course-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.editor-course-actions .button,
.editor-order-actions .button {
    margin: 0;
}

.page-editor .editor-panel .button,
.page-editor .editor-panel input[type="submit"],
.page-editor .editor-panel button.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
    min-height: 2.35rem !important;
    height: auto !important;
    padding: 0.4rem 0.9rem !important;
    box-sizing: border-box !important;
    vertical-align: middle;
}

.page-editor .editor-panel .editor-arrow-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 2.35rem !important;
    min-height: 2.35rem !important;
    width: 2.35rem !important;
    height: 2.35rem !important;
    padding: 0 !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    font-weight: 600 !important;
}

.editor-order-actions {
    align-items: center;
}

.editor-order-actions form {
    margin: 0;
}

.editor-order-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.55rem;
    min-width: calc(2 * 2.35rem + 0.35rem);
}

.editor-arrow-spacer {
    display: inline-block;
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
}

.editor-delete-btn {
    background: rgba(148, 64, 64, 0.12) !important;
    border-color: rgba(148, 64, 64, 0.35) !important;
    color: #8f3d3d !important;
}

.editor-delete-btn:hover,
.editor-delete-btn:focus {
    background: rgba(148, 64, 64, 0.22) !important;
    border-color: rgba(148, 64, 64, 0.5) !important;
    color: #7a3030 !important;
}

.editor-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.editor-confirm-modal[hidden] {
    display: none !important;
}

.editor-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 42, 50, 0.55);
}

.editor-confirm-dialog {
    position: relative;
    z-index: 1;
    width: min(28rem, 100%);
    border-radius: 14px;
    background: #f7fafc;
    border: 1px solid rgba(148, 64, 64, 0.28);
    box-shadow: 0 18px 48px rgba(26, 42, 50, 0.28);
    padding: 1.15rem 1.25rem 1.2rem;
    color: #24343c;
}

.editor-confirm-header .editor-section-title {
    color: #8f3d3d;
    margin-bottom: 0.4rem;
}

.editor-confirm-header .editor-lead {
    margin-bottom: 0.75rem;
    font-size: 0.98rem;
}

.editor-confirm-target {
    margin: 0 0 1.1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    background: rgba(148, 64, 64, 0.08);
    border: 1px solid rgba(148, 64, 64, 0.18);
    font-weight: 300;
    color: #24343c;
}

.editor-confirm-target strong {
    font-weight: 600;
    color: #24343c !important;
}

.editor-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    margin: 0;
}

.editor-confirm-actions .button {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.4rem 0.9rem;
    font-size: 0.92rem;
    line-height: 1.2;
}

.editor-delete-confirm {
    background: #a84848 !important;
    border-color: #a84848 !important;
    color: #fff !important;
}

.editor-delete-confirm:hover,
.editor-delete-confirm:focus {
    background: #8f3d3d !important;
    border-color: #8f3d3d !important;
    color: #fff !important;
}

body.editor-confirm-open {
    overflow: hidden;
}

.editor-inline-form {
    display: inline;
    margin: 0;
}

.editor-section-hint {
    margin: -0.35rem 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 300;
    color: inherit;
    opacity: 0.85;
}

.editor-arrow-btn {
    min-width: 2.35rem !important;
    min-height: 2.35rem !important;
    width: 2.35rem !important;
    padding: 0 !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    font-weight: 600 !important;
}

.editor-empty {
    margin: 0;
    font-weight: 300;
    color: #5a6d76;
}

.editor-debug {
    margin-top: 1.5rem;
    padding: 0.85rem;
    overflow: auto;
    font-size: 0.8rem;
    background: rgba(36, 52, 60, 0.06);
    border-radius: 8px;
}

.editor-status-alert {
    margin: 0 0 1.2rem;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    background: rgba(240, 180, 41, 0.28);
    color: #24343c;
    font-weight: 600;
}

.editor-form,
.editor-meta {
    display: grid;
    gap: 1rem;
}

.editor-field {
    display: grid;
    gap: 0.35rem;
}

.editor-field label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #2f6a86;
}

.editor-field input[type="text"],
.editor-field input[type="email"],
.editor-field select,
.editor-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.editor-help {
    margin: 0.25rem 0 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(65, 123, 157, 0.08);
}

.editor-help summary {
    cursor: pointer;
    font-weight: 600;
    color: #2f6a86;
}

.editor-help ul {
    margin: 0.75rem 0;
    padding-left: 1.2rem;
}

.editor-help li {
    margin: 0 0 0.35em;
    font-weight: 300;
}

.editor-help p {
    margin: 0.75rem 0 0;
    font-weight: 300;
    line-height: 1.55;
}

.editor-rows {
    display: grid;
    gap: 0.85rem;
    margin: 0 0 1.25rem;
}

.editor-field-content {
    position: relative;
}

.editor-field-content textarea.quill-source,
.editor-field-type textarea.quill-source {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.editor-field-type {
    position: relative;
}

.quill-host {
    background: #f4f8fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid rgba(47, 106, 134, 0.45);
    box-shadow: inset 0 1px 2px rgba(36, 52, 60, 0.06);
}

.quill-host .ql-toolbar.ql-snow {
    border: 0;
    border-bottom: 1px solid rgba(47, 106, 134, 0.28);
    font-family: Raleway, sans-serif;
    background: #e4eef3;
    padding: 0.45rem 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.quill-host .ql-toolbar.ql-snow .ql-formats {
    margin-right: 0.35rem;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.quill-host .ql-toolbar.ql-snow button {
    width: auto !important;
    height: auto !important;
    min-height: 2.15rem;
    padding: 0.35rem 0.65rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    float: none !important;
    border-radius: 6px;
    border: 1px solid rgba(47, 106, 134, 0.22);
    background: #fff !important;
    color: #1a2a32 !important;
    font-family: Raleway, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    overflow: visible !important;
}

.quill-host .ql-toolbar.ql-snow button.ql-anmeldung {
    min-width: 8.75rem;
}

.quill-host .ql-toolbar.ql-snow button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
}

.quill-host .ql-toolbar.ql-snow button .ql-btn-label {
    display: inline-block !important;
    color: #1a2a32 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    font-family: Raleway, sans-serif !important;
}

.quill-host .ql-toolbar.ql-snow button:hover,
.quill-host .ql-toolbar.ql-snow button.ql-active {
    background: #d7e7ef;
    border-color: rgba(30, 90, 120, 0.45);
}

.quill-host .ql-toolbar.ql-snow .ql-stroke {
    stroke: #24343c;
}

.quill-host .ql-toolbar.ql-snow .ql-fill {
    fill: #24343c;
}

.quill-host .ql-toolbar.ql-snow button:hover .ql-stroke,
.quill-host .ql-toolbar.ql-snow button.ql-active .ql-stroke {
    stroke: #1e5a78;
}

.quill-host .ql-toolbar.ql-snow button:hover .ql-fill,
.quill-host .ql-toolbar.ql-snow button.ql-active .ql-fill {
    fill: #1e5a78;
}

.quill-host .ql-container.ql-snow {
    border: 0;
    font-family: Raleway, sans-serif;
    font-size: 1.25rem;
    min-height: 7.5rem;
    background: #f4f8fa;
}

.quill-host .ql-editor {
    min-height: 7.5rem;
    font-size: 1.25rem;
    line-height: 1.6;
    color: #1a2a32 !important;
}

.quill-host .ql-editor p,
.quill-host .ql-editor li,
.quill-host .ql-editor span,
.quill-host .ql-editor a,
.quill-host .ql-editor b,
.quill-host .ql-editor strong,
.quill-host .ql-editor s,
.quill-host .ql-editor strike,
.quill-host .ql-editor del,
.quill-host .ql-editor em,
.quill-host .ql-editor u {
    color: #1a2a32 !important;
}

.quill-host .ql-editor a {
    text-decoration: underline;
    font-weight: 600;
}

.quill-host .ql-editor.ql-blank::before {
    color: #5a7380 !important;
    font-style: normal;
    font-size: 1.25rem;
}

.editor-rows-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0 0 1.25rem;
}

.editor-rows-actions .button-add-row {
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    min-height: 2.6rem !important;
    padding: 0.55rem 1.1rem !important;
    line-height: 1.2 !important;
}

.editor-rows-header {
    display: grid;
    gap: 1rem;
    margin: 0 0 1rem;
    align-items: start;
}

.editor-rows-intro .editor-section-title {
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

.editor-rows-intro .editor-lead {
    margin: 0;
    max-width: 36rem;
}

.editor-rows-intro .editor-lead strong {
    font-weight: 600;
    color: #1e5a78;
}

.editor-quill-help {
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: rgba(47, 106, 134, 0.1);
    border: 1px solid rgba(47, 106, 134, 0.22);
    color: #24343c;
}

.editor-quill-help-title {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1e5a78;
}

.editor-quill-steps {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.98rem;
    font-weight: 300;
    line-height: 1.45;
}

.editor-quill-steps li {
    margin: 0 0 0.25rem;
}

.editor-quill-steps li:last-child {
    margin-bottom: 0;
}

.editor-block-rows > .editor-help {
    margin-bottom: 1rem;
}

.editor-help p {
    margin: 0.75rem 0 0;
    font-weight: 300;
    line-height: 1.55;
}

.editor-row {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    background: rgba(65, 123, 157, 0.08);
    border: 1px solid rgba(65, 123, 157, 0.16);
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
}

.editor-row-index {
    grid-row: 1 / span 2;
    align-self: center;
    min-width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(47, 106, 134, 0.16);
    color: #2f6a86;
    font-size: 0.85rem;
    font-weight: 700;
}

.editor-row .editor-field-type,
.editor-row .editor-field-content {
    grid-column: 2;
    min-width: 0;
}

.editor-row-controls {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.15rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(65, 123, 157, 0.18);
}

.editor-row-controls .editor-order-controls {
    margin-left: 0;
}

.editor-row-controls .editor-arrow-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.editor-row .editor-field-type input[type="text"] {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.9rem;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1.5px solid rgba(47, 106, 134, 0.45);
    background: #f4f8fa;
    box-shadow: inset 0 1px 2px rgba(36, 52, 60, 0.06);
    color: #1a2a32;
    font-family: Raleway, sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.4;
}

.editor-row .editor-field-type input[type="text"]:focus {
    border-color: #1e5a78;
    box-shadow: 0 0 0 1px #1e5a78;
    outline: none;
}

.quill-host-compact .ql-container.ql-snow {
    min-height: 7.5rem;
    font-size: 1.15rem;
}

.quill-host-compact .ql-editor {
    min-height: 7.5rem;
    font-size: 1.15rem;
    padding: 0.65rem 0.85rem;
}

.quill-host-compact .ql-toolbar.ql-snow {
    padding: 0.35rem 0.4rem;
}

.quill-host-compact .ql-toolbar.ql-snow button {
    min-height: 1.9rem;
    padding: 0.25rem 0.45rem !important;
    font-size: 0.85rem !important;
}

.quill-host-compact .ql-toolbar.ql-snow button .ql-btn-label {
    font-size: 0.85rem !important;
}

.editor-field-type .quill-type-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0.55rem 0 0;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    border: 1px dashed rgba(47, 106, 134, 0.4);
    background: rgba(47, 106, 134, 0.07);
    color: #1a2a32;
}

.quill-type-presets-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1e5a78 !important;
    margin-right: 0.25rem;
}

.quill-type-preset {
    appearance: none;
    margin: 0;
    border: 1px solid rgba(47, 106, 134, 0.28);
    border-radius: 999px;
    background: #fff !important;
    color: #1a2a32 !important;
    font-family: Raleway, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.28rem 0.65rem;
    cursor: pointer;
}

.quill-type-preset:hover,
.quill-type-preset:focus {
    background: #d7e7ef !important;
    color: #1a2a32 !important;
    border-color: rgba(30, 90, 120, 0.45);
    outline: none;
}

.editor-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.75rem 1rem 1rem;
    overflow: auto;
}

.editor-preview-modal[hidden] {
    display: none !important;
}

.editor-preview-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 42, 50, 0.55);
}

.editor-preview-dialog {
    position: relative;
    z-index: 1;
    width: min(var(--content-max, 72rem), calc(100vw - 1.5rem));
    max-height: none;
    margin: 0.5rem auto 1rem;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: #f7fafc;
    border: 1px solid rgba(65, 123, 157, 0.28);
    box-shadow: 0 18px 48px rgba(26, 42, 50, 0.28);
    overflow: visible;
}

.editor-preview-header {
    padding: 0.85rem 1.15rem 0.25rem;
    flex-shrink: 0;
}

.editor-preview-header .editor-section-title {
    margin-bottom: 0.25rem;
}

.editor-preview-header .editor-lead {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.editor-preview-body {
    padding: 0.45rem 1rem 0.75rem;
    overflow: visible;
}

.editor-preview-stage {
    width: 100%;
    max-width: var(--content-max, 72rem);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 1.6rem;
    box-sizing: border-box;
    border-radius: 22px;
    background-color: rgba(65, 123, 157, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.editor-preview-stage .course-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1.5rem 1.4rem 1.6rem;
    box-sizing: border-box;
    background: #fffefb;
    border: 0;
    border-radius: 14px;
    color: #24343c;
    text-align: left;
}

.editor-preview-stage .course-card,
.editor-preview-stage .course-card * {
    color: #24343c !important;
    white-space: normal !important;
}

.editor-preview-stage .course-card a {
    color: #1e5a78 !important;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.editor-preview-stage .course-card .meta-label,
.editor-preview-stage .course-card .course-facts dt {
    color: #2f6a86 !important;
}

.editor-preview-stage .course-card .button,
.editor-preview-stage .course-card .button *,
.editor-preview-stage .course-card .course-chip {
    color: #fff !important;
    text-decoration: none !important;
}

.editor-preview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
    flex-shrink: 0;
    padding: 0.75rem 1.15rem 0.95rem;
    border-top: 1px solid rgba(65, 123, 157, 0.18);
    background: rgba(228, 238, 243, 0.65);
}

.editor-preview-actions .button {
    margin: 0;
}

@media screen and (min-width: 800px) {
    .editor-preview-stage {
        padding: 2rem 1.85rem 2.15rem;
    }

    .editor-preview-stage .course-card {
        padding: 1.75rem 2rem 1.85rem;
    }
}

body.editor-preview-open {
    overflow: hidden;
}

.editor-template-picker {
    margin: 0;
}

.editor-template-picker .editor-lead {
    margin-bottom: 1rem;
}

.editor-template-picker .editor-status-alert {
    margin-bottom: 1rem;
}

.editor-template-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #2f6a86;
}

.editor-template-form {
    display: grid;
    gap: 0.85rem;
}

.editor-template-form .button {
    justify-self: start;
    margin: 0;
}

.editor-status-field .custom-select-panel {
    padding: 0.45rem;
}

.editor-status-help {
    margin: 0 0 0.75rem;
    padding-left: 1.1rem;
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.5;
    color: #5a6d76;
}

.editor-status-help li {
    margin: 0 0 0.4rem;
}

.editor-status-help li:last-child {
    margin-bottom: 0;
}

.editor-status-help strong {
    font-weight: 600;
    color: #24343c;
}

.editor-status-field .custom-select-option {
    margin-bottom: 0.35rem;
}

.editor-status-field .custom-select-option:last-child {
    margin-bottom: 0;
}

.editor-archive-field .editor-status-help {
    margin-bottom: 0.55rem;
}

.editor-chip-select {
    max-width: 16rem;
}

.editor-archive-meta {
    display: block;
    margin-top: 0.15rem;
}

.custom-select {
    position: relative;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.7rem 0.9rem !important;
    border-radius: 8px !important;
    border: 2px solid rgba(65, 123, 157, 0.35) !important;
    background: #fff !important;
    color: #24343c !important;
    text-align: left;
    font: inherit;
    font-weight: 400 !important;
    line-height: 1.4;
    cursor: pointer;
}

.editor-optional {
    font-size: 0.85em;
    font-weight: 500;
    color: #5a6d76;
    text-transform: none;
    letter-spacing: normal;
}

.custom-select-trigger.is-none {
    background: rgba(247, 250, 252, 0.95) !important;
    border-color: rgba(65, 123, 157, 0.35) !important;
    color: #24343c !important;
}

.custom-select-trigger.is-current {
    background: #d8efe3 !important;
    border-color: #3d8f68 !important;
    color: #1f5a3d !important;
}

.custom-select-group.is-none {
    background: rgba(65, 123, 157, 0.08);
    margin-bottom: 0.55rem;
}

.custom-select-option.is-none {
    background: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600 !important;
}

.legend-none { color: #5a6d76; }
.legend-none::before { background: #8aa0aa; }

.custom-select-trigger.is-finished {
    background: #f5e7b0 !important;
    border-color: #c4a032 !important;
    color: #6e550c !important;
}

.custom-select-trigger.is-hidden {
    background: #f3d4d4 !important;
    border-color: #c06060 !important;
    color: #7a3030 !important;
}

.custom-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-caret {
    flex: 0 0 auto;
    opacity: 0.7;
}

.custom-select-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    max-height: min(22rem, 60vh);
    overflow: auto;
    padding: 0.45rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(36, 52, 60, 0.16);
    box-shadow: 0 10px 28px rgba(36, 52, 60, 0.16);
}

.custom-select-group {
    margin: 0 0 0.45rem;
    padding: 0.4rem;
    border-radius: 10px;
}

.custom-select-group:last-child {
    margin-bottom: 0;
}

.custom-select-group.is-current {
    background: rgba(72, 140, 110, 0.16);
}

.custom-select-group.is-finished {
    background: rgba(214, 178, 70, 0.2);
}

.custom-select-group.is-hidden {
    background: rgba(176, 84, 84, 0.14);
}

.custom-select-group-label {
    margin: 0 0 0.35rem;
    padding: 0.15rem 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.custom-select-group.is-current .custom-select-group-label { color: #2d6a4f; }
.custom-select-group.is-finished .custom-select-group-label { color: #8a6a12; }
.custom-select-group.is-hidden .custom-select-group-label { color: #8f3d3d; }

.custom-select-option {
    display: block;
    width: 100%;
    margin: 0 0 0.3rem;
    padding: 0.65rem 0.75rem !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    text-align: left;
    font: inherit;
    font-weight: 400 !important;
    line-height: 1.35;
    cursor: pointer;
    color: #24343c !important;
}

.custom-select-option:last-child {
    margin-bottom: 0;
}

.custom-select-option.is-current {
    background: rgba(255, 255, 255, 0.82) !important;
}

.custom-select-option.is-finished {
    background: rgba(255, 252, 240, 0.9) !important;
}

.custom-select-option.is-hidden {
    background: rgba(255, 248, 248, 0.9) !important;
}

.custom-select-option:hover,
.custom-select-option:focus {
    border-color: rgba(36, 52, 60, 0.25) !important;
    outline: none;
}

.custom-select-option.is-selected {
    border-color: #2f6a86 !important;
    box-shadow: inset 0 0 0 1px rgba(47, 106, 134, 0.35);
}

.custom-select-meta {
    opacity: 0.75;
    font-weight: 300;
}

.editor-template-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
}

.editor-template-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.editor-template-legend span::before {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 3px;
}

.legend-current { color: #2d6a4f; }
.legend-current::before { background: #3d8f68; }

.legend-finished { color: #8a6a12; }
.legend-finished::before { background: #c4a032; }

.legend-hidden { color: #8f3d3d; }
.legend-hidden::before { background: #c06060; }

@media screen and (min-width: 720px) {
    .editor-grunddaten {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        align-items: start;
    }

    .editor-field-headline {
        grid-column: 1 / -1;
    }

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

    .editor-visibility-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }

    .editor-rows-header {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
        gap: 1.25rem;
    }

    .editor-template-form {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .editor-template-form .editor-field {
        grid-column: 1;
    }
}

@media screen and (min-width: 720px) {
    .page-editor #banner .hero-inner {
        padding-left: var(--panel-inset-min) !important;
        padding-right: var(--panel-inset-min) !important;
    }

    .editor-course-card {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .editor-row {
        grid-template-columns: auto minmax(16rem, 22rem) minmax(0, 1fr);
        align-items: start;
    }

    .editor-row-index {
        grid-row: auto;
        align-self: start;
        margin-top: 1.85rem;
    }

    .editor-row .editor-field-type {
        grid-column: auto;
        align-self: start;
    }

    .editor-row .editor-field-content {
        grid-column: auto;
        align-self: start;
    }

    .editor-row-controls {
        grid-column: 1 / -1;
    }
}
