/** 
 * main.css
 * 
 * 1. General HTML tags
 * 2. Masthead area
 * 3. Main content and sidebar
 * 4. Footer
 * 5. Media queries for responsive layout
 * 6. Accessibility helpers
 * 
 */

/*********************************************************************
 * 1. General HTML tags
 *
 */

* {
	box-sizing: border-box;
}

body {
	padding: 5%;
	max-width: 1440px; 
	margin: 2%; 
	background-color: #39426c;	
}

body, td, input[type=text], textarea {
	font-family: 'Quattrocento', serif;
	font-size: 105%; 
	line-height: 1.8em;
	color: #fff; 
}

img {
	max-width: 90%; 
}

h2 {
	font-weight: normal;
}

h3 {
	border-top: 1px solid #eee; 
	padding-top: 1em;
	color: #777; 
}

a {
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #ccc; 
}
	a:hover,
	.nav a:hover {
		color: #000;
		border-color: #aaa; 
	}

blockquote {
	margin-left: 0;
	padding-left: 1.5em;
	padding-right: 2em; 
	border-left: 4px solid #ddd; 
	font-style: italic; 
	color: #777; 
}



/*pre, code {
	background: #636c94; 
	border: 1px solid #ddd; 
}

pre {
	font-size: 18px; 
	line-height: 1.4em;
	padding: 1em;
}

/*********************************************************************
 * 2. Masthead area
 *
 */
 
 a[data-lightbox] img {
    border-radius: 6px;
    margin: 5px;
    transition: transform .2s ease;
}
a[data-lightbox] img:hover {
    transform: scale(1.05);
}

/* Top-Level Menü */
/* Basis-Layout */
.mainnav {
  position: relative;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 2px;
}

/* Desktop-Menü */
.topnav {
  font-family: 'Quattrocento', serif;
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.topnav li {
  position: relative;
}

.topnav li a:hover  {
  position: relative;
  background: #373A58;
  color: #fff;
}

.topnav a {
  text-decoration: none;
  display: block;
  padding: 2px 5px;
  background: #eee;
  color: #333;
  border-radius: 4px;
}

.topnav li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  padding: 0;
  padding-top: 5px;
  margin: 0;
  list-style: none;
  min-width: 180px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 999;
  border-radius: 4px;
  margin-left: 15px;
}

.topnav li.has-children:hover .dropdown {
  display: block;
}

.topnav li.has-children .dropdown-wrapper:focus-within .dropdown {
  display: block;
}

.dropdown li a {
  padding: 2px 5px;
  white-space: nowrap;
  border-radius: 4px;
}

.dropdown li a:hover {
  background: #f0f0f0;
  border-radius: 4px;
  color: #000000;
}

/* Aktive Seite hervorheben */
.topnav .current > a,
.topnav .current .dropdown-toggle {
  font-weight: bold;
  background: #272842;
  color: #ffffff;
    border-radius: 4px;
}

/* Responsive: unter 768px → Hamburger anzeigen */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .topnav {
    flex-direction: column;
    display: none; /* Menü standardmäßig ausblenden */
    background: #eee;
  }

  .topnav.show {
    display: flex;
  }

  .topnav li {
    margin: 0;
  }

  .topnav li .dropdown {
    position: static;
    box-shadow: none;
  }

  .topnav li.has-children .dropdown {
    display: none;
  }

  .topnav li.has-children .dropdown-wrapper:focus-within .dropdown {
    display: block;
  }
}

/* Sprach-Menü */

.language-dropdown {
  position: relative;
  display: inline-block;
  float: right;
  text-align: right;
  margin-right: 1rem;
  z-index: 1001; /* <-- höher als nav */
}

.dropdown-toggle {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border: 1px solid #ccc;
  list-style: none;
  padding: 0;
  z-index: 1000;
  min-width: 140px;
  text-align: left;
}

.dropdown-menu li {
  padding: 0.5rem 1rem;
}

.dropdown-menu.open {
  display: block;
}
/* search */
form.search {
	float: right; 
	margin: 0;
	width: 15%; 
	padding-bottom: 1em;
}
	form.search input {
		margin: 0;
		padding: 0.25em 0.5em;
		border: 1px solid #ccc; 
		width: 40%; 
	}

.breadcrumbs {
	font-size: 80%; 
	width: 70%; 
	float: left;
	clear: both; 
	padding-top: 1em; 
}
	.breadcrumbs span:after {
		content: ">";
		color: #999; 
		padding-left: 0.5em;
		padding-right: 0.25em; 
	}

/*********************************************************************
 * 3. Main content and sidebar
 *
 */

#main {
  border-top: 1px solid #eee; 
  padding: 1em; 
  margin-top: 1em; 
  margin-bottom: 1em; 
  width: 100%;
  background: #636c94;
  border-radius: 16px;
  display: flow-root; /* sorgt dafür, dass gefloatete Kinder eingeklammert werden */
}

#content {
	width: 100%; 
}

#content, #sidebar, #state_sidebar {
	padding-bottom: 2em;
}

/* has-sidebar */

body.has-sidebar #content {
	width: 65%; 
	float: left;
	padding-left: 25px;
	padding-right: 25px;
/* 	border-style: ridge;
	border-color: #e0e0e0;
	border-radius: 6px; */
	margin-bottom: 16px;
	/* background: #39426c; */  
}
body.has-sidebar #sidebar {
	color: #000000;
	width: 35%;
	float: right;
    height: 600px;
	margin-bottom: 16px;
	padding-top: 16px;
    background-image: url('/site/assets/files/1/current_president.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
	text-align: center; /* zentriert Text */
    display: flex;
    flex-direction: column; /* falls du Text + Bild kombinierst */
}
body.has-sidebar #sidebar h1 {
    margin-bottom: 20px; /* Abstand unter der Überschrift */
	color: #ffffff;
}
body.has-sidebar #sidebar h5{
	line-height: 1.4em;
    margin: 0px;
    padding-bottom: 16px;
    color: #000000;

}
body.has-sidebar #sidebar p {
	line-height: 1.1em;
    margin: 0px;
    padding: 0px;
    color: #000000;
	font-size: 0.7em;
}
body.has-sidebar #sidebar img {
	margin-bottom: 30px;
	height: auto;
	width: auto;
}

/* has-sidebar_state */

body.has-sidebar_state #content {
	width: 70%; 
	float: left;
	padding-left: 25px;
	padding-right: 25px;
}
body.has-sidebar_state #state_sidebar {
	color: #000000;
	width: 30%;
	float: right;
    height: 100%;
	margin-bottom: 16px;
	padding-top: 16px;
	text-align: center; /* zentriert Text */
    display: flex;
    flex-direction: column; /* falls du Text + Bild kombinierst */
	border-style: inset;
	border-radius: 8px;
	padding-left: 2%;
	padding-right: 2%; 
}

body.has-sidebar_state #state_sidebar h1 {
    margin-bottom: 20px; /* Abstand unter der Überschrift */
	color: #ffffff;
}
body.has-sidebar_state #state_sidebar h4{
	line-height: 1.4em;
    margin: 0px;
    padding: 0px;
    color: #000000;

}
body.has-sidebar_state #state_sidebar p {
	line-height: 1.1em;
    margin: 0px;
    padding: 0px;
    color: #000000;
	font-size: 0.7em;
}
body.has-sidebar_state #state_sidebar img {
	margin-bottom: 40px;
	height: auto;
	width: auto;
}
body.has-sidebar_state #state_sidebar tbody {
	font-family: 'PT Sans Narrow', sans-serif;
	font-size: 0.7rem;
}

/* CSS Styling for blo-posts */

/* Das äußere Article */
.blog-article {
  margin: 2em 0;
  padding: 1.5em;
  background: #636c94;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.blog-article a {
  color: #fff;
}

/* Der Meta-Bereich */
.blog-article .meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 1em;
  padding-top: 0.5em;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  color: #baf5f5;
}

.blog-article .meta > div {
  flex: 1;
}

.blog-article .meta > div:nth-child(1) {
  text-align: left;
}
.blog-article .meta > div:nth-child(2) {
  text-align: center;
}
.blog-article .meta > div:nth-child(3) {
  text-align: right;
}

/* CSS Styling for content - meta */

/* Der Meta-Bereich */
.meta_content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 1em;
  padding-top: 0.5em;
  font-size: 0.9rem;
  color: #baf5f5;
}

.meta_content > div {
  flex: 1;
}

.meta_content > div:nth-child(1) {
  text-align: left;
}
.meta_content > div:nth-child(2) {
  text-align: center;
}
.meta_content > div:nth-child(3) {
  text-align: right;
}

/* #sidebar .my-background-table {
    width: 100%;
    height: 600px;              statt nur min-height
    background-image: url('/site/assets/files/1/current_president.png') !important;
    background-size: contain;   oder cover
    background-position: center;
    background-repeat: no-repeat;
    border-collapse: collapse;
} */

/* #sidebar .my-background-table td {
    background-color: transparent !important; verhindert weißes Übermalen
} */

/* #sidebar .president-box {
    width: 100%;
    height: 800px;
    background-image: url('/site/assets/files/1/current_president.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
} */

.nav {
	margin-left: 0;
	padding-left: 0;
	list-style: none; 
}
	.nav .nav {
		padding-left: 1.5em;
		list-style: disc;
	}
	.nav li {
		margin: 1em 0;
	}

	.nav-tree li {
		margin-top: 0;
		margin-bottom: 0;
	}

	.nav a {
		font-weight: bold;
	}

	.nav-tree li a {
		color: #777; 
	}

	.nav .current > a {
		color: #333; 
	}

#sidebar img + blockquote {
	margin-top: 0; 
}

.align_left {
	/* for images placed in rich text editor */ 
	float: left;
	margin: 0 1em 0.5em 0; 
	position: relative;
	top: 0.5em;
	max-width: 50%; 
}

.align_right {
	/* for images placed in rich text editor */ 
	float: right;
	margin: 0 0 0.5em 1em;
	max-width: 50%; 
}

.align_center {
	/* for images placed in rich text editor */ 
	display: block;
	margin: 1em auto; 
	position: relative;
	top: 0.5em;
}

figure {
	display: table;
	width: 1px;
	margin: 1em 0;
}

figure img {
	display: table-row;
	margin-bottom: 0.5em;
}

figure figcaption {
	display: table-row;
	font-size: smaller;
	color: #777;
	line-height: 1.4em;
}

/*********************************************************************
 * 4. Footer
 *
 */

#footer {
	clear: both; 
	border-top: 1px solid #eee; 
	font-size: 80%; 
}

/*********************************************************************
 * 5. Media queries for responsive layout
 *
 */

@media only screen and (max-width: 767px) {
	/* mobile layout */ 

	.languages {
		width: 100%; 
		margin-bottom: 1em;
	}
	.topnav {
		float: none;
		clear: both; 
		width: 100%; 
	}
	.breadcrumbs {
		margin-bottom: 1em;
		margin-top: 0;
	}

	body, td, textarea {
		font-size: 100%;
		
	}
	body.has-sidebar #content, 
	body.has-sidebar #sidebar {
		float: center;
		width: 100%; 
	}
	body.has-sidebar_state #content,
	body.has-sidebar_state #state_sidebar {
		float: center;
		width: 100%; 
	}
	
			
	
	form.search {
		float: none; 
		width: 50%; 
		padding-bottom: 0;
	}
	#content {
		width: 100%; 
	}
	#sidebar {
		border-top: 1px solid #eee;
		padding-top: 1em; 
	}
	.align_left, .align_right, .align_center {
		display: block;
		float: none; 
		margin: 1em auto;
		max-width: 100%; 
	}

}

@media only screen and (min-width: 1200px) {
	/* extra-wide desktop layout */ 
	
	body, td, textarea {
		font-size: 115%; 
	}
}

/*********************************************************************
 * 6. Accessibility helpers
 *
 */

/* Hide visually, but remain approachable for screenreader */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	white-space: nowrap;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	border: 0;
}

/* Show bypass link on hover */

.element-focusable:focus {
	clip: auto;
	overflow: visible;
	height: auto;
}

/* Sample styling for bypass link */

.bypass-to-main:focus {
	top: 0;
	left: 0;
	width: 100%;
	height: 40px;
	line-height: 40px;
	text-align: center;
	background: #333;
	color: #fff;
}
