
/*
Description: Responsives Coding fuer Seniorenheim VG Linz
Author: Ralph Segert
Relaunch / Redesign: Juni 2026
Update: - 
Author URI: https://segert.net
*/

/* - Globale Variablen: Deklarationen  */

:root {

 --step-0: .9rem;
 --step-1: 1rem;    /* 16px */
 --step-2: 1.25rem; /* 22px */
 --step-2b: 1.3rem; /* 24px */
 --step-3: 2rem;    /* 32px */
 --step-4: 3rem;    /* 48px */

  --regular: 'OpenSans Regular', sans-serif;
  --light: 'OpenSans Light', sans-serif; 
  --semibold: 'OpenSans SemiBold', sans-serif;
  --bold: 'OpenSans Bold', sans-serif;
  
  --ease-03: all 0.3s ease;  
  --bgcolor: #fff;

  --gruen: #617284;
  --blauhell: rgba(111, 127, 143, .88);
  --rot: #e6441f;
  --text: #222;
}


/* Resets */

* {
margin: 0;
padding: 0;
}

*, html {
    box-sizing: border-box;
}

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


body {
  margin: 0;
  font-family: var(--light);
  color: var(--text);
  background: var(--bgcolor);
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}
th, td {
    text-align: left;
    vertical-align: top;
}

img { 
  border: 0; 
  display: block;
  max-width: 100%;
  height: auto;
}


.cf::after {
  content: " ";
  display: block;
  clear: both; 
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.inhalt strong {
  font-family: var(--regular);
}

.skiplink {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 9999;
  padding: .75rem 1rem;
  background: #fff;
  color: #617284;
  font-family: var(--semibold);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  text-decoration: none;
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.25);
}

.skiplink:focus {
  top: 1rem;
}


/* Linkauszeichnungen */

a:focus, button:focus {
    outline: 1px solid #fff;
}

a:focus, button:focus {
    outline: 0px solid #fff;
}

header button:focus {
  outline: none;
}

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

.startseite h2 a, .startseite h2 a:visited, .startseite h3 a, .startseite h3 a:visited {
  font-family: var(--bold);
  color: #fff;
  text-decoration: none;
  transition: all .4s;
}

.startseite h2 a:hover, .startseite h3 a:hover {
  font-family: var(--bold);
  color: #000;
}

p a, p a:visited {
  font-family: var(--bold);
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid #000;
  transition: all .4s;
}

p a:hover {
  font-family: var(--bold);
  color: #000;
  border-bottom: 3px solid #fff;
}


footer a {
    text-decoration: none;
    color: inherit;
    border: none;
    transition: all .4s;
}

footer a:hover {
    color: #ddd; 
    border-bottom: 1px dotted #fff;
}



 /* Mobile Navigation: RESETS */
 
 .header .hc-nav-trigger span, 
 .header .hc-nav-trigger span::before, 
 .header .hc-nav-trigger span::after {
   display: block;
   position: absolute;
   left: 0;
   height: 4px;
   transition: all 0.3s ease;
   background: var(--gruen);
 }
 
 .header-white .hc-nav-trigger span, 
 .header-white .hc-nav-trigger span::before,
 .header-white .hc-nav-trigger span::after {
   display: block;
   position: absolute;
   left: 0;
   height: 3px;
   transition: all 0.3s ease;
   background: var(--gruen);
 }
 
 .hc-offcanvas-nav .nav-item-wrapper {
   font-size: 1.3rem;
   letter-spacing: 1px;
   font-family: var(--light);
   color: #fff;
   background-color: var(--gruen);
   border: 0;
   transition: 0.2s background ease;
 }
 
.hc-offcanvas-nav:not(.touch-device) li:not(.nav-item-custom) a:not([disabled]):hover {
   color: rgba(255,255,255,.75);
   background: transparent;
 }
 
 .hc-offcanvas-nav .nav-wrapper-1 .nav-item-link {
   font-family: var(--light);
   font-size: 1.1rem;
   color: #fff;
   background-color: transparent;
 }
 
 .hc-offcanvas-nav a.nav-next:before {
   width: 2px;
   height: 35px;
   left: -7px;
   top: 2px;
   background: transparent;
   border-radius: 2px;
 }
 
 .hc-offcanvas-nav.nav-levels-expand li.level-open > .nav-wrapper::before, 
 .hc-offcanvas-nav.nav-levels-none li .nav-wrapper::before {
   background: transparent;
 }
 
 .hc-offcanvas-nav ul li ul {
   margin-bottom: 5%;
 }
 
 .hc-offcanvas-nav.disable-body.nav-open::after,
 .hc-offcanvas-nav .sub-level-open::after {
   visibility: visible;
   background-color: #d8dfdc;
   transition-delay: 0.1s;
   background-image: url('images/logo.webp');
   background-size: 50%;
   background-repeat: no-repeat;
   background-position: 10% 11vh;

 }
 
 .hc-offcanvas-nav.nav-levels-expand .nav-wrapper.nav-wrapper-0 > .nav-content {
   overflow: scroll;
   overflow-x: visible;
   overflow-y: auto;
   box-sizing: border-box;
   max-height: 100vh;
   background-color: var(--gruen);
 }
 
 .hc-offcanvas-nav .nav-container, 
 .hc-offcanvas-nav .nav-wrapper, 
 .hc-offcanvas-nav ul {
   background-color: var(--gruen);
 }
 
 .hc-offcanvas-nav .nav-content > .nav-close:first-child + ul {
   margin-top: 4rem;
 }
 
 .hc-offcanvas-nav .nav-item-link, 
 .hc-offcanvas-nav li.nav-close a, 
 .hc-offcanvas-nav .nav-back a {
   padding: 10px 0 10px 30px;
   font-size: 1.1rem;
   color: #fff;
   z-index: 2;
   background: transparent;
   border-radius: 5px;
   transition: 0.4s background ease;
 }
 
 .hc-offcanvas-nav .nav-wrapper-0 > .nav-content > ul > li > .nav-item-wrapper > a {
   font-size: 1.3rem;
 }
 
 .hc-offcanvas-nav .nav-wrapper-1 .nav-item-link,
 .hc-offcanvas-nav .nav-wrapper-1 .nav-item-wrapper {
   font-size: 1.1rem;
 }
 
 .nav-item .active a {
   color: #fff;
 }
 
 .hc-offcanvas-nav .nav-close-button span, 
 .hc-offcanvas-nav .nav-parent .nav-next, 
 .hc-offcanvas-nav .nav-back span {
   display: inline-block;
 }
 
 .hc-nav-trigger {
   position: absolute;
   cursor: pointer;
   -webkit-user-select: none;
   -moz-user-select: none;
   user-select: none;
   display: none;
   z-index: 9980;
   width: 65px;
   right: 5%;
   min-height: 44px;
 }
 
 .hc-nav-trigger::before {
   content: "MENÜ";
   position: absolute;
   right: 82px;
   top: 50%;
   transform: translateY(-50%);
   color: var(--gruen);
   font-family: var(--bold);
   font-size: 1.5rem;
   letter-spacing: 1px;
   line-height: 1;
 }
 
 .hc-nav-trigger span {
   width: 55px;
   transform: translateY(-50%);
   transform-origin: 50% 50%;
 }
 
 .hc-nav-trigger span,
 .hc-nav-trigger span::before,
 .hc-nav-trigger span::after {
   display: block;
   position: absolute;
   left: 0;
   height: 3px;
   background: var(--gruen);
   transition: width 0.35s ease;
 }
 
 .hc-nav-trigger span::before,
 .hc-nav-trigger span::after {
   content: "";
 }
 
 .hc-nav-trigger span::before {
   top: -9px;
   width: 70px;
 }
 
 .hc-nav-trigger span::after {
   bottom: -9px;
   width: 40px;
 }
 
 .sticky-header .hc-nav-trigger {
   position: absolute;
   cursor: pointer;
   -webkit-user-select: none;
   -moz-user-select: none;
   user-select: none;
   display: none;
   z-index: 9980;
   width: 65px;
   right: 5%;
   min-height: 44px;
 }
 
 .sticky-header .hc-nav-trigger span {
   width: 55px;
   transform: translateY(-50%);
   transform-origin: 50% 50%;
 }
 
 .sticky-header .hc-nav-trigger span,
 .sticky-header .hc-nav-trigger span::before,
 .sticky-header .hc-nav-trigger span::after {
   display: block;
   position: absolute;
   left: 0;
   height: 3px;
   background: var(--gruen);
   transition: width 0.35s ease;
 }
 
 .sticky-header .hc-nav-trigger span::before,
 .sticky-header .hc-nav-trigger span::after {
   content: "";
 }
 
 .sticky-header .hc-nav-trigger span::before {
   top: -9px;
   width: 70px;
 }
 
 .sticky-header .hc-nav-trigger span::after {
   bottom: -9px;
   width: 40px;
 }
 
 .hc-nav-trigger:hover span,
 .hc-nav-trigger:hover span::before,
 .hc-nav-trigger:hover span::after {
   width: 70px;
 }

   /* OWL Resets */
      
.owl-theme .owl-nav.disabled + .owl-dots {
     margin-top: 4%;
   }
   
/* - HEADER  */


header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 10rem, 1440px);
  margin: 0 auto 1.5rem;
  background-color: #fff;
  padding: 1.6rem 0 1.4rem;
  max-height: none;
  color: #000;
  font-size: clamp(var(--step-1), 1.5vw, var(--step-2b));
  position: relative;
  z-index: 1000;
}

/* -- HEADER: Logo  */

.logo {
  flex: 0 1 auto;
  max-width: 880px;
  padding-top: 0;
}


.logo img {
  width: clamp(420px, 52vw, 880px);
  height: auto;
}

.sticky-header {
  position: sticky;
  top: 0;
  max-height: 130px;
  padding: 1rem 0;
  transition: all 0.5s ease;
  opacity: .95;
}

.sticky-header .logo {
  transform: scale(.82);
  transform-origin: left center;
  transition: transform 0.5s ease;
}

.sticky-header .main-menu {
  font-size: clamp(var(--step-1), 1.2vw, var(--step-1));
  transition: font-size 0.5s ease;
}

/* -- HEADER: Hauptmenü  */


.main-menu {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  flex-grow: 1;
  font-size: clamp(var(--step-0), 1.8vw, var(--step-2));
  justify-content: center;
  padding-right: 5%;
  margin-left: 4%;
}


.main-menu ul {
  font-family: var(--bold);
  text-transform: uppercase;
  display: flex;
  width: 100%;
  position: relative;
}

.main-menu li {
  flex: 1;
  list-style: none;
  position: relative;
}


.main-menu li a {
  display: block;
  text-align: center;
  color: #000;
  text-decoration: none;
  padding-right:0px;
  transition: all .5s;
}

.main-menu li:hover a {
  display: block;
  color: var(--rot);
  background-color: #fff;
  padding-top: 16px;
  padding-bottom: 16px;
  transition: all .5s;
  border-top-right-radius: 120px; 
  border-bottom-left-radius: 120px; 
}

.main-menu .aktiv a {
  display: block;
  color: var(--rot);
  background-color: #fff;
  padding-top: 16px;
  padding-bottom: 16px;
  transition: all .5s;
  border-top-right-radius: 120px; 
  border-bottom-left-radius: 120px; 
}

.menuetext {
  display: none;
  position: absolute;
  right: calc(5% + 82px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--gruen);
  font-family: var(--bold);
  text-transform: uppercase;
  letter-spacing: 1px;
}


.bildtext {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.bildtext img {
  flex: 0 0 320px;
}

.bildtext div {
  flex: 1;
}


/* -- GRUNDLAYOUT Startseite Seniorenheim */

.startseite {
  display: flex;
  width: min(100% - 10rem, 1440px);
  max-width: 1440px;
  margin: 0 auto;
  flex-direction: column;
}

.buehne {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  margin-block-end: 5.5rem;
}

.buehnenbilder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6.3;
  background-color: #ddd;
}

.buehnenbilder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 4s ease-in-out;
}

.buehnenbilder img.aktiv {
  opacity: 1;
}

.buehnetext {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding: 1.8rem 2rem;
  background-color: rgba(85, 105, 124, .93);
  color: #fff;
}

.buehnetext h1 {
  color: #fff;
  font-family: var(--bold);
font-size: clamp(1.7rem, 2.7vw, 1.9rem);
  text-transform: none;
}

.bewerben {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: .65rem 1.5rem;
  color: #fff;
  background-color: var(--rot);
  border: 2px solid #fff;
  font-family: var(--bold);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--ease-03);
}

.bewerben:hover {
  background-color: #b82d14;
}

.bereich {
  margin-block-end: 6rem;
}

.bereich h2 {
  margin: 0;
  padding-bottom: 3.5rem;
  color: var(--gruen);
  text-align: center;
  font-family: var(--bold);
  font-size: clamp(1.9rem, 2.1vw, 2.5rem);
  text-transform: none;
  letter-spacing: 1px;
}

.kacheln {
  display: flex;
  flex-wrap: wrap;
  gap: 0 3.5rem;
}

.kachelklein {
  display: flex;
  flex: 1 1 calc(50% - 2rem);
  min-height: 82px;
  background-color: var(--gruen);
  color: #fff;
  overflow: hidden;
  margin-bottom: 3rem;
}

.kachelklein img {
  width: 180px;
  object-fit: cover;
  background-color: #ddd;
  flex: 0 0 180px;
  border-right: 1px solid #fff;
}

.kachelklein h3 {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 1rem 1.6rem;
  font-family: var(--semibold);
  font-size: clamp(1.3rem, 1.5vw, 1.9rem);
  font-weight: normal;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.kachelklein h3 strong {
  font-family: var(--bold);
  margin-right: .35rem;
}

.kachelgross {
  position: relative;
  display: block;
  flex: 1 1 calc(50% - 2rem);
  color: #fff;
  overflow: hidden;
  margin-bottom: 3.8%;
}

.kachelgross img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  background-color: #ddd;
}

.kachelgross span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  background-color: var(--gruen);
  font-family: var(--bold);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  text-align: center;
}

.videos {
  display: flex;
  flex-wrap: wrap;
  gap: 3.5rem;
}

.video {
  flex: 1 1 calc(50% - 2rem);
}

.video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #ddd;
}

.kachelklein,
.kachelgross {
  overflow: hidden;
  transition: box-shadow .3s ease;
}

.kachelklein img,
.kachelgross img {
  display: block;
  transition: transform .3s ease;
  transform-origin: center;
}

.kachelgross span {
  background-color: rgb(97 114 132 / 90%);
  transition: background-color .3s ease;
}

.kachelklein:hover,
.kachelgross:hover {
  box-shadow: 0 .5rem 1rem rgb(0 0 0 / 15%);
}

.kachelklein:hover img,
.kachelgross:hover img {
  transform: scale(1.05);
  transition-duration: 1s;
}

.kachelgross:hover span {
  background-color: rgb(97 114 132 / 100%);
}


.inhalt li a,
.inhalt li a:visited {
  font-family: var(--regular);
  color: #fff;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid #000;
  transition: all .4s;
}

.inhalt li a:hover {
  font-family: var(--regular);
  color: #000;
  border-bottom: 2px solid #fff;
}

/* Footerbereich */

footer {
  width: 100%;
  max-width: none;
  margin-block-start: 8rem;
  background-color: var(--gruen);
  color: #fff;
}

.fussinnen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  width: min(100% - 10rem, 1440px);
  min-height: 360px;
  margin-inline: auto;
}

.fusskontakt {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 0 1 620px;
}

.fusskontakt img {
  width: 175px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .75);
}

.fusskontakt p {
  margin: 0;
  padding: 0;
  color: #fff;
 font-size: clamp(.9rem, 1.1vw, 1.25rem);
  line-height: 1.9;
  letter-spacing: .5px;
}

.fusskontakt a {
  color: #fff;
  font-family: var(--bold);
  border: 0;
}

.fussnav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 220px;
  padding-left: 4rem;
  border-left: 2px solid rgba(255, 255, 255, .55);
  flex: 0 1 760px;
}

.fussnav p {
  margin: 0;
  padding: 0 0 2rem;
  color: #fff;
  font-family: var(--regular);
  font-size: clamp(.9rem, 1.1vw, 1.25rem);
  line-height: 1.4rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.fussnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fussnav li {
  font-family: var(--regular);
  font-size: clamp(.9rem, 1.1vw, 1.25rem);
  line-height: 1.4rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}

.fussnav a {
  color: #fff;
  border: 0;
  font-size: 1rem;
}

.fussnav a:hover,
.fusskontakt a:hover {
  color: #ddd;
  border-bottom: 1px dotted #fff;
}

/* Typografie */

h1 {
  font-weight: normal;
}

h2, h3, h4 {
  font-family: var(--bold);
}

h2 {
  font-size: .2rem;
  padding-bottom: 1.4rem;
}

h3 {
  font-size: 2rem;
}

p {
  font-size: 1rem;
  line-height: 1.6em;
  padding-bottom: .8rem;
  letter-spacing: 1px;
}

.datum {
  font-size: 1.1rem;
  margin-block-end: 2%;
  padding-bottom: .6rem;
}

.inhalt .bildnachweis {
  font-size: .75rem;
  margin: -1rem 0 2rem 5%;
}

/* Buttons */
 
.btn, .btn a:visited {
  color: #fff;
  text-decoration: none;
}

button {
  all: unset;
}


.btn {
  display: block;
  width: 40%;
  margin-inline-start: 30%;
  background-color: #F0AB2C;
  border: 1px solid #fff; 
  color: #fff;
  font-family: var(--bold);
  text-transform: uppercase;
  font-size: clamp(var(--step-1), 1.3vw, var(--step-2));
  letter-spacing: 1px;
  padding: 10px 20px;
  text-align: center; 
  border-top-right-radius: 12px; 
  border-bottom-left-radius: 12px; 
  cursor: pointer;
  transition: background-color 0.4s, border-color 0.8s; 
}

.btn:hover {
  border-top-left-radius: 12px; 
  border-bottom-right-radius: 12px; 
  background-color: var(--rot);
  border-color: yellow; 
}



/* Hauptbereichsseiten */

.unterseite {
  display: flex;
width: min(100% - 10rem, 1440px);
max-width: 1440px;
margin: 0 auto;
flex-direction: column;
}

.seitenlayout {
  display: flex;
  align-items: stretch;
  background: #687d90;
}

.unternav {
  flex: 0 0 340px;
  background: #8fa2b2;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.85);
}

.unternav img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.unternav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.unternav a {
  display: block;
  padding: 19px 25px;
  font-family: 'OpenSans Regular', Arial, sans-serif;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,.85);
  background: #687d90;
}

.unternav a:hover,
.unternav a.aktiv {
  background: #8fa2b2;
}

.unternav .zurueck {
  margin-top: auto;
  background: #687d90;
}

.inhalt {
  flex: 1;
  padding: 6rem 5rem 6rem 5rem;
  color: #fff;
}


.inhalt h1 {
  font-family: var(--light);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.inhalt h2 {
  margin: clamp(0.75rem, 1vw, 1rem) 0
          clamp(0.4rem, 0.6vw, 0.7rem) 0;
  font-family: var(--semibold);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
}

.inhalt h3 {
  margin: 1.8rem 0 1.2rem 0;
  font-family: var(--regular);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.inhalt .hauptbereich  {
  margin: 6rem 0 -1rem 0;
  font-family: var(--light);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.inhalt p {
  margin: 0 0 1rem 0;
  font-family: var(--light);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  letter-spacing: 0;
}

.inhalt ul {
  list-style-type: square;
  margin-left: 2rem;
}

.inhalt li {
  margin: 0 0 1rem 0;
  font-family: var(--light);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  padding-bottom: 0.5rem;
}


.inhalt img {
  width: 86%;
  height: auto;
  margin: 2rem 9% 2rem 5%;
  border: 1px solid #bbb;
  padding: 16px;
}

.inhalt .pdfdownload img {
  width: 100%;
  height: auto;
  border: none;
  padding: 0;
}

/* PDF Download */

.pdfdownload {
  margin-top: 0;
}

.pdfdownload a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.pdficon {
  flex: 0 0 18%;
  max-width: 4rem;
}

.pdficon img {
  width: 100%;
  height: auto;
  margin: 1.2rem 0 1.2rem 0;
}

.pdftext {
  flex: 1;
  font-family: var(--regular);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  color: #fff;
}

.pdfdownload a:hover .pdftext {
  text-decoration: underline;
}


/* Termine */


.termine .rubrik {
  margin: 0 0 -0.8rem 0;
  font-family: var(--light);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
}

.termine h1 {
  margin: clamp(0.75rem, 1vw, 1rem) 0
          clamp(0.4rem, 0.6vw, 0.7rem) 0;
  font-family: var(--semibold);
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
}

.terminaktuell {
  display: flex;
  margin-bottom: 3rem;
}

.terminaktuell > img {
  width: 32%;
  height: auto;
  object-fit: cover;
}

.terminaktuell > div {
  flex: 1;
  padding: clamp(1rem, 3vw, 3rem);
}

.terminaktuell h2 {
  margin: 2rem 0 0 0;
  font-family: var(--regular);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}


.pdfbutton {
  display: inline-block;
  padding: .8rem 2.4rem;
  background: #7d90a3;
  border: 1px solid #fff;
  font-family: var(--semibold);
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  color: #fff;
  text-decoration: none;
  transition: background-color .2s ease, box-shadow .2s ease;
}

.pdfbutton:hover {
  background: #687d90;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .25);
}

.terminarchiv h2 {
  margin: clamp(0.85rem, 1.2vw, 1.2rem) 0
          clamp(1rem, 1.6vw, 1.7rem) 0;
  font-family: var(--semibold);
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  color: #fff;
}

.terminliste {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.terminliste a {
  width: calc(50% - 1.75rem);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  background: #7d90a3;
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s ease,
              border-color .2s ease,
              box-shadow .2s ease;
}

.terminliste a:hover {
  background: #687d90;
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.2);
}

.terminicon {
  max-width: 4rem;
}

.terminicon img {
  width: 100%;
  height: auto;
}

.terminliste span:last-child {
  font-family: var(--regular);
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
}

 #back-to-top {
   /* scriptgesteuerter Top-Balken */
   position: fixed;
   /* Fixiert den Balken unten */
   display: none;
   width: auto;
   right: 5%;
   bottom: 6%;
   padding: 10px 20px 12px 20px;
   background: #000;
   color: #fff;
   font-size: 130%;
   text-align: center;
   z-index: 1000;
   cursor: pointer;
   transition: all ease-in-out .3s;
   border-radius: 6px; }
 
 #back-to-top:hover {
   bottom: 5%; }



@media screen and (max-width: 820px) {
  
  header {
    width: min(100% - 3rem, 1440px);
    padding: 1.4rem 0;
    margin-bottom: 0;
    max-height: 120px;
  }
  
  .sticky-header {
    position: sticky;
    top: 0;
    max-height: 100px;
    padding-left: 0;
  }

  .logo {
    flex: 0 0 45%;
    max-width: 420px;
    padding-top: .5%;
  }
  
  .logo img {
    width: clamp(300px, 58vw, 520px);
    min-width: 0;
  }

  .main-menu {
    padding-right: 0;
  }

  .hc-nav-trigger {
    right: 3%;
  }

  .hc-nav-trigger::before {
    right: 76px;
    font-size: 1.15rem;
  }
  
  .startseite {
    width: calc(100% - 2rem);
  }

  .buehne {
    margin-block-end: 4rem;
  }

  .kacheln,
  .videos {
    gap: 1.8rem;
  }

  .kachelklein,
  .kachelgross,
  .video {
    flex-basis: 100%;
  }
  
  footer {
    gap: 2rem;
    padding: 2.5rem 5%;
  }
  
  
 .unterseite {
    padding-top: 115px;
  }
  
  .seitenlayout {
    flex-direction: column;
  }
  
  .unternav {
    flex-basis: auto;
  }
  
  .unternav .zurueck {
    margin-top: 0;
  }
  
  .inhalt {
    padding: 34px 24px 44px;
  }
  
  .terminaktuell {
    flex-direction: column;
  }
  
  .terminaktuell > img {
    width: 100%;
  }
  
  .terminliste a {
    width: 100%;
  }
  
}

@media screen and (max-width: 40em) {
  
  p a,
  p a:visited {
    font-family: var(--regular);
    border-bottom: 1px solid #000;
  }
  
 .hc-nav-trigger {
   width: 48px;
   right: 0;
   top: 18%;
   transform: none;
 }
 
 .hc-nav-trigger::before {
   right: 54px;
   font-family: var(--regular);
   font-size: .85rem;
   letter-spacing: 0;
 }
 
 .hc-nav-trigger span,
 .hc-nav-trigger span::before,
 .hc-nav-trigger span::after {
   height: 2px;
   width: 38px;
 }
 
 .hc-nav-trigger span::before {
   top: -7px;
   width: 32px;
 }
 
 .hc-nav-trigger span::after {
   bottom: -7px;
   width: 32px;
 }
 
 header {
   width: min(100% - 2rem, 1440px);
   padding: 1.2rem 0;
   max-height: 100px;
 }

.sticky-header {
   position: sticky;
   top: 0;
   max-height: 100px;
   padding: 1.2rem 0;
   margin-bottom: 1.4rem;
   opacity: 1;
 }
 
 .sticky-header .logo {
   transform: none;
 }
 
 .sticky-header .main-menu {
   font-size: inherit;
 }
 
 .sticky-header .hc-nav-trigger {
   width: 48px;
   right: 0;
   top: 18%;
   transform: none;
 }
 
 .sticky-header .hc-nav-trigger::before {
   right: 54px;
   font-family: var(--regular);
   font-size: .85rem;
   letter-spacing: 0;
 }
 
 .sticky-header .hc-nav-trigger span,
 .sticky-header .hc-nav-trigger span::before,
 .sticky-header .hc-nav-trigger span::after {
   height: 2px;
   width: 38px;
 }
 
 .sticky-header .hc-nav-trigger span::before {
   top: -7px;
   width: 32px;
 }
 
 .sticky-header .hc-nav-trigger span::after {
   bottom: -7px;
   width: 32px;
 }

 .logo {
   flex: 0 0 68%;
 }

.logo img {
   width: clamp(260px, 60vw, 390px);
   min-width: 0;
 }

  .buehne img {
    aspect-ratio: 16 / 9;
  }

 .buehnetext {
   position: static;
   flex-direction: column;
   gap: 1rem;
   padding: 1rem 1rem;
   text-align: center;
 }
 
 .buehnetext h1 {
   font-family: var(--semibold);
   font-size: 1.3rem;
   line-height: 1.5;
 }

.unterseite ul {
  display: none;
}
 
.bewerben {
   border: 1px solid #fff;
   padding: .7rem 1.4rem;
   font-family: var(--regular);
   font-size: .85rem;
   font-weight: normal;
   letter-spacing: .5px;
   text-transform: uppercase;
 }

  .bereich {
    margin-block-end: 4rem;
  }

  .bereich h2 {
    padding-bottom: 2rem;
  }

  .kachelklein {
    flex-direction: column;
  }

  .kachelklein img {
    width: 100%;
    aspect-ratio: 16 / 8;
    flex-basis: auto;
  }

  .kachelklein h3 {
    justify-content: center;
    min-height: 78px;
    text-align: center;
  }


  .kachelgross span {
    min-height: 78px;
  }

  footer {
    margin-block-start: 2rem;
  }
  
  .fussinnen {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    min-height: auto;
    padding: 1.5rem .2rem;
    width: 100%;
    text-align: center;
  }
  
  .fusskontakt {
    flex: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
  }
  
  .fusskontakt img {
    width: clamp(310px, 80vw, 460px);
    height: auto;
    border: none;
  }
  
 .fussnav {
   flex: none;
   width: 100%;
   min-height: auto;
   padding-left: 0;
   border-left: 0;
   text-align: center;
 }
 
 .fussnav p {
   font-family: var(--regular);
   font-size: 1.15rem;
   font-weight: normal;
   text-transform: none;
   text-align: center;
   margin-bottom: 1rem;
 }
 
 .fussnav ul {
   justify-content: center;
   gap: 1rem 3rem;
   font-family: var(--regular);
   font-size: 1rem;
   text-transform: none;
 }
 
 .fussnav li,
 .fussnav a {
   font-family: var(--regular);
   font-size: inherit;
   text-transform: none;
   text-decoration: none;
 }


  .subline {
    font-size: .9rem;
  }

  .btn {
    display: block;
    width: 80%;
    margin-inline-start: 10%;
    font-size: 1.1rem;
  }
}
