/* 



ACHTUNG :  bei veränderung IMMER version anpassen:

<link rel="stylesheet" href="/main.css?v=1">













===============================================================
 MAIN.CSS – LAYOUT-GERÜST (Top-Bar, Sidebar, Footer, etc.)
=============================================================== */

/* 1) GRUNDEINSTELLUNGEN FÜR HTML/BODY */
html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	background: #fff;
	color: #000;
	font-family: Arial, sans-serif;
	box-sizing: border-box;
}
html {
	scroll-padding-top: 80px; /* 60px Header-Höhe + 20px zusätzlicher Abstand */
	scroll-behavior: smooth; /* Für sanftes Scrollen bei Anker-Links */
}
/* 2) Bilder nie über rand hinaus zeigen */
img {
	max-width: 100%;
	height: auto;
	display: block;
}
/* Top-Bar: Logo + Home-Link */
#logo-home {
	display: flex;
	align-items: flex-end;
	gap: 0.5rem;
	padding-bottom: 1px; /* nach unten versetzt */
}
#logo-home a {
	display: flex;
	align-items: flex-end;
	text-decoration: none;
}
#logo-home img {
	height: 40px;
	width: 40px;
	border-radius: 4px;
	display: block;
}
#logo-home span {
	color: #ffffff;
	font-size: 0.85rem;        /* kleiner wie Sidebar */
	font-weight: normal;
	line-height: 1;
	margin-left: 30px;         /* Abstand zum Logo */
}
/* Sprachwahl – präsent & stilvoll */
#top-bar select {
	appearance: none;
	padding: 8px 16px;
	min-width: 160px;
	border: 1px solid #1e4b73;
	border-radius: 6px;
	background-color: #276090;  /* heller, klarer Blauton */
	font-size: 1rem;
	color: #ffffff;
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-weight: bold;
	text-align: center;
	line-height: normal;
}
#top-bar select:hover {
	border-color: #63b3ed;
}
#top-bar select:focus {
	border-color: #63b3ed;
	box-shadow: 0 0 0 3px rgba(160, 196, 255, 0.4);
}
/* 2) TOP-BAR (OBERE NAVIGATION) */
#top-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 60px;
	background-color: #143652;  /* dunkelblau */
	z-index: 1000;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
#top-bar .container {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 1rem;
	padding-left: 10px;
	box-sizing: border-box;
}
#top-bar a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
}
#top-bar a:hover {
	color: #A0C4FF;
}
/* Sprachwahl korrekt in der Top-Bar rechts mittig zentriert */
.lang-select {
	display: flex;
	align-items: center;    /* vertikal mittig */
	height: 100%;           /* gleiche Höhe wie Top-Bar */
}
/* 3) SIDEBAR (LINKES MENÜ) */
#side-menu {
	position: fixed;
	top: 60px;     /* bündig unter Top-Bar */
	bottom: 0px;  /* über Footer */
	left: 0;
	width: 200px;
	background-color: #CBD5E1;  /* dunkleres Grau-Blau */
	overflow-y: auto;
	transition: left 0.3s ease;
	z-index: 1;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
#side-menu nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
#side-menu nav ul li {
	margin: 0;
	padding: 0;
	color: #1C64F2;  /* mittelblau */
	   border-bottom: 1px solid #eee;
}
#side-menu nav ul li a {
	display: block;
	text-decoration: none;
	color: #1C64F2;  /* Mittelblau */
	padding: 0.5rem 1rem;
	box-sizing: border-box;
	transition: background 0.2s ease, color 0.2s ease;
}


/* Hover und aktive Seite gleich gestalten */
#side-menu nav ul li a:hover,
#side-menu nav ul li a.active {
	background-color: #E2E8F0;  /* leichtes grau-blau */
	color: #1E3A8A;             /* Dunkelblau für Text */
	font-weight: bold;
}





/* 4) FOOTER (UNTEN FIXIERT) */
#page-footer {
	position: static;
	width: 100%;
	height: 24px;
	background-color:  #CBD5E1;
	margin: 0;
	padding: 0 1rem;
	display: flex;
	justify-content: center;    /* horizontal zentriert */
	align-items: center;        /* vertikal zentriert */
	font-size: 0.875rem;
	box-sizing: border-box;
	text-align: center;
}
/* 5) HAUPTINHALT */
#page-wrapper {
	/* Damit der Footer nicht den Inhalt überdeckt */
  min-height: 100%;
	position: relative;
	box-sizing: border-box;
}
main#layout-content {
	margin-top: 60px;   /* Platz unter Top-Bar */
	margin-bottom: 24px;/* Platz über Footer */
	padding: 1rem;
	box-sizing: border-box;
	width: 100%;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}
/* 6) RESPONSIVE / MOBILE-FIRST */
/* a) Gemeinsame Regeln */
.menu-toggle {
	color: #ffffff;              /* Standardfarbe – Weiß */
	transition: color 0.2s ease;
	display: none;
	cursor: pointer;
	font-size: 1.5rem;
	background: none;
	border: none;
	z-index: 1100;
}
.menu-toggle:hover {
	color: #A0C4FF;              /* Hover-Farbe – Hellblau */
}

/* b) Mobile bis max-width: 768px: Sidebar ausgeblendet, Menüknopf sichtbar */
@media (max-width: 768px) {
 #side-menu {
 left: -200px;
}
 #side-menu.open {
 left: 0;
}
 .menu-toggle {
 display: inline-block;
}
 main#layout-content {
 margin-left: 0;
 width: 100%;
}
}

/* c) Ab 769px: Sidebar dauerhaft sichtbar */
@media (min-width: 769px) {
 #side-menu.open {
 left: 0;
}
 main#layout-content {
 margin-left: 200px;
 width: calc(100% - 200px);
}
}





/* Button Sprachauswahl Mitte */

.lang-switch-btn {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;

  background: #CBD5E1;             /* Sidebar-Hintergrundfarbe */
  color: #1C64F2;                  /* Linkfarbe aus der Sidebar */
  text-decoration: none;
  font-family: sans-serif;
  font-size: 14px;

  border: none;
  border-left: 1px solid #276090;
  border-right: 1px solid #276090;
  border-bottom: 1px solid #276090;
  border-radius: 0 0 4px 4px;

  z-index: 9999;
}


.lang-switch-btn:hover {
  background-color: #E2E8F0;       /* Hover-Hintergrund wie Sidebar-Link */
  color: #1E3A8A;                  /* Hover-Linkfarbe wie Sidebar */
  border-color: darkorange;
  cursor: pointer;
}

.lang-switch-btn.hidden {
  opacity: 0;
  pointer-events: none;
}













/* FEEDBACK-SPEZIFISCHE STYLES - Vereinfacht */
.feedback_container {
    position: relative;
    padding: 10px 5px;  /* 5px Abstand links und rechts */
    margin-top: 20px;
     border-bottom: 1px solid #eee;
    box-sizing: border-box;
    width: 100%;        /* Volle Breite des Menübalkens */
}

.feedback_form_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.feedback_form_label {
    margin: 0;
    font-size: 14px;
    color: #000000;
}

.feedback_submit_button {
    padding: 3px 6px;
    font-size: 12px;
    background-color: #1C64F2;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.feedback_textarea_container {
    position: relative;
}

.feedback_textarea {
    width: 100%;           /* Volle Breite des Containers */
    min-height: 40px;      /* 2 Zeilen, ca. 20px pro Zeile */
    font-size: 14px;
    padding: 6px;
    resize: none;
    background-color: white;
    border: 1px solid #CBD5E1;
    border-radius: 6px;    /* Runder Rand */
    box-sizing: border-box;
    transition: min-height 0.2s ease, border-color 0.2s ease;
}

.feedback_textarea:focus {
    min-height: 200px;     /* 10 Zeilen, ca. 20px pro Zeile */
    outline: none;
    border-color: #1C64F2;
    box-shadow: 0 0 4px rgba(28, 100, 242, 0.3);
}

/* Stellt sicher, dass das Textarea den Menübalken nicht verlässt */
#side-menu .feedback_container {
    width: 100%;
    padding-left: 5px;
    padding-right: 5px;
}


/* feedback-detail.css */

/* Formularbox */
.feedback-detail-form {
    max-width: 600px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Label */
.feedback-detail-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Input-Felder & Textarea */
.feedback-detail-input,
.feedback-detail-textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

/* Button */
.feedback-detail-button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 15px;
}
.feedback-detail-button:hover {
    background-color: #0056b3;
}

/* Nachrichtboxen */
.feedback-detail-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 3px;
}
.feedback-detail-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}
.feedback-detail-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}
.feedback-detail-admin-error {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 10px;
    margin: 10px 0;
    border-radius: 3px;
}
