/*
  html {
    color-scheme: light dark;
    font:
      clamp(1rem, 1rem + 0.5vw, 2rem) / 1.4 system-ui,
      sans-serif;
    tab-size: 2;
    hanging-punctuation: first allow-end last;
    word-break: break-word;
  }

  body {
    margin: 0;
    padding: 2rem;
    @media (width < 500px) {
      padding: 1rem;
    }
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  h1, h2 {
    font-weight: 900;
    letter-spacing: -0.02rem;
  }
  h1, h2, h3 {
    line-height: 1.1;
  }
  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
    margin-block-start: 0;
  }

  p, li, dd {
    text-wrap: pretty;
    max-inline-size: 88ch;
  }

  a {
    color: oklch(0.68 0.17 228);
    text-underline-offset: 2px;
    &:not(:is(:hover, :focus)) {
      text-decoration-color: color-mix(in srgb, currentColor, transparent 50%);
    }
  }

  ul, ol, dl {
    margin: 0;
    padding: 0;
    list-style: inside;
    ul, ol, dl {
      padding-inline-start: 2ch;
    }
  }

  img, video, iframe {
    display: block;
    max-inline-size: 100%;
    block-size: auto;
    border-style: none;
  }

  figure {
    inline-size: fit-content;
    margin-inline: auto;
  }
  figcaption {
    contain: inline-size;
    font-size: 90%;
  }

  input, select, textarea, button {
    font: inherit;
  }
  label {
    display: block;
  }
  input:not(
    :where(
      [type="submit"],
      [type="checkbox"],
      [type="radio"],
      [type="button"],
      [type="reset"]
    )
  ) {
    inline-size: 100%;
  }
  button, input:where([type="submit"],[type="reset"],[type="button"]) {
    background: CanvasText;
    color: Canvas;
    border: 1px solid transparent;
  }
  textarea {
    field-sizing: content;
    min-block-size: 5lh;
    inline-size: 100%;
    max-inline-size: 100%;
  }

  svg {
    fill: currentColor;
  }

  [aria-disabled="true" i],
  [disabled] {
    cursor: not-allowed;
  }
  [hidden] {
    display: none !important;
  }
  [disabled],
  label:has(input[disabled]) {
    opacity: 0.5;

    [disabled] {
      opacity: 1;
    }
  }

  hr {
    border-style: solid;
    border-width: 1px 0 0;
    color: inherit;
    height: 0;
    overflow: visible;
    margin-block: 2.5rem;
  }

  :target {
    scroll-margin: 3rlh;
  }

  table {
    caption-side: bottom;
    border-collapse: collapse;
    td {
      font-size: 90%;
    }
    td,
    th {
      word-break: normal;
      border: 1px solid gray;
      padding: 0.5rem;
    }
  }
  [role="region"][aria-labelledby][tabindex] {
    overflow: auto;
  }
  caption {
    font-size: 90%;
  }

  @media (prefers-reduced-motion: no-preference) {
    @view-transition {
      navigation: auto;
    }
    
    html {
      interpolate-size: allow-keywords;
      &:focus-within {
        scroll-behavior: smooth;
      }
    }
  }
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --text-color: hsl(0, 0%, 0%);
    --accent-color: color(srgb 0 0 1);
    --padding-inline: 1rem;
    --border: 5px solid black;
}

@media (min-width: 40rem) {
    :root {
        --padding-inline: 4rem;
    }
}

@supports (color: color(display-p3 1 1 1)) {
    :root {
        --accent-color: color(display-p3 0 0 1);
    }
}

@font-face {
    font-family: "roboto";
    src: url(fonts/Roboto-VariableFont_wdth\,wght.ttf);
}

.hidden {
    height: 0;
    position: absolute;
    width: 0;
}

svg.icon {
    width: 1em;
    height: 1em;
    color: currentColor;
    vertical-align: -20%;
}

html {
    font-family: roboto, sans-serif;
    font-size: 18px;
    margin: 0;
    padding: 0;
    border: none;
}

body {
    margin: 0;
    padding: 0rem;
    min-width: 100%;
    display: flex;
    flex-direction: column;
}

img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.site {
    min-height: 100dvh;
    display: grid;
    /* grid-template-rows: auto 1fr auto; */
    grid-template-columns: repeat(6, 1fr);
    gap: 0 1rem;
    margin: 0;
}

.site > * {

}

.site header {
    display: contents;
}

@keyframes bounce-out {
    0% {
        top: 50%;
        left: calc(var(--padding-inline) + 50px); /* center of logo image */
        opacity: 0;
    }

    35% {
        opacity: 0;
    }

    100% {
        top: var(--top-offset);
        left: calc(var(--padding-inline) + 100px);
        opacity: 1;
    }
}

.site header .logo {
    padding-inline-start: var(--padding-inline);
    grid-column-start: span 6;
    grid-row-start: 1;
    grid-row-end: 2;

    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    margin-block: 1rem 0rem;

    @media (min-width: 40rem) {
        display: block;
        grid-column-start: span 2;
        grid-row-end: 2;
        margin-block: 1rem 2rem;
    }

    position: relative;
}

/* subgrid items */
.site header .logo > a {
    grid-column-start: span 3;
}

.site header .logo > nav {
    grid-column-start: span 3;
}

.site header .logo nav li a {
    
    color: var(--text-color);
    font-weight: 350;
    /*padding: 0.2em 0.6em;/*/
    line-height: 1.5;
    display: inline-block;
    margin-block-end: 0.15rem;
    margin-block-end: 0.1lh;
}

@media (min-width: 40rem) {

    .site header > * {
        margin-block: 1rem 2rem;
    }

    .site header .logo nav li a {
        position: absolute;
        top: 50%;
        left: calc(var(--padding-inline) + 50px); /* center of logo image */
       
        color: var(--text-color);
        font-weight: 350;
        line-height: 1.7;
        padding: 0.2em 0.6em;
        opacity: 0;
        /* transition: all 0.2s cubic-bezier(1, -0.5, 0, 1.6); */
    }

    .site header .logo:hover nav li a {
        --top-offset: 0;
        /*
        top: var(--top-offset);
        left: calc(var(--padding-inline) + 100px);
        */
        color: var(--text-color);
        animation-name: bounce-out;
        animation-duration: 0.15s;
        animation-fill-mode: forwards;
    }

    .site header .logo:hover nav li:nth-child(1) a { --top-offset: 15%; animation-delay: 0s; }
    .site header .logo:hover nav li:nth-child(2) a { --top-offset: 50%; animation-delay: 0.2s; }
    .site header .logo:hover nav li:nth-child(3) a { --top-offset: 85%; animation-delay: 0.4s; }

    /* .site header .logo nav li a[aria-current="page"], */
    .site header .logo nav li a:hover {
        color: #fff;
        background-color: var(--accent-color);
    }
}

.site header .teaser {
    /* grid-column-start: span 3; */
    font-size: medium; /* why?! */
    font-weight: 350;
    margin-block-end: 1rem;
    margin-block-end: 1lh;

    grid-column-start: 4;
    grid-column-end: 7;
    grid-row-start: 2;
    grid-row-end: 3;

    @media (min-width: 40rem) {
        text-align: center;
        grid-column-start: 3;
        grid-column-end: 5;
        grid-row-start: 1;
        grid-row-end: 2;
    }
}

.site header nav:not(.main) {
    /* grid-column-start: span 3; */
    padding-inline-end: var(--padding-inline);
    text-align: left;
    margin-block-end: 1rem;
    margin-block-end: 1lh;

    grid-column-start: 4;
    grid-column-end: 7;
    grid-row-start: 3;
    grid-row-end: 4;

    @media (min-width: 40rem) {
        grid-column-start: 5;
        grid-column-end: 7;
        grid-row-start: 1;
        grid-row-end: 2;
    }
}

.site header nav:not(.main) ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    gap: 0.25lh;
}

.nav p {
    max-width: 300px;
}

.nav h1 {
    border: none;
}

/*.site .nav-links li{
    text-align: left;

}*/
  

h1 {
    /*background-color: darkgray;*/
    font-size: 40px;
    font-weight: 400;
    hyphens: auto;
    text-wrap: balance;
    overflow-wrap: break-word;
    margin-block: 0;
    font-family: roboto;
    font-weight: 400;
    line-height: 0.9;

    & + * {
        margin-block-start: 1rem;
    }

    @media (min-width: 40rem) {
        font-size: 80px;
    }
}

h2 {
    font-size: 20px;
    hyphens: auto;
    overflow-wrap: break-word;
    text-wrap: balance;
    font-family:Arial, Helvetica, sans-serif;
    font-family: roboto;
    font-weight: 350;

     & + * {
        margin-block-start: 1rem;
     }

    @media (min-width: 40rem) {
        font-size: 30px;
    }
}    

.textblock {
  font-size: 12px;

   & + * {
        margin-block-start: 1rem;
     }

    @media (min-width: 40rem) {
        font-size: 30px;
    }
}


h3{
    font-size: smaller;
    font-weight: lighter;
    font-family: roboto;
    font-weight: 350;
}

.home .site section {
    border-top: var(--border)
}

.site section a {
    display: block;
    padding: 1rem var(--padding-inline);
    text-decoration: none;
    color: var(--text-color);
}

.site section a:hover,
.site section.active a {
    background-color: var(--accent-color);
    color: #fff;
}

.ueberschrift {
    border-top: 0;
    border-bottom: var(--border);
    line-height: 1.1;
    margin-block: 0;
    padding-inline: var(--padding-inline);
    padding-block-end: 0.5rem;
    font-family: roboto;
    
}

.ueberschrift-program {
    border-top: var(--border);
    border-bottom: 0;
    line-height: 1.1;
    margin-block: 0;
    padding-inline: var(--padding-inline);
    padding-block-end: 0.5rem;
    font-family: roboto;
}

details summary {
    display: block;
    cursor: pointer;
    /* padding: 0.5em 0.1em 0.35em; */
    
    border-top: 4px solid transparent;
    transition: border 0.3s;
}

details summary:hover {
    border-top-color: transparent;
}

details summary img { opacity: 1.0; transition: opacity 0.3s; }
details summary:hover img { opacity: 0.9; }


details summary .expand {
    color: currentColor;
    font-size: medium;
    font-weight: 350;
    margin-block-end: 1rem;

}

details summary:hover .expand {
    color: color-mix(in srgb, var(--accent-color) 100%, #fff);
    text-decoration: underline;
    margin-block-end: 1rem;
}



p {
    hyphens: auto;
    text-wrap: balance;
    text-wrap: pretty;
    overflow-wrap: break-word;
    font-size: medium;
    font-family: roboto;
    font-weight: 350;
} 

a {
    color: currentColor;
    text-decoration: none;
}

li {
    list-style: none;
    display: block;
    font-size: medium;
    font-family: roboto;
    font-weight: 350;
}

sup {
    font-size: 40px;
}


.logo img {
    width: 100px;
}

main{
  display: contents;
}

main section {
    grid-column-start: span 6;
}



.tag {
    /*border: 3px solid brown;/*/
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: start;
    padding-inline: var(--padding-inline);
    margin-block: 1rem 2rem;
}

.tag div {
    outline: 0px solid green;
    flex-basis: 100%;
    
    max-height: fit-content;
    display: flex;
    justify-content: flex-start; 
    flex-direction: column;
    
    
    @media (min-width: 40rem) {
        /* flex-basis: calc(50% - (1rem * 1)); */
        flex-basis: 250px;
    }

    @media (min-width: 60rem) {
        /* flex-basis: auto;
        flex: 1; */
    }
}

.tag sup {
    color: blue;
    font-size: medium;
}

.tag h2 {
    margin: 0;
    max-width: 250px;
    
}

.tag p {
    margin-block: 7px;
    margin-block: 0.25lh;


}

.tag h3 {
    margin-block: 7px;
    margin-block: 0.25lh;
    
}

.tag img {
    width: 100%;
    height: 350px;
    height: max(50vh, 350px);
    /*  overflow: hidden;/*/
    object-fit: cover;
}

.tag-1 div div p {
    text-align: left;
    flex-grow: 0;
    max-width: 300px;
}

.infobox{
    position: relative;
    margin: var(--padding-inline);
    max-width: 1500px;
    height: calc(auto + 2rem);
    background-image: url(bilder/ws25werkschauMotivGesicht.webp);
    
}

.infobox::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  /*background: linear-gradient(0deg, #00000088 30%, #ffffff44 100%);*/
}

.info_text {
  color: #fff;
  gap: 0.25lh;
  padding-block: 1rem;
  margin: var(--padding-inline);
  
}

.info_text h2 {
  margin-top: 0;

}

.info_text_fliestext {
  color: #ffffff;
  gap: 0.25lh;
  padding-top: -15rem;
  padding-bottom: 1rem;

  margin-inline: var(--padding-inline);
  
  max-width: 50rem;
}


.container {
    display: grid;
    grid-template-columns: repeat(4, 200px);
    /* grid-template-columns: subgrid; */
    grid-auto-rows: minmax(250px, auto);
    align-content: center;
    justify-content: center;
    padding-inline: var(--padding-inline);
    padding-block: 20px;
    gap: 20px;
}

.container img{
    display: block;
    width: 100%;
    margin-inline: auto;
    padding: 10px;
}

.datenschutz {
  padding-block: var(--padding-inline);
  padding-inline: var(--padding-inline);
  min-width: auto;
  max-width: 1100px;
  margin-bottom: var(--padding-inline);
}

.datenschutz h2 {
  margin-block-start: 0.25lh;
  
}


footer {
    padding-block: 50px;
    grid-column-start: span 6;
    border-top: var(--border);
}

footer ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: stretch;
    align-content: center;

    @media (min-width: 40rem) {
        flex-wrap: nowrap;
    }
}

footer li {
    flex: 0 0 calc(100% / 2);

    @media (min-width: 30rem) {
        flex: 0 0 calc(100% / 3);
    }

    @media (min-width: 40rem) {
        flex: 1;
    }
}

footer li a {
    display: flex;
    height: 100%;
    align-items: center;
    padding-block: 1rem;
}

footer li a:hover {
    background-color: var(--accent-color);
}

footer img {
    display: block;
    width: 100%;
    margin-inline: auto;
    padding: 10px;
    background: #fff;
}


