/* CSS variables for the premium 2026 design system */
:root {
    --color-primary: #000044;     /* Deep navy blue glow */
    --color-primary-dark: #000022;
    --color-accent: #705D4F;      /* Neutral taupe/brown */
    --color-gold: #D4AF37;        /* Golden accent */
    --color-gold-hover: #FFE79A;  /* Light golden highlight */
    --color-white: #ffffff;
    --color-offwhite: #faf9f6;    /* Premium off-white for content */
    --color-text: #222222;        /* Soft charcoal for readability */
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-deep: 0 20px 80px rgba(0, 0, 0, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modernized Reset & Basics */
* {
    box-sizing: border-box;
}

html, body {
    background: radial-gradient(circle at top, var(--color-primary), var(--color-primary-dark));
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: 15px; /* Base size increased */
    line-height: 1.7;
    color: var(--color-text);
    scroll-behavior: smooth;
}

/* Wrapper for mobile-first layout */
#pagewrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
    overflow-x: hidden;
    position: relative;
    /* 2026 Polish */
    border-radius: 16px 16px 0 0;
    box-shadow: var(--shadow-deep);
    background-color: var(--color-offwhite);
    /* Entry animation removed for snappier feel */
}

/* Hamburger Toggle Button */
#hamburger-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 13px 9px;
    background: rgba(0, 0, 40, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    position: fixed; /* FLOATING! App-like modern behavior */
    top: 15px;
    right: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

#hamburger-toggle:hover {
    background: rgba(0, 0, 40, 0.8);
    transform: scale(1.05);
}

#hamburger-toggle span {
    width: 26px;
    height: 3px;
    background-color: var(--color-gold);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Transform Hamburger to X when open */
.menu-open #hamburger-toggle span:first-child {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--color-white);
}

.menu-open #hamburger-toggle span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

.menu-open #hamburger-toggle span:last-child {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--color-white);
}

/* Mobile Overlay */
#mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 15, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999;
}

.menu-open #mobile-menu-overlay {
    display: block;
}

/* Header */
header#header, #header {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--color-primary);
    display: block;
    position: relative;
    border-bottom: 3px solid var(--color-gold);
    border-radius: 16px 16px 0 0;
}

header#header img, #header img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile Off-canvas Navigation Drawer */
nav#nav, #nav {
    background: rgba(0, 0, 40, 0.85); /* Deep navy translucent */
    backdrop-filter: blur(12px); /* 2026 Glassmorphism */
    border-left: 1px solid rgba(255, 255, 255, 0.1); /* Subtle edge highlight */
    width: 280px;
    height: 100%;
    position: fixed;
    top: 0;
    right: -282px;
    z-index: 9999;
    padding: 60px 0 30px 0;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: block;
}

.menu-open nav#nav {
    right: 0;
}

ul.topmenul1 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

ul.topmenul1 > li {
    position: relative;
    width: 100%;
    height: auto;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

ul.topmenul1 > li > a {
    display: block;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 20px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

ul.topmenul1 > li > a:hover, ul.topmenul1 > li.submenu-expanded > a {
    color: var(--color-gold-hover);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Accordion for submenus on mobile */
ul.topmenul2 {
    display: none;
    position: static;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    list-style: none;
    margin: 0;
    padding: 0 0 10px 0;
    z-index: 101;
}

/* Expand submenu on mobile when expanded class is present */
li.has-sub.submenu-expanded > ul.topmenul2 {
    display: block;
}

ul.topmenul2 > li {
    border-bottom: none;
}

ul.topmenul2 > li > a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 30px;
    font-size: 13px;
    line-height: 1.4;
}

ul.topmenul2 > li > a:hover {
    color: var(--color-white);
    background-color: transparent;
    padding-left: 35px;
    transition: padding-left 0.2s;
}

/* Main Page Layout - Responsive Flexbox */
#page.relax-page-container {
    width: 100%;
    background-color: transparent; /* Allows cards to float beautifully on off-white */
    margin: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.relax-sidebar {
    width: 100%;
    order: 2; /* Sidebar goes to bottom on mobile! */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.relax-main-content {
    width: 100%;
    order: 1; /* Main content goes to top on mobile! */
    padding: 24px 16px; /* Cohesive card padding */
    flex-grow: 1;
    background-color: var(--color-white);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 102, 0.06);
    box-shadow: var(--shadow-soft);
}

/* Sidebar Widgets on Mobile */
div#news {
    width: 100%;
    background-color: var(--color-white);
    margin: 0; /* Handled by sidebar flex gap */
    padding: 20px;
    font-size: 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 102, 0.08);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}
div#news:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

div#kalender {
    width: 100%;
    background-color: var(--color-white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 102, 0.08);
    box-shadow: var(--shadow-soft);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    transition: var(--transition-smooth);
    margin: 0;
}
div#kalender:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Reset TYPO3 legacy floats inside #kalender for perfect grid alignment */
div#kalender .csc-default {
    width: 100% !important;
    float: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

div#kalender .csc-textpic {
    width: 100% !important;
    float: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

div#kalender .csc-textpic-imagewrap {
    width: auto !important;
    float: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

div#kalender img {
    max-width: 150px;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: none !important; /* Avoid double shadows */
    border: 1px solid rgba(0, 0, 0, 0.05); /* Clean border for logos */
    background-color: var(--color-white);
    transition: var(--transition-smooth);
}
div#kalender img:hover {
    transform: scale(1.05);
    border-color: var(--color-gold);
}

/* Content Area */
#pagetitle {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--color-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

#content_2 {
    width: 100%;
    font-size: 15px;
    line-height: 1.8;
}

h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.2rem); font-weight: 700; margin: 24px 0 16px 0; color: var(--color-primary); letter-spacing: -0.5px; }
h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.8rem); font-weight: 600; margin: 24px 0 16px 0; color: var(--color-primary); }
h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 1.4rem); font-weight: 600; margin: 20px 0 12px 0; color: var(--color-primary); }
p { margin: 16px 0; }
a { color: var(--color-primary); font-weight: 500; text-decoration: none; transition: var(--transition-smooth); }
a:hover { color: var(--color-gold); text-decoration: none; }

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

/* Footer */
#footer {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #000011 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 40px 20px;
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    height: auto; /* Fluid height */
}

#footer ul {
    list-style: none;
    margin: 0 0 15px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    height: auto;
    align-items: center;
}

#footer ul li {
    padding: 0;
    border-right: none; /* Removed legacy pipe separators */
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

#footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

#footer ul li a:hover {
    color: var(--color-gold);
    text-decoration: none;
}

/* Specific elements inherited from old site */
.news-list-date { font-weight: bold; display: block; margin-top: 10px;}
.news-list-morelink { text-align: right; margin-top: 5px; }
.csc-textpic-single-image { margin-bottom: 10px; }
hr.clearer { clear: both; border: 0; height: 1px; background-color: #ccc; margin: 15px 0; }


/* MERGED TYPO3 STYLES */

/* Style from typo3temp/stylesheet_fad97d0aa7.css@1711968046.css */
/* default styles for extension "tx_felogin_pi1" */
	.tx-felogin-pi1 label {
		display: block;
	}
/* default styles for extension "tx_cssstyledcontent" */
	/* Captions */
	DIV.csc-textpic-caption-c .csc-textpic-caption { text-align: center; }
	DIV.csc-textpic-caption-r .csc-textpic-caption { text-align: right; }
	DIV.csc-textpic-caption-l .csc-textpic-caption { text-align: left; }

	/* Needed for noRows setting */
	DIV.csc-textpic DIV.csc-textpic-imagecolumn { float: left; display: inline; }

	/* Border just around the image */
	DIV.csc-textpic-border DIV.csc-textpic-imagewrap .csc-textpic-image IMG, DIV.csc-textpic-border DIV.csc-textpic-single-image IMG {
		border: 2px solid black;
		padding: 0px 0px;
	}

	DIV.csc-textpic-imagewrap { padding: 0; }

	DIV.csc-textpic IMG { border: none; }

	/* DIV: This will place the images side by side */
	DIV.csc-textpic DIV.csc-textpic-imagewrap DIV.csc-textpic-image { float: left; }

	/* UL: This will place the images side by side */
	DIV.csc-textpic DIV.csc-textpic-imagewrap UL { list-style: none; margin: 0; padding: 0; }
	DIV.csc-textpic DIV.csc-textpic-imagewrap UL LI { float: left; margin: 0; padding: 0; }

	/* DL: This will place the images side by side */
	DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image { float: left; }
	DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image DT { float: none; }
	DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image DD { float: none; }
	DIV.csc-textpic DIV.csc-textpic-imagewrap DL.csc-textpic-image DD IMG { border: none; } /* FE-Editing Icons */
	DL.csc-textpic-image { margin: 0; }
	DL.csc-textpic-image DT { margin: 0; display: inline; }
	DL.csc-textpic-image DD { margin: 0; }

	/* Clearer */
	DIV.csc-textpic-clear { clear: both; }

	/* Margins around images: */

	/* Pictures on left, add margin on right */
	DIV.csc-textpic-left DIV.csc-textpic-imagewrap .csc-textpic-image,
	DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap .csc-textpic-image,
	DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap .csc-textpic-image {
		display: inline; /* IE fix for double-margin bug */
		margin-right: 10px;
	}

	/* Pictures on right, add margin on left */
	DIV.csc-textpic-right DIV.csc-textpic-imagewrap .csc-textpic-image,
	DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap .csc-textpic-image,
	DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap .csc-textpic-image {
		display: inline; /* IE fix for double-margin bug */
		margin-left: 10px;
	}

	/* Pictures centered, add margin on left */
	DIV.csc-textpic-center DIV.csc-textpic-imagewrap .csc-textpic-image {
		display: inline; /* IE fix for double-margin bug */
		margin-left: 10px;
	}
	DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image .csc-textpic-caption { margin: 0; }
	DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image IMG { margin: 0; vertical-align:bottom; }

	/* Space below each image (also in-between rows) */
	DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-image { margin-bottom: 10px; }
	DIV.csc-textpic-equalheight DIV.csc-textpic-imagerow { margin-bottom: 10px; display: block; }
	DIV.csc-textpic DIV.csc-textpic-imagerow { clear: both; }
	DIV.csc-textpic DIV.csc-textpic-single-image IMG { margin-bottom: 10px; }

	/* No margins around the whole image-block */
	DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-firstcol { margin-left: 0px !important; }
	DIV.csc-textpic DIV.csc-textpic-imagewrap .csc-textpic-lastcol { margin-right: 0px !important; }

	/* Add margin from image-block to text (in case of "Text w/ images") */
	DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap,
	DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap {
		margin-right: 10px !important;
	}
	DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap,
	DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap {
		margin-left: 10px !important;
	}

	/* Positioning of images: */

	/* Above */
	DIV.csc-textpic-above DIV.csc-textpic-text { clear: both; }

	/* Center (above or below) */
	DIV.csc-textpic-center { text-align: center; }
	DIV.csc-textpic-center DIV.csc-textpic-imagewrap { margin: 0 auto; }
	DIV.csc-textpic-center DIV.csc-textpic-imagewrap .csc-textpic-image { text-align: left; }
	DIV.csc-textpic-center DIV.csc-textpic-text { text-align: left; }

	/* Right (above or below) */
	DIV.csc-textpic-right DIV.csc-textpic-imagewrap { float: right; }
	DIV.csc-textpic-right DIV.csc-textpic-text { clear: right; }

	/* Left (above or below) */
	DIV.csc-textpic-left DIV.csc-textpic-imagewrap { float: left; }
	DIV.csc-textpic-left DIV.csc-textpic-text { clear: left; }

	/* Left (in text) */
	DIV.csc-textpic-intext-left DIV.csc-textpic-imagewrap { float: left; }

	/* Right (in text) */
	DIV.csc-textpic-intext-right DIV.csc-textpic-imagewrap { float: right; }

	/* Right (in text, no wrap around) */
	DIV.csc-textpic-intext-right-nowrap DIV.csc-textpic-imagewrap { float: right; clear: both; }

	/* Left (in text, no wrap around) */
	DIV.csc-textpic-intext-left-nowrap DIV.csc-textpic-imagewrap { float: left; clear: both; }

	DIV.csc-textpic DIV.csc-textpic-imagerow-last { margin-bottom: 0; }

	/* Browser fixes: */

	/* Fix for unordered and ordered list with image "In text, left" */
	.csc-textpic-intext-left ol, .csc-textpic-intext-left ul {padding-left: 40px; overflow: auto; }

/* Style from fileadmin/webdesign/gallery/wtgallery.css@1298891957.css */


div.wtgallery_category_folder a {font-size:0.7em;}

.wtgallery_single_browser {height:14px;}

div.wtgallery_single_browser_previous { width: 200px;
  height: 20px;
  position: relative;
  top: 0px;
  left: 97px;
  font-size:0.7em;}

div.wtgallery_single_browser_next { width: 200px;
  height: 20px;
  position: relative;
  top: -20px;
  left: 473px;
  font-size:0.7em;}
  
div.wtgallery_category_pagebrowser_area p {text-align:center;}


/* Modern Grid for Gallery */
div.wtgallery_list_area, div.wtgallery_category_area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    padding: 16px;
}
div.wtgallery_list_area div.wtgallery_list,
div.wtgallery_category_area div.wtgallery_categories,
div.wtgallery_list_area div.wtgallery_list_firstofrow,
div.wtgallery_category_area div.wtgallery_category_firstofrow {
    float: none;
    clear: none;
    margin: 0;
    width: 100%;
}
div.wtgallery_list {
    background-color: transparent;
    padding: 0;
}
div.wtgallery_list a img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    border: none;
    box-shadow: var(--shadow-soft);
    opacity: 1;
    transition: var(--transition-smooth);
}
div.wtgallery_list a:hover img {
    transform: scale(1.05) rotate(0.5deg);
    box-shadow: var(--shadow-deep);
}
div.tx-wtgallery-pi1 {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 20px;
}
div.wt_gallery_single_inner_pic {
    margin: 10px;
    padding: 1px;
    text-align: center;
}
div.wt_gallery_single_inner_pic a img {
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}
div.wt_gallery_single_inner_title {
    font-weight: bold;
    margin-top: 5px;
}


/* ==========================================================================
   DESKTOP RESPONSIVE REVERTS (Schermen 900px en breder)
   ========================================================================== */
@media (min-width: 900px) {
    /* Hide Hamburger toggle and Overlay */
    #hamburger-toggle, #mobile-menu-overlay {
        display: none !important;
    }
    
    /* Restore centered wrapper */
    #pagewrapper {
        width: 95%;
        max-width: 1140px;
        margin: 40px auto; /* 2026: More margin on desktop */
    }
    
    /* Desktop Header dimensions */
    header#header, #header {
        width: 100%;
        height: auto;
        margin: 0;
    }
    
    /* Desktop Navigation Menu */
    nav#nav, #nav {
        background: linear-gradient(135deg, #705D4F 0%, #59493E 100%);
        width: 100%;
        height: 48px; /* Taller menu */
        position: relative;
        top: auto;
        right: auto;
        z-index: 100;
        padding: 0;
        overflow-y: visible;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Premium subtle shadow */
        border-bottom: 2px solid rgba(212, 175, 55, 0.35); /* Elegant gold base line */
        border-left: none;
    }
    
    ul.topmenul1 {
        flex-direction: row;
        justify-content: space-around; /* Balanced spacing around items */
        padding: 0 20px; /* Comfortable breathing room from page edges */
    }
    
    ul.topmenul1 > li {
        width: auto;
        height: 48px;
        border-bottom: none;
    }
    
    ul.topmenul1 > li > a {
        font-family: var(--font-primary);
        font-size: 13px;
        font-weight: 600;
        padding: 0 10px; /* Spacious, substantial clickable areas */
        line-height: 48px;
        white-space: nowrap;
        position: relative;
        background-color: transparent !important;
        color: var(--color-white);
    }
    
    /* 2026 Hover Effect: Sliding Gold Line */
    ul.topmenul1 > li > a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 3px;
        background-color: var(--color-gold);
        transition: var(--transition-smooth);
        transform: translateX(-50%);
    }
    
    ul.topmenul1 > li > a:hover::after, ul.topmenul1 > li:hover > a::after {
        width: 80%;
    }
    
    ul.topmenul1 > li > a:hover, ul.topmenul1 > li:hover > a {
        color: var(--color-gold-hover) !important;
    }
    
    /* Desktop submenus */
    ul.topmenul2 {
        display: none;
        position: absolute;
        top: 48px;
        left: 0;
        width: 220px;
        background: rgba(112, 93, 79, 0.95);
        backdrop-filter: blur(8px);
        list-style: none;
        margin: 0;
        padding: 8px 0;
        z-index: 101;
        border-radius: 0 0 12px 12px;
        box-shadow: var(--shadow-deep);
    }
    
    ul.topmenul1 > li:hover > ul.topmenul2 {
        display: block;
        animation: dropDown 0.3s ease forwards;
        opacity: 0;
        transform: translateY(-10px);
    }
    
    @keyframes dropDown {
        to { opacity: 1; transform: translateY(0); }
    }
    
    ul.topmenul2 > li {
        border-bottom: none;
    }
    
    ul.topmenul2 > li > a {
        color: var(--color-white);
        font-family: var(--font-primary);
        font-size: 13px;
        padding: 8px 20px;
        transition: var(--transition-smooth);
        line-height: 1.5;
    }
    
    ul.topmenul2 > li > a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        padding-left: 26px;
        color: var(--color-gold-hover);
    }
    
    /* Restore Desktop Layout and Order */
    #page.relax-page-container {
        width: 100%;
        padding: 50px 40px;
        flex-direction: row;
        gap: 50px;
    }
    
    .relax-sidebar {
        width: 200px;
        order: 1;
    }
    
    .relax-main-content {
        width: calc(100% - 250px); /* 200px sidebar + 50px gap */
        order: 2;
        padding: 40px; /* Spacious premium card padding on desktop */
    }
    
    div#news {
        width: 100%;
        margin: 0 0 20px 0;
        padding: 16px;
    }
    
    div#kalender {
        width: 100%;
        margin: 0;
    }
    
    /* Desktop Typography and Font Sizes */
    #content_2 {
        width: 100%;
    }
}

/* ==========================================================================
   MOBILE RESPONSIVE & LAYOUT REFINEMENTS (Schermen smaller dan 900px)
   ========================================================================== */
@media (max-width: 899px) {
    /* Prevent layout tables from overflowing and stretching the white card on mobile */
    #content_2 table:not([data-processed="true"]) {
        display: block !important;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-collapse: collapse;
        margin: 15px 0 !important;
    }

    /* Target contact/layout tables specifically by checking if they contain U tags */
    #content_2 table:has(u) {
        display: block !important;
        overflow: visible !important; /* Allow layout content to flow naturally without scrolling */
    }

    #content_2 table:has(u) tbody,
    #content_2 table:has(u) tr,
    #content_2 table:has(u) td {
        display: block !important;
        width: 100% !important;
        border: none !important;
    }

    /* Style the stacked table cells and hide empty/unused columns */
    #content_2 table:has(u) td {
        padding: 2px 0 !important;
        line-height: 1.6;
    }

    #content_2 table:has(u) td.td-2,
    #content_2 table:has(u) td.td-3,
    #content_2 table:has(u) td.td-last {
        display: none !important;
    }

    /* Style the legacy U tags as premium modern section headers */
    #content_2 table:has(u) td u {
        font-family: var(--font-display);
        font-size: 1.15rem;
        font-weight: 700;
        text-decoration: none !important; /* Remove old legacy browser underline */
        color: var(--color-primary);
        display: block;
        margin-top: 24px;
        margin-bottom: 6px;
        border-bottom: 2px solid var(--color-gold);
        padding-bottom: 4px;
        width: 100%;
    }

    /* Ensure email links and paragraphs wrap cleanly inside card borders */
    #content_2 a, 
    #content_2 td, 
    #content_2 p {
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    #content_2 a[href^="mailto:"] {
        display: inline-block;
        font-weight: 600;
        color: var(--color-primary);
        margin-bottom: 8px;
    }
}

/* ==========================================================================
   GLOBAL SIDEBAR & WIDGET ALIGNMENT FIXES (All Viewports)
   ========================================================================== */
/* Extremely robust overrides to align all sponsor logos perfectly inside the #kalender card */
div#kalender .csc-default,
div#kalender .csc-textpic,
div#kalender .csc-textpic-imagewrap,
div#kalender .csc-textpic-single-image {
    width: 100% !important;
    float: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

div#kalender a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    float: none !important;
}

/* ==========================================================================
   MODERN TABLE-TO-CARD STYLES FOR ALL VIEWPORTS (Mobile & Desktop)
   ========================================================================== */
.modern-table-card-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
    width: 100%;
}

@media (min-width: 600px) {
    .modern-table-card-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

.modern-table-card {
    background-color: var(--color-white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 102, 0.08);
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%; /* Uniform card heights in grids */
}

.modern-table-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(212, 175, 55, 0.45);
}

.modern-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 14px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-gold);
    align-self: flex-start;
}

.modern-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.modern-card-row {
    display: flex;
    align-items: baseline;
    font-size: 14px;
    line-height: 1.5;
}

.modern-card-label {
    font-weight: 600;
    color: var(--color-accent);
    min-width: 95px;
    flex-shrink: 0;
}

.modern-card-value {
    color: var(--color-text);
    word-break: break-word;
}


/* Style for compact training/pricing tables on mobile to keep them neat */
.training-schedule-table, .pricing-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 13px !important;
    margin: 15px 0 !important;
    border: 1px solid rgba(0, 0, 102, 0.1) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: var(--color-white) !important;
    box-shadow: var(--shadow-soft) !important;
}

.training-schedule-table th, .pricing-table th,
.training-schedule-table td, .pricing-table td {
    display: table-cell !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(0, 0, 102, 0.08) !important;
    text-align: center !important;
}

.training-schedule-table th, .pricing-table th {
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    font-weight: bold !important;
}

.training-schedule-table tr:nth-child(even), .pricing-table tr:nth-child(even) {
    background-color: rgba(0, 0, 102, 0.02) !important;
}


/* ==========================================================================
   MODERN TEAM & SCHEDULING SYSTEM (Fase 5 - Ploegen & Uren - Refined)
   ========================================================================== */
.modern-team-header-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-top: 25px;
    margin-bottom: 40px;
    width: 100%;
    clear: both;
}

.modern-team-info-col {
    display: flex;
    flex-direction: column;
}

.modern-team-media-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}

/* Luxurious Age group details card (glassmorphic, no solid left border) */
.team-details-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 244, 255, 0.65) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 102, 0.08);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 102, 0.03);
    transition: var(--transition-smooth);
    clear: both;
}

.team-details-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 102, 0.05);
    border-color: rgba(212, 175, 55, 0.25);
}

.team-details-content h4 {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin: 0 0 6px 0;
}

.team-details-content p {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

/* Dynamic Staff Section Titles */
.modern-staff-section-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--color-primary);
    margin: 25px 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(0, 0, 102, 0.05);
    width: 100%;
    clear: both;
    position: relative;
}

.modern-staff-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-gold);
}

/* Staff Card Subgrid (Flex flow layout) */
.modern-staff-subgrid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
    width: 100%;
    clear: both;
}

/* Sleek Horizontal Staff Badge Cards (No initial circle avatar) */
.staff-card-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 102, 0.06);
    border-radius: 10px;
    padding: 10px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.staff-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 102, 0.05);
    border-color: rgba(212, 175, 55, 0.25);
}

/* Distinct left border based on coaching level */
.staff-card-modern.active-head {
    border-left: 4px solid var(--color-primary);
}

.staff-card-modern.assistant {
    border-left: 4px solid rgba(0, 0, 102, 0.4);
}

.staff-card-modern.manager {
    border-left: 4px solid var(--color-gold);
}

.staff-card-modern .staff-role-badge {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: 12px;
    flex-shrink: 0;
}

.staff-card-modern.active-head .staff-role-badge {
    background-color: rgba(0, 0, 102, 0.05);
    color: var(--color-primary);
}

.staff-card-modern.assistant .staff-role-badge {
    background-color: rgba(0, 0, 102, 0.04);
    color: rgba(0, 0, 102, 0.7);
}

.staff-card-modern.manager .staff-role-badge {
    background-color: rgba(212, 175, 55, 0.08);
    color: #9C7E0B;
}

.staff-card-modern .staff-name {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

/* Beautiful Modern Photo Frames */
.modern-team-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.modern-gallery-frame {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(0, 0, 102, 0.05);
    background-color: var(--color-white);
    transition: var(--transition-smooth);
}

.modern-gallery-frame:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.15);
}

.modern-gallery-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Section Header for Training Grid */
.modern-section-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 40px 0 20px 0;
    position: relative;
    display: inline-block;
    clear: both;
    width: 100%;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 102, 0.06);
}

.modern-section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
}

.schedule-group-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-accent);
    margin: 25px 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    clear: both;
}

/* Clean 6-Day (Ma-Za) Training Schedule Grid */
.modern-schedule-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin: 20px 0 35px 0;
    width: 100%;
    clear: both;
}

.schedule-day-card {
    background-color: var(--color-white);
    border: 1px solid rgba(0, 0, 102, 0.06);
    border-radius: 12px;
    padding: 15px 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 105px;
}

.schedule-day-card:hover {
    border-color: rgba(0, 0, 102, 0.15);
    box-shadow: 0 6px 18px rgba(0, 0, 102, 0.03);
}

.schedule-day-card.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, #000033 100%);
    color: var(--color-white);
    border: 1px solid var(--color-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 50, 0.12);
    transform: translateY(-4px);
    z-index: 2;
}

.schedule-day-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-gold);
}

.schedule-day-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-primary);
}

.schedule-day-card.active .schedule-day-name {
    color: var(--color-white);
}

.schedule-day-status {
    font-size: 11px;
    color: #999999;
    font-weight: 500;
}

.schedule-day-time {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .modern-schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Double-column stacks with image hero on top on mobile */
    .modern-team-header-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .modern-team-info-col {
        order: 2;
    }
    
    .modern-team-media-col {
        order: 1;
        margin-bottom: 10px;
    }

    .modern-schedule-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .schedule-day-card {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 20px;
        text-align: left;
        height: auto;
    }
    
    .schedule-day-card.active {
        transform: none;
    }
    
    .schedule-day-card::before {
        display: none;
    }
    
    .schedule-day-card.active::before {
        display: block;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
    }
    
    .schedule-day-name {
        margin-bottom: 0;
    }
    
    .schedule-day-time {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .modern-staff-subgrid {
        flex-direction: column;
        align-items: stretch;
    }
    
    .staff-card-modern {
        display: flex;
    }
}



