/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --max-width:1200px;
  --max-width-wide:1300px;
  --gap: 25px;
  --margin-bottom: 100px;
  --border-radius: 5px;
  --box-shadow: 2px 2px 8px #ccc;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: Helvetica, sans-serif;
  font-size: 1.1rem;
  color:#333;
  letter-spacing: 0.02rem;
  line-height: 1.8rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr auto;
}

/* === TYPOGRAPHY === */
.h-main {
  font-size: 2.6rem;
  line-height: 4rem;
  font-weight: 500;
  margin:100px auto 80px;
}

.h-sub {
  font-size: 2rem;
  line-height: 2.4rem;
  font-weight: 400;
}

.h-theme {
  font-size: 1.3rem;
  line-height: 1.5rem;
  font-weight: 600;
}

.h-txt {
  font-size: 1.3rem;
  line-height: 1.5rem;
  font-weight: 600;
  margin-top:3em;
}

.h-small {
  font-size: 0.95rem;
  margin: 0;
  font-weight: 400;
}

p {
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
}

.center { text-align: center; }
.bold { font-weight: 600; }

.badget-neu { 
  position:absolute;
  top:0;
  left:0;
  padding: 5px 30px;
  border-radius: 0  0 8px 0;
  color:#fff;
  font-weight:500;
  letter-spacing:0.2rem;
  background:#8A2C58;
  }
 
/* === LINKS === */
a {
  text-decoration: none;
  color: #333;
  transition: opacity 0.1s ease;
}

a:hover {
  opacity: 0.85;
}

a:focus, a:active {
  color: var(--link-color, #333);
}

/* === LAYOUT === */
main { 
  grid-column: 1 / 2; 
  grid-row: 3 / 4;
}

section {
  width: 100%;
  margin-bottom: 50px;
}

header {  
  display: grid;
  width:100%;
  max-width:1800px;
  height: 550px;
  margin: 0 auto 150px;
  grid-template-columns: 40% 60%;
  grid-template-areas: "header-item-txt header-item-img";
}

.outer {
  width: 100%;
  background: #f1f1f1 /*url('/media/index/outer/outer.png') 50% / cover no-repeat*/;
  margin: 200px 0 0;
  padding: 50px 0 80px;
}

  .inner,
  .inner-themen,
  .inner-pinnwand {
    width: 90%;
    max-width: var(--max-width);
    margin:100px auto;
  }
  
  .inner-themen {
    margin:var(--gap) auto;
  }

/* === MEDIA === */
img, video {
  display: block;
  max-width: 100%;
  height: auto;
  cursor: pointer;
}


/* === BUTTONS === */
.div-btn-left  { justify-content: flex-start; }
.div-btn-center{ justify-content: center; }
.div-btn-right { justify-content: flex-end; }

.div-btn-left,
.div-btn-center,
.div-btn-right {
  display: flex;
  margin: 20px 0;
}

.btn-standard,
.btn-type-1,
.btn-type-2,
.cookie-banner button {
  display: inline-block;
  margin: 20px 0;
  padding: 15px 30px;
  cursor: pointer;
  color: #273958;
  letter-spacing: 0.1rem;
  text-decoration: none;
  border: 2px solid #273958;
  border-radius: 30px;
  transition: all 0.2s ease;
}


.btn-type-2 {
  background: #fff;
  border: none;
  font-size:1.1rem;
  font-weight:600;
}

.dl-btn {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin: 5px;
  background: #9FA858 url("/media/basic/dl-icon_w.png") center / 65% no-repeat;  
  transition: all 0.2s ease;
  cursor: pointer;
}

  .dl-btn:hover,
  .dl-btn:focus {
    background: #D1A858 url("/media/basic/dl-icon_w.png") center / 70% no-repeat;
  }

.dl-count {
  position: absolute;
  display: flex;
  align-items: center;
  height: 30px;
  width: auto;
  bottom: 12px;
  right: 5px;
}

  .dl-count img {
    display: flex;
    justify-content: flex-start;
    width: auto;
    height: 10px;
    padding-right: 5px;
  }

  .dl-txt {
    display: inline-block;
    font-size: 1rem;
    color: #444;
  }

/* === GRID SYSTEM === */
.grid {
  display: grid;
  grid-auto-rows: auto;
  gap: var(--gap);
  width: 100%;
}

header .grid { gap: 0; }

.grid-a { 
  grid-template-columns: 1fr; 
  margin-bottom: var(--gap);
}

.grid-b { grid-template-columns: repeat(2, 1fr); }
.grid-c { grid-template-columns: repeat(3, 1fr); }
.grid-d { grid-template-columns: repeat(4, 1fr); }
.grid-e { grid-template-columns: repeat(6, 1fr); }

.grid-header { 
  grid-template-columns: 40% 60%; 
  gap: 0; 
  grid-template-areas: "header-item-txt header-item-img";
  box-shadow:none;
}

  .grid-item {
    position:relative;
    width: 100%;
    color: #333;
    margin: 0 auto;
    background:#fff;
    box-shadow: 1px 1px 8px #ccc;
    border-radius: var(--border-radius);
    overflow:hidden;
  }

    .grid-txt {
      padding:15px;
      margin-bottom:20px;
    }

    .grid a { 
      text-decoration: none; 
      color: inherit; 
    }

    .grid-pfeil {
      position:absolute;
      right:20px;
      bottom:15px;
      }
  
      .grid-pfeil img {
        display:inline-block;
        height:23px;
        }

/* === MASONRY === */
.masonry-holder, 
.masonry-pinnwand { 
  column-count: 3;
}

.masonry-mediathek { 
  column-count: 2; 
}

.masonry-panoramen { 
  column-count: 2; 
}

.masonry-holder,
.masonry-pinnwand,
.masonry-panoramen,
.masonry-mediathek {
  column-gap: var(--gap);
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto var(--gap);
}

  .masonry-lightbox {
    position: relative;
    width: 100%;
    margin-bottom: var(--gap);
    overflow: hidden;
  }

    .masonry-img { 
      width: 100%; 
      height: auto; 
    }
    
    .masonry-txt {
      margin: 8px 2px;
      font-size: 1rem;
    }

/* === RESPONSIVE === */
@media screen and (max-width: 1920px) {

:root {
  --max-width:1100px;
  --gap: 20px;
  --margin-bottom: 80px;
}

  header {
    height: 500px;
    max-height: none;
  }

  .btn-standard,
  .btn-type-1,
  .btn-type-2,
  .cookie-banner button {
    padding: 12px 24px;
    border-radius: 26px;
  }

  .grid-b .box-img,
  .grid-a .box-img { 
    height: 26vw; 
    max-height: 300px; 
  }
  
  .grid-c .box-img,
  .grid-d .box-img { 
    height: 16vw; 
    max-height: 200px; 
  }
    
  .grid-header { 
    grid-template-columns: 40% 60%; 
  }

  .masonry-holder, 
  .masonry-pinnwand { 
    column-count: 3; 
  }
}

@media screen and (max-width: 1290px) {
  .h-main {
    font-size: 2.4rem;
    line-height: 3.5rem;
    text-align: center;
  }

  header {
    height: 450px;
    grid-template-columns: 40% 60%;
  }

  .inner-wide,
  .inner-txt,
  .spenden-txt,
  .themenbox {
    padding: 20px 0;
  }

  .grid-c, 
  .grid-d { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media screen and (max-width: 1000px) {

  .inner,
  .inner-wide,
  .inner-galerie,
  .inner-pinnwand,
  .inner-txt {
    margin: 0 auto;
    border-radius: var(--border-radius);
  }

  .grid-b, 
  .grid-c { 
    grid-template-columns: repeat(2, 1fr); 
  }
    
  .grid-spenden { 
    grid-template-columns: 1fr; 
  }
  
  .masonry-holder,
  .masonry-pinnwand,
  .masonry-mediathek { 
    column-count: 2; 
  }
}

@media screen and (max-width: 800px) {

.h-main {
  font-size:1.8rem;
  line-height:1.5em;
  margin:40px auto;
}

.h-sub {
  font-size:1.4rem;
  text-align:center;
}

  .btn-standard,
  .btn-type-1,
  .btn-type-2,
  .dl-btn,
  .cookie-banner button {
    margin: 10px 10px;
  }
  
  header {
    height: auto;
    margin-bottom: 100px;
    grid-template-columns: 1fr;
    grid-template-rows: 0.8fr 1fr;
    grid-template-areas: 
      "header-item-img"
      "header-item-txt";
  }
  
section {
  width: 100%;
  margin-bottom: 50px;
}

  .grid-txt, 
  .box-txt, 
  .site-txt { 
    padding: 5px 10px; 
  }

  .grid-a, 
  .grid-b, 
  .grid-c, 
  .grid-spenden { 
    grid-template-columns: 1fr 1fr; 
  }

  .masonry-holder, 
  .masonry-pinnwand, 
  .masonry-mediathek { 
    column-count: 1; 
  }
}
  
@media screen and (max-width: 600px) {
  

  .grid-a, 
  .grid-b, 
  .grid-c, 
  .grid-spenden { 
    grid-template-columns: 1fr; 
  }

}
