html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding-top: 72px;
  background-color: #f4f6f9;
  display: flex;
  flex-direction: column;
}

h1{
  font-size: 2.5rem;
  font-weight: 800;
  color: #222;
  text-align: center;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #222;
  text-align: center;
}

.home-page {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("/frontend/Assets/Images/background1.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a {
  text-decoration: none !important;
}

header {
  position: relative;
  color: white;
}

header * {
  position: relative;
  z-index: 2;
}

header .bannerImage img {
  width: 100%;
  height: 22rem;
  min-height: 22rem;
  object-fit: cover;
  display: block;
}

.hero-text {
  text-align: center;
  padding: 20px 10px;
}

.hero-text h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: white;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

.hero-text p {
  font-size: 1.1rem;
  color: #e0e0e0;
}

header nav ul {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
  flex-wrap: wrap;
}

header nav a {
  color: #f0f0f0;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}

header nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

main {
  flex: 1;
  padding-bottom: 40px;
}

main section {
  background-color: rgba(255, 255, 255, 0.96);
  max-width: 1000px;
  margin: 30px auto;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

main section h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #222;
  text-align: center;
}

main section h4 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #222;
  text-align: center;
}

main section p {
  font-size: 1rem;
  color: #555;
  text-align: center;
}

/*Grid*/
main section ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
  padding: 0;
}

main section ul li {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

main section ul li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

main section ul h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #222;
}

footer {
  margin-top: 0 !important;
}

.post-image-input {
  max-width: 300px;
}

/* --- Calender --- */



#calendar {
  max-width: 1100px;
  margin: 30px auto;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
}




/* ---- Post Card ---- */
.poll-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 28px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.poll-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
}

.poll-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 8px;
}

.poll-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #343a40, #6c757d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.poll-meta strong {
  display: block;
  font-size: 0.95rem;
  color: #222;
}

.poll-meta span {
  font-size: 0.8rem;
  color: #999;
}

.poll-card-body {
  padding: 8px 20px 16px;
}

.poll-card-body h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}

.poll-card-body p {
  font-size: 0.93rem;
  color: #555;
  margin-bottom: 14px;
}

/* ---- Vote Options ---- */
.vote-option {
  position: relative;
  margin-bottom: 10px;
  cursor: pointer;
}

.vote-option input[type="radio"] {
  display: none;
}

.vote-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.95rem;
  color: #333;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.vote-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(52, 58, 64, 0.1);
  border-radius: 8px;
  transition: width 0.5s ease;
  z-index: 0;
}

.vote-label span,
.vote-percent {
  position: relative;
  z-index: 1;
}

.vote-option input[type="radio"]:checked+.vote-label {
  border-color: #343a40;
  background: rgba(52, 58, 64, 0.07);
  font-weight: 600;
}

.vote-option .vote-label:hover {
  border-color: #343a40;
}

.vote-percent {
  font-size: 0.82rem;
  color: #666;
  font-weight: 600;
  min-width: 36px;
  text-align: right;
}

/* ---- Vote Button ---- */
.btn-vote {
  background-color: #343a40;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-vote:hover {
  background-color: #23272b;
  color: white;
}

.vote-count {
  font-size: 0.82rem;
  color: #aaa;
  margin-left: 10px;
}

/* ---- Create Post ---- */
.create-post-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  padding: 22px 24px;
  margin-bottom: 30px;
}

.create-post-box h5 {
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.create-post-box input,
.create-post-box textarea {
  border-radius: 8px;
  border: 1.5px solid #dee2e6;
  font-size: 0.93rem;
  margin-bottom: 10px;
  width: 100%;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.2s;
}

.create-post-box input:focus,
.create-post-box textarea:focus {
  border-color: #343a40;
}

.option-inputs {
  margin-bottom: 10px;
}

.option-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.option-input-row input {
  margin-bottom: 0;
  flex: 1;
}

.btn-add-option {
  background: none;
  border: 1.5px dashed #aaa;
  border-radius: 8px;
  color: #888;
  font-size: 0.88rem;
  padding: 6px 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-add-option:hover {
  border-color: #343a40;
  color: #343a40;
}

.btn-remove-option {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
}

.btn-remove-option:hover {
  color: #e74c3c;
}

.btn-post {
  background-color: #343a40;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 9px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  float: right;
  transition: background 0.2s;
}

.btn-post:hover {
  background-color: #23272b;
}

/* ---- Badge ---- */
.category-badge {
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  margin-left: 8px;
}

.badge-sa {
  background: #fdecea;
  color: #c0392b;
}

.badge-event {
  background: #eaf4fb;
  color: #2471a3;
}

.badge-sonstig {
  background: #eafaf1;
  color: #1e8449;
}

/* ---- Page Hero ---- */
.abstimmung-hero {
  text-align: center;
  padding: 38px 20px 20px;
  color: white;
}

.abstimmung-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.7);
  color:white;
}

.abstimmung-hero p {
  font-size: 1.05rem;
  color: #ddd;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* ---- Filter Tabs ---- */
.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 6px 18px;
  border-radius: 20px;
  border: 1.5px solid #dee2e6;
  background: #fff;
  font-size: 0.88rem;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.filter-tab.active,
.filter-tab:hover {
  background: #343a40;
  color: #fff;
  border-color: #343a40;
}

main {
  padding-bottom: 80px;
}

/* ===== Dark Mode ===== */

body.dark {
  background-color: #121212;
  color: white;
}

/* Navbar (Bootstrap überschreiben) */
body.dark .navbar {
  background-color: #1e1e1e !important;
}

/* Header */
body.dark header {
  background-color: #1e1e1e;
}

/* Sections / Karten */
body.dark main section {
  background-color: #1e1e1e;
}

/* Grid Karten */
body.dark main section ul li {
  background-color: #2a2a2a;
}

/* Texte */
body.dark p,
body.dark h2,
body.dark h4,
body.dark h5 {
  color: white;
}

/* Inputs */
body.dark input,
body.dark textarea {
  background-color: #2a2a2a;
  color: white;
  border: 1px solid #555;
}

/* Buttons */
body.dark button {
  background-color: #333;
  color: white;
}

/* Footer */
body.dark footer {
  background-color: #1e1e1e;
}

/* Footer Dark Mode Fix */

body.dark footer {
  background-color: #111 !important;
}

body.dark .bg-dark {
  background-color: #111 !important;
}

body.dark .bg-secondary {
  background-color: #000 !important;
}  