/* ============================================================
   Ballettschule Rybalov – Template CSS
   Joomla 6 | Version 2.0
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
    --purple:        #7b4fa8;
    --purple-dark:   #5a3280;
    --purple-deep:   #3d1f60;
    --purple-light:  #f5f0fc;
    --purple-pale:   #faf7fe;
    --white:         #ffffff;
    --text:          #2c2c2c;
    --text-muted:    #777777;
    --border:        #e8dff5;
    --shadow-sm:     0 1px 4px rgba(90, 50, 128, 0.08);
    --shadow:        0 3px 12px rgba(90, 50, 128, 0.14);
    --transition:    0.22s ease;
    --font-display:  'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:     'Lato', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    margin: 0;
    padding: 0;
}

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

a {
    color: var(--purple);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}

/* ── FOCUS STATES (accessibility) ───────────────────────── */
/* Keyboard-only focus: strong outline so Tab navigation is visible. */
*:focus { outline: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Dark-background contexts: use white outline for contrast */
#t-nav a:focus-visible,
#t-footer a:focus-visible,
#t-footer button:focus-visible,
.t-hero-cta:focus-visible,
.t-mobile-cta__trial:focus-visible,
.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible {
    outline-color: var(--white);
    outline-offset: 3px;
}

p { margin: 0 0 1rem; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    margin: 0 0 .85rem;
}

h1 { font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 1.95rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }
h4 { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem); }
h5 { font-size: 1rem; }

ul, ol { padding-left: 1.4rem; }

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

/* ── HEADER ─────────────────────────────────────────────── */
#t-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

#t-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

#t-logo { text-align: center; flex: 0 0 auto; }

#t-logo a { display: inline-block; line-height: 0; }

#t-header-contact {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.t-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.98rem;
}

.t-header-phone:hover {
    color: var(--purple);
    text-decoration: none;
}

.t-header-phone-icon {
    color: var(--purple);
    font-size: 1.15rem;
    line-height: 1;
}

.t-header-cta {
    display: inline-block;
    background: var(--purple);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background var(--transition), transform var(--transition);
    box-shadow: 0 3px 10px rgba(61, 31, 96, 0.25);
}

.t-header-cta:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
}

.t-logo-img {
    max-height: 130px;
    width: auto;
    display: block;
}

.t-logo-text {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
}

.t-logo-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.9rem;
    color: var(--purple);
    letter-spacing: 0.01em;
    line-height: 1;
}

.t-logo-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* ── NAVIGATION ─────────────────────────────────────────── */
#t-nav {
    background: var(--purple);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(61, 31, 96, 0.3);
}

#t-nav .container {
    display: flex;
    align-items: stretch;
    min-height: 52px;
    position: relative;
}

#t-nav-menu { flex: 1; }

/* Reset Bootstrap/Joomla mod_menu defaults inside our nav */
#t-nav ul,
#t-nav .nav,
#t-nav .mod-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    height: 100%;
    background: none;
    border: none;
    box-shadow: none;
}

#t-nav li { position: relative; }

/* All link variants Joomla menu module can output */
#t-nav ul li > a,
#t-nav ul li > span,
#t-nav .nav-item > a,
#t-nav .nav-item > .nav-link,
#t-nav .mod-menu > li > a {
    display: flex !important;
    align-items: center;
    padding: 0 18px !important;
    height: 52px;
    color: rgba(255, 255, 255, 0.94) !important;
    font-size: 14px !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    text-decoration: none !important;
    position: relative;
    transition: color var(--transition);
    white-space: nowrap;
    border: none !important;
    background: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    line-height: 1 !important;
}

/* Animated underline for nav links (hover + active) */
#t-nav ul li > a::after,
#t-nav .nav-item > a::after,
#t-nav .nav-item > .nav-link::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 12px;
    height: 2px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

#t-nav ul li > a:hover::after,
#t-nav ul li.active > a::after,
#t-nav ul li.current > a::after,
#t-nav .nav-item > a:hover::after,
#t-nav .nav-item.active > .nav-link::after,
#t-nav .nav-item.current > .nav-link::after {
    transform: scaleX(1);
}

#t-nav ul li > a:hover,
#t-nav ul li.active > a,
#t-nav ul li.current > a,
#t-nav .nav-item > a:hover,
#t-nav .nav-item.active > .nav-link,
#t-nav .nav-item.current > .nav-link {
    color: #fff !important;
    text-decoration: none !important;
    background: none !important;
}

/* Dropdown sub-menus */
#t-nav ul ul,
#t-nav .nav-item .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    height: auto;
    background: var(--purple-dark) !important;
    min-width: 210px;
    box-shadow: var(--shadow);
    z-index: 1001;
    border: none !important;
    border-top: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

#t-nav ul li:hover > ul { display: flex; }

#t-nav ul ul li > a {
    height: auto !important;
    padding: 11px 18px !important;
    font-size: 11.5px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ── Mobile nav toggle ──────────────────────────────────── */
.t-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 12px;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.t-nav-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    background: rgba(255, 255, 255, 0.88);
    margin: 5px 0;
    border-radius: 1px;
    transition: var(--transition);
}

/* ── BREADCRUMBS ────────────────────────────────────────── */
#t-breadcrumbs {
    background: var(--purple-pale);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

#t-breadcrumbs .container {
    padding-top: 11px;
    padding-bottom: 11px;
}

#t-breadcrumbs ul,
#t-breadcrumbs .mod-breadcrumbs,
#t-breadcrumbs .breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    background: none;
}

#t-breadcrumbs li,
#t-breadcrumbs .breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

#t-breadcrumbs li + li::before,
#t-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--purple);
    margin-right: 10px;
    font-weight: 600;
    padding: 0;
}

#t-breadcrumbs a {
    color: var(--purple);
    text-decoration: none;
}

#t-breadcrumbs a:hover {
    color: var(--purple-dark);
    text-decoration: underline;
}

#t-breadcrumbs .divider { display: none; }

/* ── BANNER / HERO ──────────────────────────────────────── */
#t-banner {
    overflow: hidden;
    line-height: 0;
    background: var(--purple-deep);
    position: relative;
}

#t-banner .carousel { width: 100%; }

#t-banner .carousel-item {
    position: relative;
    height: clamp(360px, 62vh, 640px);
}

#t-banner .carousel-item img,
#t-banner > img,
#t-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

#t-banner .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(61, 31, 96, 0.15) 0%, rgba(61, 31, 96, 0.55) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 55%);
    pointer-events: none;
}

/* Hero overlay: headline + CTA centered on the image */
.t-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 24px;
    text-align: center;
}

.t-hero-overlay > * { pointer-events: auto; }

.t-hero-inner {
    max-width: 760px;
    color: var(--white);
    line-height: 1.25;
}

.t-hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    backdrop-filter: blur(2px);
}

.t-hero-title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 600;
    font-size: clamp(2rem, 1.4rem + 3.2vw, 3.6rem);
    color: var(--white);
    margin: 0 0 16px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    line-height: 1.15;
}

.t-hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
    color: rgba(255, 255, 255, 0.92);
    margin: 0 auto 26px;
    max-width: 560px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
    line-height: 1.55;
}

.t-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--purple-deep) !important;
    padding: 14px 32px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    transition: transform var(--transition), background var(--transition), color var(--transition);
}

.t-hero-cta:hover {
    background: var(--purple);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.t-hero-cta-arrow { transition: transform var(--transition); }
.t-hero-cta:hover .t-hero-cta-arrow { transform: translateX(4px); }

#t-banner .carousel-caption {
    font-family: var(--font-display);
    font-style: italic;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

#t-banner .carousel-control-prev,
#t-banner .carousel-control-next {
    width: 56px;
    opacity: 0.85;
    transition: opacity var(--transition);
}

#t-banner .carousel-control-prev:hover,
#t-banner .carousel-control-next:hover { opacity: 1; }

#t-banner .carousel-control-prev-icon,
#t-banner .carousel-control-next-icon {
    width: 36px;
    height: 36px;
    background-color: var(--purple);
    border-radius: 50%;
    background-size: 14px;
    box-shadow: 0 2px 10px rgba(61, 31, 96, 0.45);
}

#t-banner .carousel-indicators {
    margin-bottom: 14px;
}

#t-banner .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--purple);
    opacity: 0.8;
}

#t-banner .carousel-indicators .active {
    background-color: var(--purple);
    opacity: 1;
}

/* ── SECTION WRAPPERS ───────────────────────────────────── */
.t-section { padding: 36px 0; }

.t-section--tinted {
    background: var(--purple-pale);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ── MAIN CONTENT AREA ──────────────────────────────────── */
#t-main { padding: 36px 0 50px; }

/* ── JOOMLA COMPONENT CONTENT ───────────────────────────── */

/* Blog layout – card grid
   Joomla renders: .blog-items (container) > .blog-item (each card)
   We grid the container and card-ify each item. */
.blog-items,
.com-content-category-blog__items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

/* Leading articles span the full width (featured on home). */
.blog-items.items-leading,
.com-content-category-blog__items.items-leading {
    grid-template-columns: 1fr;
    margin-bottom: 36px;
}

.blog-items.items-leading .blog-item,
.com-content-category-blog__items.items-leading .com-content-category-blog__item {
    padding: 34px 36px;
    background: linear-gradient(135deg, var(--purple-pale) 0%, var(--white) 100%);
}

.blog-item,
.com-content-category-blog__item {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    box-shadow: var(--shadow-sm);
}

.blog-item:hover,
.com-content-category-blog__item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(123, 79, 168, 0.35);
}

/* Intro image (Joomla intro_image / fulltext_image) */
.blog-item .item-image,
.blog-item .img-intro-none,
.blog-item .img-intro-left,
.blog-item .img-intro-right,
.blog-item .item-image-intro,
.com-content-category-blog__item .item-image {
    display: block;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--purple-pale);
}

.blog-item .item-image img,
.blog-item figure img,
.com-content-category-blog__item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.blog-item:hover .item-image img,
.com-content-category-blog__item:hover .item-image img {
    transform: scale(1.05);
}

.blog-item .item-content,
.com-content-category-blog__item .item-content {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Card title (works with .item-title h2 and page-header h2) */
.blog-item .item-title,
.blog-item .page-header h2,
.com-content-category-blog__item .item-title,
.com-content-category-blog__item .page-header h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 10px;
}

.blog-item .item-title a,
.blog-item .page-header h2 a,
.com-content-category-blog__item .item-title a,
.com-content-category-blog__item .page-header h2 a {
    color: var(--text);
    text-decoration: none;
}

.blog-item .item-title a:hover,
.blog-item .page-header h2 a:hover,
.com-content-category-blog__item .item-title a:hover,
.com-content-category-blog__item .page-header h2 a:hover {
    color: var(--purple);
    text-decoration: none;
}

.blog-item p:last-of-type,
.com-content-category-blog__item p:last-of-type {
    margin-bottom: 16px;
}

.blog-item .readmore,
.com-content-category-blog__item .readmore {
    margin-top: auto;
    padding-top: 8px;
}

/* Leading article — larger type */
.blog-items.items-leading .blog-item .item-title,
.blog-items.items-leading .blog-item .page-header h2,
.com-content-category-blog__items.items-leading .com-content-category-blog__item .item-title,
.com-content-category-blog__items.items-leading .com-content-category-blog__item .page-header h2 {
    font-size: 1.7rem;
}

.blog-items.items-leading .blog-item .item-content,
.com-content-category-blog__items.items-leading .com-content-category-blog__item .item-content {
    padding: 0;
}

/* Page header (single article, category) */
.com_content .page-header h1,
.item-page .page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 1.25rem + 1.3vw, 2.15rem);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 24px;
}

/* Blog article title */
h2.article-title,
.article-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 6px;
}

h2.article-title a,
.article-title a {
    color: var(--text);
    text-decoration: none;
}

h2.article-title a:hover,
.article-title a:hover {
    color: var(--purple);
    text-decoration: none;
}

.article-info,
.article-info-block,
.com-content-article__info {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Read more */
.readmore { margin-top: 14px; }

.readmore a,
a.readmore {
    display: inline-block;
    color: var(--purple);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    text-decoration: none;
    border-bottom: 2px solid var(--purple);
    padding-bottom: 2px;
    transition: all var(--transition);
}

.readmore a:hover {
    color: var(--purple-dark);
    border-color: var(--purple-dark);
    text-decoration: none;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.pagination .page-item .page-link {
    display: block;
    padding: 6px 13px;
    color: var(--purple);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 13px;
    text-decoration: none;
    transition: all var(--transition);
}

.pagination .page-item.active .page-link,
.pagination .page-item .page-link:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

/* ── MODULES ─────────────────────────────────────────────── */
.t-module { margin-bottom: 28px; }

.t-module-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--purple);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* ── BOTTOM SECTION ─────────────────────────────────────── */
#t-bottom {
    background: var(--purple-light);
    border-top: 1px solid var(--border);
    padding: 36px 0;
}

/* ── FOOTER ─────────────────────────────────────────────── */
#t-footer {
    background: var(--purple-deep);
    color: rgba(255, 255, 255, 0.82);
    padding: 40px 0 24px;
    font-size: 14px;
    text-align: center;
}

#t-footer a { color: rgba(255, 255, 255, 0.88); text-decoration: none; }
#t-footer a:hover { color: var(--white); text-decoration: underline; }

.t-footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    text-align: left;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.t-footer-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.04em;
    margin: 0 0 10px;
}

.t-footer-address {
    font-style: normal;
    line-height: 1.7;
}

.t-footer-hours {
    line-height: 1.7;
    white-space: pre-line;
}

.t-footer-social {
    display: flex;
    gap: 12px;
}

.t-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    transition: background var(--transition), transform var(--transition);
}

.t-social-icon:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
    text-decoration: none;
}

#t-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    margin-bottom: 10px;
}

#t-footer-links .t-footer-sep {
    color: rgba(255, 255, 255, 0.45);
}

#t-footer-copy {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

#t-footer-copy p { margin: 0; }

/* ── COOKIE BANNER ──────────────────────────────────────── */
.t-cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1100;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--purple);
    border-radius: 6px;
    box-shadow: 0 10px 32px rgba(61, 31, 96, 0.22);
    max-width: 760px;
    margin: 0 auto;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.32s ease, opacity 0.32s ease;
}

.t-cookie.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.t-cookie[hidden] { display: none; }

.t-cookie-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
}

.t-cookie-text {
    margin: 0;
    flex: 1;
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.55;
}

.t-cookie-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.t-cookie-link {
    font-size: 12.5px;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dotted var(--purple);
    padding-bottom: 1px;
}

.t-cookie-link:hover {
    color: var(--purple-dark);
    border-bottom-style: solid;
    text-decoration: none;
}

.t-cookie-accept {
    background: var(--purple);
    color: var(--white);
    border: none;
    padding: 10px 22px;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.t-cookie-accept:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
}

.t-cookie-decline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 9px 18px;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.t-cookie-decline:hover {
    background: var(--purple-pale);
    color: var(--text);
}

/* ── SYSTEM MESSAGES ─────────────────────────────────────── */
.alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid transparent;
}

.alert-success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border-color: #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border-color: #ffeeba; }
.alert-danger,
.alert-error   { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }

/* ── GALLERY ──────────────────────────────────────────────── */
.gallery-album { margin-bottom: 40px; }

.gallery-album-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--purple);
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 14px;
}

.gallery-intro {
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 1rem;
}

.gallery-empty {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 32px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    margin: 16px 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    background: var(--purple-pale);
    border: none;
    display: block;
    position: relative;
    line-height: 0;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(123, 79, 168, 0);
    transition: background 0.25s;
    border-radius: 6px;
    pointer-events: none;
}

.gallery-item:hover::after { background: rgba(123, 79, 168, 0.18); }

.gallery-item:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 2px;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.38s ease;
    border-radius: 6px;
}

.gallery-item:hover img { transform: scale(1.06); }

/* ── GALLERY LIGHTBOX ────────────────────────────────────── */
.gallery-lightbox-modal .modal-dialog { max-width: min(92vw, 1100px); }

.gallery-lightbox-content {
    background: rgba(10, 5, 20, 0.97);
    border: none;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 52px 68px 44px;
    min-height: 200px;
}

.gallery-lightbox-img {
    max-height: 80vh;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 3px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.65);
}

.gallery-lightbox-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    font-size: 2.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    transition: color var(--transition);
    z-index: 10;
}

.gallery-lightbox-close:hover { color: #fff; }

.gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.80);
    font-size: 2.2rem;
    line-height: 1;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    z-index: 10;
    padding: 0;
}

.gallery-lightbox-nav:hover {
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
}

.gallery-lightbox-prev { left: 10px; }
.gallery-lightbox-next { right: 10px; }

.gallery-lightbox-footer {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
}

.gallery-lightbox-counter {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12.5px;
    font-family: var(--font-body);
    letter-spacing: 0.05em;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 5px;
    }

    .gallery-lightbox-content { padding: 48px 8px 40px; }
    .gallery-lightbox-nav { display: none; }
}

/* ── VIDEO GRID ──────────────────────────────────────────── */
.video-intro {
    margin-bottom: 28px;
    color: var(--text-muted);
    font-size: 1rem;
}

.video-empty {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 32px 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 16px 0;
}

.video-card {
    background: var(--purple-pale);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.video-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.video-embed {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: #0a0514;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px 10px 0 0;
}

.video-card:has(.video-title) .video-embed iframe {
    border-radius: 10px 10px 0 0;
}

.video-title {
    padding: 10px 14px 12px;
    margin: 0;
    font-size: 0.93rem;
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.4;
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ── TABLES ──────────────────────────────────────────────── */
/* Auto-scroll any table inside article content on narrow screens.
   Wraps each table via CSS-only (scroll on the table itself). */
#t-content table,
.item-content table,
.com-content-article__body table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: 14px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Visible scrollbar styling for table overflow */
#t-content table::-webkit-scrollbar,
.item-content table::-webkit-scrollbar { height: 6px; }
#t-content table::-webkit-scrollbar-thumb,
.item-content table::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 3px;
}

/* Keep the inner tbody/thead working as a table */
#t-content table > tbody,
#t-content table > thead,
.item-content table > tbody,
.item-content table > thead {
    display: table;
    width: 100%;
    min-width: 640px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    font-size: 14px;
}

th {
    background: var(--purple);
    color: var(--white);
    padding: 10px 14px;
    text-align: left;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

tr:nth-child(even) td { background: var(--purple-pale); }

/* ── FORMS ───────────────────────────────────────────────── */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition);
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 2px rgba(123, 79, 168, 0.12);
}

.btn,
input[type="submit"],
button[type="submit"] {
    display: inline-block;
    background: var(--purple);
    color: var(--white);
    padding: 9px 24px;
    border: none;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition);
    line-height: 1.5;
}

.btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--purple-dark);
    color: var(--white);
    text-decoration: none;
}

/* ── SEARCH ──────────────────────────────────────────────── */
.mod-search .search-input { border-radius: 3px 0 0 3px; }

.mod-search .search-button {
    background: var(--purple);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    font-size: 13px;
    transition: background var(--transition);
}

.mod-search .search-button:hover { background: var(--purple-dark); }

/* ── MOBILE STICKY CTA BAR ───────────────────────────────── */
.t-mobile-cta {
    display: none; /* only visible on mobile via media query */
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(61, 31, 96, 0.12);
    padding: env(safe-area-inset-bottom, 0) 0 0;
}

.t-mobile-cta__item {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none !important;
    transition: background var(--transition), color var(--transition);
}

.t-mobile-cta__item svg { flex-shrink: 0; }

.t-mobile-cta__phone {
    color: var(--purple) !important;
    background: var(--white);
}

.t-mobile-cta__phone:hover,
.t-mobile-cta__phone:active {
    background: var(--purple-pale);
    color: var(--purple-dark) !important;
}

.t-mobile-cta__trial {
    color: var(--white) !important;
    background: var(--purple);
}

.t-mobile-cta__trial:hover,
.t-mobile-cta__trial:active {
    background: var(--purple-dark);
    color: var(--white) !important;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .t-nav-toggle { display: block; }

    #t-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--purple-dark);
        z-index: 999;
        border-top: 2px solid rgba(255, 255, 255, 0.15);
    }

    #t-nav-menu.is-open { display: block; }

    #t-nav ul,
    #t-nav .nav {
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
    }

    #t-nav ul li > a,
    #t-nav .nav-item > a,
    #t-nav .nav-item > .nav-link {
        height: auto !important;
        padding: 13px 20px !important;
        font-size: 13px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    #t-nav ul ul {
        position: static;
        background: rgba(0, 0, 0, 0.12) !important;
        box-shadow: none;
        border-top: none !important;
        min-width: 0;
    }

    #t-nav .container {
        justify-content: flex-start;
        padding-right: 50px;
    }
}

@media (max-width: 767px) {
    .t-logo-img { max-height: 90px; }

    /* Show mobile sticky CTA bar */
    .t-mobile-cta {
        display: flex;
        align-items: stretch;
    }

    /* Hide header CTA on mobile — it's now in the sticky bar */
    #t-header .t-header-cta { display: none; }

    /* Keep content above the sticky bar */
    body { padding-bottom: 64px; }

    /* Lift cookie banner above the sticky bar */
    .t-cookie { bottom: 70px; }

    /* Compact content tables on mobile */
    #t-content table,
    .item-content table,
    .com-content-article__body table { font-size: 13px; }

    #t-content table td,
    #t-content table th,
    .item-content table td,
    .item-content table th { padding: 8px 10px; }

    /* Hero overlay: less padding on small screens */
    .t-hero-overlay { padding: 16px; }
    #t-banner .carousel-item { height: clamp(280px, 55vh, 420px); }

    #t-header .container {
        flex-direction: column;
        gap: 14px;
    }

    #t-header-contact {
        gap: 12px;
    }

    .t-header-phone-number { font-size: 0.9rem; }

    .t-header-cta {
        padding: 9px 16px;
        font-size: 0.74rem;
        letter-spacing: 0.06em;
    }


    .t-section { padding: 22px 0; }
    #t-main    { padding: 22px 0 32px; }
    #t-bottom  { padding: 22px 0; }

    .t-logo-name { font-size: 1.5rem; }

    #t-breadcrumbs { font-size: 11px; letter-spacing: 0.6px; }

    .t-cookie {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .t-cookie-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }

    .t-cookie-actions {
        justify-content: space-between;
    }

    .t-cookie-accept,
    .t-cookie-decline { flex: 1; }

    #t-footer-links {
        flex-wrap: wrap;
        font-size: 11.5px;
        letter-spacing: 0.8px;
    }
}

/* ── PROBESTUNDE MODAL ───────────────────────── */
.t-probe-header {
    background: var(--purple);
    padding: 1.1rem 1.5rem;
}

.t-probe-title {
    color: var(--white);
    font-size: 1.2rem;
    margin: 0;
}

#probestundeModal .modal-body {
    padding: 1.6rem 1.5rem;
}

.t-probe-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

#probestundeModal .form-label {
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

#probestundeModal .form-control,
#probestundeModal .form-select {
    border-color: var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
}

#probestundeModal .form-control:focus,
#probestundeModal .form-select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(123, 79, 168, 0.18);
}

.t-probe-req { color: #c0392b; }

.t-probe-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.t-probe-submit {
    display: block;
    width: 100%;
    padding: 13px 24px;
    background: var(--purple);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background var(--transition);
}

.t-probe-submit:hover { background: var(--purple-dark); }
.t-probe-submit:focus-visible {
    outline: 3px solid var(--purple-dark);
    outline-offset: 2px;
}
.t-probe-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.t-probe-success {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
}

.t-probe-success-icon {
    color: #2e7d32;
    margin-bottom: 1rem;
    display: block;
    margin-inline: auto;
}

.t-probe-success h3 {
    color: var(--purple);
    margin-bottom: 0.5rem;
}
