/* ==========================================
   1. GLOBAL & BASICS
   ========================================== */
html {
  line-height: 1.4;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  cursor: default;
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.42857143;
  color: #202020;
  background: #fff !important;
}

b {
  font-weight: bold;
}

p {
  opacity: 1 !important;
}

.feld {
  border-radius: .25rem;
  background: #fff !important;
  padding: 15px;
}

.tip {
  background: #ff6600;
  height: 100%;
  padding: 10px;
}

.formularfeld {
  display: none;
}

.li_u {
  border-bottom: 1px solid #202020;
  padding-top: 5px;
  font-size: 12px;
}

/* ==========================================
   2. HEADER & NAVIGATION
   ========================================== */
.navbar {
  background-color: #fff;
}

ul.navbar-nav li a {
  font-size: 1.1em;
  color: #fff !important;
}

.head {
  color: #fff;
  background: fff9f0;
  position: relative;
  line-height: 30px;
  text-transform: none;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  margin: 0 auto;
  padding: 0 15px;
}

.head1 {
  margin-top: -10px;
  text-align: center;
  font-size: 1.1em !important;
}

.dropdown-item {
  padding-left: 10px;
}

.navlink2:hover {
  color: #f49c0c;
}

/* ==========================================
   3. BUTTONS
   ========================================== */
.btn, .btna {
  display: inline-block;
  padding: 10px;
  margin-bottom: 25px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff !important;
}

.btna {
  background: #ff6600;
}

.btn {
  background: fff9f0;
}

.btn:hover {
  border-color: fff9f0;
  color: fff9f0 !important;
  background: #fff;
  transition: all .4s ease .4s;
}

.cool-button {
  background-color: fff9f0;
  border: none;
  color: white;
  padding: 15px 35px;
  font-size: 1.25rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.cool-button::before {
  content: '';
  position: absolute;
  left: -75%;
  top: 0;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-25deg);
  transition: all 0.7s ease;
}

.cool-button:hover {
  background-color: fff9f0;
  box-shadow: 0 8px 20px rgba(0, 86, 179, 0.8);
  transform: scale(1.05) rotate(-2deg);
}

.cool-button:hover::before {
  left: 125%;
}

.apply-button {
  display: block;
  width: fit-content;
  margin: 40px auto 60px;
  padding: 12px 35px;
  background-color: #ff6600;
  color: white;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s;
}

.apply-button:hover {
  background-color: #e65500;
}

.weiterlesen, .weiterlesen > a {
  margin: 10px;
  position: absolute;
  right: -5px;
  bottom: -5px;
  padding: 5px;
  background: fff9f0;
  color: #fff !important;
  border: 0;
}

/* ==========================================
   4. VORHER / NACHHER TOGGLE (Zusammengefasst)
   ========================================== */
.inner {
  background: #ebedf0;
  border: 3px solid #ebedf0;
  border-radius: 10px;
  padding: 40px;
  color: #3f3f3f;
  text-align: center;
}

.inner:hover {
  background: #ffffff;
  border: 3px solid #202020;
  color: #202020;
  transition: all 1s;
}

.inner [class*="nachher"] {
  display: none;
  z-index: 100;
}

.inner [class*="vorher"] {
  display: block;
  z-index: 50;
}

.inner:hover [class*="nachher"] {
  display: block;
}

.inner:hover [class*="vorher"] {
  display: none;
}

.innerut { width: 100%; }
.inneru { padding: 10px; }

/* ==========================================
   5. NACHRICHTEN & FAQ
   ========================================== */
.nachrichten-wrapper {
  display: flex;
  flex-wrap: wrap;
  row-gap: 30px;
}

.nachrichten-box {
  background: #ebedf0;
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.nachrichten-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.box-top-content { flex-grow: 1; }

.erster-satz {
  font-weight: bold;
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
  margin-bottom: 12px;
  color: #2c3e50;
  text-decoration: none;
}

.erster-satz::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #f59d10;
  transition: width 0.3s ease-in-out;
}

.nachrichten-box:hover .erster-satz::after {
  width: 100%;
}

.meta-container {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  align-items: stretch;
  font-size: 12px;
}

.kv-badge {
  background: #fff9f0;
  border-left: 5px solid #f59d10;
  border-radius: 8px;
  padding: 8px 10px;
  flex: 1;
  color: #b9770e;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.elsezeit-badge {
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 10px;
  flex: 1;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.bottom-datum {
  font-size: 11px;
  color: #8e8e8e;
  margin-top: 12px;
}

.img-container {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
  background: #e0e0e0;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-container {
  margin: 0 auto;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  overflow: hidden;
}

.faq-container input[type="checkbox"] {
  display: none;
}

.faq-container label {
  display: block;
  padding: 20px 50px 20px 25px;
  background: #fff9f0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  user-select: none;
  border-bottom: 1px solid #ddd;
  transition: background 0.3s;
}

.faq-container label:hover {
  background: #f6b44d;
}

.faq-container label::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  font-size: 1.8rem;
  color: #fff;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.faq-container input[type="checkbox"]:checked + label::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-container .content {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  color: #444;
  padding: 0 25px;
  font-size: 16px;
  line-height: 1.6;
  border-bottom: 1px solid #ddd;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-container input[type="checkbox"]:checked + label + .content {
  max-height: 1000px;
  padding: 20px 25px;
}

.faq-container .content p {
  margin: 0 0 1em 0;
}

/* ==========================================
   6. GRID & TABBED CONTENT
   ========================================== */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
}

.grid figure {
  margin: 1rem;
  position: relative;
  width: 100%;
}

.grid figure img {
  width: 100%;
  object-fit: cover;
}

.grid figure figcaption {
  background: rgba(0,79,146, .8);
  bottom: 5px;
  box-sizing: border-box;
  position: absolute;
  width: 100%;
  padding: .7rem;
  transition: max-height 0.3s ease-out;
  overflow: hidden;
  height: auto;
}

.grid figure p {
  margin-top: .5rem;
  opacity: 1;
}

.grid figure h2 {
  font-size: 12px;
}

.tabbed figure {
  display: block;
  margin-left: 0;
  width: 100%;
  clear: both;
  border: 0 solid #202020;
}

.tabbed > input, .tabbed figure > div {
  display: none;
}

#tab1:checked ~ figure .tab1,
#tab2:checked ~ figure .tab2,
#tab3:checked ~ figure .tab3 {
  display: block;
}

nav label {
  float: left;
  padding: 15px;
  background: fff9f0;
  color: #fff;
  bottom: -5px;
  position: relative;
}

nav label:hover, nav label:active {
  background: #f49c0c;
}

#tab1:checked ~ nav label[for="tab1"],
#tab2:checked ~ nav label[for="tab2"],
#tab3:checked ~ nav label[for="tab3"] {
  background: #ff6600;
  color: #202020;
  position: relative;
  border-bottom: none;
}

#tab1:checked ~ nav label[for="tab1"]:after,
#tab2:checked ~ nav label[for="tab2"]:after,
#tab3:checked ~ nav label[for="tab3"]:after {
  content: "";
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: white;
  left: 0;
  bottom: -1px;
}

/* ==========================================
   7. WAHLCOUNTDOWN
   ========================================== */
.wahlcountdowndiv {
  background: #f49c0c;
}

.wahlcountdown {
  width: 600px;
  padding: 20px;
  box-sizing: border-box;
}

.wahlcountdown.flipdown {
  margin: auto;
}

.wahlcountdown h1 {
  text-align: center;
  font-weight: 100;
  font-size: 3em;
  margin-top: 0;
  margin-bottom: 10px;
}

.wahlcountdown p {
  text-align: center;
  font-weight: 100;
  margin-top: 0;
  margin-bottom: 35px;
}

.wahlcountdown .buttons {
  width: 100%;
  height: 50px;
  margin: 50px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.wahlcountdown .buttons p {
  height: 50px;
  line-height: 50px;
  font-weight: 400;
  padding: 0 25px 0 0;
  color: #333;
  margin: 0;
}

.wahlcountdown .button {
  display: inline-block;
  height: 50px;
  box-sizing: border-box;
  line-height: 46px;
  text-decoration: none;
  color: #333;
  padding: 0 20px;
  border: solid 2px #333;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  transition: all .2s ease-in-out;
}

.wahlcountdown .button:hover {
  background-color: #333;
  color: #FFF;
}

.wahlcountdown .button i {
  margin-right: 5px;
}

/* ==========================================
   8. ANIMATIONEN & SVG WAHLKREISE
   ========================================== */
@-webkit-keyframes image_blur {
  0%, 50% { -webkit-filter: blur(10px); }
  100% { -webkit-filter: blur(0px); }
}

.slidern {
  -webkit-animation: image_blur 3s;
  width: 100%;
  height: 400px;
  object-fit: cover;
  -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0));
}

svg { font-size: 12px; }

.wk { font-size: 12px; }

.slow {
  animation: slowm 1.5s;
  opacity: 1;
}

@keyframes slowm {
  from { opacity: 0; }
  to { opacity: 1; }
}

.v1:hover {
  fill: #f49c0c !important;
  animation-iteration-count: 1;
  transition: all 0.1s ease-in;
  color: #f49c0c;
}

.v2 { color: #fff !important; }
.v3 { color: #f49c0c !important; }

/* SVG Gruppe 1 */
#g56, #g62, #g26, #Erzgebirgskreis_12_-_16, #Goerlitz, #Bautzen_52_-_56, #Mittelsachsen_17_-_20, #text1, #text9 {
  animation: opacity2 3s ease-in 1;
}

#g56:hover, #g62:hover, #g26:hover, #Erzgebirgskreis_12_-_16:hover, #Goerlitz:hover, #Bautzen_52_-_56:hover, #Mittelsachsen_17_-_20:hover {
  animation: opacity3 4s ease 1;
}

/* SVG Gruppe 2 */
#g38, #g50, #g74, #Meißen, #Vogtland, #Leipzig_Stadt, #text4, #text10, #text7, #text5 {
  animation: opacity 3s ease-in 1;
}

#g38:hover, #g50:hover, #g74:hover, #Meißen:hover, #Vogtland:hover, #Leipzig_Stadt:hover {
  animation: opacity3 4s ease 1;
}

/* SVG Gruppe 3 */
#g32, #g44, #g14, #g68, #Dresden, #Zwickau, #Chemnitz, #Nordsachsen, #SOE, #text3, #text8, #text6 {
  animation: opacity2 3s ease-in 1;
}

#g32:hover, #g44:hover, #g14:hover, #g68:hover, #Dresden:hover, #Zwickau:hover, #Chemnitz:hover, #SOE:hover, #Nordsachsen:hover {
  animation: opacity3 4s ease 1;
}

/* SVG Gruppe 4 */
#g20, #g8, #g80, #SOE_48_-_51, #Leipzig_Land_21_-_24, #text2 {
  animation: opacity1 3s ease-in 1;
}

#g20:hover, #g8:hover, #g80:hover, #SOE_48_-_51:hover, #Leipzig_Land_21_-_24:hover,
#text10:hover, #text9:hover, #text8:hover, #text7:hover, #text6:hover, #text5:hover, #text4:hover, #text3:hover, #text2:hover, #text1:hover {
  animation: opacity3 4s ease 1;
}

@keyframes opacity { 0% { opacity:0; } 100% { opacity:1; } }
@keyframes opacity1 { 0% { opacity:0; } 30% { opacity:0.5; } 100% { opacity:1; } }
@keyframes opacity2 { 0% { opacity:0; } 50% { opacity:0.5; } 100% { opacity:1; } }
@keyframes opacity3 { 0% { opacity:1; } 50% { opacity:0.5; } 100% { opacity:0; } }

.slidersvg {
  margin-left: -250px;
  margin-top: -120px;
}

/* ==========================================
   9. MEDIA QUERIES (Mobile First & Breakpoints)
   ========================================== */
.person {
  width: 45% !important;
  top: 10%;
  position: absolute;
  z-index: 11;
  transition: left 13s ease;
}

@media (min-width: 301px) {
  .grid figure {
    width: calc(100% - 2rem);
  }
  .grid figure figcaption {
    height: 50px;
  }
  .grid figure:hover figcaption {
    position: absolute;
    bottom: 5px;
    width: 100%;
    height: 100%;
    transition: height .5s ease-in;
  }
  .grid figure p {
    opacity: 0;
  }
  .grid figure:hover p {
    opacity: 1;
    transition: opacity .5s ease-in .6s;
  }
}

@media (min-width: 768px) {
  .head {
    display: inline-block;
    font-size: 0.8em !important;
  }
  .head1 {
    text-align: right;
    margin-right: 5px;
  }
}

@media (min-width: 961px) {
  .header-img { top: 40px; }
  .logohead {
    margin-top: -10px;
    width: 250px;
    margin-left: -10px;
  }
  .navlink { font-size: 1em !important; }
}

@media (min-width: 1024px) {
  .start1 { height: 250px !important; }
  .mittig {
    display: flex;
    align-items: center;
  }
}

@media (min-width: 1081px) {
  .wk { font-size: 12px; }
}

@media (min-width: 3840px) {
  .person {
    width: 30% !important;
    top: 25%;
    left: 100px;
  }
}

/* Max-Width Breakpoints */
@media (max-width: 1280px) {
  .person { width: 40% !important; top: 20%; }
}

@media (max-width: 1180px) {
  .slidersvg { margin-top: -50px; width: 160%; }
}

@media (max-width: 1080px) {
  .wk { font-size: 14px; }
}

@media (max-width: 1024px) {
  .start1 { height: 300px !important; }
}

@media (max-width: 1023px) {
  .welle { display: none; }
}

@media (max-width: 960px) {
  .logohead { margin-top: -37px; width: 200px; }
  .navlink { font-size: 1em !important; }
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin-top: 2px;
    font-size: 14px;
    text-align: left;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  }
}

@media (max-width: 915px) {
  .person { width: 33% !important; top: 32%; left: 25px; }
  .slidersvg { margin-top: -150px; width: 180%; }
}

@media (max-width: 854px) {
  .wk { font-size: 14px; }
}

@media (max-width: 768px) {
  .desktop { display: none; }
  .wow { margin-top: 50px; }
  .header-img { top: 90px; }
  .logohead { margin-top: -32px; width: 200px; margin-left: 15px; }
  .person { width: 50% !important; top: -5%; left: 25px; }
  .wahlcountdowndiv { margin-top: 50px; }
  .vorstand1.vorstand3 { text-align: center; }
  .slidersvg { margin-left: -100px; margin-top: -200px; width: 140%; }
  
  .row.reorder-xs {
    transform: rotate(180deg);
    direction: rtl;
  }
  .row.reorder-xs > [class*="col-"] {
    transform: rotate(-180deg);
    direction: ltr;
  }
}

@media (max-width: 550px) {
  .wahlcountdown { width: 100%; }
  .wahlcountdown h1 { font-size: 2.5em; }
  .wahlcountdown p { margin-bottom: 25px; }
  .wahlcountdown .buttons {
    width: 100%;
    margin-top: 25px;
    text-align: center;
    display: block;
  }
  .wahlcountdown .buttons p, .wahlcountdown .buttons a {
    float: none;
    margin: 0 auto;
  }
  .wahlcountdown .buttons p { padding-right: 0; }
  .wahlcountdown .buttons a { display: inline-block; }
}

@media (max-width: 414px) {
  .person { width: 55% !important; top: -10%; left: 5px; }
  .slidersvg { margin-left: -60px; margin-top: -200px; width: 140%; }
}

@media (max-width: 300px) {
  .grid figure { width: 100%; }
  .grid figure p { opacity: 1; }
  .grid figure figcaption { height: auto; }
}