:root {
   --font-main:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
   --color-primary:  #0070f3;
   --color-bg:       #fafafa;
   --color-text:     #333333;
   --site-bg-light:  #fafafa;
   --site-bg-dark:   #333333;
   --radius:         12px;
   --shadow:         0 4px 16px rgba(0,0,0,0.1);
}



/* Reset für alle Standardwerte */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Einmalige globale Schrift- und Farbdefinition */
body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color:            var(--color-text);
  line-height:      1.6;
}

input,
select,
textarea,
button {
  font-family: var(--font-main);
}

/* ---------------------------------
   Google Font import (Montserrat)
--------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

/* =====================================
   Header-Grundlayout (modern & clean)
===================================== */
header {
  
  background:
    /* Rautenmuster */
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1) 25%,
      transparent 25%,
      transparent 75%,
      rgba(255, 255, 255, 0.1) 75%,
      rgba(255, 255, 255, 0.1)
    ) 0 0 / 150px 150px, 
    /* Farbverlauf */
    linear-gradient(135deg, #007BFF 0%, #0056b3 100%);
  
  /* übrige Styles bleiben identisch */
  font-family: 'Montserrat', sans-serif;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  min-height: 150px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* Logo-Container: Links ausgerichtet */
#logo-container {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

#logo {
  height: 100px;   
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}
#logo-container:hover #logo {
  transform: scale(1.2);
}

/* Zentrale Überschrift: Mittig, responsiv */
#header-content {
  flex: 1 1 auto;
  text-align: center;
  min-width: 0;     
  padding: 0 1rem;  
}

#header-content h1 {
  font-size: 2.2rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Login-Button: Rechts ausgerichtet */
#login-button-container {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: 1rem;
}

.login-button-box {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-button {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.login-button-box:hover {
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.login-button-box:hover .login-button {
  color: #f0f0f0;
  text-decoration: underline;
}





/* Stil für den Passwort vergessen Link */
.password-reset-link {
    display: block;
    color: #5F9EA0; /* Dunkelgrau passend zu den Buttons */
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 10px;
}

.password-reset-link:hover {
    text-decoration: underline;
    color: #4682B4; /* Etwas helleres Blau bei Hover */
}

/* ====================================
   Main Layout
==================================== */

main {
  width: 100%;
  padding: 40px 20px;
  background-color: #fff; /* Weißer Hintergrund */
}

#content {
  width: 100%;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

#content h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

#content p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 20px;
}

select {
  padding: 10px;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
}


/* ====================================
   Footer Layout
==================================== */



footer {
  width: 100%;
  background-color: #333; /* Dunkles Grau */
  color: white;
  padding: 20px 0;
  text-align: center;
}

#footer-content {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-box {
  background-color: #444;
  padding: 10px 20px;
  border-radius: 5px;
}

.footer-box a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

.footer-box a:hover {
  text-decoration: underline;
}

footer p {
  font-size: 1rem;
  margin-top: 20px;
  color: #ccc;
}

#login-button-footer {
  display: none;
}


/* ====================================
   Anmeldeseite
==================================== */
/* ====================================
   Formular-Layout und Styling
==================================== */

.form-group {
  margin-bottom: 20px; /* Abstand zwischen den Formularfeldern */
}

.form-group label {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
}

.form-group input {
  width: 100%; /* Eingabefelder nehmen die gesamte Breite ein */
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box; /* sorgt dafür, dass das Padding im Gesamtmaß enthalten ist */
}

.form-group button {
  width: 100%; /* Button nimmt die gesamte Breite ein */
  padding: 10px;
  background-color: #007BFF;
  color: white;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
}

.form-group button:hover {
  background-color: #005ec2;
}

/* ====================================
   file_list für hochgeladene Dateien
==================================== */

#file-list,
#question-list,
#done-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    max-width: 50%;
}

/* Einträge in beiden Listen */
#file-list li,
#question-list li,
#done-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e0e0e0;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: background 0.3s ease;
    max-width: 100%;
}

/* Links in beiden Listen */
#file-list a,
#question-list a,
#done-list a {
    text-decoration: none;
    color: #333;
    font-weight: normal;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Icons im Link in beiden Listen */
#file-list a i,
#question-list a i, 
#done-list a i {
    margin-right: 8px;
}

/* Container für Buttons */
#file-list li,
#question-list li,
#done-list li {
    position: relative;
}

#file-list li > .question-btn,
#file-list li > .done-btn,
#file-list li > .delete-btn,
#question-list li > .question-btn,
#question-list li > .done-btn,
#question-list li > .delete-btn,
#done-list li > .question-btn,
#done-list li > .done-btn,
#done-list li > .delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    margin-left: 10px;
    transition: transform 0.2s;
}

.question-btn i {
    color: orange;
}

.done-btn i {
    color: green;
}

.delete-btn i {
    color: #d9534f;
}

.delete-btn:hover {
    color: #c9302c;
}

.question-btn:hover i,
.done-btn:hover i {
    transform: scale(1.2);
}

/* Container für die Buttons (damit sie nebeneinander stehen) */
button.edit-btn {
  background-color: #007BFF;  /* Normale Farbe blau */
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;  /* Abstand rechts zwischen Buttons */
}

/* Hover-Farbe */
button.edit-btn:hover {
  background-color: #005ec2; /* dunkleres blau */
  transform: scale(1.05);
}

/* Icon mit Abstand zum Text (falls vorhanden) */
button.edit-btn i {
  font-size: 16px;
  margin-right: 5px;
}

/* Falls du keinen Text im Button hast, kannst du margin-right beim Icon auch weglassen */



/* ====================================
   Button für Punktlayer
==================================== */


/* Style für den Weiterleitungs-Button */
.redirect-button {
    background-color: #007BFF; /* Blauer Hintergrund */
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover-Effekt für den Button */
.redirect-button:hover {
    background-color: #005ec2; 
    transform: scale(1.05); /* Button wird leicht vergrößert */
}

/* Fokus-Effekt für bessere Zugänglichkeit */
.redirect-button:focus {
    outline: 3px solid #ffcc00; /* Gelber Rahmen, wenn der Button fokussiert wird */
}

.point-form-container .redirect-button {
  background-color: #007BFF;
  color: white;
}




/* ====================================
   Passwort-ändern
==================================== */
.pwd-group {
  margin-bottom: 20px; /* Abstand zwischen den Formularfeldern */
}

.pwd-group label {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
}

.pwd-group input {
  width: 30%; /* Nur 30% Breite */
  padding: 10px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  text-align: left; /* Links ausgerichtet */
}

/* Container für den Passwortändern-Button */
.pwd-change-button-container {
  position: relative; /* oder absolute, je nach Layoutbedarf */
  margin-top: 20px;
}

/* Ähnlich wie die login-button-box */
.pwd-change-button-box {
  background-color: #007bff; /* Farbe wie im Beispiel */
  padding: 10px 20px;
  border-radius: 5px;
  display: inline-block;
}

/* Button-Stil, angelehnt an .login-button */
.pwd-change-button {
  color: white; /* Weißer Text */
  text-decoration: none; /* Keine Unterstreichung */
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
}

.pwd-change-button-box:hover .pwd-change-button {
  text-decoration: underline; /* Unterstreichung bei Hover */
  color: #ddd; /* Helle Farbe bei Hover */
}



/* ====================================
   Punktlayer
==================================== */

/* Container für die gesamte Punkt-Erstellung */
.point-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.point-form-container h2 {
    text-align: center;
}

/* Flexbox Container für Formular und Karte */
.form-map-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

/* Formular-Container (links) */
.form-container {
    width: 50%;  /* Formular geht nur bis zur Mitte */
}

/* Formularfelder */
.point-form-container label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.point-form-container input[type="text"],
.point-form-container input[type="number"],
.point-form-container select,
.point-form-container textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Nur vertikal resize für Textareas */
.point-form-container textarea,
.full-width-fields textarea {
  resize: vertical;
}


.point-form-container input[type="file"] {
    margin-top: 5px;
}

/* Button zum Speichern */
.point-form-container button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.point-form-container button:hover {
    background-color: #005ec2;
}

/* Karte */
.map {
    height: 300px;  /* Karte wird kleiner */
    width: 40%;  /* Karte nimmt nur 40% der Breite */
}

/* Container für die Felder unter der Karte */
.full-width-fields {
    width: 100%;  /* Diese Felder gehen über die gesamte Breite */
    margin-top: 20px;  /* Abstand zwischen Karte und Feldern */
}

/* Sicherstellen, dass Felder unterhalb der Karte auch gut aussehen */
.full-width-fields label {
    margin-top: 10px;
}

.full-width-fields input[type="text"],
.full-width-fields input[type="file"],
.full-width-fields textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}


/* ====================================
   Polygon-Karte stylen
==================================== */



.polygon-map {
  width: 100%; /* volle Breite */
  height: 400px; /* Höhe der Karte */
  background-color: #f0f0f0; /* optional, nur für Hintergrund */
  transition: height 0.3s ease;
}

.polygon-map.enlarged {
  height: 700px; /* Vergrößerte Höhe für die Karte */
}


.delete-btn {
  background-color: transparent;
  border: none;
  cursor: pointer;
  margin-left: 10px;
  color: #c62828; /* kräftiges Rot */
  font-size: 1em;
  transition: color 0.3s ease;
}

.delete-btn:hover {
  color: #ff1744; /* helleres Rot beim Hover */
}

.delete-btn i {
  pointer-events: none; /* verhindert doppelte Klick-Events */
}




/* ====================================
   Kommentarfunktion
==================================== */
.popup-form {
  display: flex;
  flex-direction: column;
  gap: 0rem; 
  font-size: 0.6rem;
  max-width: 400px;
  width:100%;
  padding: 0.6rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.input-group {
  margin-bottom: 0.5rem; /* Abstand zwischen den Eingabefeldern */
}

.input-group label {
  font-weight: 500;
  margin-bottom: 0; /* Kein zusätzlicher Abstand unter Labels */
}

.input-group input,
.input-group select,
.input-group textarea {
  padding: 4px 6px;
  font-size: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.input-group textarea {
  min-height: 40px;
  max-height: 60px;
  resize: vertical;
}

.input-group.checkbox-group {
  display: flex;
  align-items: center;
}

.input-group input[type="checkbox"] {
  width: auto;
  margin-right: 4px;
}




.popup-form button {
  margin-top: 0.1rem; /* Weniger Abstand nach oben */
  padding: 6px 10px;
  font-size: 0.85rem;
  background-color: #007BFF;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.popup-form button:hover {
  background-color: #005ec2;
}

.input-group label:last-of-type {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  margin-top: 0.1rem; /* Weniger Abstand zum vorherigen Element */
  line-height: 1.2;
}

/* ====================================
Kommentaranzeige
==================================== */

.kommentar-box {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 20px;
  margin-top: 20px;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  color: #333;
  border-radius: 8px;
  line-height: 1.6;
}

.kommentar-box h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #00529B;
}

.kommentar-box hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 10px 0;
}

.kommentar-eintrag {
  margin: 5px 0;
}

.kommentar-eintrag .label {
  font-weight: bold;
  color: #222;
}

.kommentar-eintrag .value {
  color: #444;
}




/* ====================================
Bearbeitungsstandanzeige
==================================== */

.bearbeitungsstand-box {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 20px;
  margin-top: 20px;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  color: #333;
  border-radius: 8px;
  line-height: 1.6;
}

.bearbeitungsstand-box h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #000000;
}

.bearbeitungsstand-box hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 10px 0;
}

.bearbeitungsstand-eintrag {
  margin: 5px 0;
}

.bearbeitungsstand-eintrag .label {
  font-weight: bold;
  color: #222;
}

.bearbeitungsstand-eintrag .value {
  color: #444;
}


/* 5. Moderner Button */
.bearbeitungsstand-btn {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  align-self: start;  /* linksbündig */
}

.bearbeitungsstand-btn:hover {
  background-color: #005ec2;
  transform: translateY(-1px);
}

.bearbeitungsstand-btn:active {
  background-color: #004a9f;
  transform: translateY(0);
}

#status-form textarea {
  /* behalte die 100%-Breite, erlaube nur Höhentweitung */
  resize: vertical;
  margin-bottom: 1em;
}

/* Entfernt die Standard-Punkte, rückt die Liste leicht nach links */
.bearbeitungsstand-box ul {
  list-style: none;      /* keine Punkte */
  margin-left: 1em;    /* nach links schieben */
  padding-left: 0;       /* Standard-Einzug entfernen */
}

/* Fügt vor jedem Listeneintrag einen kurzen Strich (en dash) ein */
.bearbeitungsstand-box ul li::before {
  content: "–";          /* En Dash als Aufzählzeichen */
  display: inline-block;
  width: 1em;            /* Platz für das Zeichen */
  margin-left: -1em;     /* korrigiert die Position */
}

/* Li-Items als Flex, Icons vertikal zentrieren */
.bearbeitungsstand-box ul li {
  display: flex;
  align-items: center;       /* vertikal zentrieren */
  
}

/* Optional: etwas Abstand zwischen Text und Icon */
.bearbeitungsstand-box .status-text {
  margin-right: 0.5em;
}

/* Erzwingt Zeilenumbrüche bei langen Wörtern */
.bearbeitungsstand-box ul li .status-text {
  /* erlaubte Breite bis zum Icon abzüglich etwas Abstand */
  max-width: calc(100% - 2.5em);
  /* mehrere Umbruch-Regeln */
  overflow-wrap: break-word;   /* umbricht lange Wörter */
  word-wrap: break-word;       /* Fallback */
  word-break: break-word;      /* noch stärkerer Fallback */
}




/* ====================================
Informationsbox
==================================== */
.info-box {
  background-color: #f1f1f1;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  border: 2px solid #ccc;
}


/* Jede einzelne Information bekommt einen schwarzen Rahmen */
.info-entry {
  position: relative;       /* ➔ definiert den Bezugsrahmen für absolute Kinder */
  margin-bottom: 1rem;
  padding: 1rem;
  padding-top: 0.75rem;      /* ➔ etwas Platz am oberen Rand für den Button */
  border: 1px solid #000;
  border-radius: 6px;
  background-color: #fff;
}


/* Styling für das Informationsfeld */
.info-feld {
  max-width: 700px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fafafa;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 2px solid #ddd;
}

.info-feld h2 {
  text-align: center;
  color: #111;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 25px;
  border-bottom: 2px solid #000;
  padding-bottom: 10px;
}

.info-feld form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-feld label {
  font-weight: bold;
  color: #333;
}

.info-feld input,
.info-feld textarea {
  padding: 12px;
  border: 1px solid #888;
  border-radius: 6px;
  font-size: 16px;
  color: #222;
  transition: border-color 0.3s;
}

.info-feld input:focus,
.info-feld textarea:focus {
  border-color: #000;
  outline: none;
}

.info-feld textarea {
  resize: vertical;
}

.info-feld button {
  padding: 14px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.info-feld button:hover {
  background-color: #005ec2;
}

.info-feld button:active {
  background-color: #003f7f;
}

.info-feld button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Damit das Textarea dieselbe Schrift bekommt wie der Titel */
.info-feld textarea {
  font-family: 'DeineSchöneSchrift', sans-serif;
  font-size: 1rem;             /* passt zur Höhe Deiner Eingaben */
  line-height: 1.4;            /* für bessere Lesbarkeit im mehrzeiligen Feld */
  padding: 0.5em;              /* optional, für mehr Innenabstand */
}




/* Close-Button */
.info-feld .feedback-popup-close {
  position: absolute !important;
  top: 0.5em !important;
  right: 0.5em !important;
  background: transparent !important;
  border: none !important;
  font-size: 1.2em !important;
  cursor: pointer !important;
  color: #666 !important;
}




/* ====================================
Antwortoptionen beim Abstimmen
==================================== */


.option-wrapper {
margin-bottom: 10px; /* Fügt 10px Abstand zwischen den Antwortoptionen hinzu */
}

/* ====================================
   Abstimmungsbutton in GemeindeGIS
==================================== */


.vote-button {
    background-color: #007BFF; 
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover-Effekt für den Button */
.vote-button:hover {
    background-color: #005ec2; 
    transform: scale(1.05);
}

/* Fokus-Effekt für bessere Zugänglichkeit */
.vote-button:focus {
    outline: 3px solid #ffcc00; /* Gelber Rahmen, wenn der Button fokussiert wird */
}

/* Ergebnisse anzeigen button */
/* Gruppierung der Buttons */
.button-group {
    display: flex;
    align-items: center;
    gap: 10px; /* Abstand zwischen den Buttons */
    margin-left: auto; /* Schiebt Button-Gruppe ganz nach rechts */
}

/* Gleiche Styles für alle drei Buttons */
.result-btn,
.close-btn,
.survey-btn,
.publish-btn,
.Abstimmung-delete-btn {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Delete-Button bekommt andere Farbe */
.Abstimmung-delete-btn {
    background-color: transparent;
    color: #d9534f;
    padding: 8px;
    font-size: 18px;
}

.result-btn:hover,
.publish-btn:hover,
.close-btn:hover,
.survey-btn:hover {
    background-color: #005ec2;
    transform: scale(1.05);
}
.Abstimmung-delete-btn:hover {
    transform: scale(1.2);
}

/* Fokus-Stile */
.result-btn:focus,
.publish-btn:focus,
.close-btn:focus,
.survey-btn:focus,
.Abstimmung-delete-btn:focus {
    outline: 3px solid #ffcc00;
}


/*Eingabefeld Abstimmungscode*/

.vote-code-input {
  width: 30%;
  max-width: 200px;      /* optional, um es nicht zu breit werden zu lassen */
  display: inline-block; /* damit es sich nicht über die volle Breite erstreckt */
  margin: 0.5em 0;       /* etwas Abstand oben/unten */
  padding: 0.5em;        /* Innenabstand für bessere Klick-/Tipprost */
  box-sizing: border-box;
  text-transform: uppercase;
  border: 1px solid #ccc;
  border-radius: 4px;
}





#active-list,
#published-list,
#closed-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    max-width: 75%;
}

/* Einträge in beiden Listen */
#active-list li,
#published-list li,
#closed-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #e0e0e0;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: background 0.3s ease;
    max-width: 100%;
}

/* Links in beiden Listen */
#active-list a,
#published-list a,
#closed-list a {
    text-decoration: none;
    color: #333;
    font-weight: normal;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

/* Icons im Link in beiden Listen */
#active-list a i,
#published-list a i, 
#closed-list a i {
    margin-right: 8px;
}

/* Container für Buttons */
#active-list li,
#published-list li,
#closed-list li {
    position: relative;
}

#active-list li > .active-btn,
#active-list li > .closed-btn,
#closed-list li > .active-btn,
#closed-list li > .closed-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    margin-left: 10px;
    transition: transform 0.2s;
}

#published-votes-box .info-entry canvas.pub-chart-canvas {
  width: 100%;
  height: auto;
  display: block;
}

/* ====================================
Styling der Antwortoptionen Nutzerperspektive
==================================== */
/* Grid-Container für die Optionen */
.vote-options {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}


/* 1 Spalte */
.vote-options.columns-1 {
  grid-template-columns: 1fr;
}

/* 2 Spalten */
.vote-options.columns-2 {
  grid-template-columns: 1fr 1fr;
}

/* 3 Spalten */
.vote-options.columns-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Option-Element-Styling */
.vote-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vote-option label {
  word-wrap: break-word;        /* Bricht lange Wörter */
  overflow-wrap: break-word;    /* Alternativ für Browser-Kompatibilität */
  white-space: normal;          /* Erlaubt Umbrüche bei Leerzeichen */
}




/* ====================================
Styling der veröffentlichten Abstimmungsergebnisse
==================================== */

/* Veröffentlichte Abstimmungen: Flex-Container mit Wrap */
#published-votes-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;               /* Abstand zwischen den Kästchen */
  align-items: flex-start; /* Oben ausrichten */
}

/* Jeder Eintrag bekommt fixe Breite */
#published-votes-box .info-entry {
  flex: 1 1 calc((100% - 2rem) / 3);
  max-width: calc((100% - 2rem) / 3);
  box-sizing: border-box;  /* inkl. Padding/Borders */
  margin: 0;               /* da gap sich um Abstände kümmert */
}

/* sorgt dafür, dass die Überschrift in #published-votes-box immer in einer eigenen Zeile steht */
#published-votes-box > h3 {
  flex: 0 0 100%;
  /* optional noch etwas Abstand nach unten */
  margin-bottom: 1rem;
}




/* ====================================
   Ergebnisdarstellung Abstimmungen in Administrationsbereich
==================================== */
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  margin-top: 1em;
}

.toggle-label {
  font-size: 0.9rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

/* verstecke das native Checkbox-Häkchen */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* die graue Hintergrund-Schiene */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 13px;
  transition: background-color 0.3s;
}

/* der runde Knopf */
.slider::before {
  position: absolute;
  content: "";
  height: 22px; width: 22px;
  left: 2px; bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

/* Zustand „An“ */
.switch input:checked + .slider {
  background-color: #4CAF50;
}
.switch input:checked + .slider::before {
  transform: translateX(24px);
}


/* ====================================
   Button für Punktverknüpfung in Abstimmungen und Informationen
==================================== */


.point-button {
    background-color: #007BFF; 
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover-Effekt für den Button */
.point-button:hover {
    background-color: #005ec2; 
    transform: scale(1.05);
}

/* Fokus-Effekt für bessere Zugänglichkeit */
.point-button:focus {
    outline: 3px solid #ffcc00; /* Gelber Rahmen, wenn der Button fokussiert wird */
}

/* „Zum Punkt“-Button in der rechten oberen Ecke des .info-entry */
.info-entry .point-button {
  position: absolute;
  top: 0.75rem;      /* Abstand vom oberen Rand des Containers */
  right: 0.75rem;    /* Abstand vom rechten Rand des Containers */
  padding: 6px 12px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover- und Fokus-Stile */
.info-entry .point-button:hover {
  background-color: #007BFF;
  color: white;
  transform: scale(1.05);
}
.info-entry .point-button:focus {
  outline: 3px solid #ffcc00;
}





/* ====================================
   Button für das Zurücksetzen der Trip-Statistiken
==================================== */


.reset-local-btn {
    background-color: #007BFF; 
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover-Effekt für den Button */
.reset-local-btn:hover {
    background-color: #005ec2; 
    transform: scale(1.05);
}

/* Fokus-Effekt für bessere Zugänglichkeit */
.reset-local-btn:focus {
    outline: 3px solid #ffcc00; /* Gelber Rahmen, wenn der Button fokussiert wird */
}


/* Tabelle in der Administratoransicht*/


.table-list {
    width: 100%;
    max-width: 100%;
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

/* Tabelle innerhalb von .table-list */
.table-list table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

.table-list th,
.table-list td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.table-list thead {
    background-color: #f2f2f2;
    font-weight: bold;
}

.table-list tr:hover {
    background-color: #f9f9f9;
}

@media (max-width: 768px) {
  .table-list table,
  .table-list thead,
  .table-list tbody,
  .table-list th,
  .table-list td,
  .table-list tr {
    display: block;
    width: 100%;
  }

  .table-list thead {
    display: none; /* Tabellenkopf ausblenden */
  }

  .table-list tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background: #fafafa;
  }

  .table-list td {
    text-align: left;
    padding: 6px 12px;
    border: none;
    position: relative;
    padding-left: 50%;
  }

  /* Label der Spalte simulieren – mit ::before */
  .table-list td::before {
    content: attr(data-label);
    position: absolute;
    left: 12px;
    top: 6px;
    font-weight: bold;
    color: #555;
    width: 45%;
    white-space: nowrap;
  }
}







/* ====================================
Cookiebanner
==================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
}

/* Wrapper für die beiden Buttons nebeneinander */
.cookie-buttons {
  display: flex;
  gap: 0.5em; /* Abstand zwischen den Buttons */
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: #4FC3F7;
  text-decoration: underline;
}

/* Buttons nun über .cookie-buttons ausgerichtet, daher hier kein margin-left mehr */
.cookie-banner button {
  padding: 0.5em 1em;
  border: none;
  background: #007BFF; /* Grundfarbe */
  color: #fff;         /* weißer Text */
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Hover-Farbe anpassen */
.cookie-banner button:hover {
  background: #005ec2;
}



/* ====================================
   Informationsicon in der Nutzerperspektive
==================================== */

/* Icon: blau und interaktiv */
.feedback-info-icon {
  color: #007BFF;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.feedback-info-icon:hover {
  color: #0056b3;
}

/* Container für Icon + Popup – jetzt volle Breite */
.feedback-icon-wrapper {
  position: relative;
  display: block;      /* statt inline-block */
  width: 100%;         /* volle Breite des Viewports */
}

/* Popup */
.feedback-popup {
  position: absolute;
  top: 1.8rem;           /* vertikal unter dem Icon */
  left: 50%;             /* immer Mitte des Wrappers (= Viewport) */
  transform: translateX(-50%);
  z-index: 2000;

  width: min(550px, 90vw);
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  word-wrap: break-word;
}

/* Versteckt */
.feedback-popup.hidden {
  display: none;
}

/* Schließen-Button unverändert */
.feedback-popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}
.feedback-popup-close:hover {
  color: #000;
}
@media (max-width: 1100px) {
  .feedback-popup {
    /* fix: 400px breit (ist kleiner als die Basis-500px) */
    width: 400px;
    /* optional: falls der Viewport <400px, trotzdem nicht rausragen lassen */
    max-width: 90vw;
  }
}

/* ====================================
   Kontakt - Checkbox
==================================== */

.form-group.datenschutz-group {
  display: flex;
  align-items: center;      /* vertikal zentrieren */
}

/* Etwas Abstand zwischen Kästchen und Text */
.form-group.datenschutz-group input[type="checkbox"] {
  margin-right: 0.5em;
}



/* ====================================
Styling der Nutzerperspektive (ausschreiben von GIS)
==================================== */
/* klickbare Texte */
.toggle {
  cursor: pointer;
  text-decoration: underline dotted;
}

/* komplett ausblenden */
.hidden {
  display: none;
}

/* ausgeschriebener Text: initial unsichtbar, aber im Layout vorhanden */
#gis-text {
  display: inline;      /* damit der Platz belegt ist, wenn sichtbar */
  transition: opacity 0.3s ease; /* nur Fade-In/Fade-Out auf opacity */
}

/* sobald wir sichtbar schalten */
#gis-text.show {
  opacity: 1;
}







/* ====================================
Styling des Administrationsbereich
==================================== */



/* 2. Hauptbereich zentrieren */
.admin-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.admin-main h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5em;
}

.admin-main p {
  font-size: 1.1rem;
  margin-bottom: 2em;
  color: #555;
}

/* 3. Grid für die Karten */
.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* 4. Die eigentlichen Karten */
.admin-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.admin-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}

.admin-card p {
  flex: 1;  /* damit der Text oben bleibt und der Button unten */
  color: #666;
  margin-bottom: 1.5em;
  line-height: 1.5;
}

/* 5. Moderner Button */
.admin-btn {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  align-self: start;  /* linksbündig */
}

.admin-btn:hover {
  background-color: #005ec2;
  transform: translateY(-1px);
}

.admin-btn:active {
  background-color: #004a9f;
  transform: translateY(0);
}

/* 6. Responsive klein */
@media (max-width: 600px) {
  .admin-main {
    padding: 20px 10px;
  }
  .admin-card {
    padding: 16px;
  }
  .admin-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .admin-cards {
    grid-template-columns: 1fr !important;
  }
}
/* ====================================
Styling der Startseite
==================================== */

.hero-section {
  /* sanfter Farbverlauf als Hintergrund */
  background: linear-gradient(135deg, #f5f8fc, #e3e9f4);
  padding: 4rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  /* stellt sicher, dass der Bereich immer gut sichtbar ist */
  min-height: calc(100vh - 200px); /* Header + Footer abziehen */
}

/* weiße „Karte“ mit Schatten und Rundungen */
.hero-card {
  background: rgba(255,255,255,0.9);
  padding: 2.5rem;
  max-width: 800px;
  border-radius: 1rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  text-align: left;
  /* einfacher Fade-in-Effekt beim Laden */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Überschrift etwas größer und mit Letter-Spacing */
.hero-card h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

/* weichere Textfarbe für Fließtext */
.hero-card p {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* animierter Fade-in Keyframes */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Wrapper, damit wir ein eigenes Pfeil-Icon nutzen können */
.hero-card select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 400px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.75rem;
  background: #fff url('data:image/svg+xml;utf8,\
    <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23999" viewBox="0 0 16 16">\
      <path d="M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z"/>\
    </svg>') no-repeat right 1rem center;
  background-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

/* Focus-Zustand für bessere Zugänglichkeit */
.hero-card select:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.2);
}

/* alle Links in .hero-card etwas hervorheben */
.hero-card a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #007aff;
  color: #fff;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.hero-card a:hover {
  background: #005fce;
  transform: translateY(-2px);
}

/* Standard-Button-Links in .hero-card beibehalten */

.hero-card a.text-link {
  display: inline;              /* kein Block-Button mehr */
  margin: 0;                     /* kein zusätzlicher Abstand */
  padding: 0;                    /* kein Innenabstand */
  background: none;              /* kein Hintergrund */
  color: #007aff;                /* blau wie gewohnt */
  text-decoration: underline;    /* unterstrichen */
  font-weight: normal;           /* optional: normale Schriftstärke */
  transition: none;              /* keine Hover-Animation */
}

.hero-card a.text-link:hover {
  color: #005fce;                /* dunkleres Blau beim Überfahren */
  text-decoration: underline;    /* Unterstreichung beibehalten */
}

/* ====================================
Styling der index.html (Gemeindeauswahl)
==================================== */

.gemeinde-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.gemeinde-card {
  display: grid;
  place-items: center;        /* zentriert alle direkten Kinder horizontal & vertikal */
  position: relative;         /* für absolute Positionen innerhalb der Card */
  width: 100%;
  max-width: none; 
  cursor: pointer;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  /* feste Höhe, anpassen auf deine Wünsche */
  height: 120px;
  /* kein vertikales Padding mehr, nur horizontal minimal */
  padding: 0 0.5rem;
  box-sizing: border-box;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gemeinde-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Präfix "Markt" */
.gemeinde-prefix {
  font-size: 0.75rem;
  color: #555;     
  text-transform: uppercase;
  text-align: center;
  position: absolute;       /* aus dem Grid-Flow herausnehmen */
  top: 0.5rem;              /* Abstand von oben, passe nach Wunsch an */
  left: 50%;                /* horizontale Mitte der Card */
  transform: translateX(-50%);
  margin: 0;
  line-height: 1;
}

/* Name "Lehrberg" */
.gemeinde-name {
  font-size: 1.25rem;
  margin: 0;            /* kein extra Abstand */
  line-height: 1.2;
  text-align: center;
}


/* ====================================
Styling des FAQ-Bereichs
==================================== */

/* 1. Hero‑Section für FAQs */
.faq-hero {
  background: linear-gradient(135deg, #f5f8fc, #e3e9f4);
  padding: 4rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: auto;        /* kann kleiner sein als Startseite */
}

/* 2. Weiße Karten‑Box um die FAQ-Liste */
.faq-card {
  background: rgba(255,255,255,0.9);
  padding: 2.5rem;
  max-width: 800px;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Überschrift im Card-Header */
.faq-card h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-align: center;
  color: #000;
}

/* 3. Accordion‑Styles übernehmen */
.faq-list {
  margin-top: 1rem;
}

/* Pro FAQ‑Item: Abstände */
.faq-item + .faq-item {
  margin-top: 1rem;
}

/* Frage‑Button styling vererbt? Hier nochmal leicht anpassen */
.faq-question {
  width: 100%;
  text-align: left;
  background: #007aff;
  color: #fff;
  padding: 0.75em 1em;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  transition: transform 0.2s ease;
  font-weight: bold;
}

/* Antwort‑Box */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f9f9f9;
  padding: 0 1em;
  border-radius: 0 0 var(--radius) var(--radius);
}

.faq-answer p {
  margin: 1em 0;
  color: #555;
  line-height: 1.6;
}

/* geöffnet‑Zustand */
.faq-item.open .faq-answer {
  max-height: 2000px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* 4. Media‑Queries (optional anpassen) */
@media (max-width: 600px) {
  .faq-hero {
    padding: 2rem 1rem;
  }
  .faq-card {
    padding: 1.5rem;
  }
}

.screenshot {
  display: block;      /* zentrieren klappt einfacher */
  max-width: 70%;     /* nie breiter als Container */
  height: auto;        /* Seitenverhältnis behalten */
  margin: 1em auto;    /* oben/unten Abstand + zentriert */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 0.5rem;
}


/* ====================================
  Popup style (Kommentar erfolgreich gesendet)
==================================== */

/* Modal-Overlay für beide Modals */
#confirmation-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* Versteckt per Default */
#confirmation-modal.hidden {
  display: none;
}

/* Inneres Modal-Fenster */
#confirmation-modal .modal-content {
  background: #fff;
  padding: 1.5em;
  border-radius: 0.5em;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

#confirmation-modal .close-btn,
#confirmation-modal .survey-btn,
#confirmation-modal .modal-btn {
  margin-top: 1em;
  padding: 0.75em 2em;      /* Mehr Fläche – größerer Button */
  font-size: 1rem;          /* Größere Schrift */
  border: none;
  background: #007BFF;
  color: #fff;
  border-radius: 0.375em;   /* Etwas rundere Ecken */
  cursor: pointer;
  min-width: 120px;         /* Einheitliche Breite für alle Buttons */
  transition: background 0.2s ease;
}

#confirmation-modal .close-btn:hover,
#confirmation-modal .survey-btn:hover,
#confirmation-modal .modal-btn:hover {
  background: #005ec2;      /* Schöner Hover-Effekt */
}


/* Damit Zeilenumbrüche in <p> auch angezeigt werden */
#confirmation-modal .modal-content p {
  white-space: pre-line;
}



/* -------------------------------
   Für die Punktlayerauswahl styling
   ------------------------------- */

/* Container der Overlay-Sektion */
.leaflet-control-layers-overlays {
  /* eine Spalte, mit fester Einzel‑Spaltenbreite */
  columns: 1;
  width: 220px;
  
  padding: 8px;
  max-height: 80vh;      /* damit nicht zu lang */
  overflow-y: auto;
}

.leaflet-control-layers-overlays:has(label:nth-child(7)) {
  columns: 2;
  column-gap: 16px;
  width: 440px;          /* 2×220px */
}

/* Jeder Punktlayer-Eintrag als „Card“ */
.leaflet-control-layers-overlays label {
  /* inline-flex füllt genau eine Spaltenspalte */
  display: inline-flex;
  width: 100%;
  
  /* verhindert Split über Spalten */
  break-inside: avoid-column;
  
  /* dein bestehendes Card‑Styling: */
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
}

/* Hover-Effekt */
.leaflet-control-layers-overlays label:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
}

/* Checkbox ganz links, sauber ausgerichtet */
.leaflet-control-layers-overlays input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
}

/* Layer-Name fett und klar lesbar */
.leaflet-control-layers-overlays span {
  font-size: 0.95em;
  font-weight: 500;
  color: #333;
}

/* Scrollbar-Styling (Webkit) */
.leaflet-control-layers-overlays::-webkit-scrollbar {
  width: 6px;
}
.leaflet-control-layers-overlays::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}
.leaflet-control-layers-overlays::-webkit-scrollbar-track {
  background: transparent;
}

.legend-title {
  margin: 4px 8px;
  font-size: 14px;
  text-align: center;
}

.legend-title-base {
  margin: 4px 8px;
  font-size: 14px;
  text-align: center;
}



/* -------------------------------
   Für die Basiskarten-Layer styling
   ------------------------------- */

/* Container der Base-Layer-Sektion */
.leaflet-control-layers-base {
  width: 220px;
  padding: 8px;
  overflow-y: hidden;
}

/* Jeder Basiskarten-Eintrag als „Card“ */
.leaflet-control-layers-base label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
}

/* Hover-Effekt */
.leaflet-control-layers-base label:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
}

/* Radio-Button ganz links, sauber ausgerichtet */
.leaflet-control-layers-base input[type="radio"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
}

/* Layer-Name fett und klar lesbar */
.leaflet-control-layers-base span {
  font-size: 0.95em;
  font-weight: 500;
  color: #333;
}

/* Scrollbar-Styling (Webkit) */
.leaflet-control-layers-base::-webkit-scrollbar {
  width: 6px;
}
.leaflet-control-layers-base::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}
.leaflet-control-layers-base::-webkit-scrollbar-track {
  background: transparent;
}



/* ====================================
   Zeichentools
   ==================================== */

.custom-draw-container {
  position: relative;
  /* wie .leaflet-bar .leaflet-control a */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
}

.custom-draw-container i {
  font-size: 13px;
  color: #333;
}

.custom-draw-menu {
  position: absolute;
  top: 0%;
  transform: translateY(-3%);

  left: 35px;
  display: grid;
  /* 2 Spalten à 30px */
  grid-template-columns: repeat(2, 30px);
  gap: 4px;
  padding: 4px;
  background: transparent;
  z-index: 1000;
}

.custom-draw-menu button {
  /* Leaflet-Bar-Look in 30×30 */
  width: 30px;
  height: 30px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: background .1s, transform .1s;
}

.custom-draw-menu button:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.custom-draw-menu button i {
  font-size: 16px;
  color: #333;
}

/* Alle Aktions-Buttons beim Zeichnen ausblenden */
.leaflet-draw-actions {
  display: none !important;
}


/* Bestätigungs-Buttons neben dem Stift-Icon */
.custom-draw-container .confirm-edit-btn,
.custom-draw-container .confirm-clear-btn {
  position: absolute;
  width: 30px; height: 30px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

/* ✓-Button rechts neben dem Stift */
.custom-draw-container .confirm-edit-btn {
  top: 124px;
  left: 35px; /* direkt neben das Haupt-Icon */
}

/* 🗑-Button rechts neben ✓ oder dort, wo Du es magst */
.custom-draw-container .confirm-clear-btn {
  top: 154px;  /* unterhalb des ✓-Buttons */
  left: 35px;
}




/* ====================================
   Datenschutzerklärung Design 
==================================== */

.rights-section {
  /* keine Hintergrund- oder Rahmen-Eigenschaften mehr */
  margin: 1em 0;
  /* padding komplett entfernen, wenn du keine Innenabstände möchtest */
  padding: 0;
}

.rights-section p:first-of-type strong {
  font-size: 1.2em;
}

.rights-section p {
  margin: 0.5em 0;
}

.rights-section ul {
  margin: 0.5em 0 0.5em 2em; /* hier wird die Liste um 2em eingerückt */
  padding: 0;
  list-style: disc;
}

.rights-section ul li {
  margin: 0.5em 0;
}


/* ====================================
   Popup im GIS
==================================== */


/* 1) Basis-Einstellungen für Popups */
.leaflet-popup-content {
  /* sorgt dafür, dass der Text nicht übermäßig breit wird */
  max-width: 300px;
}

/* Bild im Popup standardmäßig auf 100% der erlaubten Breite */
.popup-img {
  width: 100%;
  height: auto;
}



/* ====================================
   Responsive Design 
==================================== */

/* Footer-Button standardmäßig verstecken */
#login-button-footer {
  display: none;
}


@media (max-width: 1280px) {
  #published-votes-box .info-entry {
    flex: 1 1 calc((100% - 1rem) / 2);
    max-width: calc((100% - 1rem) / 2);
  }
}

/* Tablet-Landschaft und kleine Desktops (≤1024px) */
@media (max-width: 1024px) {
  /* Header anpassen */
  header {
    padding: 15px;
  }
  #header-content h1 {
    font-size: 2rem;
  }

  /* Logo & Login-Button ins Flow holen und verkleinern */
  #logo {
    width: 80px;
	height: auto;     /* Höhe automatisch an Breite anpassen */
    display: block;
  }
  #logo-container,
  #login-button-container {
    position: static;
    margin: 10px auto;
    text-align: center;
    order: 0; /* natürliche Reihenfolge */
	flex: 0 0 auto;
  }
  .login-button-box {
    padding: 8px 16px;
  }

  /* Hauptinhalt */
  #content {
    max-width: 100%;
    padding: 0 20px;
  }

  /* Formulare einspurig */
  .form-map-container {
    flex-direction: column;
  }
  .form-container,
  .map {
    width: 100%;
  }

  /* Admin-Karten 2 Spalten */
  .admin-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  #login-button-footer {
    display: none;
  }

  .leaflet-top.leaflet-right {
    position: absolute !important;
    top: auto    !important;  /* nicht mehr oben */
    right: 10px  !important;  /* 10px vom rechten Rand */
    bottom: 50px !important;  /* 10px vom unteren Rand */
    left: auto   !important;  /* links keine Position */
    z-index: 1000 !important;
  }

  
  #published-votes-box .info-entry {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .vote-options.columns-3 {
    grid-template-columns: 1fr 1fr;
  }
  
  /* Container auf volle Breite */
  #active-list,
  #closed-list,
  #published-list {
    max-width: 100% !important;
  }

  /* Listeneinträge als Spalten anordnen */
  #active-list li,
  #closed-list li,
  #published-list li {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5em;        /* Abstand zwischen Text und Buttons */
  }

  /* Button-Gruppen ans Ende */
  #active-list li .button-group,
  #closed-list li .button-group,
  #published-list li .button-group {
    margin-left: 0;
    margin-top: 0.5em;
    justify-content: flex-start; /* Buttons links untereinander */
  }

  /* Buttons in Spalte */
  #active-list li .button-group,
  #closed-list li .button-group,
  #published-list li .button-group {
    flex-direction: row; /* oder column, wenn du sie untereinander willst */
    flex-wrap: wrap;
    gap: 0.5em;
  }
  #file-list,
  #question-list,
  #done-list {
    max-width: 100% !important;
    padding: 0;
  }

  /* ───────────── Punktlayerauswahl ───────────── */
  .leaflet-control-layers-overlays,
  .leaflet-control-layers-base {
    width: auto !important;
    max-width: 180px;
    font-size: 0.9em;
  }

  /* ───────────── Speziell für die Overlay‑Spaltenregel ───────────── */
  .leaflet-control-layers-overlays {
    columns: 1 !important;
  }
  .leaflet-control-layers-overlays:has(label:nth-child(7)) {
    columns: 1 !important;
  }

  /* ───────────── Gemeinsame Label‑Styling ───────────── */
  .leaflet-control-layers-overlays label,
  .leaflet-control-layers-base label {
    padding: 4px 6px;
    gap: 4px;
    margin-bottom: 4px;
    display: inline-flex; /* falls nicht schon gesetzt */
    break-inside: avoid-column;
  }

  /* ───────────── Gemeinsame Input‑Größen ───────────── */
  .leaflet-control-layers-overlays input[type="checkbox"],
  .leaflet-control-layers-base input[type="radio"] {
    width: 14px;
    height: 14px;
  }

  /* ───────────── Gemeinsame Textgröße in den Einträgen ───────────── */
  .leaflet-control-layers-overlays span,
  .leaflet-control-layers-base span {
    font-size: 0.85em;
  }

  /* ───────────── Überschriften kompakt machen ───────────── */
  .leaflet-control-layers-overlays .legend-title,
  .leaflet-control-layers-base .legend-title-base {
    font-size: 0.85em;
    margin: 2px 6px;
    line-height: 1.2;
  }
  
 

}

/* Tablet-Portrait und kleine Laptops (≤768px) */
@media (max-width: 768px) {
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;  /* NEU: Vertikale Zentrierung */
    text-align: center;
    height: 150px;            /* oder eine andere fixe Höhe, z.B. 150px wie bei Desktop */
    padding: 10px 0;          /* optional: oben/unten 10px Abstand, sonst Header-Inhalt */
  }
  
  #header-content {
    flex: 0 0 auto;            /* verhindert, dass #header-content auf volle Höhe wächst */
    display: flex;             /* macht #header-content zum Flex-Container */
    align-items: center;       /* vertikal: H1 in der Mitte */
    justify-content: center;   /* horizontal: H1 in der Mitte */
    width: 100%;               /* damit der gesamte Header-Bereich ausgenutzt wird */
  }


  /* Logo & Login-Button noch mal neu zentrieren */
  #logo-container,
  #login-button-container {
    position: static;
    margin: 8px 0;
  }

  /* Footer-Boxen stapeln */
  #footer-content {
    flex-direction: column;
  }
  .footer-box {
    margin-bottom: 10px;
  }
  
  /* 1) Anmelde-Button im Header ausblenden */
  #login-button-container {
    display: none;
  }

  /* 2) Footer-Kopie anzeigen und ganz oben platzieren */
  #login-button-footer {
    display: block;
    order: -1;            /* ganz oben im Footer-Stack */
    width: 100%;
    margin-bottom: 10px;
  }

  /* 3) Styling wie Deine .footer-box-Links */
  #login-button-footer {
    background-color: #444;        /* dunkles Grau */
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
  }
  /* Link-Styling wie in .footer-box a */
  #login-button-footer .login-button {
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
  }
  /* Bayernlab-Logo ab 768px ausblenden */
  #logo-container {
    display: none;
  }
  
  .vote-options.columns-2,
  .vote-options.columns-3 {
    grid-template-columns: 1fr;
  }
  
  
 

  /* Listeneinträge umklappen */
  #file-list li,
  #question-list li,
  #done-list li {
    display: flex;           /* Flex-Container */
    flex-direction: column;  /* Titel oben, Buttons unten */
    align-items: stretch;
    gap: 0.5em;              /* Abstand zwischen Titel und Buttons */
    background: #e0e0e0;     /* optional: gleiche Optik wie Abstimmungen */
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 5px;
  }

  /* Button-Gruppen (.btn-group) */
  #file-list li .btn-group,
  #question-list li .btn-group,
  #done-list li .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;             /* Abstand zwischen Buttons */
    margin-top: 0.5em;      /* Abstand nach dem Titel */
    justify-content: flex-start;
  }

  /* Buttons etwas flexibler machen */
  #file-list li .btn-group button,
  #question-list li .btn-group button,
  #done-list li .btn-group button {
    flex: 1 1 auto;         /* wachsen, aber nicht unter Minimum schrumpfen */
    min-width: 80px;        /* verhindert zu kleine Buttons */
  }
  .point-button {
    display: none;
  }

  
}

/* Smartphones und sehr kleine Bildschirme (≤480px) */
@media (max-width: 480px) {
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;   /* NEU: Vertikale + horizontale Zentrierung */
    text-align: center;
    height: 150px;             /* wie zuvor im 768px-Bereich */
    padding: 10px 0;           /* oben/unten 10px, kein extra links/rechts */
  }
  
  #header-content {
    flex: 0 0 auto;            /* entfernt das schrumpfende/growende Verhalten */
    display: flex;             /* eigener Flex-Container für das H1 */
    align-items: center;       /* H1 vertikal zentrieren */
    justify-content: center;   /* H1 horizontal zentrieren */
    width: 100%;
  }
  #header-content h1 {
    font-size: 1.5rem;
  }
  #logo {
    width: 60px;
	height: auto;
  }

  /* Login-Button kleiner machen */
  .login-button-box {
    padding: 6px 12px;
  }
  .login-button {
    font-size: 0.9rem;
  }

  /* Textgrößen verkleinern */
  body {
    font-size: 14px;
  }
  .hero-card h1 {
    font-size: 1.75rem;
  }


  
  
 
}

/* === Spezielles Override nur für unseren Feedback-Close-Button === */
#confirmation-modal .feedback-popup .feedback-popup-close,
.info-feld .feedback-popup .feedback-popup-close,
.point-form-container .feedback-popup .feedback-popup-close {
  position: absolute !important;
  top: 0.5em !important;
  right: 0.5em !important;

  /* Hintergrund und Bild ausknipsen */
  background-color: transparent !important;
  background-image: none !important;

  /* Border und Schatten ausknipsen */
  border: none !important;
  box-shadow: none !important;

  /* nur noch das × in gewünschter Größe */
  font-size: 1.2em !important;
  line-height: 1 !important;

  /* Farbe und Cursor */
  color: #666 !important;
  cursor: pointer !important;

  /* ohne extra Abstände */
  padding: 0 !important;
  margin: 0 !important;
}

/* === Popup-Inhalt wieder normal (nicht fett) machen === */

.feedback-popup p {
  font-weight: normal !important;
}
/* Popup-Inhalt linksbündig setzen */
.feedback-popup {
  text-align: left !important;
}
