/* Allgemeine Styles */

/* Farben */
:root {
  --primaerfarbe: #00836c;
  --sekundaerfarbe: #f4f7f6;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
}

h1 {
    text-align: center;
    margin-bottom: 5px;
	color: var(--primaerfarbe);
}

h2 {
    text-align: center;
    margin-bottom: 5px;
	color: #555;
}

h3 {
    text-align: center;
    margin-bottom: 5px;
	color: #555;
}

p {
    font-size: 1.2em;
}

hr {
    border: none;
    border-top: 2px solid var(--primaerfarbe);
	width: 100%;
}

textarea {
	font-size: 1.2em;
}

input {
	font-size: 1.0em;
}

/* Allgemeine Select-Feld-Gestaltung */
select {
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    color: #333;
    appearance: none; /* entfernt Standard-Stil in manchen Browsern */
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Optional: kleines Pfeil-Icon per Hintergrund (kann ersetzt oder entfernt werden) */
select {
    padding-right: 30px;
}


.startseite-container {
    display: grid;
    max-width: 1400px; /* Setze eine größere max-width für breitere Boxen */
    margin: 30px auto;
    padding: 10px;
	margin-top: 50px;
	padding: 30px;
}

.willkommen-container {
    display: grid;
	width: 90%;
    max-width: 1400px; /* Setze eine größere max-width für breitere Boxen */
    margin: 30px auto;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	padding: 30px;
}

.inhalt-container {
    max-width: 1400px; /* Setze eine größere max-width für breitere Boxen */
    margin: 30px auto;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	margin-top: 100px;
	padding: 30px;
}

.error-message {
    color: red;
    background-color: #fdd;
    padding: 10px;
    margin-bottom: 15px;
    margin-top: 15px;
    border: 1px solid #f99;
    border-radius: 4px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    margin-bottom: 15px;
    margin-top: 15px;
    border-radius: 4px;
}

.button-link {
    background-color: var(--primaerfarbe);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: auto;             /* Nimmt nur so viel Platz wie nötig */
    display: inline-block;   /* Wichtig, damit er nicht volle Breite annimmt */
	text-decoration: none;
	margin-top: 10px;
}

.button-link:hover {
    transform: scale(1.05); /* Button wird beim Hover größer */
}


/* Header, Footer und Menü */
.burger-toggle {
    display: none;
}

.burger {
    font-size: 2em;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 20;
    color: var(--primaerfarbe);
}

.burger-toggle:checked ~ .nav-links-container {
    display: flex;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2em;
    color: white;
    cursor: pointer;
}

.nav-links-container {
    display: none;
    gap: 20px;
    flex-direction: column; /* Vertikale Anordnung im Burger-Menü */
    position: fixed; /* Fixiert das Menü an der oberen Seite */
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: rgba(0, 141, 113, 0.95); /* Fast schwarze, transparente Hintergrundfarbe */
    padding: 60px 0 0 0; /* Damit das Menü unter dem Logo anfängt */
    justify-content: flex-start; /* Menüpunkte oben anordnen */
    align-items: center;
    overflow-y: auto; /* Ermöglicht vertikales Scrollen */
    padding-bottom: 20px; /* Abstand nach dem letzten Menüpunkt */
}


/* Links Styling */
.nav-links {
    list-style-position: outside; /* oder inside je nach Layout */
    list-style-type: disc; /* falls du Standardpunkte willst */
    padding-left: 30px; /* Platz für die Punkte */
	
}

.nav-links li {
    margin: 10px 0;
    color: white; /* Farbe der Aufzählungspunkte */
    display: list-item;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    transition: color 0.3s;
}

/* Burger Toggle (Checkbox) - unsichtbar */
.burger-toggle {
    display: none;
}

/* Wenn die Checkbox aktiviert ist, ändern wir das Layout des Menüs */
.burger-toggle:checked + .burger + .nav-links-container {
    display: block; /* Menü anzeigen */
}

/* Burger-Icon ausblenden, wenn das Menü geöffnet ist */
.burger-toggle:checked + .burger {
    display: none; /* Versteckt das Burger-Symbol */
}

/* Close Button X (nur sichtbar, wenn das Menü geöffnet ist) */
.close-btn {
    position: fixed; /* Stellt sicher, dass der Button immer oben rechts bleibt */
    top: 20px;
    right: 20px;
    font-size: 2.5em;
    color: white;
    cursor: pointer;
    display: none; /* Standardmäßig ausblenden */
}

/* Wenn die Checkbox aktiviert ist, wird das X sichtbar */
.burger-toggle:checked + .burger + .nav-links-container .close-btn {
    display: block; /* X anzeigen */
}

	
/* Menübar mit Burgermenü */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--sekundaerfarbe); /* Transparentes Hintergrund für die Navbar */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    transition: padding 0.3s ease-in-out;
}	

.logout-link {
	background: none;
    border: none;
    padding: 0;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
	cursor: pointer;
}

	
.logo-container {
    display: flex;
    align-items: center; /* Vertikal zentrieren */
    gap: 30px; /* Abstand zwischen Logo und Text */
}

.logo-text {
    margin-left: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    line-height: 1.2;
}

.logo-text .line1 {
    font-size: 2rem;
    font-weight: bold;
	color: var(--primaerfarbe);
}


.logo {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

/* Footer-Stile */
.site-footer {
    position: relative;
    background-color: var(--primaerfarbe);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    margin-top: auto;
}

/* Zentrierte Links */
.footer-links {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    padding: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links .pipe {
    color: #888;
}


/* Hinweis Popup */
.overlay-box {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
  border-left: 4px solid var(--primaerfarbe);
  border-radius: 8px;
  z-index: 9999;
  padding: 15px;
  font-family: Arial, sans-serif;
}

.overlay-content h4 {
  margin-top: 0;
}

.overlay-close {
  float: right;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #888;
}

.overlay-close:hover {
  color: #000;
}

.hidden {
  display: none;
}
	
	
#kamera-video {
	width: 90%;
	max-width: 600px;
	margin-top: 20px;
	border: 2px solid #333;
	}
#kamera-info, #kamera-error, #kamera-qrResult {
	margin-top: 15px;
			}
#kamera-error {
	color: red;
	}

/* Vorschau Overlay */
#intranet-overlay-vorschau {
  position: fixed; /* Fixierte Position für die Vorschau */
  bottom: 20px;
  right: 20px;
  width: 300px;
  background-color: rgba(255, 255, 255, 0.8); /* Etwas transparente Hintergrundfarbe */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25); /* Schatten bleibt erhalten */
  border-left: 4px solid var(--primaerfarbe);
  border-radius: 8px;
  z-index: 9998; /* Weniger Priorität als die normale Ansicht */
  padding: 15px;
  font-family: Arial, sans-serif;
  opacity: 1;
}

/* Text "Live-Vorschau" außerhalb des Overlays */
#intranet-overlay-vorschau-label {
  position: fixed;
  bottom: 190px;  /* Positioniere den Text über dem Overlay */
  right: 110px;
  font-size: 18px;
  font-weight: bold;
  z-index: 9997;  /* Sicherstellen, dass es über dem Overlay bleibt */
  background-color: rgba(255, 255, 255, 0.8);  /* Leichte Transparenz */
  padding: 5px;
  border-radius: 5px;
  color: var(--primaerfarbe);  /* Optional: Deine primäre Farbe */
}

/* Überschrift im Vorschaufenster */
#intranet-overlay-vorschau h3 {
  margin-top: 0;
}

/* Vorschau Close Button (deaktiviert) */
#intranet-overlay-vorschau .overlay-close {
  font-size: 18px;
  font-weight: bold;
  cursor: not-allowed;  /* Sperre den Klick */
  color: #888;
  pointer-events: none;  /* Verhindert das Klicken */
}

#intranet-overlay-vorschau .overlay-close:hover {
  color: #888;  /* Keine Änderung bei Hover, da es deaktiviert ist */
}

/* Vorschau Button */
#intranet-overlay-vorschau .button {
  background-color: rgba(0, 0, 0, 0.8);  /* Transparenter Button-Hintergrund */
  color: black;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}

#intranet-overlay-vorschau .button:disabled {
  background-color: rgba(0, 0, 0, 0.2);  /* Hellerer Hintergrund für den deaktivierten Button */
  cursor: not-allowed;
}

/* Verschieben des Vorschaufensters nach oben */
#intranet-overlay-vorschau .overlay-content {
  opacity: 1;  /* Sicherstellen, dass die Vorschau-Inhalte sichtbar sind */
}

/* Vorschau-Inhalt ohne Einfluss auf das Layout */
#intranet-overlay-vorschau .overlay-content p {
  opacity: 1;
}



	





.calendar-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calendar-heute-container {
    display: grid;
    gap: 10px;
	width: 250px;
    max-width: 1200px;
    margin: 30px auto;
    padding: 10px;
	padding-left: 40px;
	padding-right: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.weekdays {
    display: contents;
    background-color: #333;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    font-size: 1.1em;
}

.weekdays div {
    padding: 10px;
}

.day {
    text-align: center;
    padding: 20px;
    background-color: #e0e0e0;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
}

.day-number {
    font-size: 1.2em;
    font-weight: bold;
}

.entry {
    margin-top: 10px;
    font-size: 0.9em;
    color: #333;
}

.frei {
    background-color: #ff6b6b;
    color: white;
    padding: 5px;
    border-radius: 4px;
}

.frei:hover {
    transform: scale(1.1);
}

.belegt {
    background-color: var(--primaerfarbe);
    color: white;
    padding: 5px;
    border-radius: 4px;
}

.belegt:hover {
    transform: scale(1.1);
}

.belegt-hell {
    background-color: #7fc4ac; 
    color: white;
    padding: 5px;
    border-radius: 4px;
}

.belegt-hell:hover {
    transform: scale(1.1);
}

.entry.feiertag {
    background-color: #e5c07b;
    color: white;
    padding: 5px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.entry.feiertag:hover {
    transform: scale(1.1);
}



/* Bearbeiten Boxen */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
}

.modal button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.modal button:hover {
    transform: scale(1.1);
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    float: right;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Abstand zwischen den Buttons */
    margin-bottom: 20px;
}

.calendar-header a {
    text-decoration: none; /* Entfernt den Unterstrich der Links */
}

.calendar-header button {
    padding: 10px 20px;
    background-color: var(--primaerfarbe);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.calendar-header button:hover {
    transform: scale(1.1); /* Button wird um 10% größer */
}

.calendar-header button:focus {
    outline: none;
}

.logo-container {
    display: flex;
    justify-content: flex-end; /* Positioniert das Logo rechts */
    align-items: flex-start; /* Positioniert es oben */
    position: relative;
}

.logo-inline {
    height: 1.0em;         /* Passt die Höhe an den Text an */
    vertical-align: middle; /* Bild vertikal mittig ausrichten */
    margin-right: 10px;     /* Abstand zwischen Bild und Text */
}

.current-day {
    background-color: #f1c40f;
    color: white; /* Weißer Text */
    font-weight: bold; /* Fettdruck */
}

.day-number-with-weekday {
    display: none; /* Standard: nicht anzeigen */
}

.entry {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
    font-size: 1em;
}

/* Adminmenü */
.admin-container h1 {
    text-align: center;
    color: var(--primaerfarbe);
    margin-bottom: 20px;
}

form {
    flex-direction: column;
    gap: 20px;
}

fieldset {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

legend {
    font-weight: bold;
    color: var(--primaerfarbe);
    padding: 0 5px;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="password"],
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 8px;
}

input[type="submit"] {
    align-self: center;
    padding: 12px 25px;
    background-color: var(--primaerfarbe);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

input[type="submit"]:hover {
    transform: scale(1.05);
    background-color: var(--primaerfarbe);
}

.success {
    background-color: #d4edda; /* hellgrün, typisch für Erfolg */
    color: #155724;            /* dunkler Grünton für Text */
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 128, 0, 0.1);
    margin: 20px auto;
    max-width: 600px;
}

.feiertage-container {
    width: auto; /* Lässt die Box sich an den Inhalt anpassen */
    padding: 20px;
    background-color: #f9f9f9; /* Helles Hintergrund */
    border: 1px solid #ccc; /* Graue Umrandung */
    border-radius: 8px; /* Ecken abgerundet */
    text-align: center; /* Zentriert den Inhalt innerhalb der Box */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* Leichter Schatten für bessere Sichtbarkeit */
    margin: 0 auto; /* Zentriert die Box horizontal */
    max-width: 80%; /* Maximale Breite für den Container */
}

.feiertage-wrapper {
    max-width: 800px; /* Maximale Breite für die Feiertagsboxen */
    margin: 0 auto; /* Zentriert die Box horizontal */
}

.feiertage-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    align-items: stretch;
}

.feiertag-box {
    background-color: white;
    border: 1px solid #ccc;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    min-width: 180px; /* Minimalbreite für eine gleichmäßige Darstellung */
    flex: 1 1 auto; /* Sorgt dafür, dass alle Boxen dieselbe Breite erhalten */
    width: 100%; /* Lässt die Boxen die gesamte Breite innerhalb ihres Containers einnehmen */
}

.feiertag-box span {
    display: inline-block;
    width: 100%;
    text-align: center;
}


.admin-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	margin-top: 100px;
}

.form-container h1 {
    text-align: center;
    color: var(--primaerfarbe);
    margin-bottom: 20px;
}

.form-container h2 {
    text-align: center;
    color: var(--primaerfarbe);
    margin-bottom: 20px;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-container label {
    font-weight: bold;
    color: #333;
}

.form-container input[type="email"] {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-container button {
    padding: 12px;
    background-color: var(--primaerfarbe);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.form-container button:hover {
    transform: scale(1.05);
    background-color: var(--primaerfarbe);
}

.form-container input[type="password"] {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-container input[type="submit"] {
    padding: 12px;
    background-color: var(--primaerfarbe);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.form-container input[type="submit"]:hover {
    transform: scale(1.05);
    background-color: var(--primaerfarbe);
}


.button {
    background-color: var(--primaerfarbe);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: auto;             /* Nimmt nur so viel Platz wie nötig */
    display: inline-block;   /* Wichtig, damit er nicht volle Breite annimmt */
	font-weight: bold;
	text-decoration: none;
	margin: 10px;
	
}

.button:hover {
    transform: scale(1.05); /* Button wird beim Hover größer */
}

.button-red {
    background-color: red;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: auto;             /* Nimmt nur so viel Platz wie nötig */
    display: inline-block;   /* Wichtig, damit er nicht volle Breite annimmt */
	font-weight: bold;
	text-decoration: none;
	margin: 10px;
	margin-right: 10px
}

input[type="submit"].button-red {
    background-color: red !important;
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.3s ease, background-color 0.3s ease;
    width: auto;
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
}

.button-red:hover {
    transform: scale(1.05); /* Button wird beim Hover größer */
}


.logout-button:hover {
    transform: scale(1.05); /* Button wird beim Hover größer */
    background-color: #c0392b; /* Dunkleres Rot bei Hover */
}

.logout-button:focus {
    outline: none; /* Entfernt den Fokusrahmen */
}

/* Kachelmenü */
.tile-menu {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
	margin-bottom: 20px;
}

.tile {
    background-color: var(--primaerfarbe);
    color: white;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    width: 200px; /* oder beliebig anpassen */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Übergang auch für den Schatten */
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Schatten hinzufügen */
}

.tile a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.tile-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.tile-content h2 {
    color: white;
    font-size: 1.5rem;
    margin: 20px;
}

.tile:hover {
	transform: scale(1.05); /* Button wird beim Hover größer */
}

.zeile {
    display: flex;
    border-bottom: 1px solid #ccc;
}

.zeile.kopf {
    background-color: var(--primaerfarbe);
    color: white;
    font-weight: bold;
}

.telefonliste-page .zeile:hover {
    background-color: var(--primaerfarbe);
    filter: brightness(1.2);
    cursor: pointer;
}

.telefonliste-page .zeile {
    transition: background-color 0.2s ease-in-out;
}

.zelle {
    flex: 1;
    padding: 10px;
    box-sizing: border-box;
}

.zeile.kopf .zelle a {
    color: white;  /* Weißer Text */
    text-decoration: none;  /* Entfernt die Unterstreichung */
}

.zeile.kopf .zelle a:hover {
    text-decoration: none;  /* Entfernt auch die Unterstreichung beim Hover */
}

.aktion-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.aktion-buttons form {
    margin: 0;
}

.aktion-buttons .button {
    padding: 10px 20px;
    background-color: var(--primaerfarbe);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.aktion-buttons .button:hover {
    transform: scale(1.1); /* Button wird um 10% größer */
}


/* Zeitslots */
.slot-container {
    gap: 10px;
    margin-top: 10px;
}

.slot-table-container {
    margin-top: 10px; /* kein flex */
}

.slot-box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.slot-box {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 0;           /* Kein zusätzlicher vertikaler Abstand */
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: default;
    transition: none;
    width: 160px;        /* Feste Breite */
    box-sizing: border-box;
    line-height: 1.3;
    flex-shrink: 0;      /* Verhindert Verkleinerung */
}

.slot-header, .slot-row {
    display: flex;
    padding: 6px;
    border: 1px solid #aaa;
    border-bottom: none;
    align-items: center; /* für vertikale Zentrierung */
}

.slot-header {
    font-weight: bold;
    background-color: #f0f0f0;
}
.slot-row {
    padding: 6px 10px;
    line-height: 1.2;
}

.slot-row:last-child {
    border-bottom: 1px solid #aaa;
}

.slot-col {
    flex: 1;
    text-align: center;
}

.slot-col:last-child {
    flex: 0 0 250px; /* fixe Breite, je nach Bedarf anpassen */
}

fieldset {
  margin-bottom: 30px; /* mehr Abstand unter jedem Datum */
  padding: 15px;       /* evtl. auch etwas Innenabstand */
  border: 1px solid #ccc; /* evtl. schöner Rahmen */
  border-radius: 5px;
}

        .slot-frei {
            background-color: var(--primaerfarbe);
            color: white;
            font-weight: bold;
        }

        .slot-belegt {
            background-color: #ff6b6b;
            color: white;
            font-weight: bold;
        }

        .slot-box input[type="text"] {
            width: 100%;
            padding: 5px;
            margin-bottom: 5px;
            font-size: 0.9em;
            box-sizing: border-box;
        }

        .slot-box input[type="submit"] {
            width: 100%;
            padding: 6px;
            font-size: 0.9em;
            background-color: white;
            color: var(--primaerfarbe);
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .slot-box input[type="submit"]:hover {
            background-color: #dcdcdc;
        }

        .slot-box form {
            margin: 0;
        }

        fieldset {
            margin-bottom: 30px;
            padding: 15px;
            border: 1px solid #ccc;
            border-radius: 5px;
        }

        legend {
            font-size: 1.1em;
            font-weight: bold;
            color: var(--primaerfarbe);
        }

.sortierbar {
    cursor: pointer;
    user-select: none;
    color: inherit; /* normale Textfarbe */
    text-decoration: none; /* keine Unterstreichung */
}
.sortierbar:hover {
    text-decoration: underline; /* optisches Feedback beim Hover */
}
.slot-row.aufsteigend > div[data-sort-column]::after {
    content: " ▲";
}
.slot-row.absteigend > div[data-sort-column]::after {
    content: " ▼";
}


/* Dokumentation */
.doku-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: sans-serif;
    border: 1px solid #ccc;
    border-collapse: collapse;
}

.doku-row {
    display: flex;
    border-bottom: 1px solid #ccc;
}

.doku-header {
    background-color: #f0f0f0;
    font-weight: bold;
}

.doku-row > div {
    flex: 1;
    padding: 10px;
    border-right: 1px solid #ccc;
    word-break: break-word;
}

.doku-row > div:last-child {
    border-right: none;
}

.inhaltsverzeichnis .toc-link {
    color: var(--primaerfarbe);
    text-decoration: none;
    font-weight: bold;
	display: block;
	margin-bottom: 0.5em;
}
.inhaltsverzeichnis .toc-link:hover {
    text-decoration: underline;
}

h1[id], h2[id], h3[id] {
	 scroll-margin-top: 100px; /* oder je nach tatsächlichem Offset */
}

/* Modal-Styles */
.doku-bild {
    display: none; /* Modal zunächst ausgeblendet */
    position: fixed;
    z-index: 9999; /* Sehr hoher z-index, um das Modal vor anderen Elementen anzuzeigen */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Halbtransparenter Hintergrund */
    overflow: hidden;
    padding-top: 80px;
    text-align: center;
}

.doku-bild img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    margin: auto;
    display: block;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Schließen Button */
.button-close {
    position: absolute;
    top: 50px;
    right: 50px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000; /* Höherer z-index als das Modal, um es über anderen Elementen zu zeigen */
}

.button-close:hover,
.button-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}



/* Telefonliste */
.sortierbar-move:hover .zelle {
    background-color: var(--primaerfarbe);
    color: white;
    cursor: move;
}

.sortierbar-move {
    background-color: transparent; /* keine Standardfarbe setzen */
    transition: background-color 0.2s ease-in-out;
}



/* Vorstellungskachel */
.vorstellungskachel-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;       /* Erlaubt Zeilenumbruch */
    gap: 20px;             /* Abstand zwischen den Kacheln */
    margin: 20px 0;
}

.vorstellungskachel {
    flex: 0 1 45%;       /* Kachel hat eine Basisbreite von 300px, wächst nicht, kann aber schrumpfen */
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.vorstellungskachel-inhalt {
    padding: 10px;
}

.vorstellungskachel h2 {
    margin: 10px 0 5px;
    color: var(--primaerfarbe);
    font-size: 1.5em;
}

.vorstellungskachel h3 {
    margin: 0;
    font-size: 1.1em;
    color: #666;
}

.vorstellungskachel p {
    margin-top: 15px;
    color: #444;
    font-size: 1em;
    line-height: 1.5;
}

/* Motivationsspruch */

.motivationsspruch-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;       /* Erlaubt Zeilenumbruch */
    gap: 20px;             /* Abstand zwischen den Kacheln */
    margin: 20px 0;
}

.motivationsspruch {
    flex: 0 1 45%;       /* Kachel hat eine Basisbreite von 300px, wächst nicht, kann aber schrumpfen */
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Aktuelles Kachel */
.aktuelleskachel-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.aktuelleskachel {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.aktuelleskachel-inhalt {
    padding: 10px;
}

.aktuelleskachel-inhalt p {
	text-align: left;
}

.aktuelleskachel h2 {
    margin: 10px 0 5px;
    color: var(--primaerfarbe);
    font-size: 1.5em;
}

.aktuelleskachel h3 {
    margin: 0;
    font-size: 1.1em;
    color: #666;
}

.aktuelleskachel p {
    margin-top: 15px;
    color: #444;
    font-size: 1em;
    line-height: 1.5;
}

        .aktuelles-read-more {
            font-size: 1em;
            color: #007bff;
            cursor: pointer;
            margin-top: 10px;
            display: flow-root; /* Immer sichtbar, wenn Text mehr als 20 WÃ¶rter hat */

        }

        .aktuelles-footer-date-author {
            font-size: 0.75em;
            color: #555;
			text-align: left;
        }


.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Erlaubt das Umbrechen der Pagination */
    padding: 10px 20px;
}

.pagination a.page-link,
.pagination span.page-current,
.pagination span.page-dots {
    padding: 8px 12px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid var(--primaerfarbe);
    background-color: white;
    color: var(--primaerfarbe);
    display: inline-block;
    min-width: 36px;
    text-align: center;
    box-sizing: border-box;
    transition: background-color 0.2s;
}

.pagination a.page-link:hover {
    background-color: #ddd;
}

/* Hervorhebung der aktuellen Seite */
.pagination span.page-current {
    background-color: white;
    color: var(--primaerfarbe);
    font-weight: bold;
    border-color: var(--primaerfarbe);
}

/* Hervorhebung der ersten und letzten Seite */
.pagination a.page-first,
.pagination a.page-last {
    background-color: #333; /* Gleiche Hintergrundfarbe wie aktuelle Seite */
    color: #fff;
    font-weight: bold;
    border-color: #333;
}

.pagination span.page-dots {
    background: none;
    border: none;
    color: #999;
    padding: 8px 6px;
    cursor: default;
}




.liste {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
    border: 1px solid #ccc;
}


.doku-text {
    text-align: left;
}







/* Mobilanzeige */
@media (max-width: 768px) {

    .nav-links-container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .calendar-container {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 5px;
        width: 90%;
        max-width: 90%;
    }

    .weekdays {
        display: none;
    }

    .calendar-header {
        flex-direction: column;
        gap: 10px;
        padding: 0 10px;
    }

    .calendar-header button {
        width: 100%;
        font-size: 1em;
    }

    .day {
        font-size: 0.9em;
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .day-number {
        display: none; /* Nur Mobil: ausblenden */
    }

    .day-number-with-weekday {
        display: block; /* Nur Mobil: anzeigen */
    }

    .calendar-container .day.empty {
        display: none;
    }

    .modal-content {
        width: 95%;
        margin-top: 50%;
    }

    .admin-container {

    }

fieldset {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    width: 100%;  /* Volle Breite des Containers */
    box-sizing: border-box; /* Sorgt dafür, dass Padding nicht die Breite beeinflusst */
    margin: 0; /* Entfernt eventuelle Ränder */
}

/* Eingabefelder und Textarea auf volle Breite setzen */
input[type="text"],
textarea {
    width: 100%;  /* Volle Breite der Elternelemente */
    padding: 10px;
    margin-top: 5px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Padding und Border haben keinen Einfluss auf die Breite */
}

    input[type="submit"] {
        width: 100%;
        padding: 12px;
    }

    .admin-container h1 {
        font-size: 1.5em;
    }

    legend {
        font-size: 1em;
    }

    label {
        font-size: 0.95em;
    }
    
    .logo {
        height: 30px; /* oder kleiner, z. B. 25px je nach Platzbedarf */
    }

    .logo-text .line1 h1 {
        font-size: 1.2rem; /* Optional: auch Titel kleiner machen */
    }

    .logo-container {
        flex-direction: row;
        align-items: center;
        gap: 10px; /* oder margin zwischen Bild und Text */
    }    
    
}

@media (max-width: 600px) {
    .slot-box-container {
        flex-direction: column;
        align-items: stretch;
    }

    .slot-box {
        width: 100%; /* Volle Breite auf kleinen Bildschirmen */
    }

    .slot-header, .slot-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .slot-col {
        width: 100%;
        text-align: left;
        padding: 4px 0;
    }

    .slot-col:last-child {
        flex: 1;
        width: 100%; /* Entfernt feste Breite */
    }

    .slot-box input[type="text"],
    .slot-box input[type="submit"] {
        font-size: 1em;
    }

    fieldset {
        padding: 10px;
		margin-bottom: 30px;
    }

    legend {
        font-size: 1em;
    }

    .vorstellungskachel {
        max-width: 90%;
    }
}
	
}
