/* WordPress-specific overrides. Keep the Joomla clone intact. */

body.vipprotection {
	margin: 0;
	padding: 0;
}

.wp-site-blocks {
	display: contents !important;
	padding: 0 !important;
	margin: 0 !important;
}

.wp-site-blocks,
.wp-block-post-content,
.entry-content,
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 0 !important;
}

.wp-block-post-content,
.wp-block-group,
.wp-block-shortcode {
	margin: 0;
	padding: 0;
}

.wp-block-post-content img {
	max-width: none;
	height: auto;
}

#maincontent .item-page table {
	width: 100%;
	border-collapse: collapse;
}

#maincontent .item-page td img {
	max-width: none !important;
	width: auto !important;
	height: auto !important;
}

#wpadminbar {
	position: fixed;
}

/* One 776px stack: header + red bar + article + video. No gaps between them. */
.container {
	padding-left: 0;
	padding-right: 0;
}

.base {
	width: 800px;
	min-width: 800px;
	max-width: 800px;
	margin: 0 auto;
}

.vip-stack {
	width: 776px;
	margin: 0 auto;
	padding: 0;
}

.vip-stack .flash-header {
	display: block;
	float: none;
	width: 776px;
	margin: 0;
	padding: 10px 0 0;
	position: relative;
}

.vip-stack .flash-header img.header-banner {
	display: block;
	width: 776px;
	height: 148px;
	max-width: 776px;
	object-fit: fill;
	border: 0;
}

/* Overlay the top menu on the banner without collapsing the header
   (negative margins were hiding #breadcrumbs under the image). */
.vip-stack .flash-header #nav,
div.flash-header #nav {
	position: absolute;
	left: 0;
	bottom: 8px;
	width: 776px;
	float: none;
	margin: 0;
	padding: 0;
	z-index: 20;
}

.addspace {
	padding-top: 0 !important;
}

#nav .moduletable_menu ul.menu {
	list-style: none;
	margin: 0;
	padding: 0;
	float: right;
}

#nav .moduletable_menu ul.menu li {
	float: left;
	background: none;
	padding: 0;
	list-style: none;
}

.menu-toggle {
	display: none;
}

/* Sidebar: hover must not shrink the item (that wrapped the label). Stretch
   the 28px sprite slice to the full row height so a wrapped title stays covered. */
#left .moduletable ul.menu {
	min-width: 180px;
}

#left .moduletable ul.menu li {
	padding: 8px 10px 8px 12px;
	margin-right: 0 !important;
	line-height: 1.3;
	box-sizing: border-box;
}

#left .moduletable ul.menu li a {
	display: block;
	white-space: normal;
}

#left .moduletable ul.menu li:hover {
	background: url("../images/template/menu_hover.png") no-repeat;
	background-size: 100% 100%;
	margin-right: 0 !important;
}

#left .moduletable ul.menu li.active {
	background: url("../images/template/menu_active.png") no-repeat;
	background-size: 100% 100%;
	margin-right: 0 !important;
}

/* Language switcher under left menu */
#left .mod-languages {
	margin-top: 8px;
	padding-left: 8px;
}

#left .mod-languages ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#left .mod-languages li {
	background: none;
	padding: 0;
	line-height: 1.6em;
}

#left .mod-languages img {
	vertical-align: middle;
	margin-right: 6px;
	border: 0;
}

#left .mod-languages a {
	color: #fff;
	font-size: 10pt;
}

/* Red bar in normal flow under the 148px banner. */
#breadcrumbs,
#breadcrumbs.twelvecol {
	position: relative;
	z-index: 6;
	display: block;
	width: 776px;
	min-height: 32px;
	float: none;
	margin: 0 !important;
	padding: 0;
	overflow: visible;
}

#breadcrumbs .moduletable {
	margin: 0;
	padding: 0;
}

#breadcrumbs .breadcrumb-search {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 32px;
	box-sizing: border-box;
}

#breadcrumbs .breadcrumb {
	float: none;
	flex: 1;
}

#breadcrumbs form.search.box {
	float: none;
	margin: 0;
}

#breadcrumbs .breadcrumb .active {
	color: #ffffff;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.65);
}

/*
 * Sticky footer without the Joomla negative-margin hack:
 * short pages pin the footer to the viewport; long pages grow and scroll
 * only as far as the content. Admin bar height is subtracted so it does
 * not create a phantom extra 32px of scroll.
 */
html {
	height: auto;
	overflow-x: hidden;
}

body.vipprotection {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	overflow-x: hidden;
}

/* WP adds class "search" on <body> for results; Joomla .search was a form widget. */
body.search,
body.search-results,
body.vipprotection.search {
	float: none !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	padding: 0 !important;
	text-align: left !important;
	display: flex !important;
	flex-direction: column !important;
}

body.admin-bar.vipprotection {
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
}

body.vipprotection .maincontainer {
	flex: 1 0 auto;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding-bottom: 0 !important;
}

body.vipprotection .contentwrapper {
	padding-bottom: 0 !important;
}

#footer {
	width: 776px !important;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
}

#footer .threecol {
	width: 26%;
}

#footer .sixcol {
	width: 40%;
}

#copyrightwrap {
	flex: 0 0 auto;
	margin: 40px 0 0 !important;
	height: auto !important;
}

/*
 * Two-column grid: 156px rail + 620px article = 776px (matches header).
 * Sidebar is 180px and overlaps the article by 24px. Grid stretch makes
 * the gray pane as tall as the menu on short pages (including search).
 */
#main {
	display: grid;
	grid-template-columns: 156px 620px;
	align-items: stretch;
	width: 776px;
	margin: 0;
	padding: 0;
	float: none;
}

#main.clearfix::before,
#main.clearfix::after {
	display: none !important;
	content: none !important;
}

#left,
#left.threecol {
	grid-column: 1;
	position: relative;
	left: auto;
	top: auto;
	width: 180px;
	margin: 35px 0 0;
	float: none;
	z-index: 10;
	font-size: 10pt;
}

#maincontent,
#maincontent.gray,
#maincontent.ninecol,
#maincontent.ninecol.last,
body.search #maincontent,
body.search-results #maincontent {
	grid-column: 2;
	float: none;
	width: 620px !important;
	max-width: 620px !important;
	min-width: 0;
	margin: 0 !important;
	padding-top: 0;
	padding-bottom: 0;
	font-size: 10pt;
	box-sizing: border-box;
	box-shadow: none;
}

#maincontent .wp-block-post-content,
#maincontent .entry-content {
	margin: 0 0 0 10px !important;
	padding-bottom: 0 !important;
}

.vip-stack .item-page {
	margin-bottom: 0 !important;
	min-height: 350px;
}

/* Termine seminar rows: left-align like EN (justify + wrap split the Greek titles). */
ul.nonnumberedlist.withsubmit,
ul.nonnumberedlist.withsubmit li,
.item-page table table td {
	text-align: left;
}

ul.nonnumberedlist.withsubmit {
	margin: 0;
	padding: 0;
}

ul.nonnumberedlist.withsubmit li {
	white-space: nowrap;
	background-position: 0 0.45em;
}

/*
 * 776px trapezoid (HTML widths): 29px slant | 733px clips | 14px cap.
 * GIFs are 294×240 files displayed at 170×130 as in Joomla.
 */
#bottom1,
#bottom1.twelvecol,
#bottom1.ninecol {
	float: none;
	clear: none;
	width: 776px;
	margin: -10px 0 0;
	padding: 0;
	line-height: 0;
	position: relative;
	z-index: 1;
}

#bottom1 table.video {
	width: 776px !important;
	min-width: 776px !important;
	max-width: 776px !important;
	table-layout: fixed !important;
	border-collapse: collapse;
	border-spacing: 0;
	line-height: 0;
	box-sizing: content-box;
}

#bottom1 table.video col:nth-child(1) {
	width: 29px;
}

#bottom1 table.video col:nth-child(2) {
	width: 733px;
}

#bottom1 table.video col:nth-child(3) {
	width: 14px;
}

#bottom1 table.video > tbody > tr > td:nth-child(1) {
	width: 29px !important;
}

#bottom1 table.video > tbody > tr > td:nth-child(2) {
	width: 733px !important;
}

#bottom1 table.video > tbody > tr > td:nth-child(3) {
	width: 14px !important;
}

#bottom1 table.video td {
	padding: 0;
	line-height: 0;
	vertical-align: top;
}

#bottom1 table.video img {
	display: block;
	max-width: none !important;
}

#bottom1 table.video img[src*="video_01"],
#bottom1 table.video img[src*="video_04"],
#bottom1 table.video img[src*="video_07"] {
	width: 29px !important;
	height: auto !important;
}

#bottom1 table.video img[src*="video_02"],
#bottom1 table.video img[src*="video_08"] {
	width: 733px !important;
	height: auto !important;
}

#bottom1 table.video img[src*="video_03"],
#bottom1 table.video img[src*="video_06"],
#bottom1 table.video img[src*="video_09"] {
	width: 14px !important;
	height: auto !important;
}

#bottom1 table.video table {
	width: 733px !important;
	background: #c8c8c8;
}

#bottom1 table.video img[src*="/gifs/"] {
	width: 170px !important;
	height: 130px !important;
	margin: 0 auto;
}

table.video {
	background: transparent;
}

/* Contact — match Joomla com_contact (compact type, left-aligned, 10pt). */
.item-page .contact,
#maincontent .contact {
	text-align: left;
	font-size: 10pt;
	line-height: 1.35em;
	overflow: visible;
	padding-left: 15px;
	min-height: 600px;
	margin-bottom: 0;
}

.contact-layout {
	width: 100%;
	border-collapse: collapse;
}

.contact-layout > tbody > tr > td {
	vertical-align: top;
	width: 50%;
	padding: 0 16px 0 0;
	text-align: left;
}

.contact h3 {
	font-size: 16px;
	font-weight: normal;
	padding: 7px 0;
	border-bottom: 1px solid #777;
	margin: 10px 0;
	color: #1f1f1f;
	line-height: 1.2em;
}

.contact-position {
	font-weight: bold;
	text-align: center;
	margin: 10px 0 12px;
	font-size: 10pt;
}

.contact-details {
	width: auto;
	border-collapse: collapse;
	margin: 0 0 6px;
}

.contact-details td {
	vertical-align: top;
	padding: 0 6px 6px 0;
	line-height: 1.3em;
	font-size: 10pt;
}

.contact-details td:first-child {
	width: 32px;
}

.contact-street,
.contact-suburb,
.contact-state,
.contact-postcode,
.contact-country {
	display: block;
	margin: 0;
	padding: 0;
	line-height: 1.3em;
}

.contact-telephone {
	display: block;
	padding: 0;
	font-style: italic;
	line-height: 1.3em;
}

.contact-details a {
	font-style: normal;
}

.contact-vcard {
	margin: 6px 0 0;
	padding: 0;
	clear: both;
	text-align: left;
	font-size: 10pt;
	font-weight: normal;
	line-height: 1.35em;
}

#maincontent .item-page .contact-details td img,
#maincontent .contact img,
.contact-details img {
	width: 32px !important;
	height: 32px !important;
	max-width: 32px !important;
	display: block;
	float: none;
}

.contact-form label {
	display: block;
	float: none !important;
	width: auto !important;
	margin: 6px 0 0;
	padding: 0;
	font-size: 10pt;
	font-weight: normal;
	line-height: 1.35em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	display: block;
	width: 250px;
	max-width: 100%;
	padding: 6px;
	margin-top: 5px;
	background: #fff;
	color: #333;
	border: 1px solid #ccc;
	box-sizing: border-box;
	font-size: 10pt;
	font-family: Helvetica, Arial, sans-serif;
}

.contact-form textarea {
	min-height: 140px;
	margin: 5px 0 10px;
}

.contact-form .captcha-row {
	margin: 4px 0 6px;
	font-size: 10pt;
	line-height: 1.35em;
}

.contact-form .captcha-row .captcha-q {
	margin-right: 6px;
}

.contact-form .captcha-row input {
	display: inline-block;
	width: 48px;
	max-width: 48px;
	margin: 0;
	padding: 4px 6px;
	vertical-align: middle;
}

.contact-form .required-note {
	padding: 4px 0 10px;
	margin: 0;
	font-weight: bold;
	font-size: 10pt;
	line-height: 1.35em;
	text-align: left;
}

.contact-form button,
.contact-form .btn {
	font-size: 10pt;
	font-weight: normal;
	padding: 4px 10px;
	margin: 0;
	line-height: 1.3em;
}

.contact-form .vip-honeypot {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.contact-feedback {
	min-height: 0 !important;
	height: auto !important;
	padding: 8px 10px;
	margin: 0 0 12px;
	background: #fff5cc;
	color: #333;
	font-size: 10pt;
	line-height: 1.4em;
	text-align: left;
}

.contact-feedback.error {
	border: 1px solid #990012;
}

/* Search results inside gray pane */
.search-results .wp-block-post-title a {
	color: #504040;
}

.search-results-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.search-results-list li {
	list-style: none;
	background-image: none;
	padding: 6px 0 6px 16px;
	margin: 0;
	line-height: 1.4em;
}

.search-results-list a {
	color: #504040;
	font-size: 10pt;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
