@font-face {
  font-family: Polo;
  src: url(fonts/P22L.eot);
  src: url(fonts/P22L.eot?#iefix) format("embedded-opentype"), url(fonts/P22L.woff) format("woff"), url(fonts/P22L.ttf) format("truetype"), url(fonts/P22L.svg) format("svg");
}
@font-face {
  font-family: Polo;
  font-style: italic;
  font-weight: 300;
  src: url(fonts/P22Li.eot);
  src: url(fonts/P22Li.eot?#iefix) format("embedded-opentype"), url(fonts/P22Li.woff) format("woff"), url(fonts/P22Li.ttf) format("truetype"), url(fonts/P22Li.svg) format("svg");
}
@font-face {
  font-family: Polo;
  font-style: normal;
  font-weight: 400;
  src: url(fonts/P22R.eot);
  src: url(fonts/P22R.eot?#iefix) format("embedded-opentype"), url(fonts/P22R.woff) format("woff"), url(fonts/P22R.ttf) format("truetype"), url(fonts/P22R.svg) format("svg");
}
@font-face {
  font-family: Polo;
  font-style: italic;
  font-weight: 400;
  src: url(fonts/P22Ri.eot);
  src: url(fonts/P22Ri.eot?#iefix) format("embedded-opentype"), url(fonts/P22Ri.woff) format("woff"), url(fonts/P22Ri.ttf) format("truetype"), url(fonts/P22Ri.svg) format("svg");
}
@font-face {
  font-family: Polo;
  font-style: normal;
  font-weight: 500;
  src: url(fonts/P22M.eot);
  src: url(fonts/P22M.eot?#iefix) format("embedded-opentype"), url(fonts/P22M.woff) format("woff"), url(fonts/P22M.ttf) format("truetype"), url(fonts/P22M.svg) format("svg");
}
@font-face {
  font-family: Polo;
  font-style: normal;
  font-weight: 700;
  src: url(fonts/P22B.eot);
  src: url(fonts/P22B.eot?#iefix) format("embedded-opentype"), url(fonts/P22B.woff) format("woff"), url(fonts/P22B.ttf) format("truetype"), url(fonts/P22B.svg) format("svg");
}
@font-face {
  font-family: Polo;
  font-weight: 900;
  src: url(fonts/P22BL.eot);
  src: url(fonts/P22BL.eot?#iefix) format("embedded-opentype"), url(fonts/P22BL.woff) format("woff"), url(fonts/P22BL.ttf) format("truetype"), url(fonts/P22BL.svg) format("svg");
}
* {
  box-sizing: border-box;
  hyphens: auto;
}

:root,
:root * {
  --ci-green: #a2c517;
  --ci-blue: #0080c8;
  --ci-white: #fff;
  --ci-light-blue: #86bae5;
  --ci-super-light-blue: #e4f2f8;
  --ci-black: #3f3f3f;
  --ci-light-grey: #fdfdfd;
  scrollbar-color: var(--ci-black) var(--ci-white);
  scrollbar-width: thin;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  shape-rendering: crispEdges;
}

::-webkit-scrollbar {
    width: 5px
}

::-webkit-scrollbar-track {
    background: var(--ci-white)
}

::-webkit-scrollbar-thumb {
    background: var(--ci-black)
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ci-black)
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: auto;
  box-sizing: border-box;
  font-size: 100%;
  font-size: min(calc(12px + 0.4vw), 20px);
  height: 100%;
  line-height: 1.3;
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-padding-top: 100px;
}

body {
  color: var(--ci-black);
  font-family: Polo, sans-serif;
  margin: 0px;
  padding: 0px;

}

a{
    color:var(--ci-blue);
    text-decoration-color: color-mix(in srgb, currentColor, transparent 100%);
    text-underline-offset:1em;
    transition: all ease 0.3s;
}
a:hover{
    text-underline-offset: 0.3em;
    text-decoration-color: color-mix(in srgb, currentColor, transparent 75%);
}

header {
  background-color: var(--ci-light-grey);
  display: block;
}
header .wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}
header .wrap .logo {
  color: var(--ci-blue);
  font-weight: bold;
  background-image: url(http://csu-rennertshofen.de/images/Logo_2025.png);
  background-image: url(img/logo.svg);
  height: 120px;
  aspect-ratio: 1.3;
  background-size: auto 60px;
  background-position: left center;
  background-repeat: no-repeat;
}
header .wrap ul {
  list-style-type: none;
  display: flex;
  gap: 0.8em;
  margin: 0px 0px 20px;
  padding: 0px;
  justify-content: flex-start;
  flex-wrap: wrap;
      align-items: center;
}
header .wrap ul li {
  white-space: nowrap;
}
header .wrap ul li:before {
  content: "/";
  color: var(--ci-green);
  margin-right: 0.8em;
}
header .wrap ul li a {
  color: var(--ci-blue);
  text-decoration: none;
  padding: 0px 0px 5px;
  display: inline-block;
}
header .wrap ul li a svg{
    height: 25px;
    vertical-align: bottom;
    margin: 0 5px 0 0;
    padding: 0px 0 5px 0;
}
header .wrap ul li a svg *{
  fill: var(--ci-blue);
  transition: all ease 1s;
}
header .wrap ul li a:hover svg *, header .wrap ul li a.activ svg *{
  fill: var(--ci-green);
}
header .wrap ul li a:hover, header .wrap ul li a.activ {
  color: var(--ci-green);
}

/*////////////////////////////////////////////////     navigation     */

.navigation {
  display: block;
  background-color: var(--ci-blue);
  color: var(--ci-white);
}
.navigation .wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 60px;
}
.navigation .wrap ul {
  list-style-type: none;
  display: flex;
  padding: 0px;
  margin: 0px -20px;
  flex-wrap: wrap;
}
.navigation .wrap ul li a {
  font-size: 0.9em;
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 0.9em 20px 0.7em;
}
.navigation .wrap ul li a:hover, .navigation .wrap ul li a.activ {
    background-color: var(--ci-super-light-blue);
    color: var(--ci-blue);
}
.navigation .wrap ul li a.highlight {
  background-color: var(--ci-green);
}
.navigation .wrap ul li a.highlight:hover, .navigation .wrap ul li a.highlight.activ {
    background-color: var(--ci-super-light-blue);
    color: var(--ci-blue);
}

/*////////////////////////////////////////////////     Content Navigation     */

.content-navigation{
  display: block;
  background-color: var(--ci-super-light-blue);
  position:sticky;
  top:0px;
  z-index:10;
  border-bottom:1px solid rgb(from var(--ci-white) r g b / 50%);
}

.content-navigation .wrap{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 60px;
}

.content-navigation .wrap ul {
  list-style-type: none;
  display: flex;
  padding: 0px;
  margin: 0px -20px;
  flex-wrap: wrap;
}

.content-navigation .wrap ul li a {
  font-size: 0.8em;
  color: var(--ci-blue);
  text-decoration: none;
  display: block;
  padding: 0.9em 20px 0.7em;
}

.content-navigation .wrap ul li a:hover, .content-navigation .wrap ul li a.activ {
  background-color: var(--ci-white);
}

/*////////////////////////////////////////////////     Main     */

main {
  min-height: calc(100vh - 400px);
}
main .bg {
  background-color: var(--ci-super-light-blue);
}
main .bg-1 {
  background-color: var(--ci-light-grey);
}
main .bg-2 {
  background-position: center;
  background-size: cover;
  border-bottom: 10px solid var(--ci-super-light-blue);
  position:relative;
  animation-name: bg-2;
  animation-duration: 240s;
  animation-iteration-count: infinite;
}

main .bg-2 .backdrop{
    position: absolute;
    top: 0px;
    left: 0px;
    background: linear-gradient(45deg, var(--ci-blue) -10%, #0080c800 70%);
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
}
main .wrap {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 60px;
  flex-direction: column;
}
main .wrap h1,
main .wrap h2 {
  color: var(--ci-blue);
  position: relative;
  width: fit-content;
  text-transform: uppercase;
}
main .wrap h1 {
  font-size: 3em;
}
main .wrap h2 {
  font-size: 2em;
}
main .wrap :is(h1, h2) {
  line-height: 1em;
}

main .wrap img {
  max-width: 100%;
  width: 450px;
  box-shadow: 0px 0px 0px 4px white, 0 5px 15px -5px #3f3f3f80;
  border-radius: 5px;
  transform: rotate(-2deg);
  transition: all ease 3s;
}
main .wrap img:hover {
  transform: rotate(-0.5deg) scale(1.05);
}

/*////////////////////////////////////////////////     Begrüsung     */

main .wrap.begruesung {
  align-items: center;
  gap: 60px;
}
main .wrap.begruesung img{
    aspect-ratio: 1.6 / 1;
    object-fit: cover;
    object-position: 0% 30%;
}
main .wrap .sign {
  font-family: "Redacted Script";
  font-size: 35px;
  color: var(--ci-blue);
  display: block;
  margin-bottom: 13px;
  line-height: 22px;
}
main .wrap .sign svg{
  stroke:var(--ci-blue);
}
main .wrap .sign-re svg{
    margin: 0 0 -15px 0px;
    height: 120px;
}

main .wrap .sign-as svg{
    margin: 0 0 -5px 0px;
    height: 100px;
}
main .wrap .sign-two {
  font-size: 0.7em;
  color: var(--ci-green);
  /*box-shadow: 0 0 2px 2px #ffffffcc;
    background-color: #ffffffcf;*/
}

/*////////////////////////////////////////////////     Vorstand     */

main .wrap .vorstand {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 50%), 1fr));
  gap: 70px;
  margin: 20px auto 0;
}
main .wrap .vorstand > div {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
}
main .wrap .vorstand > div h3 {
  margin: 0 0 5px;
  color: var(--ci-blue);
  line-height: 1em;
}
main .wrap .vorstand > div span {
  font-size: 0.7em;
}
main .wrap .vorstand > div img, main .wrap .vorstand > div svg {
  max-width: 140px;
  border-radius: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0px 0px 0px 4px white, 0 5px 15px -5px #3f3f3f80;
  object-position: 0px 0px;
  width: 100%;
}
main .wrap .vorstand > div a {
  font-size: 0.7em;
  display: block;
  color: var(--ci-light-blue);
}

/*////////////////////////////////////////////////     Kandidat     */

main .wrap.kandidat {
  align-items: center;
  gap: 60px;
}
main .wrap.kandidat img{
    aspect-ratio: 1.6 / 1;
    object-fit: cover;
    object-position: 0% 8%;
}

main .wrap.kandidat-tabs{
  padding-top:0px;
}

main .wrap.kandidat-tabs .tabs-nav{
    display: flex;
    list-style: none;
    padding: 0px;
    margin: 0px;
    gap: 0.8em;
}

main .wrap.kandidat-tabs .tabs-nav a{
    cursor: pointer;
}
main .wrap.kandidat-tabs .tabs-nav a.active{
    color:var(--ci-green);
}

main .wrap.kandidat-tabs .tabs-nav li:before {
  content: "/";
  color: var(--ci-green);
  margin-right: 0.8em;
}

main .wrap.kandidat-tabs .tabs-contents{
  display:grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
main .wrap.kandidat-tabs .tabs-content{
  opacity: 0;
  grid-column: 1;
  grid-row: 1;
  padding:0;
  transition:all ease 1s;
  interpolate-size: allow-keywords;
  height:0px;
  filter:blur(2px);
  pointer-events: none;
}
main .wrap.kandidat-tabs .tabs-content.active{
  opacity: 1;
  height: min-content;
  filter:blur(0px);
  pointer-events: unset;
  padding:30px 0 0;
}

/*////////////////////////////////////////////////     Wahlveranstaltung     */

main .wrap .wahlveranstaltungen{
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 47%), 1fr));
}

main .wrap .wahlveranstaltungen div{
  background-color:var(--ci-white);
      padding: 20px 30px;
}
main .wrap .wahlveranstaltungen div span:nth-of-type(1){
  font-size:0.8em;
  display: block;
  opacity: 0.7;
}
main .wrap .wahlveranstaltungen div span:nth-of-type(2){
  display: block;
}
main .wrap .wahlveranstaltungen div span:nth-of-type(3){
  font-size:0.8em;
  display: block;
}
main .wrap .wahlveranstaltungen .ics{
  padding: 10px 0 0 0;
  display: flex;
  gap: 5px;
}
main .wrap .wahlveranstaltungen .ics svg{
  width:25px;
}

/*////////////////////////////////////////////////     Gemeinderat     */

main .wrap .gemeinderat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 50%), 1fr));
  gap: 40px;
  margin: 20px auto 0;
}
main .wrap .gemeinderat > div {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
}
main .wrap .gemeinderat > div > div{
  flex-shrink: 5;
  max-width: 250px;
}
main .wrap .gemeinderat > div h3 {
  margin: 5px 0;
  color: var(--ci-blue);
  line-height: 1em;
}
main .wrap .gemeinderat > div span {
  font-size: 0.7em;
}
main .wrap .gemeinderat > div img,
main .wrap .gemeinderat > div svg {
  width:100%;
  height:100%;
  max-width: 140px;
  max-height:140px;
  border-radius: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0px 0px 0px 4px white, 0 5px 15px -5px #3f3f3f80;
  object-position: 0px 0px;
}
main .wrap .gemeinderat > div a {
  font-size: 0.7em;
  display: block;
  color: var(--ci-light-blue);
}

/*////////////////////////////////////////////////     Wahl Gemeinderat     */

main .wrap .wahl_gemeinderat, main .wrap .wahl_kreistag {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 50%), 1fr));
  gap: 40px;
  margin: 20px auto 0;
}
main .wrap .wahl_gemeinderat > div, main .wrap .wahl_kreistag > div {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
}
main .wrap .wahl_gemeinderat > div h3, main .wrap .wahl_kreistag > div h3 {
  margin: 5px 0;
  color: var(--ci-blue);
  line-height: 1em;
}
main .wrap .wahl_gemeinderat > div h3 > span, main .wrap .wahl_kreistag > div h3 > span {
    font-size: 0.7em;
    margin-left: 4px;
    color: var(--ci-black);
    font-weight: 100;
}
main .wrap .wahl_gemeinderat > div span, main .wrap .wahl_kreistag > div span {
  font-size: 0.7em;
}
main .wrap .wahl_gemeinderat > div img, main .wrap .wahl_kreistag > div img,
main .wrap .wahl_gemeinderat > div svg, main .wrap .wahl_kreistag > div svg {
  width:100%;
  height:100%;
  max-width: 140px;
  max-height:140px;
  border-radius: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0px 0px 0px 4px white, 0 5px 15px -5px #3f3f3f80;
  object-position: 0px 0px;
}
main .wrap .wahl_gemeinderat > div a, main .wrap .wahl_kreistag > div a {
  font-size: 0.7em;
  display: block;
  color: var(--ci-light-blue);
}

/*////////////////////////////////////////////////     Junge union     */

main .wrap.ju {
  align-items: center;
  gap: 60px;
}

/*////////////////////////////////////////////////     Starkbierfest     */

main .wrap .starkbierfeste{
  display:flex;
  flex-direction: column;
  gap: 40px;
}

main .wrap .starkbierfeste > div.sfhead{
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 30px;
}



main .wrap .starkbierfeste > div.sfhead.element-to-watch{
  transform:scale(0.9);
  filter:blur(10px);
  opacity: 0;
    transition: all ease 10s;
}
main .wrap .starkbierfeste > div.sfhead.element-to-watch.is-in-viewport{
  transform:scale(1);
  filter:blur(0px);
  opacity: 1;
  transition: all ease 1s;
}



main .wrap .starkbierfeste > div.sfhead img{
  max-width: 200px;
  width: auto;
}

main .wrap .starkbierfeste > div.sfhead > div{
  max-width: 400px;
}

main .wrap .starkbierfeste > div.sfhead a{
  cursor: pointer;
}
main .wrap .starkbierfeste > .tabs-content{
      opacity: 0;
    grid-column: 1;
    grid-row: 1;
    padding: 0;
    transition: all ease 1s;
    interpolate-size: allow-keywords;
    height: 0px;
    filter: blur(2px);
    pointer-events: none;
    font-size: 0.8em;
}

main .wrap .starkbierfeste > .tabs-content.active {
    opacity: 1;
    height: min-content;
    filter: blur(0px);
    pointer-events: unset;
    padding: 0 0 60px;
}

/*////////////////////////////////////////////////     Footer     */

footer {
  background-color: var(--ci-blue);
  color: var(--ci-white);
  font-size: 0.9em;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 60px;
  gap: 60px;
  flex-direction: column;
}
footer .wrap h3 {
  margin: 0px;
  flex-grow: 1;
  text-transform: uppercase;
}
footer .wrap ul {
  margin: 0px;
  padding: 0px;
  list-style-type: none;
}
footer .wrap ul li {
  margin-bottom: 4px;
}
footer .wrap ul li a {
  color: var(--ci-white);
  text-decoration: none;
}
footer .wrap ul li a:hover {
  color: var(--ci-green);
}

/*////////////////////////////////////////////////     650     */

@media only screen and (min-width: 650px) {


  main .wrap h1 {
    font-size: 4em;
  }
  main section {
    padding: 60px 0;
  }
}

/*////////////////////////////////////////////////     850     */

@media only screen and (min-width: 850px) {
  header .wrap {
    flex-direction: row;
    align-items:center;
    padding: 0 120px;
  }

  header .wrap .logo {
    height: 150px;
  }
  header .wrap ul {
    margin: 0px;
  }
  header .wrap ul li a {
    padding: 0;
  }

  .navigation .wrap, .content-navigation .wrap {
    padding: 0 120px;
  }

  main .wrap {
    padding: 60px 120px;
  }


   main .wrap :is(h1, h2){
    margin-right:2em;
   }
  main .wrap :is(h1, h2):after {
    background: var(--ci-green);
    bottom: 0;
    content: "";
    height: calc(100% + 0.2em);
    position: absolute;
    right: -3.5em;
    top: -0.1em;
    transform: rotate(30deg);
    width: 0.07em;
    margin-right: 2em;
  }


  main .wrap .vorstand, main .wrap .wahl_gemeinderat, main .wrap .wahl_kreistag, main .wrap .gemeinderat {
    margin: 20px 0 0;
  }


  main .wrap .starkbierfeste > div.sfhead{
    flex-direction: row;
    text-align: left;
  }
  main .wrap .starkbierfeste > div.sfhead:nth-of-type(4n + 3){
    flex-direction: row-reverse;
    text-align: right;
  }



  footer .wrap {
    flex-direction: row;
    padding: 60px 120px;
  }
}

/*////////////////////////////////////////////////     1200     */

@media only screen and (min-width: 1200px) {
  main .wrap.begruesung {
    flex-direction: row;
  }
  main .wrap.ju {
    flex-direction: row;
  }
}

/*////////////////////////////////////////////////     Transition     */

@view-transition {
    navigation: auto
}

@keyframes out {
    0% {
        opacity: 1;
        z-index: 1;
        filter: blur(0px)
    }

    100% {
        opacity: 0;
        z-index: 1;
        filter: blur(2px)
    }
}

@keyframes in {
    0% {
        opacity: 0;
        z-index: 2;
        filter: blur(2px)
    }

    50%,100% {
        opacity: 1;
        z-index: 2;
        filter: blur(0px)
    }
}

::view-transition-old(root) {
    animation: out 1.5s;
    animation-timing-function: cubic-bezier(0.89, 0.01, 0.23, 1.04)
}

::view-transition-new(root) {
    animation: in 1.5s;
    animation-timing-function: cubic-bezier(0.89, 0.01, 0.23, 1.04)
}
