@font-face {
  font-family: 'Swiss';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Swiss721BT-Medium/font.woff2') format('woff2'), url('/assets/fonts/Swiss721BT-Medium/font.woff') format('woff');
}
@font-face {
  font-family: 'Swiss';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Swiss721BT-Regular/font.woff2') format('woff2'), url('/assets/fonts/Swiss721BT-Regular/font.woff') format('woff');
}



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

:root {
  --max-width: 1280px;
  --main-width: calc(100% - 2rem);
  --main-padding: 1rem;
  --header-height: 5rem;
  /* --header-height: auto; */
  --black: #111;
  --red: rgb(200, 16, 46);
  --gray: #D6D9DF;
  --border: 2px solid var(--red);
  --smaller: 0.4rem;
  --small: 0.8rem;
  --larger: 1.4rem;
  --medium: 1.4rem;
  --large: 1.8rem;
  --select-border: var(--gray);
  --select-focus: var(--red);
  --select-arrow: var(--select-border);
}
@media screen and (max-width: 1000px) {
  :root {
    --main-width: calc(100% - 2rem);
    --header-height: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  :root {
    /* --main-width: calc(100% - 2rem); */
    --main-padding: 1rem;
    --larger: 1rem;
    --large: 1.4rem;
  }
}

/* Custom cursor */
/* .cursor-pointer  {
  cursor: pointer;
  cursor: url(/assets/cursor/circle-border-fill-24.svg) 12 12, pointer;
} */
/* .cursor-auto  {
  cursor: auto;
  cursor: url(/assets/cursor/circle-border-fillnone-24.svg) 12 12, auto;
} */


html {
  scroll-behavior: smooth;
  font-family: "Swiss", Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.0125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
  text-rendering: optimizeLegibility;
}
@media screen and (max-width: 768px){
  html {
    font-size: 19px;
  }
}
@media screen and (max-width: 320px){
  html {
    font-size: 16px;
  }
}

body {
  position: relative;
  margin: 0;
  width: 100vw;
  min-height: calc(100vh - var(--header-height));
  background-color: #fff;
  /* cursor: auto;
  cursor: url(/assets/cursor/circle-border-fillnone-24.svg) 12 12, auto; */
}


h1,
h2,
h3,
h4
 {
  margin: 0;
  margin-bottom: 0;
  margin-top: 0;
  font-size: 1rem;
  font-weight: 500;
}
strong {
  font-weight: 500;
}
.title, .subtitle, .lead h3, .text-body h3 {
  /* font-size: var(--larger); */
  font-size: var(--medium);
}

.lead h3 {
  padding: 1rem 0;
}
@media screen and (max-width: 768px) {
.lead h3 {
  font-size: var(--large);
}
}

p {
  width: 100%;
  height: auto;
  margin: 0;
  padding-bottom: 0rem;
}
#dataprotection p {
  padding-bottom: 1rem;
}
.lead, .text-body {
  line-height: 1.4;
  /* display: block; */
}
.centered {
  text-align: center;
}
.small {
  font-size: var(--small);
}
.normal {
  font-size: 1rem;
}
.larger {
  font-size: var(--larger);
}
.large {
  font-size: var(--large);
}
.red {
  color: var(--red);
}
.black {
  color: var(--black);
  border-color: var(--black);
}

@media screen and (max-width: 768px) {
  p {
    /* hyphens */
    -moz-hyphens: auto;
    -o-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto; 
  }
}


a {
  color: inherit;
  text-decoration: none;
}
header a {
  display: inline-block;
}
a:hover, p a {
  text-decoration: underline;
}
/* a, button {
  cursor: pointer;
  cursor: url(/assets/cursor/circle-border-fill-24.svg) 12 12, pointer;
} */
@media screen and (max-width: 768px ){
  a {
    /* Word break */
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  /* This is the dangerous one in WebKit, as it breaks things wherever */
  word-break: break-all;
  /* Instead use this non-standard one: */
  word-break: break-word;
  /* hyphens */
  -moz-hyphens: auto;
  -o-hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto; 
  }
}

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
li {
  display: inline-block;
}
@media screen and (max-width: 1000px ){
  li {
    display: block;
  }
}


img {
  display: block;
  width: 100%;
  height: auto;
}
.grid-item img:not(.link-icon) {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

picture, img {
  z-index: 1;
}
.caption {
  padding: 1em 0 1em 0;
  font-size: var(--small);
}

.logo-footer {
  width: 100%;
  max-width: unset;
}
#logo-phlu img {
  max-height: 60px;
  width: auto;
}
#logo-phsh img {
  max-height: 90px;
  width: auto;
}





header,
footer {
  width: 100vw;
  font-weight: 400;
  color: var(--black);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  height: var(--header-height);
  background-color: white;
  z-index: 3;
}

.grid-header {
  display: grid;
  grid-template-columns: 8fr 1fr 3fr;
  max-width: var(--max-width);
  width: var(--main-width);
  height: var(--header-height);
  margin: 0 auto 0 auto;
}
.main, .grid-main, .grid-swiss-scape {
  max-width: var(--max-width);
  width: var(--main-width);
  margin-left: auto;
  margin-right: auto;
  padding-top: 1rem;
  padding-bottom: 8rem;
}

.grid-nav {
  display: grid;
  height: 100%;
}
#nav-1 {
  grid-template-columns: auto auto auto 50%;
  grid-row: 2 / 3;
}
#nav-2 {
  grid-template-columns: auto auto auto auto 70%;
  grid-row: 1 / 2;
  font-size: var(--small);
}
#language-switcher {
  position: relative;
  font-size: var(--small);
}

.language-button, .language-dropdown {
  padding-left: 0.5em;
}
@media screen and (max-width: 1000px) {
  .language-button, .language-dropdown {
    padding-left: 0;
  }
}

.language-dropdown {
  display: none;
  opacity: 0;
  position: absolute;
  width: 100%;
  background-color: white;
}
.is-visible {
  display: block;
  opacity: 1;
}
.language-dropdown li {
  display: block;
}
.language-dropdown li.is-active {
  display: none;
}
.language-button {
  position: relative;
  margin: 0.5rem 0 0 0;
  cursor: pointer;
}
.language-arrow {
  position: absolute;
  top: 0.25rem;
  left: 5em;
  /* right: 6em; */
  font-size: var(--smaller);
}


#a-start {
  display: inline-block;
  position: relative;
  width: 100%;
  height: 100%;
}
#sticker-home {
  position: absolute;
  right: 0;
  top: 0;
  /* width: auto;
  height: 160px; */
  width: 100%;
  height: auto;
  max-height: 150px;
  z-index: 4;
}

.nav-link {
  padding: 0.5rem 1rem 0 0;
  transition-property: transform;
  transition-duration: 400ms;
}
#nav-1 .nav-link {
  padding-bottom: 1rem;
}
#nav-2 .nav-link {
  color: var(--red);
}


.active-link {
  text-decoration: underline;
}

.underline {
  border-bottom: 1.5px solid black;
}

#menu-button {
  display: none;
  padding: 0;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  z-index: 5;
}
#menu-button:hover {
  text-decoration: underline;
}


@media screen and (max-width: 1000px) {
  .grid-header {
    grid-template-columns: 3fr 2fr;
    grid-template-rows: var(--header-height);
    height: auto;
  }
  #header-logo {
    order: 2;
  }
  #menu-button {
    order: 1;
  }
  .grid-nav {
    order: 3;
    grid-column: 1 / span 2;
  }
  .grid-nav ul li {
    padding-bottom: 0.25rem;
  }
  #language-switcher {
    order: 4;
    grid-column: 1 / span 2;
    display: none;
    padding-bottom: 2rem;
    font-size: var(--large);
  }
  .language-arrow {
    left: 2.7rem;
    font-size: 1rem;
  }
  #nav-1, #nav-2 {
    grid-template-columns: 1fr;
    width: 100%;
    font-size: var(--large);
  }
  #nav-1 {
    display: none;
    grid-row: 1 / 2;
    padding-top: 2rem
  }
  #nav-2 {
    display: none;
    grid-row: 2 / 3;
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  
  .nav-link {
    padding-top: 0;
  }
  #nav-1 .nav-link {
    padding-bottom: 0;
  }
  
  #a-start {
    grid-column: 1 / span 1;
    grid-row: 1 / 2;
    display: block;
    min-height: 3rem;
    padding-top: 0;
    padding-bottom: 0;
  }
  
  #menu-button {
    display: inline-block;
  }
  
}
@media screen and (max-width: 768px) {
  #sticker-home {
    top: 0.5rem;
    right: 0;
    /* height: 80px; */
  }
}




/* BANNER  */

#banner {
  position: relative;
  padding-top: var(--header-height);
  
}
.banner-picture {
  display: none;
  -webkit-transition: opacity 400ms;
  transition: opacity 400ms;
}

.banner-image {
  padding-bottom: 0;
}
/* Drawing canvas  */
canvas { 
  position: absolute;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: 2;
  cursor: url(/assets/cursor/circle-gradient-1-24.svg) 12 12, auto;
}
button {
  outline: none;
  background-color: transparent;
  color: black !important;
  border: 0;
  /* border-radius: 1rem; */
  vertical-align: middle;
  text-decoration: none;  
}

button.a-content {
  font-size: 1rem;
  font-weight: 500;
  padding: 1rem 0 1rem 0;
  text-decoration: underline;
}
#clear {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.2rem 0.4rem 0.2rem 0.4rem;
  font-size: var(--small);
  background-color: rgba(255, 255, 255, 0.0);
  transition: all 2400ms;
  z-index: 3;
}
#clear:hover, #clear.pulse {
  background-color:rgba(255, 255, 255, 0.8);
}
@media screen and (max-width: 768px) {
  #banner img {
    aspect-ratio: 2 / 1;
    object-fit: cover;
  }
  canvas, #clear {
    display: none;
  }
}








/* MAP swiss-scape  */

#map-container {
  /* background-color: var(--gray); */
  /* width: 960px;
  margin: 0 auto 0 auto; */
  /* width: 100%; */
  padding-bottom: 0;
}
#map-bg {
  align-self: start;
  width: 100%;
  background-color: var(--gray);
}
.map {
  max-width: 1052px;
  margin: 0 auto 0 auto;
}


/* FILTER SECTION  */

.grid-main-swiss-scape {
  padding: var(--header-height) 0 1rem 0;
}

.grid-filter {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  column-gap: 2rem;
  position: relative;
}

.grid-filter-item {
  display: flex;
  align-items: center;
  justify-content: start;
  border-top: var(--border);
  padding: 0.5rem 0;
}
.grid-filter-item:last-child {
  border-bottom: var(--border);
}
/* .flex-item {
  align-self: stretch;
} */

/* .grid-swiss-scape a {
  cursor: url(/assets/cursor/down-arrow-cursor.svg) 16 16, pointer; 
} */


.grid-item-form {
  border: none;
  padding: 0.5rem 0;
}

/* mixitup filter select  */
form {
  /* font-size: var(--larger); */
  font-weight: 400;
}
fieldset {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
}

label, .select {
  padding: 0.25em 0.5em 0.25em 0;
}

label {
  display: none;
  font-weight: inherit;
  font-size: inherit;
}
@media screen and (max-width: 1279px) {
  label {
    display: block;
  } 
}
select, #reset-button {
  /* // A reset of styles, including removing the default dropdown arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* // Additional resets for further consistency */
  background-color: transparent;
  border: none;
  padding: 0 1em 0 0;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: inherit;
  line-height: inherit;
  outline: none;
}
.select, #reset-button {
  width: 100%;
  /* min-width: 15ch;
  max-width: 30ch; */
  position: relative;
  /* border: 1px solid var(--select-border);
  border-radius: 0.25em; */
  /* padding: 0.25em 0.5em; */
  /* font-size: var(--small); */
  cursor: pointer;
  /* line-height: 1.1; */
  background-color: #fff;
  /* background-image: linear-gradient(to top, #f9f9f9, #fff 33%); */
}

.select::after {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  right: 0.5em;
  content: "";
  width: 0.8em;
  height: 0.5em;
  background-color: var(--black);
  clip-path: polygon(100% 0%, 0 0%, 50% 100%);
}
/* .grid-filter, .select {
  background-color: #D6D9DF;
} */

#reset-button {
  top: 0;
  padding: 0.25em 1em 0.25em 0;
  font-weight: 500;
}


@media screen and (min-width: 1280px) {
  .grid-filter {
    grid-template-columns: repeat(5, 1fr);
  }
  .grid-filter-item {
    border: none;
  }
  .grid-filter-item:last-child {
    border: none;
  }
  .select {
    width: 100%;
  }
  .grid-item-form {
    border-top: var(--border);
    border-bottom: var(--border);
    padding: 0.5rem 0;
  }
}

/* MAIN BODY  */



.grid-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  row-gap: 2rem;
}
#Unterricht.grid-main {
  row-gap: 1rem;
}
/* .grid-item {} */
.grid-item-full {
  grid-column: 1 / span 2;
}


.text-body h3, .lead ul  {
  padding-bottom: 1rem;
}
.lead figure {
  margin: 2rem 0;
}


.subtitle, .title, .section-link, .grid-event, .link-item {
  color: var(--red);
}



.section-collapsed .section-link {
  cursor: pointer;
  grid-column: auto / span 1;
}
/* .modal-toggle {
  font-size: var(--larger);
} */
.collapsed {
  display: none;
}



.padding-bottom {
  padding-bottom: 1rem;
}
.padding-top {
  padding-top: 1rem;
}

.grid-item li {
  width: 100%;
  border-bottom: var(--border);
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.grid-item li:first-child {
  padding-top: 0;
}



.section-link {
  position: relative;
  border-top: var(--border);
  border-bottom: var(--border);
  margin-top: 0.5rem;
}
.section-link a {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
/* .homepage-link {
  margin-top: 0.5rem;
} */
.grid-link {
  row-gap: 1rem;
  grid-template-rows: masonry;
}
/* .download-arrow {
  position: absolute;
  right: 0;
} */

.read-more span {
  padding-left: 1.5rem;
}
.link-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 0.8rem;
  width: auto;
  display: inline-block;
  object-fit: contain;
}
.arrow-down {
  right: 0;
}
.arrow-right {
  left: 0;
}

.grid-link section {
/* .grid-link section, .grid-blogindex section { */
  border-bottom: var(--border);
  padding-bottom: 1rem;
}

.grid-swiss-scape {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 1rem;
  row-gap: 1rem;
}
.grid-item-asset {
  font-size: var(--small);
}
.grid-item-asset .audio-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  /* height: 0;
  padding-bottom: 100%; */
}
.audio-container audio {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.grid-item-form, .grid-item-info, .grid-item-pagination {
  grid-column: 1 / span 5;
}

.grid-item-info {
  display: none;
}
form div {
  display: inline;
}
.grid-metadata {
  display: grid;
  grid-template-columns: 100px auto;
  padding-top: 0.5rem;
  /* color: var(--red); */
  -webkit-hyphens: auto;
  hyphens: auto;
  word-break: break-word;
}
.grid-metadata div {
  border-bottom: var(--border);
  border-color: black;
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}


@media screen and (max-width: 768px) { 
  .grid-main {
    grid-template-columns: 1fr;
    /* row-gap: 1rem; */
    padding-top: 1rem;
    padding-bottom: 6rem;
  }
  .grid-main-swiss-scape {
    padding: var(--header-height) 0;
  }
  .grid-item-asset .audio-container {
    aspect-ratio: 3/1;
  }

  .grid-link {
    row-gap: 1rem;
  }
  .grid-item-full {
    grid-column: 1 / span 1;
  }
  .padding-top {
    padding-top: 0.5rem;
  }
  .link-item {
    width: 100%;
  }
  
  .grid-item-info, .grid-item-pagination {
    grid-column: 1 / span 2;
  }
}

@media screen and (max-width: 1023px) { 
  .grid-swiss-scape {
    grid-template-columns: 1fr 1fr;
  }
  .grid-item-form {
    grid-column: 1 / span 2;
  }
}
@media screen and (max-width: 767px) { 
  .grid-swiss-scape {
    grid-template-columns: 1fr;
  }
  .grid-item-form {
    grid-column: 1 / span 1;
  }
}

/* EVENT ITEM */

.grid-event {
  display: grid;
  grid-template-columns: 1fr 3fr;
  position: relative;
}
.event-name, .event-value {
  border-bottom: var(--border);
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.event-name {
  grid-column: 1 / span 1;
}
.event-value {
  grid-column: 2 / span 3;
}
.info-sticker {
  position: absolute;
  right: 0.5rem;
  top: 0%;
  transform: rotate(10deg);
  width: 25%;
  height: auto;
}

@media screen and (max-width: 768px) {
.grid-event {
  grid-template-columns: 1.3fr 2.7fr;
}
.info-sticker {
  display: none;
  /* top: -115%; */
}
}
@media screen and (max-width: 320px) {
  .grid-event {
    hyphens: auto;
  }
}

.grid-blogindex {
  row-gap: 1rem;
}
.grid-blogindex section {
  border-bottom: var(--border);
}
/* .grid-main-blog {
  grid-template-columns: repeat(8, 1fr);
  row-gap: 2rem;
} */
.grid-item-3-4 {
  grid-column: 1 / span 3;
}

.blog-body {
  column-count: 2;
  column-gap: 2rem;
  padding-top: 1rem;
}
.blog-body img, .blog-body .text-body {
  padding-bottom: 1rem;
}

.blog-date, .blog-author {
  padding: 0.5rem 0 0.5rem 0;
}
.grid-main-blog ol {
  /* list-style-type:lower-alpha; */
  margin: 0;
}
ol.alpha-list {
  list-style-type: lower-alpha;
}
.grid-main-blog li {
  display: list-item;
  border: none;
}
.grid-main-blog img {
  width: 100%;
}
.grid-main-blog .text-body {
  color: var(--black);
}

@media screen and (max-width: 1000px) {
  .grid-item-3-4 {
    grid-column: 2 / span 6;
  }
  .grid-main-blog img {
    width: 100%;
  }
}
@media screen and (max-width: 768px) {
  /* .grid-main-blog {
    grid-template-columns: 1fr;
  } */
  .grid-item-3-4 {
    grid-column: 1 / span 1;
  }
  .grid-main-blog img {
    width: 100%;
  }
  .blog-body {
    column-count: 1;
  }
  .blog-body .section-link {
    border-bottom: none;
  }
}


/* FOOTER  */

footer {
  height: auto;
  margin-bottom: 1rem;
  font-size: var(--small);
}
.grid-footer {
  display: grid;
  grid-template-columns: auto auto auto auto;
  column-gap: 1rem;
  row-gap: 1rem;
  position: relative;
  max-width: var(--max-width);
  width: var(--main-width);
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

#impressum, #dataprotection {
  padding-top: 6rem;
  padding-bottom: 2rem;
  grid-column: 1 / span 5;
}
@media screen and (max-width: 768px) {
  .grid-footer {
    grid-template-columns: 1fr;
  }
  #logo-phsh {
    grid-row: 1 / span 1;
  }
  #logo-phsh img {
    width: 70%;
  }
  #logo-bak {
    grid-row: 2 / span 1;
  }
  #language-switcher-footer {
    grid-row: 3 / span 1;
  }
  #impressum, #dataprotection {
    grid-column: 1 / span 1;
    padding-top: 3rem;
  }
}
footer a {
  display: inline-block;
  width: 100%;
}
footer span {
  display: block;
  /* width: 100%; */
}
#dataprotection a {
  display: inline;
  text-decoration: underline;
}
.title-footer {
  color: var(--red);
}



.border {
  border: 2px solid tomato;
}

.lazy {
  opacity: 0;
}

.hidden {
  display: none;
  opacity: 0;
}
.visible {
  display: block !important;
  opacity: 1;
}
.auto-height {
  height: auto;
  min-height: 100vh;
  /* position: relative; */
}
.active {
  display: block;
  opacity: 1;
}

.red {
  color: var(--red);
}
.black {
  color: var(--black);
}

/* audio {
  width: 160px;
} */
.grid-item-asset a, .grid-item-asset audio {
  width: 100%;
}

/* d3js map */
/* svg {} */
svg circle {
  fill: var(--red);
  opacity: 0.75;
  /* z-index: 99; */
}
svg circle:hover {
  opacity: 1;
}
.canton {
  fill: #fff;
}

.canton-boundary {
  fill: none;
  stroke: #111;
  stroke-linejoin: round;
}

text {
  font-family: inherit;
  font-size: var(--small);
  text-anchor: middle;
}
.canton-label, .city-label {
  display: none;
  z-index: 3;
}


/* Responsive video container  */
.video-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.video-container::after {
display: block;
content: "";
padding-top: 56.25%;
/* Aspect ratio 9/16 * 100 = 56.25% */
}

.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}


/* Media query breakpoints
1000 : main max width
1000 : mobile menu (1023)
768 : mobile body
 */