/* =========================================================
   Blazor Error UI & Loading
   ========================================================= */

#blazor-error-ui {
    display: none; /* Standardmäßig verstecken */
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #f2dede;
    color: #111111;
    border-top: 1px solid #ebccd1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    z-index: 1000;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.15);
}

    #blazor-error-ui .reload {
        text-decoration: underline;
        margin-right: 0.75rem;
    }

    #blazor-error-ui .dismiss {
        float: right;
        border: none;
        background: transparent;
        cursor: pointer;
        font-size: 1rem;
    }

.loading-progress {
    width: 64px;
    height: 64px;
    margin: 6rem auto 0;
    display: block;
}

    .loading-progress circle {
        fill: none;
        stroke: #274bbf;
        stroke-width: 6;
        stroke-linecap: round;
        transform-origin: 50% 50%;
        animation: loading-progress 1.2s linear infinite;
    }

        .loading-progress circle:last-child {
            stroke-opacity: 0.3;
            animation: none;
        }

@keyframes loading-progress {
    0% {
        transform: rotate(0deg);
        stroke-dasharray: 10, 150;
        stroke-dashoffset: 0;
    }

    50% {
        transform: rotate(180deg);
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        transform: rotate(360deg);
        stroke-dasharray: 10, 150;
        stroke-dashoffset: -125;
    }
}

.notfound-main {
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--brand-navy);
    text-align: center;
    padding: 2rem;
}

/* =========================================================
   Base Styles
   ========================================================= */

:root {
    --brand-navy: #02194c;
    --brand-accent: #274bbf;
    --brand-green: #1f7c4a;
    --brand-green-dark: #135733;
    --brand-green-light: #e6f4ec;
    --text-main: #222222;
    --text-muted: #02194c;
    --border-color: #e0e0e0;
    --bg-light: #f7f7f7;
    --bg-card: #ffffff;
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.25rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--brand-accent);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

h1,
h2,
h3 {
    margin: 0 0 var(--spacing-sm);
    font-weight: 600;
    color: var(--brand-navy);
}

p {
    margin: 0 0 var(--spacing-sm);
}

/* =========================================================
   Hero / Bildbereich
   ========================================================= */

.course-hero {
    position: relative;
    color: #ffffff;
    background-color: #111111;
    background-image: url(../assets/banner-fundamentals-brewing-technology.jpg);
    background-size: cover;
    background-position: center;
    padding: var(--spacing-xl) 0;
}

    .course-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(5, 16, 38, 0.6);
    }

.course-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin: 100px 0;
}

.course-level {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f3f3f3;
    margin-bottom: var(--spacing-xs);
}

.course-title {
    font-size: 2.1rem;
    margin-bottom: var(--spacing-sm);
    color: #ffffff;
}

/* =========================================================
   Hauptbereich (Content + Sidebar)
   ========================================================= */

.course-main {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.course-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr);
    gap: var(--spacing-xl);
    align-items: flex-start;
}

.course-intro {
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
    color: var(--text-muted);
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: var(--spacing-lg) 0;
}

.course-section + .course-section {
    margin-top: var(--spacing-lg);
}

.course-section h2 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.course-section p {
    color: var(--text-muted);
}

.course-section ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
}

    .course-section ul li + li {
        margin-top: 0.25rem;
    }

/* =========================================================
   What I'll learn (Topics-Accordion)
   ========================================================= */

.course-learn {
    margin-top: var(--spacing-lg);
}

    .course-learn h2 {
        font-size: 1.3rem;
        margin-bottom: var(--spacing-md);
    }

.learn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--brand-navy);
}

    .learn-header:hover {
        color: var(--brand-accent);
    }

.learn-content {
    margin-left: 30px;
}

/* =========================================================
   Enroll options (Content-Bereich links)
   ========================================================= */

.enroll-options-section {
    margin-top: var(--spacing-xl);
}

    .enroll-options-section h2 {
        font-size: 1.3rem;
        margin-bottom: var(--spacing-md);
    }

.enroll-options-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.enroll-option {
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    background-color: #ecf9e3;
}

.enroll-option-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin: 0 0 var(--spacing-sm);
}

.enroll-option-rows {
    font-size: 0.93rem;
}

.enroll-option-row {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    column-gap: 0.5rem;
    padding: 0.35rem 0;
    border-top: 1px solid var(--border-color);
}

    .enroll-option-row:first-child {
        border-top: none;
    }

.enroll-option-label {
    font-weight: 500;
    color: var(--text-muted);
}

.enroll-option-value {
    text-align: right;
    color: var(--brand-navy);
}

.enroll-option-total .enroll-option-label,
.enroll-option-total .enroll-option-value {
    font-weight: 700;
}

.enroll-option-btn {
    margin-top: var(--spacing-md);
    width: 100%;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--brand-accent);
    background: var(--brand-accent);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}

    .enroll-option-btn:hover {
        filter: brightness(1.05);
    }

/* =========================================================
   Testimonials
   ========================================================= */

.course-testimonials {
    padding: var(--spacing-xl) 0;
    background-color: #ecf9e3;
}

.testimonials-title {
    margin: 0 0 var(--spacing-md);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--brand-navy);
}

.testimonials-list {
    max-width: 720px;
    margin: 0;
}

.testimonial-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border-color);
}

    .testimonial-item:first-child {
        border-top: none;
    }

.testimonial-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-content {
    flex: 1;
}

.testimonial-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.testimonial-quote {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================================
   Sidebar / Enroll Panel (rechte Spalte)
   ========================================================= */

.course-sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
}

/* Enroll Panel rechts */

.course-enroll-panel {
    background-color: #ecf9e3;
    color: #02194c;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    font-size: 0.95rem;
}

.enroll-heading {
    margin: 0 0 1.25rem;
    font-size: 1.15rem;
    font-weight: 600;
}

/* Dropdown-Felder */

.enroll-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

    .enroll-field label {
        font-weight: 600;
        margin-bottom: 0.25rem;
        font-size: 0.85rem;
        opacity: 0.9;
    }

.enroll-select {
    border-radius: 6px;
    padding: 0.45rem 0.6rem;
    font-size: 0.95rem;
    border: none;
    background: #ffffff;
    color: #222222;
}

/* Inline-Feld "Time" */

.enroll-field-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.enroll-field-label {
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0.9;
}

.enroll-field-value {
    font-weight: 500;
}

/* Trennung */

.enroll-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    margin: 1rem 0;
}

/* Zusammenfassung */

.enroll-summary {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.enroll-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.enroll-summary-label {
    opacity: 0.95;
}

.enroll-summary-value {
    font-weight: 600;
}

.enroll-summary-total {
    margin-top: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

/* Button & Hinweis */

.enroll-button {
    background: #02194c;
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

    .enroll-button:hover {
        background: #f0f0f0;
        color: #02194c;
    }

.enroll-note-small {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    background: var(--brand-navy);
    color: #ffffff;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-lg);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-col {
    min-width: 0;
}

.footer-title {
    margin: 0 0 var(--spacing-sm);
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.footer-text {
    margin: 0 0 var(--spacing-sm);
    color: rgba(255, 255, 255, 0.85);
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 0.9rem;
}

    .footer-link:hover {
        text-decoration: none;
    }

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.footer-social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #02194c;
    background: #ffffff;
}

    .footer-social-icon:hover {
        background: #f0f0f0;
    }

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin: 0 0 var(--spacing-md);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-bottom-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .footer-bottom-link:hover {
        text-decoration: none;
    }

/* =========================================================
   Responsive
   ========================================================= */

/* Footer & Enroll options Grid */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: var(--spacing-lg);
    }

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

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .testimonial-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .testimonial-avatar-img {
        width: 70px;
        height: 70px;
    }
}

/* Layout / Sidebar / Hero auf kleineren Screens */
@media (max-width: 900px) {
    .course-main-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .course-sidebar {
        position: static; /* sticky nur auf Desktop */
        order: -1;
    }

    .course-hero {
        padding: var(--spacing-lg) 0;
    }

    .course-title {
        font-size: 1.8rem;
    }
}

/* Kendo Customizings */

.k-panelbar > .k-panelbar-header > .k-link.k-selected,
.k-panelbar > .k-panelbar-header > .k-link.k-selected:hover {
    background-color: white !important;
}

.k-panelbar > .k-panelbar-header > .k-link:focus, .k-panelbar > .k-panelbar-header > .k-link.k-focus {
    box-shadow: none !important;
}

/* ---------- Other Courses (with image) ---------- */

.other-courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md, 1.5rem);
    margin-top: var(--spacing-md, 1.5rem);
}

@media (min-width: 768px) {
    .other-courses-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.other-course-card {
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border-subtle, #e5e7eb);
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    overflow: hidden; /* wichtig: Bild & Hover bleiben im Rahmen */
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

    .other-course-card:hover {
        border-color: var(--color-accent, #2563eb);
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
        transform: translateY(-2px);
    }

/* ---------- Image ---------- */

.other-course-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9; /* Orientierung am Original */
    overflow: hidden;
    background: #f2f2f2;
}

.other-course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Textbereich ---------- */

.other-course-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.other-course-title {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.other-course-text {
    margin: 0 0 .75rem;
    font-size: .9rem;
    color: var(--color-text-muted, #4b5563);
    line-height: 1.5;
    flex: 1;
}

.other-course-cta {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-accent, #2563eb);
}

.other-course-cta-arrow {
    font-size: 1rem;
}

.other-courses-footer {
    margin-top: var(--spacing-md, 1.5rem);
    text-align: right;
}
