/* Variables */

:root {
  --color1: #008D8E; /* Türkis */
  --color2: #16A4C9; /* Blau */
  --color2-transp : rgba(22, 164, 201, 0.3);
  --color3: #E30045; /* Rot */
  --color-grey: #3a3a3a;
  --background-color: #C8F0FF;

  --size-title: 5em;
  --size-h1: 3em;
  --size-h2: 2.5em;
  --size-h3: 2em;
  --size-h4: 1.2em;
  --size-normal: 1em;

  --verdi-angle-width: 60vw;
  --verdi-angle-height: calc(10vw + 250px);
  --title-width: 640px;
  --title-height: calc((var(--verdi-angle-height) / 3) + 150px);

  --progressbar-height: 25px;

  --footer-top: -38px;
  --footer-right: 322px;
}

/* RESET */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
ol, ul {
  list-style: none;
}

p {
  text-align: justify;
  font-family: "Helvetica Neue", sans-serif
}

p em {
  color: var(--color3);
  font-weight: bold;
  font-style: normal;
}

/* Make images responsive */
img {
  max-width: 100%;
}

/**********/
/* STYLES */
/**********/

/* General structure */

@font-face {
  font-family: frutiger;
  src: url(../fonts/frutiger.otf);
}

@font-face {
  font-family: bebas-neue;
  src: url(../fonts/bebas-neue.otf);
}

@font-face {
  font-family: "bebas-neue-exp-bold";
  src: url('../fonts/bebas-neue-exp-bold.woff2') format('woff2'), url('../fonts/bebas-neue-exp-bold.woff') format('woff');
}

@font-face {
  font-family: "bebas-neue-exp";
  src: url('../fonts/bebas-neue-exp.woff2') format('woff2'), url('../fonts/bebas-neue-exp.woff') format('woff');
}

html {
  min-height: 100%;
}

body {
  background: var(--background-color);
  font-family: frutiger;
  background: linear-gradient(180deg, var(--background-color) 18rem, white 45rem);
  min-height: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted black;
}

a:hover {
  border-bottom: 1px solid black;
}

h1, h2, h3, h4, h5 {
  padding-top: 0.5em;
  padding-bottom: 0.7em;
  /* font-family: "Helvetica Neue", "bebas-neue-exp";
  font-weight: bold;
  font-stretch: condensed;
  text-transform: uppercase; */
  font-family: bebas-neue;
  letter-spacing: 0.05rem;

}

h1 {
  font-size: var(--size-h1);
  padding-bottom: 20px;
}

h2 {
  font-size: var(--size-h2);
}

h3 {
  font-size: var(--size-h3);
}

h4 {
  font-size: var(--size-h4);
}

p {
  font-family: sans-serif;
  padding-bottom: 0.8rem;
  letter-spacing: 0.02rem;
  line-height: 1.3rem;
}

em {
  font-style: italic;
  font-size: 0.95em;
}

strong {
  font-weight: bold;
}

.center-width {
  width: 900px;
  margin: auto;
  padding: 20px 15px;
}

.textbox {
  width: 870px;
  margin: auto;
  padding: 40px 30px;
}

.full-width {
  width: 100%;
}

.textbox h2,
.textbox h3,
.textbox p, {
  padding-left: 20px;
  padding-right: 20px;
}

.bg-color1 {
  background-color: var(--color1);
}

.bg-color2 {
  background-color: var(--color2);
}

.bg-color3 {
  background-color: var(--color3);
}

.text-color1 {
  color: var(--color1);
}

.text-color2 {
  color: var(--color2);
}

.text-color3 {
  color: var(--color3);
}

.headline {
  margin-bottom: -50px;
  //background-color: white;
}

.visdp {
  margin-top: 3em;
  font-size: 0.8em;
}

ol {
  list-style-type: decimal;
  padding-left: 40px;
}

ol li {
  padding-bottom: 0.8em;
  font-family: sans-serif;
  letter-spacing: 0.02rem;
  line-height: 1.3rem;
}

ol li:last-child {
  padding-bottom: 0.2em;
}

/* FORMS AND TABLES */

table {
  width: 100%;
}

tr {
  border-bottom: 2px dotted black;
}
tr:last-child {
  border-bottom: none;
}

td, th {
  padding: 15px;
  vertical-align: middle;
  border-right: 2px dotted black;
}
td:last-child,
th:last-child {
  border-right: none;
}

th {
  font-size: 1.2em;
  font-style: italic;
}

td img {
  padding: 10px;
}

.image-cell {
  font-size: 1.8em;
}

.image-cell a {
  border-bottom: none;
}

.image-cell fa-solid,
.image-cell fa-light,
.image-cell fa-regular {
  padding: 10px;
}


input[type=text],
input[type=date],
input[type=email] {
  padding: 5px;
  background: inherit;
  border: none;
  border-bottom: 2px solid black;
}

::placeholder {
  color: black;
  opacity: 0.7;
  font-style: italic;
}
:-ms-input-placeholder {
  color: black;
  opacity: 0.7;
  font-style: italic;
}
::-ms-input-placeholder {
  color: black;
  opacity: 0.5;
  font-style: italic;
}

input[type=text],
input[type=date],
input[type=email],
textarea {
  min-width: 200px;
  width: 70%;
}

textarea {
  background: inherit;
  border: 2px solid black;
}

input[type=submit],
input[type=reset],
.cancel-button {
  background: var(--color3);
  color: white;
  text-transform: uppercase;
  font-size: 1.5rem;
  font-family: bebas-neue;
  text-decoration: none;
  border: none;
  border-radius: 0;
  -webkit-appearance: none;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}

input[type=submit]:hover,
input[type=reset]:hover,
.cancel-button:hover {
  background-color: var(--color1);
}

form p {
  padding-top: 20px;
  padding-bottom: 10px;
}

form {
  padding-bottom: 2em;
}

.space {
  height: 70px;
}

.space.long {
  height: 77px;
}

/* Header */

header {
  margin-bottom: 1.5rem;
}

.verdi-angle {
  transform-origin: bottom left;
  -ms-transform-origin: bottom left;
  -moz-transform-origin: bottom left;
  -o-transform-origin: bottom left;
  -webkit-transform-origin: bottom left;
  transform: rotate(-4deg);
  -ms-transform: rotate(-4deg);
  -webkit-transform: rotate(-4deg);
  z-index: -1;
  width: fit-content;
}

.title {
  padding-top: 3rem;
  padding-left: clamp(2rem, calc(40vw - 300px), calc(40vw - 300px));;
}

.title h1,
.title h2 {
  font-family: bebas-neue;
  color: white;
  font-weight: bold;
  text-align: left;
  letter-spacing: 0.05em;
  padding-top: 0;
}

.title h1 {
  font-size: var(--size-title);
  padding: 0;
  text-align: center;
  line-height: 2rem;
}

.title h1 span {
  display: inline;
  font-family: "Helvetica Neue", "bebas-neue-exp";
  font-stretch: condensed;
  background-color: var(--color2);
  padding: 0;
  text-transform: uppercase;
  font-size: 2rem;
  margin-right: 0.4rem;
  letter-spacing: 0.1rem;
  padding-right: 0.3rem;
  padding-left: 0.3rem;
}

.title h1 span.red {
  background-color: var(--color3);
}

.title a {
  text-decoration: none;
  border-bottom: none;
}

.verdi-logo {
  position: absolute;
  top: 3rem;
  right: clamp(2rem, calc(40vw - 300px), calc(40vw - 300px));
  width: 23vw;
  max-width: 10rem;
}

.verdi-logo a {
  border: none;
}

.verdi-logo img {
  width: 100%;
}

/* General content */

article {
  display: block;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

/* Foto grid */

.foto-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin-bottom: 1rem;
}

.foto-grid img {
  object-fit: cover;
  height: calc(100vw/12);
  width: 100%;
}

.foto-grid img:nth-child(n+37) {
  display: none;
}

/* Action buttons */

.action-button {
  text-align: left;
}

.action-button p{
  display: inline-block;
}

.action-button a {
  display: inline;
  color: white;
  background-color: var(--color3);
  /* padding: 0.2rem; */
  text-transform: uppercase;
  font-size: 1.5rem;
  font-family: bebas-neue;
  text-decoration: none;
  border: none;
  line-height: 2.1rem;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
  margin-right: 0.5rem;
}

.action-button a:hover {
  background-color: var(--color1);
}

/* Unterstützer_innen */

.unterstuetzer-innen {
  position: relative;
}

.unterstuetzer-innen .view {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}

.unterstuetzer-innen .view div img {
  width: 100%;
  height: clamp(30px, 200px, 40vw);
  object-fit: cover;
}

.unterstuetzer-innen .view div p {
  text-align: left;
  font-weight: bold;
  font-size: 0.8rem;
  line-height: normal;
  padding-top: 0.3rem;
}

.readmore-box {
  display: none;
}

.readmore-box ~ .view {
  max-height: 35rem;
  transition: visibility 0s, max-height 3.5s ease;
  -ms-transition: visibility 0s, max-height 3.5s ease;
  -o-transition: visibility 0s, max-height 3.5s ease;
  -moz-transition: visibility 0s, max-height 3.5s ease;
  -webkit-transition: visibility 0s, max-height 3.5s ease;
  overflow: hidden;
}

.readmore-box:checked ~ .view {
  max-height: 5500rem;
}

.unterstuetzer-innen .action-button {
  z-index: 2;
  margin-bottom: 2rem;
  position: absolute;
  right: 50%;
  top: 34rem;
  transform: translate(50%, 0);
}

.unterstuetzer-innen .action-button > a {
  width: max-content;
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.unterstuetzer-innen .action-button > a > i {
  padding-left: 0.5em;
  padding-right: 0.5em;
  transition: transform 0.5s linear;
  -ms-transition: transform 0.5s linear;
  -o-transition: transform 0.5s linear;
  -moz-transition: transform 0.5s linear;
  -webkit-transition: transform 0.5s linear;
  font-size: 0.7em;
  vertical-align: middle;
}

.unterstuetzer-innen .action-button > a > .text {
  display: inline;
}

.unterstuetzer-innen .action-button > a > .text::after {
  content: "Mehr anzeigen";
  text-transform: uppercase;
  font-size: 1.5rem;
  font-family: bebas-neue;
  line-height: 2.1rem;
}

.unterstuetzer-innen .readmore-box:checked ~ .action-button {
  position: sticky;
  position: -webkit-sticky;
  display: block;
  top: 1rem;
  transform: initial;
}

.readmore-box:checked ~ .action-button > a > i {
  transform-origin: center;
  -ms-transform-origin: center;
  -moz-transform-origin: center;
  -o-transform-origin: center;
  -webkit-transform-origin: center;
  transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
}

.readmore-box:checked ~ .action-button > a > .text::after {
  content: "Weniger anzeigen";
}

/* Foto-Upload */

.upload-grid,
.left,
.right {
  display: inline;
  position: static;
}

.readmore-box ~ .datenschutzerklaerung {
  max-height: 14rem;
  transition: visibility 0s, max-height 1.5s ease;
  -ms-transition: visibility 0s, max-height 1.5s ease;
  -o-transition: visibility 0s, max-height 1.5s ease;
  -moz-transition: visibility 0s, max-height 1.5s ease;
  -webkit-transition: visibility 0s, max-height 1.5s ease;
  overflow: hidden;
}

.readmore-box:checked ~ .datenschutzerklaerung {
  max-height: 50rem;
}

.datenschutzerklaerung {
  margin-bottom: 2rem;
}

.datenschutzerklaerung p,
.datenschutzerklaerung li {
  font-size: 0.8em;
}

.datenschutzerklaerung + .action-button a {
  position: absolute;
  bottom: 8rem;
  right: 1rem;
}

.datenschutzerklaerung + .action-button > a > i {
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  transition: transform 0.5s linear;
  -ms-transition: transform 0.5s linear;
  -o-transition: transform 0.5s linear;
  -moz-transition: transform 0.5s linear;
  -webkit-transition: transform 0.5s linear;
  vertical-align: middle;
  font-size: 0.9em;
}

.readmore-box:checked ~ .action-button > a > i {
  transform-origin: center;
  -ms-transform-origin: center;
  -moz-transform-origin: center;
  -o-transform-origin: center;
  -webkit-transform-origin: center;
  transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
}

.datenschutz-box,
.datenschutz-label,
.datenschutz-label p {
  display: inline;
}

.datenschutz-label {
  margin-bottom: 2rem;
}

input[type="checkbox"] {
  color: var(--color3);
  /* height: 1.2rem;
  width: 1.2rem; */
}

/* Misc */

.action-button.icons a i {
  font-size: 0.9em;
  vertical-align: middle;
  padding-left: 0.3rem;
}

.action-button .icon-only {
  font-size: 2em;
  vertical-align: middle;
  background-color: inherit;
  color: var(--color3);
  padding-left: 0;
  padding-bottom: 0.2rem;
}

.action-button .icon-only:hover {
  background-color: inherit;
  color: var(--color1);
}

.action-button.icons .icon-only i {
  padding-left: 0;
}

#foto-upload {
  margin-top: 3rem;
}

.foto-upload > form > input[type=submit] {
  display: block;
  margin-right: auto;
  margin-left: auto;
  margin-top: 1rem;
}

/* FOOTER */

footer {
  position: fixed;
  bottom: -80px;
  right: -110px;
  height: 222px;
  width: 750px;
  overflow: hidden;
  transition: transform 0.3s ease-out;
  -ms-transition: transform 0.3s ease-out;
  -o-transition: transform 0.3s ease-out;
  -moz-transition: transform 0.3s ease-out;
  -webkit-transition: transform 0.3s ease-out;
  z-index: 10;
}

footer:hover {
  /* bottom: 0px;
  right: 0; */
  transform: translate(-20px, -70px);
  -webkit-transform: translate(-20px, -70px);
  -ms-transform: translate(-20px, -70px);
}

.footer-element {
  position: absolute;
  transform-origin: top left;
  -ms-transform-origin: top left;
  -moz-transform-origin: top left;
  -o-transform-origin: top left;
  -webkit-transform-origin: top left;
  transform: rotate(-7deg);
  -ms-transform: rotate(-7deg);
  -webkit-transform: rotate(-7deg);
  width: 600px;
  height: 200px;
  box-shadow: -1px -1px 15px black;
}

.main-footer ul {
  padding: 50px;
  padding-top: 30px;
  transform-origin: top left;
  -ms-transform-origin: top left;
  -moz-transform-origin: top left;
  -o-transform-origin: top left;
  -webkit-transform-origin: top left;
  transform: rotate(7deg);
  -ms-transform: rotate(7deg);
  -webkit-transform: rotate(7deg);
}

.main-footer ul li a {
  text-decoration: none;
  border-bottom: none;
  color: white;
}

.main-footer ul li {
  //background-color: var(--color1);
  text-transform: uppercase;
  width: 150px;
  padding: 10px;
  margin-bottom: 0.4em;
}

.main-footer ul li:hover a {
  color: var(--color1);
}

.main-footer {
  top: 44px;
  right: calc(var(--footer-right) - 600px);
}

.secondary-footer {
  top: 94px;
  right: calc((var(--footer-right) * 1.5) - 600px);
  z-index: -1;
}

.tertiary-footer {
  position: absolute;
  top: 130px;
  right: calc((var(--footer-right) * 1.85) - 600px);
  z-index: -2;
}


@media(max-width: 970px) { /* everything full-width */

  :root {
    --footer-right: 275px;
  }

  footer {
    height: 160px;
  }

  .main-footer ul {
    padding: 30px;
    padding-top: 10px;
  }

  .main-footer ul li {
    padding: 8px;
    margin-bottom: 0;
  }

  .main-footer {
    top: 44px;
  }

  .secondary-footer {
    top: 86px;
  }

  .tertiary-footer {
    top: 126px;
  }

  .center-width {
    width: calc(100vw - 30px);
    padding-left: 15px;
    padding-right: 15px;
  }
}


@media(max-width: 768px) {
  :root {
    --size-h1: 2.5em;
    --size-h2: 2em;
    --size-h3: 1.5em;
    --size-h4: 1.2em;
  }
  body {
    font-size: 0.9em;
  }

  .foto-grid {
    grid-template-columns: repeat(10, 1fr);
  }

  .foto-grid img {
    height: calc(100vw/10);
  }

  .foto-grid img:nth-child(n+41) {
    display: none;
  }
}

@media(max-width: 1180px) {
  .foto-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .foto-grid img {
    height: calc(100vw/12);
  }

  .foto-grid img:nth-child(n-49) {
    display: inline-block;
  }

  .foto-grid img:nth-child(n+49) {
    display: none;
  }
}


@media(max-width: 650px) {
  :root {
    --footer-right: 225px;
  }

  footer {
    height: 158px;
  }

  .main-footer ul li a {
    font-size: 0.8em;
  }

  .main-footer ul li {
    padding: 5px;
  }

  .main-footer ul {
    padding: 20px;
    padding-bottom: 7px;
  }

  .main-footer {
    top: 32px;
  }

  .secondary-footer {
    top: 60px;
  }

  .tertiary-footer {
    top: 85px;
  }
}

@media(max-width: 600px) {

  .foto-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  .foto-grid img {
    height: calc(100vw/8);
  }

  .foto-grid img:nth-child(n+33) {
    display: none;
  }
}

@media(min-width: 600px) {
  .title {
    padding-top: 4rem;
  }

  .title h1 {
    line-height: 3.4rem;
  }

  .title h1 span {
    font-size: 3rem;
  }

  header {
    margin-bottom: 0.5rem;
  }

  .multicol {
    column-count: 2;
    column-gap: 2rem;
  }

  .upload-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .unterstuetzer-innen .view {
    grid-template-columns: repeat(3, 1fr);
  }

  .left {
    background-color: var(--color2-transp);
    border: 2px solid rgba(0, 0, 0, 0.3);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
  }

  .left > input:nth-child(1) {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
  }
}

@media(min-width: 900px) {
  header {
    margin-bottom: 0;
  }

  .unterstuetzer-innen .view {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
}
