@import url('daem-kurslist.css');
@import url('daem-kursdetail.css');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Poppins:wght@400;600&display=swap');

:root {
    --daem-primary: #78a384;
    --daem-primary-dark: #689a74;
    --daem-accent: #5a9a68;
    --daem-footer-bg: #022133;
    --daem-newsletter: #78a384;
    --daem-text-on-dark: #ffffff;
    --daem-header-height: 120px;
    --daem-header-top-height: 36px;
}

html[data-k3-tile-tenant-branding="true"] {
    --daem-primary: var(--k3-tile-monochrome-color);
    --daem-newsletter: var(--k3-tile-monochrome-color);
}

/* Header shell */
.daem-header-shell {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.daem-header-top {
    background-color: var(--daem-primary);
    color: var(--daem-text-on-dark);
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    height: var(--daem-header-top-height);
    line-height: var(--daem-header-top-height);
}

.daem-header-top-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    height: 100%;
}

.daem-header-top a {
    color: var(--daem-text-on-dark);
    text-decoration: none;
}

.daem-header-top a:hover {
    text-decoration: underline;
}

.daem-header-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: calc(var(--daem-header-height) - var(--daem-header-top-height));
}

.daem-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.daem-side-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--daem-footer-bg);
    padding: 0;
}

.daem-side-menu-button:hover {
    color: var(--daem-primary);
}

.daem-side-menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.daem-side-menu-icon::before,
.daem-side-menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
}

.daem-side-menu-icon::before {
    top: -7px;
}

.daem-side-menu-icon::after {
    top: 7px;
}

.daem-logo-link {
    display: block;
    line-height: 0;
}

.daem-logo-link img {
    max-height: 80px;
    width: auto;
    max-width: 320px;
    height: auto;
    object-fit: contain;
}

.daem-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.daem-header-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    text-decoration: none;
}

/* Login glyph from https://daem.de/wp-content/uploads/2022/08/Login-Icon.png (62×35 desktop) */
.daem-header-login-link {
    width: auto;
    min-width: 62px;
    padding: 0 2px;
}

.daem-header-login-icon {
    width: 62px;
    height: 35px;
    object-fit: contain;
    display: block;
}

.daem-header-lang {
    min-width: 64px;
    height: 34px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
}

.daem-header-spacer {
    height: calc(var(--daem-header-height));
}

/* Side panel */
.daem-sidepanel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.daem-sidepanel-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.daem-sidepanel {
    position: fixed;
    top: 0;
    left: 0;
    width: min(360px, 100%);
    max-width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 100002;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    font-family: 'Open Sans', sans-serif;
}

.daem-sidepanel.is-open {
    transform: translateX(0);
}

.daem-sidepanel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--daem-primary);
    color: var(--daem-text-on-dark);
}

.daem-sidepanel-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.daem-sidepanel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0;
}

.daem-sidepanel-body {
    padding: 24px 20px;
}

.daem-sidepanel-section {
    margin-bottom: 24px;
}

.daem-sidepanel-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--daem-footer-bg);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.daem-sidepanel-contact a {
    display: block;
    color: var(--daem-footer-bg);
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 15px;
}

.daem-sidepanel-contact a:hover {
    color: var(--daem-primary);
}

.daem-sidepanel-booking-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 24px;
    background: var(--daem-newsletter);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
}

.daem-sidepanel-booking-btn:hover {
    background: #689a74;
    color: #ffffff;
}

.daem-sidepanel-hours {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.daem-sidepanel-lang {
    margin-top: 16px;
}

/* Footer */
.daem-footer-shell {
    background: var(--daem-footer-bg);
    color: var(--daem-text-on-dark);
    font-family: 'Poppins', sans-serif;
}

.daem-footer-top {
    padding: 40px 20px 32px;
}

.daem-footer-top-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.daem-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    align-items: start;
}

.daem-footer-col img.daem-footer-logo {
    max-height: 90px;
    width: auto;
    margin-top: 8px;
}

.daem-footer-col p,
.daem-footer-col a {
    color: var(--daem-text-on-dark);
    font-size: 16px;
    line-height: 1.6;
    text-decoration: none;
}

.daem-footer-col a:hover {
    text-decoration: underline;
}

.daem-footer-newsletter-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 15px 24px;
    background: var(--daem-newsletter);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.daem-footer-newsletter-btn:hover {
    background: #689a74;
    color: #ffffff;
}

.daem-footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.daem-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Reset site.css .fab (Mud floating-action) — collides with Font Awesome .fab brand icons */
.daem-footer-shell .daem-footer-social-link > i.fab {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    position: static !important;
    z-index: auto !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
}

.daem-footer-shell .daem-footer-social-link > i.fab::before {
    color: #ffffff !important;
    line-height: 1 !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

.daem-footer-social-link i {
    color: #ffffff !important;
    font-size: 18px;
    line-height: 1;
}

.daem-footer-shell .daem-footer-social-link i::before {
    color: #ffffff !important;
}

.daem-footer-social-link:hover,
.daem-footer-social-link:focus-visible {
    background-color: var(--daem-primary);
    border-color: var(--daem-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.daem-footer-social-link:hover i,
.daem-footer-social-link:focus-visible i {
    color: #ffffff;
}

.daem-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
}

.daem-footer-bottom-inner {
    max-width: 1320px;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
}

.daem-footer-bottom a {
    color: var(--daem-text-on-dark);
    text-decoration: none;
    margin: 0 4px;
}

.daem-footer-bottom a:hover {
    text-decoration: underline;
}

.daem-footer-legal-sep {
    margin: 0 6px;
    opacity: 0.6;
}
