/* *** schrift (liegt auf dem eigenen server, nichts geht an google) *** */
@font-face {
  font-family: "Hedvig Letters Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/schriften/hedvig-letters-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Hedvig Letters Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/schriften/hedvig-letters-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* *** schriftgrössen *** */
:root {
  --gross: 11.6rem;
  --titel: 4.5rem;
  --titel-zeile: 1;
  --mittel: 3.1rem;
  --mittel-zeile: 1.2;
  --text: 1.2rem;
  --text-zeile: 1.3;
  --klein-zeile: 24px;
}

/* fliessende grössen, formeln wie bisher */
@media (max-width: 768px) {
  :root {
    --titel: calc(2.225rem + (4.5 - 2.225) * ((100vw - 20rem) / (48 - 20)));
    --titel-zeile: calc(1.3 * (2.225rem + (4.5 - 2.225) * ((100vw - 20rem) / (48 - 20))));
    --mittel-zeile: calc(1.4 * (1.735rem + (3.1 - 1.735) * ((100vw - 20rem) / (48 - 20))));
    --text: calc(1.07rem + (1.2 - 1.07) * ((100vw - 20rem) / (48 - 20)));
    --text-zeile: calc(1.4 * (1.07rem + (1.2 - 1.07) * ((100vw - 20rem) / (48 - 20))));
    --klein-zeile: calc(1.4 * (1rem + (1 - 1) * ((100vw - 20rem) / (48 - 20))));
  }
}

@media (min-width: 992px) and (max-width: 1400px) {
  :root {
    --titel: calc(2.225rem + (4.5 - 2.225) * ((100vw - 62rem) / (87 - 62)));
    --titel-zeile: calc(1.3 * (2.225rem + (4.5 - 2.225) * ((100vw - 62rem) / (87 - 62))));
    --mittel: calc(1.735rem + (3.1 - 1.735) * ((100vw - 62rem) / (87 - 62)));
    --mittel-zeile: calc(1.4 * (1.735rem + (3.1 - 1.735) * ((100vw - 62rem) / (87 - 62))));
    --text: calc(1.07rem + (1.2 - 1.07) * ((100vw - 62rem) / (87 - 62)));
    --text-zeile: calc(1.4 * (1.07rem + (1.2 - 1.07) * ((100vw - 62rem) / (87 - 62))));
    --klein-zeile: calc(1.4 * (1rem + (1 - 1) * ((100vw - 62rem) / (87 - 62))));
  }
}

@media (max-width: 1800px) {
  :root {
    --gross: 9.28rem;
  }
}

@media (max-width: 1600px) {
  :root {
    --gross: 6.96rem;
  }
}

/* steht bewusst nach dem block 992-1400 */
@media (max-width: 992px) {
  :root {
    --gross: 4.64rem;
    --mittel: 1.86rem;
  }
}

@media (max-width: 767px) {
  :root {
    --gross: 2.32rem;
  }
}

/* *** grundlagen *** */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: #232323;
  font-family: "Hedvig Letters Sans", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
p,
ul,
figure {
  margin: 0;
}

h1,
h2 {
  font-weight: 400;
}

ul {
  padding: 0;
  list-style: none;
}

strong,
b {
  font-weight: 700;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

a {
  color: #221b35;
  text-decoration: none;
  transition: color 0.6s;
}

:focus-visible {
  outline: 3px solid #e83366;
  outline-offset: 3px;
}

.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.rahmen {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (max-width: 1400px) {
  .rahmen {
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1400px) {
  .rahmen {
    padding: 0 32px;
  }
}

/* unterstrich fährt beim zeigen von links ein */
.zahlung-arten a,
.flyer-text a,
.fuss-text a {
  position: relative;
  background-repeat: no-repeat;
  background-size: 10000px 2px;
  background-position: -10000px 1.2em;
}

.zahlung-arten a:hover,
.flyer-text a:hover,
.fuss-text a:hover {
  background-image: linear-gradient(currentColor 50%, currentColor 50%);
  background-position: 0 1.2em;
  transition: background-position 2s ease-in-out;
}

.zahlung-arten a:hover,
.zahlung-arten a:focus,
.flyer-text a:hover,
.flyer-text a:focus {
  color: #000;
}

/* *** sprachwahl *** */
.leiste {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.leiste-innen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 1320px;
  height: 90px;
  margin: 16px auto 0;
  padding: 8px 9.6px 8px 16px;
  border-radius: 100vw;
  background: #fff;
}

.sprache-knopf {
  display: flex;
  align-items: center;
  height: calc(2rem + var(--klein-zeile));
  padding: 16px 16px 16px 22.53px;
  border-radius: 16px;
  color: #221b35;
  list-style: none;
  cursor: pointer;
  transition: 0.3s all;
}

.sprache-knopf::-webkit-details-marker {
  display: none;
}

.sprache-knopf:hover,
.sprache-knopf:focus-visible {
  color: #000;
}

.sprache-symbol {
  flex-shrink: 0;
  width: 17.156px;
  height: 20px;
  margin-right: 8px;
  fill: currentColor;
}

/* kleines dreieck neben dem sprachsymbol */
.sprache-knopf::after {
  content: "";
  flex-shrink: 0;
  margin: 3.2px 0 0 8px;
  border-top: 5px solid;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  transition: 0.3s all;
}

.sprache[open] .sprache-knopf::after {
  transform: rotate(180deg);
}

.sprache-burger {
  display: none;
}

.sprache-feld {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  z-index: 1000;
  width: max-content;
  max-width: 500px;
  padding: 12px 4px;
  border-radius: 24px;
  background: #fff;
  transform: translateX(-50%);
}

.sprache-liste {
  display: flex;
  flex-direction: column;
}

.sprache-liste a {
  display: block;
  margin: 0 8px;
  padding: 12px;
  border-radius: 8px;
  color: #221b35;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: 0.3s all;
}

.sprache-liste a:hover {
  background-color: rgba(27, 31, 10, 0.06);
  color: #000;
}

@media (min-width: 992px) {
  /* platzhalter, damit das symbol gleich sitzt wie bisher */
  .leiste-innen::before {
    content: "";
    flex-shrink: 0;
    width: calc(40px + 0.612 * var(--text));
  }

  .sprache {
    position: relative;
    left: 12px;
    margin: 0 auto;
  }

  .sprache-knopf {
    position: relative;
  }

  /* menü öffnet auch beim darüberfahren mit der maus */
  .sprache:hover::details-content {
    content-visibility: visible;
  }

  .sprache:hover .sprache-knopf::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
  }

  .sprache:hover .sprache-knopf::after {
    transform: rotate(180deg);
  }
}

@media (max-width: 992px) {
  .leiste-innen {
    padding-right: 32px;
  }
}

@media (max-width: 991px) {
  .sprache {
    margin: 0 8px 0 auto;
  }

  .sprache-knopf {
    height: auto;
    padding: 0;
    border-radius: 0;
  }

  .sprache-symbol,
  .sprache-knopf::after {
    display: none;
  }

  .sprache-burger {
    position: relative;
    display: block;
    width: 31px;
    height: 20px;
    border: 1px solid transparent;
  }

  .sprache-burger span {
    position: absolute;
    right: 0;
    width: 30px;
    height: 2px;
    background-color: #000;
    transition: all 0.15s;
  }

  .sprache-burger span:nth-child(1) {
    top: 0;
    transition: all 0.2s;
  }

  .sprache-burger span:nth-child(2),
  .sprache-burger span:nth-child(3) {
    top: 8px;
  }

  .sprache-burger span:nth-child(4) {
    top: 16px;
    transition: all 0.2s;
  }

  .sprache[open] .sprache-burger span:nth-child(1),
  .sprache[open] .sprache-burger span:nth-child(4) {
    top: 8px;
    right: 50%;
    width: 0;
    opacity: 0;
  }

  .sprache[open] .sprache-burger span:nth-child(2) {
    transform: rotate(45deg);
    transition: all 0.25s;
  }

  .sprache[open] .sprache-burger span:nth-child(3) {
    transform: rotate(-45deg);
    transition: all 0.25s;
  }

  /* offenes menü: symbol und dreieck oben im weissen feld */
  .sprache[open] .sprache-symbol,
  .sprache[open] .sprache-knopf::after {
    position: absolute;
    z-index: 1001;
    display: block;
  }

  .sprache[open] .sprache-symbol {
    top: calc(110% + 32px + (var(--klein-zeile) - 20px) / 2);
    left: 38.53px;
  }

  .sprache[open] .sprache-knopf::after {
    top: calc(110% + 32px + (var(--klein-zeile) - 8.2px) / 2);
    left: 73.69px;
    margin-left: 0;
  }

  .sprache-feld {
    top: 110%;
    left: 0;
    width: 100%;
    max-width: none;
    padding: calc(16px + 2rem + var(--klein-zeile)) 16px 16px;
    transform: none;
  }

  .sprache-liste {
    position: relative;
    top: 10px;
    align-items: flex-start;
    width: max-content;
    max-width: 100%;
    padding: 8px;
    border-radius: 16px;
    background-color: rgba(27, 31, 10, 0.04);
  }

  .sprache-liste a {
    margin: 0 8px 4px;
    padding: 8px;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .leiste-innen {
    width: 95%;
    height: 56px;
    margin-top: 8px;
    padding: 8px;
  }

  .sprache-burger {
    transform: scale(0.8);
  }

  .sprache-feld {
    padding-bottom: 24px;
  }
}

/* *** kopf *** */
.kopf {
  padding-top: 48px;
}

.kopf .rahmen {
  padding: 80px 48px;
}

.kopf-unterzeile {
  position: relative;
  z-index: 10;
  margin-bottom: 8px;
  color: #221b35;
  font-size: var(--text);
  line-height: var(--text-zeile);
  text-align: right;
}

.kopf-titel {
  color: #221b35;
  font-size: var(--gross);
  line-height: 0.8;
}

.kopf-titel span {
  display: block;
  margin-bottom: 8px;
}

.kopf-titel span:nth-child(2) {
  text-align: center;
}

.kopf-titel span:nth-child(3) {
  text-align: right;
}

@media (max-width: 1400px) {
  .kopf .rahmen {
    padding: 80px 64px;
  }
}

@media (max-width: 991px) {
  .kopf .rahmen {
    padding: 80px 32px;
  }
}

@media (max-width: 767px) {
  .kopf .rahmen {
    padding: 80px 16px;
  }
}

/* kopf als schriftzug aus dem flyer (einstellbar in der verwaltung) */
.kopf-titel--schriftzug {
  line-height: 0;
}

.kopf-titel--schriftzug svg {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}

/* die kleine zeile steht dann unter dem schriftzug, rechts bündig mit dem fragezeichen */
.kopf .rahmen:has(.kopf-titel--schriftzug) {
  display: flex;
  flex-direction: column;
}

.kopf .rahmen:has(.kopf-titel--schriftzug) .kopf-unterzeile {
  order: 2;
  margin: 0.9em 0 0;
  letter-spacing: 0.06em;
}

/* *** beitrag *** */
.beitrag {
  padding-top: 96px;
}

.beitrag .rahmen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.beitrag-bild {
  border: 1px solid #221b35;
  border-radius: 8px;
}

.beitrag-bild img {
  width: 100%;
}

.beitrag-karte {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border: 1px solid #221b35;
  border-radius: 8px;
  color: #221b35;
}

.beitrag-titel {
  margin-bottom: 32px;
  font-size: var(--mittel);
  font-weight: 700;
  line-height: var(--mittel-zeile);
}

.beitrag-text {
  margin-bottom: 32px;
  font-size: var(--text);
  line-height: var(--text-zeile);
}

.beitrag-marken {
  display: flex;
  flex-wrap: wrap;
  margin-top: auto;
}

.beitrag-marken li {
  display: flex;
  align-items: center;
  margin: 0 5px 5px 0;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 20px;
  font-size: var(--text);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.beitrag-marken li:last-child {
  margin-right: 0;
}

@media (max-width: 991px) {
  .beitrag .rahmen {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .beitrag-karte {
    padding: 16px;
  }

  .beitrag-marken {
    margin-top: 8px;
  }
}

/* *** zahlung *** */
.zahlung {
  padding: 32px 0;
}

.zahlung-arten {
  padding: 16px;
  border: 1px solid #221b35;
  text-align: center;
}

.zahlung-arten li {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid #232323;
  border-radius: 20px;
  font-size: var(--text);
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}

.zahlung-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-right: 1px solid #221b35;
  border-left: 1px solid #221b35;
}

.zahlung-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  border-bottom: 1px solid #221b35;
  border-left: 1px solid #221b35;
  transition: all 0.3s ease-in-out;
}

.zahlung-logos li:first-child {
  border-left: 0;
}

.zahlung-logos li:hover {
  background-color: #221b35;
}

@media (max-width: 992px) {
  .zahlung-logos li {
    border-left: 0;
  }
}

@media (max-width: 991px) {
  .zahlung-logos {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .zahlung-logos li {
    height: 150px;
  }
}

/* *** knöpfe *** */
.knopf-zeile {
  max-width: 720px;
  margin: 30px auto 0;
  font-size: 0;
  text-align: center;
}

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 9.6px 0;
  padding: 12px 24px;
  border: 2px solid #232323;
  border-radius: 100px;
  color: #232323;
  font-size: var(--text);
  font-weight: 600;
  line-height: var(--text-zeile);
  text-align: center;
  vertical-align: middle;
  transition: all 0.2s ease-in-out;
}

.knopf:hover,
.knopf:focus {
  border-color: #000;
  color: #000;
}

.knopf svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  fill: currentColor;
}

/* *** flyer *** */
.flyer {
  padding-bottom: 32px;
}

.flyer-box {
  padding: 80px 90px;
  background-color: #90ee90;
  color: #050f0f;
  text-align: center;
}

.flyer-titel {
  margin-bottom: 32px;
  font-size: var(--titel);
  font-weight: 700;
  line-height: var(--titel-zeile);
}

/* inline-block, damit die zeilenhöhe gleich bleibt */
.flyer-text {
  display: inline-block;
  width: 75%;
  font-size: var(--text);
  font-weight: 700;
  line-height: var(--text-zeile);
}

.flyer-bilder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  margin-top: 80px;
}

.flyer-bilder li {
  position: relative;
  padding: 24px 24px 48px;
  border: 3px solid #050f0f;
  border-radius: 8px;
  background-color: #f7fff7;
  box-shadow: 4px 4px 0 0 #050f0f;
  transform: rotate(-1deg);
  transition: all 0.3s ease-in-out;
}

.flyer-bilder li:nth-child(2n) {
  transform: rotate(1deg);
}

.flyer-bilder li:hover {
  transform: rotate(0);
}

.flyer-bilder img {
  width: 100%;
  object-fit: cover;
}

@media (max-width: 1199px) {
  .flyer-bilder {
    gap: 32px;
  }
}

@media (max-width: 992px) {
  .flyer-box {
    padding: 32px 16px;
  }

  .flyer-titel {
    margin-bottom: 24px;
  }

  .flyer-text {
    width: 100%;
  }

  .flyer-bilder {
    display: block;
    margin-top: 24px;
  }

  .flyer-bilder li:nth-child(n) {
    margin-bottom: 16px;
    padding: 32px 16px 56px;
    transform: none;
  }

  .flyer-bilder li:last-child {
    margin-bottom: 0;
  }
}

/* *** medienmitteilung *** */
.mitteilung {
  padding: 32px 0 112px;
}

.mitteilung .rahmen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 32px;
}

.mitteilung-kopf {
  color: #fff;
}

/* der rechte rand schiebt den untertitel auf eine eigene zeile */
.mitteilung-titel {
  position: relative;
  z-index: 5;
  display: inline;
  margin-right: 100%;
  padding: 0 8px;
  background-color: #221b35;
  font-size: var(--text);
  font-weight: 700;
  line-height: var(--text-zeile);
}

.mitteilung-titel::after {
  content: "\A";
  white-space: pre;
}

.mitteilung-untertitel {
  display: inline;
  background-color: #221b35;
  font-size: var(--titel);
  line-height: 1.3;
}

.mitteilung-text {
  align-self: end;
  padding-top: 16px;
  color: #221b35;
  font-size: var(--text);
  line-height: var(--text-zeile);
}

@media (max-width: 991px) {
  .mitteilung .rahmen {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* *** danke *** */
.danke {
  padding: 160px 0 32px;
  background-color: #221b35;
}

.danke-titel {
  width: calc((100% + 32px) * 0.6666666667 - 32px);
  margin: 0 auto 48px;
  color: #fff;
  font-size: var(--gross);
  font-style: italic;
  line-height: 1;
  text-align: center;
}

@media (max-width: 991px) {
  .danke-titel {
    width: calc((100% + 32px) * 0.8333333333 - 32px);
  }
}

@media (max-width: 768px) {
  .danke {
    padding-top: 80px;
  }
}

/* *** fuss *** */
.fuss {
  padding: 80px 0;
  background-color: #221b35;
  color: #fff;
}

.fuss-raster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  padding: 0 32px;
}

.fuss-spalte:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fuss-titel {
  margin-bottom: 16px;
  font-size: var(--mittel);
  font-weight: 700;
  line-height: var(--mittel-zeile);
}

.fuss-social {
  height: 26px;
}

.fuss-social a {
  display: block;
  width: 20px;
  height: 20px;
  color: #fff;
}

.fuss-social svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.fuss-text {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: var(--klein-zeile);
}

.fuss-text a {
  color: #fafafa;
}

.fuss-text a:hover,
.fuss-text a:focus {
  color: #c7c7c7;
}

@media (max-width: 992px) {
  .fuss-spalte:first-child {
    margin-bottom: 40px;
  }

  .fuss-titel {
    margin-bottom: 40px;
  }

  .fuss-text:last-child {
    margin-bottom: 40px;
  }
}

@media (max-width: 991px) {
  .fuss-raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .fuss-raster {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 16px;
  }
}
