/* 1. Globale Einstellungen für die gesamte Website*/
*, *::before, *::after {box-sizing: border-box;}

html {scroll-behavior: smooth;}
html {background-color: white;}
html {background-color: transparent;}

h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote {margin-top: 0;}

img, video {max-width:100%;height:auto;}

figure {margin-left:0; margin-right:0; text-align: center;}

/* 2. Grundlegende Gestaltung für Schrift und Text*/
body {font-family: system-ui, -apple-system, "Segoe UI", Roboto,"Helvetica Neue", Arial, sans-serif;font-size: 1rem;}

h1 {font-size: 2.1rem; font-weight: 500;}
h2 {font-size: 2rem; font-weight: 500;}
h3 {font-size: 1.75rem; font-weight: 500; }
h4 {font-size: 1.5rem; font-weight: 500; }
h5 {font-size: 1.25rem; }
h6 {font-size: 1rem;}

a {text-decoration-thickness: 1px; text-underline-offset: 0.1875em;}

address {font-style: normal;}

/* 3. Nützliche, allgemeine Klassen */
.visually-hidden {
  position: absolute !important;
  clip: rect(0, 0, 0, 0) !important;
  overflow: hidden !important;
  white-space: nowrap !important;

  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
}

.float-rechts {float: right; margin: 0 0 0 1rem;}
.float-links {float: left; margin: 0 1rem 0 0;}
.float-stoppen {clear: both; }

figure[class~="float-rechts"],figure[class~="float-links"] {text-align: center;}
.float-umschliessen {overflow: hidden;}

@supports (display: flow-root) {
  .float-umschliessen {
    display: flow-root;
    overflow: initial;
  }
}

body {background-color: white; min-width: 320px; max-width: 600px;  margin: 0.25rem auto;}

.site-header {background: #eee;}
.site-header h1 {margin-top: 2px;text-align: right}
.site-header p {margin-top: -10px; text-align: right}

.tibi-logo-container {display: flex; justify-content: space-between;}
.tibi-logo {margin-top: 8px;}

.site-content {line-height: 1.5; padding: 0 1rem; margin-bottom: 2rem;}

.site-footer {background-color: DarkSlateGray; text-align: right; padding: 0.5rem 1rem;}
.footer-nav ul {display: flex; list-style: none; padding: 0; margin: 0;}
.footer-nav li {margin-right: 0.5rem;}
.footer-nav li:first-child {padding-right: 0.5rem; border-right: 1px solid #eee;}
.footer-nav li:last-child {margin-right: 0; margin-left: auto;}

.site-footer a {display: block; color: white; text-decoration: none;}

body {display: flex; flex-flow: column; max-width: none; min-height: 100vh; padding: 0; margin: 0;}

.inside {max-width: 600px; padding: 0 1rem; margin: 0 auto;}

@supports (display:grid) {
  .inside {
    max-width: 960px;
  }
}

.site-content .infoboxen {padding: 1rem 0;}
.site-content .infobox {margin: 1rem 0;}
.site-header, .site-nav, .site-content, .site-footer {padding-left: 0; padding-right: 0;}
.site-content {flex: 1;}
.site-nav {
  position: sticky;
  top: 0;
  box-shadow: 0 2px 6px rgb(51, 51, 51);
  background-color: Silver;
  color: white;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
}

.site-nav ul {padding: 0; margin: 0; }
.site-nav li {display: inline;list-style-type: none;}
.site-nav a {color: white;text-decoration: none;}
.current a {text-decoration: underline;}
.site-nav {background-color: silver; color: white;  margin-bottom: 1rem;}
.site-nav .inside {padding: 0;}
.site-nav ul {display: flex; flex-flow: column;list-style: none;  padding: 0;  margin: 0;}
.site-nav a {display: block; text-decoration: none; background: Silver;  color: black;}
.site-nav a:hover, .site-nav a:focus {background: #07b; color: white;}
.current a {background: #666; color: white; text-decoration: underline;}

.no-js .menubutton {display: none; }
.js .menubutton {
  display: flex;
  align-items: center;
  cursor: pointer;
  background: inherit;
  color: white;
  font: inherit;
  text-align: center;
  padding: 0.5rem 1rem;
  border: 0;
  margin: 0;
}

.js .menubutton::before {
  content: url(../bilder/menuburger.svg);
  width: 1rem;
  height: 1rem;
  margin-right: 0.25rem;
}

.js .site-nav ul {
  max-height: 0;
  overflow: hidden;
}

.js .showmenu+ul {
  max-height: 100rem;
  transition: max-height 0.5s ease-in-out;
  overflow: auto;
}

.js .showmenu.menubutton::before {
  content: url(../bilder/menuclose.svg);
}

@media screen and (min-width: 600px) {
  .menubutton {
    display: none !important;
  }

  .site-nav {position: sticky; top: 0;}
  .site-nav .inside { padding: 0 1rem;}
  .site-nav ul {max-height: none !important; flex-flow: row; padding: 0;}
  .site-nav li {flex: 1;max-width: 10rem;text-align: center;border-left: 1px solid #eee;}
  .site-nav li:last-child {border-right: 1px solid #eee;}
  .site-content a:link {color: #07b;}
  .site-content a:visited {color: #3ad;}
  .site-content a:hover,.site-content a:focus {color: #f63;}
  .site-content a:active {color: #ec3;}

  .infoboxen {background-color: #eee;padding: 1rem; margin-bottom: 1rem;}

  @media screen and (min-width: 600px) {
    .infoboxen>.inside {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr 1fr;
      grid-gap: 1rem;
    }
  }

  .infobox {
    display: flex;
    flex-flow: column;
    text-align: center;
    background-color: white;
    padding: 1rem;
    margin: 1rem;
  }

  .infobox p:last-child {margin-top: auto;}
  .infobox a {text-decoration: none;}

  .archivboxen {margin-bottom: 0.25rem;}
  .archivboxen>.inside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    grid-gap: 0.8rem;
  }

  .archivbox {
    display: flex;
    flex-flow: column;
    font-size: 0.90rem;
    font-weight: 600;
    text-align: center;
    background-color: #eee;
    margin-bottom: 0.4rem;
    box-shadow: 3px 3px darkolivegreen;
  }
  .avlb {box-shadow: 3px 3px black;}

  .archivbox a {text-decoration: none;}
  .archivbox a:link {color: black;}
  .archivbox p:last-child {padding: 0.25rem;margin-top: auto;}
  

  @media screen and (min-width: 600px) {
    .kundenstimmen>.inside {display: grid; grid-template-columns: 1fr 1fr; grid-gap: 1rem;}
    .kundenstimmen h2:first-child {grid-column: 1/3;} }

  .kundenstimme {
    text-align: center;
    background-color: #eee;
    color: black;
    background-image: linear-gradient(to right, #eee, whitesmoke);
    box-shadow: 0 1px 3px rgb(51, 51, 51, 0.3);
    padding: 1rem;
    border-left: 5px solid #07b;
    margin: 0;
    margin-bottom: 1rem;
    transform: rotate(-5deg);
  }

  .kundenstimme blockquote {margin: 0;}
  .kundenstimme p:first-child {font-size: 1.25rem;font-weight: bold;}

  @media screen and (min-width: 600px) {
    .seite-news .site-content>.inside {
      display: grid;
      grid-template-columns: 2fr 1fr;
      grid-column-gap: 3rem;
      grid-row-gap: 1rem;
      grid-template-areas:
        "intro intro"
        "beitragsliste sidebar";
    }
    .seite-news .content-intro {grid-area: intro;}
    .seite-news .beitragsliste {grid-area: beitragsliste;}
    .seite-news .linklisten {grid-area: sidebar;}
  }

  .beitragsliste h3, .linklisten h3 {padding-top: 0.5rem; border-top: 1px solid whitesmoke;margin-bottom: 0.25rem;}
  .beitragsliste article, .linklisten section {margin-bottom: 3rem; }
  .beitragsinfo {color: gray;}

  .linklisten section {background-color: transparent;}
  .linklisten summary {background-color: silver; padding: 0.25rem; cursor: pointer;}
  .linklisten details {padding-left: 0.5rem;}

  .mitglieder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-gap: 1rem;

    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mitglied {
    text-align: center;
    font-size: 0.85rem;
    padding: 0.25rem;
    border: 1px solid #999;
  }

  .mitglied h4 {
    background: #07b;
    color: white;
    font-size: 1rem;
    padding: 1rem;
    margin: -0.5rem -0.5rem 1rem -0.5rem;
  }

  .mitglied a {
    text-decoration: none;
    font-size: 1.5rem;
  }

  .kontaktformular form {
    max-width: 580px;
    background-color: #eee;
    padding: 1rem;
  }

  .kontaktformular div {margin-bottom: 1rem;}
  .kontaktformular label {cursor: pointer;}
  .kontaktformular label[for] {display: block;}
  .kontaktformular button {
    background-color: #07b;
    color: white;
    padding: 0.5rem;
    border: none;
    font-size: inherit;
    cursor: pointer;
  }

  @media print {
    * {
      box-shadow: none !important;
      text-shadow: none !important;
    }

    html {
      background-color: white;
      color: black;
    }

    .site-nav,
    .site-footer {
      display: none;
    }
  }

  /* Meine Ergänzungen */
  hr {background: transparent; border: none;}

  span-red {color: #EF3F3F;text-shadow: 0px 1px 0px #000;}
  span-green {color: #03793D;text-shadow: 0px 1px 0px #000;}
  span-blue {color: #03793D;text-shadow: 0px 1px 0px #000;}

  del {padding-right: 0.5rem;}

  /* GRIDS erstellen */
  .tibi-grid-container{
    grid-template-columns: auto 250px;
    display:grid;}
   .tibi-grid-container-box{text-align: left;}
   .tibi-grid-container-bild {margin-top: 54px; margin-left: 24px;}

  .tibi-grid2 {
    display: grid;
    margin: 0;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 1rem;
  }
  .tibi-grid2-box {text-align: left;}

  /* Jahresprogramm erstellen */
  .tgva-a, .tgva-b {margin-bottom: 0.5rem; padding: 0.5rem;}
  .tgva-a {background-color: #eee;}
  .tgva-b {background-color:gainsboro;}
  .tg-table{font-size: 1em; text-align: left;}

  .tg-datum, .tg-datum-kommt {padding-left: 0.5rem;}
  .tg-datum-kommt {font-weight:600;}

  .tg-titel, .tg-titel-kommt {text-align: left}
  .tg-titel-kommt{font-weight:600 ;}

  .tg-uhrzeit, .tg-uhrzeit-extra {padding-left: 1rem;}
  .tg-uhrzeit-extra {color:red; font-weight:600;}

  .tg-referent{text-align: left;} 
  .tg-ort {text-align: left;}
  .tg-vorschau a {font-weight: bold;}


  /*PDF Dokumente - Links */
  .pdf-dokument {display: flex; text-align: left; margin: 0 0.5rem;}

  /* Änderungen im Footer */
  .tibi-copyright {
    padding-top: 1rem;
    padding-bottom: 1rem;
    color: white;
    text-align: right;
  }

  .tibi-grid-footer {
    display: grid;
    margin: 0;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
  }

  .tibi-grid-footer>div {
    color: white;
    padding: 0.1rem;
    text-align: left;
  }

  .tibi-grid-footer ul{
    list-style-type: none;
  }

  /*Diskussionen */
  .goback {
    display: block;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .alink-anker {
    display: block;
    padding-top: 3rem;
  }

  .pko {
    display: inline;
    background-color: yellow;
    font-style: italic;
    font-weight: 500;
  }

  /*** Buttons */

  .tibi-buttons>.inside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100px, 100%), 1fr));
  }

  .tibi-button,
  .tibi-button-pdf {
    display: flex;
    flex-flow: column;
    font-size: 1.10rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem;
    margin: 0.5rem;
  }

  .tibi-button {background-color: #03793D; box-shadow: 4px 4px black;}
  .tibi-button a {color: white !important; text-decoration: none;}
  .tibi-button-pdf {background-color: LightGray;box-shadow: 4px 4px black;}
  .tibi-button-pdf a {color: black !important;text-decoration: none;}

  /*** Buttons für Jahresberichte*/
  .tibi-jahre>.inside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(75px, 100%), 1fr));
  }

  .tibi-jahr {
    display: flex;
    flex-flow: column;
    font-size: 1.10rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem;
    margin: 0.5rem;
    background-color: #03793D;
    box-shadow: 3px 3px black;
  }

  .tibi-jahr a {color: white !important;text-decoration: none; }

  /*** Pictures */

  #gallery-2-startseite {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
    gap: 1em;
  }
  #gallery-2-startseite>img {
    box-shadow: 5px 10px #888888;
    transform: rotate(-2deg);
  }

  .gallery-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
    gap: 1em;
    }
  .gallery-2>figcaption {grid-column: 1 / -1;}

  .gallery-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16em, 1fr));
    gap: 1em;
    margin-top: 2rem;
    margin-bottom:2rem ;
  }
  .gallery-3>figcaption {grid-column: 1 / -1;}

  .gallery-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12em, 1fr));
    gap: 1em;
  }
  .gallery-4>figcaption {grid-column: 1 / -1;}

  .gallery-vitrine {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12em, 1fr));
    gap: 1em;
  }
  .gallery-vitrine>figcaption {grid-column: 1 / -1;}

  .gallery-lbs{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12em, 1fr));
    gap: 1em; 
    background-color:gainsboro;
    padding:0.5rem;
  }

  .gallery-lbf{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12em, 1fr));
    gap: 1em; 
    background-color:gainsboro;
    padding:0.5rem;
  }

  /* lbs und lbf wird bei masonry und in Einzelfällen benötigt */
  .lbs{
    background-color:darkgray;
    padding:0.5rem;
  }

  .lbf{
    background-color: gainsboro;
    padding:0.5rem;
  }

  .td-titel {padding-left: 1rem;}
  .td-uhrzeit,  .td-uhrzeit-extra { text-align: center;}
  .td-uhrzeit-extra {background: yellow;}

  .ausstellung-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
  }

  .ausstellung-table td {padding-left: 1.5rem;}
  .ausstellung-table tbody tr {border-bottom: 1px solid #dddddd;}
  .ausstellung-table tbody tr:nth-of-type(even) {background-color: #f3f3f3;}
  .ausstellung-table tbody tr:last-of-type {border-bottom: 2px solid #03793D;}
  .ausstellung-table tbody tr:first-of-type {border-top: 2px solid #03793D;}
  .ausstellung-table a:link {text-decoration: none;}

  .padblock{padding:5px 0px; display:block}
  .pad10 {padding: 10px 0px;}
  .pad20 {padding: 20px 0px;}
  .pad30 {padding: 30px 0px;}
  .pad40 {padding: 40px 0px;}
  .pad50 {padding: 50px 0px;}
  .pad10-grau {
    display: box; 
    padding: 10px 0px;background-color: silver;}

  .float-stoppen{clear:both;}    

  .parent {
    position: relative;
    /*  max-width: 800px; */
    margin: 0 auto;
  }

  .parent img {
    vertical-align: middle;
  }

  .parent .text {
    position: absolute;
    bottom: 0;
    background: rgb(0, 0, 0);
    /* Fallback color */
    background: rgba(0, 0, 0, 0.5);
    /* Black background with 0.5 opacity */
    color: #ffffff;
    text-align: center;
    width: 32%;
    padding: 1px;
  }

  .parent .text .h3 {
    margin: 0px;
    padding: 0px;
  }

  .startseitebild img {
    border-bottom: 6px;
    border-color: red;
  }

  .searchword {
    color: #222;
    background-color: #ff6;
    border: 1px dotted #ff6;
  }

  .searchword0 {
    color: #222;
    background-color: #ff6;
    border: 1px dotted #ff6;
  }

  .searchword1 {
    color: #222;
    background-color: #a0ffff;
    border: 1px dotted #0affff;
  }

  .searchword2 {
    color: #222;
    background-color: #9f9;
    border: 1px dotted #9f9;
  }

  .searchword3 {
    color: #222;
    background-color: #f99;
    border: 1px dotted #f99;
  }

  .searchword4 {
    color: #222;
    background-color: #f6f;
    border: 1px dotted #f6f;
  }

  .searchword5 {
    color: #fff;
    background-color: #800;
    border: 1px dotted #800;
  }

  .searchword6 {
    color: #fff;
    background-color: #0a0;
    border: 1px dotted #0a0;
  }

  .searchword7 {
    color: #fff;
    background-color: #886800;
    border: 1px dotted #886800;
  }

  .searchword8 {
    color: #fff;
    background-color: #004699;
    border: 1px dotted #004699;
  }

  .searchword9 {
    color: #fff;
    background-color: #909;
    border: 1px dotted #909;
  }

  .mysuchformular {
    text-align: center;
    margin-bottom: 1rem;
  }

  #suchbegriff {
    font-size: 1.1rem;
    width: 560px;
  }
  
  dl {display: grid; 
    grid-template-columns: auto 1fr;
    grid-gap: 0.4rem;
    background:#eee;
    padding: 1rem;
    border: 1px solid darkgreen;
  }

  dt {font-weight: 500;}
  dd {margin-left: 0.6rem;}
  
  .masonryholder {
    column-count: 4;
    column-gap: 2px;
    max-width: 1600px;
    margin: 0 0 0 0;
  }

  .masonryblocks {
    display: inline-block;
    background: gainsboro;
    margin: 0 0 2px 0;
    padding: 5px 5px 0px 5px;
    width: 100%;
    box-sizing: border-box;
  }

  .masonryblocks img {width: 100%;}

  @media screen and (max-width:768px) {.masonryholder {column-count: 1;} }
  @media screen and (min-width:769px) {.masonryholder {column-count: 2;} }
  @media screen and (min-width:1080px) {.masonryholder {column-count: 3;} }
  @media screen and (min-width:1200px) {.masonryholder {column-count: 4;} }
}



.startboxen{
  background-color: gainsboro;
  padding-top: 1em;
  padding-bottom:1em;
  text-align: center;
}

.cardbox-container {display:block;}

/*
@media only screen and (hover: none){ 
  .cardbox-container {
    &::-webkit-scrollbar {
      display: none;
    }
  }
  }
*/

@media screen and (min-width: 600px) {
  .cardbox-container{
    display: grid;
    padding:0.5rem;
    grid-auto-columns: calc(40% - 4rem);
    grid-auto-flow: column;
    grid-gap: 16px;
    overflow-x: auto;
    background-color: gainsboro;
  }
}
  
  .cardbox {  
    background-color:#eee;
    font-size: 0.90rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
    box-shadow: 3px 3px black;
  }

  .cardbox img {width: 100%; height:auto;}  
  .cardbox a {text-decoration: none;}
  .cardbox a:link {color: black;}
  .cardbox p:last-child {padding: 0.25rem;margin-top: auto;}


/*====================*/
.videocontainer{
  display:block;
  background-color: #eee;
  margin-bottom: 3rem;}

@media screen and (min-width: 800px) {
.videocontainer{
  display:grid;
  grid-template-columns: repeat(auto-fill,minmax(20em, 1fr));
  gap: 1rem;
}
}

.videotext{padding:1rem;}

.termincontainer{
  display:flex;
  flex-direction: row;
  gap: 0.75rem;
  margin-bottom:0.5rem;
  background-color: #eee;
}

.termindatum{
  display:flex;
  flex-direction: column;
  justify-content: center;
  padding:0.5rem;
  margin:0.5rem; 
  text-align: center;
}
.termindatum-kommt{
  background-color: #03793D; 
  font-weight: 600;
  color:white;
  border-radius: 0.5rem;
  box-shadow: 8px 5px 5px #888888;
}
.termindatum-kommt-extra{background-color:#EF3F3F;}

.terminbeschreibung{
  display:flex;
  flex-direction: column;
  padding:0.5rem;
  font-size: 1rem;
}

/* Terminangaben auf der Aktuell Seite */
.termin-aktuell-article{
  display:flex;
  flex-direction: column;
  background-color: #eee;
  border-radius: 1.5rem;  
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}
.termin-aktuell-article h4{margin-left:1.5rem; padding-top: 1rem;}

.termin-aktuell-container{
  display:flex;
  margin-left:1.5rem;
  gap:1.5rem;
}

.termin-aktuell{
  display:flex;
  flex-direction: column;
  background-color: #03793D;
  font-size: 1.1rem; 
  font-weight: 600;
  text-align: center;
  color:white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 8px 5px 5px #888888;
}
.termin-aktuell-extra{background-color: #EF3F3F;}
  
.termin-aktuell-text{
  display:flex;
  flex-direction: column;
}
.termin-hinweis-container{padding: 1.5rem 1.5rem 0.5rem 1.5rem;}

.tabelle-vitrinen{background-color: #eee; padding:1rem;}

.tibi-flex{
  display:flex;
  background-image: url(../bilder/ailingen-urkunde-1250.jpg);
  margin-bottom: 3rem;
}
.tibi-1250{
  background-color: white;
  margin:4rem 4rem 1.5rem 1.5rem;
  padding: 0.75rem;
}

.clip-path-circle{clip-path: circle(50% at 50% 50%);}

.clip-ellipse{clip-path:ellipse(50% 40% at 50% 58%)}

.clip-rechts-zeiger{ 
  /*clip-path: polygon(0% 15%, 60% 15%, 60% 0%, 100% 50%, 60% 100%, 60% 85%, 0% 85%);*/
  clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 0% 100%, 25% 50%, 0% 0%);
  shape-outside: polygon(80% 0%, 100% 50%, 80% 100%, 0% 0%);
}

.image-style {
  width: 500px;
  height: auto;
}
.animation-fadeInLeft {
  animation-name: fadeInLeft;
  animation-duration: 1s;
  animation-fill-mode: both;
}
@keyframes fadeInLeft {
  0% {
      opacity: 0;
      transform: translateX(-60px) rotate(-2deg);
  }
  100% {
      opacity: 1;
      transform: translateX(0) rotate(-2deg);
  }
}

.animation-fadeInRight {
  animation-name: fadeInRight;
  animation-duration: 1s;
  animation-fill-mode: both;
}
@keyframes fadeInRight {
  0% {
      opacity: 0;
      transform: translateX(60px) rotate(-2deg);
  }
  100% {
      opacity: 1;
      transform: translateX(0) rotate(-2deg) ;
  }
}

.senkrechte-Zahlen{ font-family: monospace;                    
                    font-weight: 800;
                    font-size: 1.25rem;}

.aktueller-hinweis{
  padding: 0.7rem;
  border-radius: 12px;
  background-image: linear-gradient(to right, red, orange, yellow, green);
}  

.aktueller-hinweis a{
  font-size: 1.20rem;
  font-weight: 600;
  text-align: center;}