@import url('allen-carr-kurslist.css');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --ac-cream: #fbf7f3;
    --ac-paper: #f4eae7;
    --ac-mist: #f3e1e5;
    --ac-forest: #3a1022;
    --ac-forest2: #6e1239;
    --ac-ink: #2e2426;
    --ac-muted: #675a5c;
    --ac-line: rgba(58, 16, 34, 0.14);
    --ac-primary: #9c1445;
    --ac-primary-dark: #770f35;
    --ac-accent: #f4b98a;
    --ac-footer-bg: #f4eae7;
    --ac-text-on-dark: #2e2426;
    --ac-header-height: 76px;
    --ac-header-top-height: 0px;
}

html[data-k3-tile-tenant-branding="true"] {
    --ac-primary: var(--k3-tile-monochrome-color);
}

/* Webshop + /Login: Repaint burgundy (see kurslist CTA), not K3 tile monochrome */
html[data-k3-tile-tenant-branding="true"] body.tenant-login-body,
html[data-k3-tile-tenant-branding="true"] .maincontent.webshop-style.allen-carr-webshop {
    --ac-primary: #9c1445;
    --ac-primary-dark: #770f35;
}

/* Header shell */
.ac-header-shell {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    background: rgba(251, 247, 243, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ac-line);
    box-shadow: none;
    font-family: "DM Sans", Satoshi, "Segoe UI", system-ui, sans-serif;
}

.ac-header-top {
    display: none;
}

.ac-header-top-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    height: 100%;
}

.ac-header-phones {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.ac-header-phones-label {
    opacity: 0.9;
    white-space: nowrap;
}

.ac-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ac-text-on-dark);
    text-decoration: none;
    white-space: nowrap;
}

.ac-header-phone img {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    object-fit: cover;
}

.ac-header-phone:hover {
    color: var(--ac-primary);
}

.ac-header-socials {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ac-header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #ffffff;
    text-decoration: none;
}

.ac-header-shell .ac-header-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;
    box-shadow: none !important;
    display: inline-flex !important;
    font-size: 14px !important;
    color: #ffffff !important;
}

.ac-header-social-link:hover {
    color: var(--ac-primary);
}

.ac-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(--ac-header-height) - var(--ac-header-top-height));
}

.ac-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.ac-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(--ac-footer-bg);
    padding: 0;
}

.ac-side-menu-button:hover {
    color: var(--ac-primary);
}

.ac-side-menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.ac-side-menu-icon::before,
.ac-side-menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
}

.ac-side-menu-icon::before {
    top: -7px;
}

.ac-side-menu-icon::after {
    top: 7px;
}

.ac-logo-link {
    display: block;
    line-height: 0;
}

.ac-logo-link img {
    max-height: 72px;
    width: auto;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

.ac-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ac-header-action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    text-decoration: none;
}

.ac-header-action-link img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.ac-header-lang {
    min-width: 64px;
    height: 34px;
    padding: 0 10px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
}

.ac-header-spacer {
    height: calc(var(--ac-header-height));
}

/* Side panel */
.ac-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;
}

.ac-sidepanel-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.ac-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: Inter, "Helvetica Neue", Arial, sans-serif;
}

.ac-sidepanel.is-open {
    transform: translateX(0);
}

.ac-sidepanel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--ac-primary);
    color: var(--ac-text-on-dark);
}

.ac-sidepanel-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.ac-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;
}

.ac-sidepanel-body {
    padding: 24px 20px;
}

.ac-sidepanel-section {
    margin-bottom: 24px;
}

.ac-sidepanel-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ac-footer-bg);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ac-sidepanel-phone-label {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ac-footer-bg);
}

.ac-sidepanel-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ac-footer-bg);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 15px;
}

.ac-sidepanel-contact a:hover {
    color: var(--ac-primary);
}

.ac-sidepanel-contact a img {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    object-fit: cover;
}

.ac-sidepanel-booking-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 12px 24px;
    background: var(--ac-primary);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
}

.ac-sidepanel-booking-btn:hover {
    background: var(--ac-primary-dark);
    color: #ffffff !important;
}

.ac-sidepanel-social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ac-sidepanel-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ac-footer-bg);
    color: #ffffff;
    text-decoration: none;
}

.ac-sidepanel .ac-sidepanel-social-links a > i.fab {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    position: static !important;
    box-shadow: none !important;
    display: inline-flex !important;
    font-size: 16px !important;
    color: #ffffff !important;
}

.ac-sidepanel-social-links a:hover {
    background: var(--ac-primary);
}

.ac-sidepanel-lang {
    margin-top: 16px;
}

/* Footer */
.ac-footer-shell {
    background: var(--ac-footer-bg);
    color: var(--ac-ink);
    font-family: "DM Sans", Satoshi, "Segoe UI", system-ui, sans-serif;
    border-top: 1px solid var(--ac-line);
}

.ac-footer-top {
    padding: 40px 20px 32px;
}

.ac-footer-top-inner {
    max-width: 1320px;
    margin: 0 auto;
}

.ac-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    align-items: start;
}

.ac-footer-col img.ac-footer-logo {
    max-height: 72px;
    width: auto;
    margin-top: 4px;
}

.ac-footer-partner-label {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ac-footer-partner-logo {
    max-height: 48px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 6px;
    padding: 6px 10px;
}

.ac-footer-col p,
.ac-footer-col a {
    color: var(--ac-muted);
    font-size: 15px;
    line-height: 1.6;
    text-decoration: none;
}

.ac-footer-col a:hover {
    color: var(--ac-primary);
    text-decoration: none;
}

.ac-footer-legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ac-footer-legal-list li {
    margin-bottom: 8px;
}

.ac-footer-socials {
    display: flex;
    gap: 14px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.ac-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;
}

.ac-footer-shell .ac-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;
}

.ac-footer-shell .ac-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;
}

.ac-footer-social-link:hover,
.ac-footer-social-link:focus-visible {
    background-color: var(--ac-primary);
    border-color: var(--ac-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.ac-footer-bottom {
    border-top: 1px solid var(--ac-line);
    color: var(--ac-muted);
    padding: 20px;
}

.maincontent.webshop-style {
    background: var(--ac-cream);
    color: var(--ac-ink);
    font-family: "DM Sans", Satoshi, "Segoe UI", system-ui, sans-serif;
}

.ac-footer-bottom-inner {
    max-width: 1320px;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
}

/* Static login / forgot-password / register (TenantWebShell brandingOnly) */
html[data-k3-tile-tenant-branding="true"] body.tenant-login-body {
    background: var(--ac-cream);
    font-family: "DM Sans", Satoshi, "Segoe UI", system-ui, sans-serif;
}

html[data-k3-tile-tenant-branding="true"] body.tenant-login-body .container {
    border-color: var(--ac-paper);
    box-shadow: 0 24px 48px color-mix(in srgb, var(--ac-forest) 12%, transparent);
}

html[data-k3-tile-tenant-branding="true"] body.tenant-login-body .tenant-branding-title {
    color: var(--ac-muted);
}

/* /Login — Repaint burgundy (#9c1445), same as kursangebot CTA; beats Neomorphism Login.css + K3 tile mint on deploy */
html[data-k3-tile-tenant-branding="true"] body.tenant-login-body .heading,
html[data-k3-tile-tenant-branding="true"] body.tenant-login-body .social-account-container .title {
    color: #9c1445;
}

html[data-k3-tile-tenant-branding="true"] body.tenant-login-body .form .login-button {
    background: #9c1445;
    background-image: none;
    color: #ffffff;
    box-shadow: color-mix(in srgb, #9c1445 45%, transparent) 0 20px 10px -15px;
}

html[data-k3-tile-tenant-branding="true"] body.tenant-login-body .form .login-button:hover {
    box-shadow: color-mix(in srgb, #9c1445 50%, transparent) 0 23px 10px -20px;
}

html[data-k3-tile-tenant-branding="true"] body.tenant-login-body .form .forgot-password a,
html[data-k3-tile-tenant-branding="true"] body.tenant-login-body .agreement a {
    color: #9c1445;
}

html[data-k3-tile-tenant-branding="true"] body.tenant-login-body .form .input:focus {
    border-inline-color: #9c1445;
}
