@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;1,400&family=Cormorant+Garamond+SC:wght@400&display=swap');

/* =========================
   FRAME / LAYOUT
========================= */

.frameBottom {
  background-image: url(../Images/jhzentrum/frameBottomNeu2.png) !important;
  background-repeat: no-repeat;
  background-size: cover;
}

.frameTop {
  min-width: 670px;
  max-width: 1600px;
  width: 100%;
  background: 0 none !important;
  background-color: #fff !important;
  border-radius: 0 !important;
  filter: none !important;
  overflow: hidden;
}

body {
  padding: 0 !important;
  background-image: none;
}

/* =========================
   TYPOGRAPHY / COLORS
========================= */

.kleeblatt {
  background-image: url(../Images/jhzentrum/kleeblatt.png) !important;
}

.imgCover {
  background-image: url(../Images/jhzentrum/imgCoverNeu.png) !important;
}

#contentMain b,
#contentMain strong,
#bereich-color,
#bereich-color a {
  color: #999900;
}

#contentMain {
  min-width: 670px;
  max-width: 1460px;
  margin: 0 auto;
}

/* =========================
   CLAIM / DECORATION
========================= */

.claim {
  background-image: url(../Images/jhzentrum/claim.png) !important;
  width: 348px;
  height: 37px;
  position: absolute;
  top: 10px;
  left: 20px;
}

/* =========================
   TOP MENU (TYPO3 HMENU)
========================= */

/* MAIN MENU WRAPPER */
#menu ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: max-content;
  padding-bottom: 20px;
}

/* TOP LEVEL ITEMS ONLY */
#menu > ul > li {
  display: inline-block;
  margin: 0 30px;
  font-weight: bold;
  position: relative; /* needed for dropdown positioning */
}

/* LINKS */
#menu a {
  text-decoration: none;
}

/* ACTIVE TOP ITEM */
#menu ul li.current > a {
  color: #999900;
}

/* =========================
   DROPDOWN STRUCTURE
========================= */

/* SUBMENU BASE */
#menu ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 150px;
  z-index: 1000;

  background: #fff;
  border: 1px solid #ddd;
  padding-bottom:0;
}

/* SHOW ON HOVER */
#menu ul li:hover > ul {
  display: block;
}

/* SHOW IF ACTIVE PATH */
#menu ul li.active:hover > ul,
#menu ul li.current > ul {
  display: block;
}

/* SUBMENU ITEMS */
#menu ul ul li {
  display: block;
  margin: 0;
  font-weight: normal;
}

/* SUBMENU LINKS */
#menu ul ul li a {
  display: block;
  padding: 8px 12px;
  white-space: nowrap;
  color: #000;
}

/* SUBMENU HOVER */
#menu ul ul li a:hover {
  background: #f5f5f5;
}

/* =========================
   TYPO3 STATES (optional but useful)
========================= */

/* active branch */
#menu ul li.active > a {
  color: #999900;
}

/* current page */
#menu ul li.current > a {
  font-weight: bold;
}

/* =========================
   LAYOUT SECTIONS
========================= */

#topContentMain {
  float: left;
  width: 100%;
  margin-bottom: 40px;
}

.divider {
  width: 100%;
  padding: 5px 0 10px;
  background-color: #bcc65d;
  text-align: center;
  margin-bottom: 50px;
}

#menuMeta {
  margin: 0 auto;
}

#menuMeta a {
  color: #000;
}

/* =========================
   LOGO TYPOGRAPHY
========================= */

.logo-smallcaps {
  font-family: 'Cormorant Garamond SC', serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: #ffffff;
}

.logo-script {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 27px;
  font-weight: 400;
  color: #ffffff;
}

#menu ul ul li.current > a {
  font-weight: normal;
  color: #999900;
  background: #f0f0f0;
}

.frameMiddle {
    position: relative;
    z-index: 1;
}

.frameBottom {
  position: relative;
}

#menuMeta {
  margin-top: -79px;
}
#contentMain a {
  color: #999900;
  text-decoration: underline;
}

/* FONT ADJUSTMENT */
@media (min-width: 901px) {
  #menu > ul > li > a {
    font-size: 18px;
  }

  #menu ul ul li a {
    font-size: 16px;
  }

  .logo-smallcaps {
    font-size: 16px;
  }

  .logo-script {
    font-size: 34px;
  }

  #contentMain {
    font-size: 18px;
    line-height: 1.65;
  }

  #contentMain h2 {
    font-size: 2rem;
    line-height: 1.25;
    margin: 0 0 16px;
  }

  #menuMeta,
  #menuMeta a {
    font-size: 16px;
  }
}


/* SME Jugendhilfezentrum — smartphone / tablet
   Needs: <meta name="viewport" content="width=device-width, initial-scale=1">
*/

html {
  -webkit-text-size-adjust: 100%;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle-label {
  display: none;
}

@media (max-width: 900px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding: 0 !important;
    background-attachment: scroll;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  .frameTop,
  .frameMiddle,
  #contentMain {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .frameTop {
    border-radius: 0 !important;
  }

  .frame-indent,
  .frame-indent-left,
  .frame-indent-right {
    margin-left: 0;
    margin-right: 0;
  }

  #topContentMain {
    float: none;
    width: 100%;
    margin-bottom: 4px;
  }

  .smeHeadline {
    width: auto;
    max-width: min(300px, calc(100% - 40px));
    height: auto;
    margin: 18px auto 0;
  }

  #sme-Logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .kleeblatt {
    margin-top: 8px;
  }

  #menu {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
  }

  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.04em;
    color: #333;
    cursor: pointer;
    user-select: none;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #999900;
    border-radius: 1px;
  }

  .nav-toggle-bars {
    position: relative;
  }

  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bars::before {
    top: -7px;
  }

  .nav-toggle-bars::after {
    top: 7px;
  }

  .nav-toggle-close {
    display: none;
  }

  #nav-toggle:checked + .nav-toggle-label .nav-toggle-open {
    display: none;
  }

  #nav-toggle:checked + .nav-toggle-label .nav-toggle-close {
    display: inline;
  }

  #nav-toggle:checked + .nav-toggle-label .nav-toggle-bars {
    background: transparent;
  }

  #nav-toggle:checked + .nav-toggle-label .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
  }

  #nav-toggle:checked + .nav-toggle-label .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
  }

  #menu ul {
    width: 100% !important;
    max-width: 100%;
    padding: 0;
  }

  #menu > ul {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
  }

  #nav-toggle:checked ~ ul {
    display: flex;
  }

  #menu > ul > li {
    display: block;
    flex: 1 1 33%;
    margin: 0;
    text-align: center;
  }

  #menu > ul > li > a {
    display: block;
    padding: 11px 6px;
    font-size: 12px;
    letter-spacing: 0.03em;
    color: #333;
  }

  #menu ul ul {
    position: static;
    display: none;
    min-width: 0;
    border: 0;
    background: #f6f7ee;
    padding: 0;
    width: 100%;
  }

  #menu > ul > li.active,
  #menu > ul > li.current {
    flex: 1 1 100%;
  }

  #menu ul li:hover > ul {
    display: none;
  }

  #menu ul li.active > ul,
  #menu ul li.current > ul {
    display: block;
  }

  #menu ul ul li a {
    padding: 9px 12px;
    white-space: normal;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
  }

  .divider {
    margin-bottom: 20px;
    padding: 10px 16px 12px;
  }

  .logo-smallcaps {
    display: block;
    font-size: 12px;
  }

  .logo-script {
    display: block;
    font-size: 22px;
    line-height: 1.15;
  }

  #contentMain {
    padding: 0 16px 40px;
    font-size: 16px;
    line-height: 1.55;
  }

  #contentMain h2 {
    font-size: 1.45rem;
    line-height: 1.25;
    margin: 0 0 12px;
  }

  #contentMain p {
    margin: 0 0 14px;
  }

  .ce-left .ce-gallery,
  .ce-column {
    float: none !important;
    width: auto !important;
    max-width: 100%;
    margin-right: 0;
  }

  .ce-nowrap .ce-bodytext,
  .ce-textpic,
  .ce-gallery,
  .ce-row {
    overflow: visible;
  }

  .ce-nowrap .ce-bodytext,
  .ce-intext .ce-bodytext {
    width: 100% !important;
    overflow: visible;
  }

  .ce-intext.ce-left .ce-gallery,
  .ce-intext.ce-right .ce-gallery {
    float: none !important;
    margin: 0 0 14px;
  }

  .ce-textpic.ce-nowrap {
    white-space: normal;
  }

  figure.image {
    display: block !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  #c157 .ce-gallery,
  #c157 figure.image,
  #c157 .image-embed-item {
    max-width: 150px;
    width: auto;
    height: auto;
    margin-top: 0;
  }

  #c172 {
    margin-top: 8px;
  }

  #c172 .ce-gallery {
    position: relative;
    overflow: hidden;
  }

  #c172 .crew-nav {
    width: 44px;
    height: 44px;
  }

  .pageImage {
    display: none;
  }

  .claim {
    position: static;
    width: auto;
    max-width: 100%;
    height: auto;
    background-size: contain;
  }

  .frameBottom {
    position: relative;
    height: 72px;
    background-size: cover;
  }

  #menuMeta {
    position: static !important;
    margin: 8px auto 0 !important;
    padding: 12px 16px 28px;
    max-width: 100%;
    text-align: center;
  }

  #menuMeta ul {
    padding: 0;
    margin: 0;
  }

  #menuMeta ul li {
    display: block;
  }

  #menuMeta ul li a {
    display: block;
    margin: 0;
    padding: 11px 8px;
    font-size: 14px;
  }

  #frameRows {
    display: block;
    padding: 16px;
    margin-bottom: 24px;
  }

  #frameRows .column {
    padding-right: 0;
    margin-bottom: 20px;
  }
}