  /*
  Theme Name: Sexeck
  Author: Hannes Welk
  Description: Theme für Sexeck, erstellt am 03.11.2026
  */

  /* --------------------------------------------------
     reset
  -------------------------------------------------- */

  * {
    box-sizing: border-box;
    outline: 0;
  }

  html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  html,
  body,
  div,
  span,
  applet,
  object,
  iframe,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  blockquote,
  pre,
  a,
  abbr,
  acronym,
  address,
  big,
  cite,
  code,
  del,
  dfn,
  em,
  img,
  ins,
  kbd,
  q,
  s,
  samp,
  small,
  strike,
  strong,
  sub,
  sup,
  tt,
  var,
  b,
  u,
  i,
  center,
  dl,
  dt,
  dd,
  ol,
  ul,
  li,
  fieldset,
  form,
  label,
  legend,
  table,
  caption,
  tbody,
  tfoot,
  thead,
  tr,
  th,
  td,
  article,
  aside,
  canvas,
  details,
  embed,
  figure,
  figcaption,
  footer,
  header,
  hgroup,
  menu,
  nav,
  output,
  ruby,
  section,
  summary,
  time,
  mark,
  audio,
  video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
  }

  article,
  aside,
  details,
  figcaption,
  figure,
  footer,
  header,
  hgroup,
  menu,
  nav,
  section {
    display: block;
  }

  /*  ol, ul { list-style: none; }*/

  table {
    border-collapse: collapse;
    border-spacing: 0;
  }





  /* --------------------------------------------------
   typography
-------------------------------------------------- */

  html {
    font-size: 15px;
  }

  @media only screen and (min-width : 600px) {
    html {
      font-size: 16px;
    }
  }

  @media only screen and (min-width : 800px) {
    html {
      font-size: 17px;
    }
  }

  @media only screen and (min-width : 1000px) {
    html {
      font-size: 18px;
    }
  }

  @media only screen and (min-width : 1200px) {
    html {
      font-size: 19px;
    }
  }

  body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
  }

  h1,
  h2,
  h3,
  h4,
  .heading {
    font-family: var(--font-head);
    line-height: 1.2;
    font-weight: 900;
    hyphens: auto;
    /*  hyphenate-limit-chars: 10 3 4;*/
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  h2 {
    font-size: 1.8rem;
    margin: 3rem 0 2rem;
  }

  h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
  }

  h4 {
    font-size: 1rem;
    margin: 2rem 0 1rem;
  }

  p {
    margin: 1.6rem 0;
  }

  p:first-child,
  h1:first-child,
  h2:first-child,
  h3:first-child,
  h4:first-child {
    margin-top: 0;
  }

  p:last-child {
    margin-bottom: 0;
  }

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

  strong {
    font-weight: 600;
  }

  .black {
    font-weight: 900;
  }

  em {
    font-style: italic;
  }

  .small {
    font-size: 80%;
  }

  *:focus {
    outline: 2px solid var(--color-purple);
  }




  /* --------------------------------------------------
   default wp blocks
-------------------------------------------------- */

  .wp-block-gallery,
  .wp-block-accordion,
  .wp-block-site-logo {
    margin: var(--default-padding) 0;
  }




  /* --------------------------------------------------
   general
-------------------------------------------------- */

  .onlydesktop {
    display: none;
  }

  @media (hover: hover) {
    .onlymobile {
      display: none !important;
    }

    .onlydesktop {
      display: inherit;
    }
  }

  body {
    background: white;
  }








  





  /* --------------------------------------------------
   skip link (for screen readers)
-------------------------------------------------- */

  .skiplink {
    display: block;
    position: absolute;
    top: -100%;
    background: var(--color-purple);
    padding: .5rem;
    text-align: center;
    color: black;
    font-size: .8rem;
    font-weight: bold;
  }

  .skiplink:focus {
    position: static;
  }







  /* --------------------------------------------------
   header
-------------------------------------------------- */

  header {
    position: sticky;
    top: 0;
    width: 100%;
    padding:1rem;
    background: var(--color-blue);
    color:white;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    z-index: 999999;
    /* so it sits on top of the wordpress admin bar */
    border-bottom:2px solid black;
  }

  .header-logo svg {
    display: block;
    height: 100%;
    width: auto;
  }

  .header-menu {
    display: flex;
    gap:1rem;
    height: 100%;
  }


  /* hide header nav items on small screens */

  @media only screen and (max-width : 850px) {
    .header-menu>a:nth-last-child(5) {
      display: none;
    }
  }

  @media only screen and (max-width : 700px) {
    .header-menu>a:nth-last-child(4) {
      display: none;
    }
  }

  @media only screen and (max-width : 550px) {
    .header-menu>a:nth-last-child(3) {
      display: none;
    }
  }

  @media only screen and (max-width : 400px) {
    .header-menu>a:nth-last-child(2) {
      display: none;
    }
  }

  @media only screen and (max-width : 250px) {
    .header-menu>a:nth-last-child(1) {
      display: none;
    }
  }








  /* --------------------------------------------------
   overlay
-------------------------------------------------- */

  .overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    width:100vw;
    height:100vh;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding:var(--default-padding);
    background: rgba(0,0,0,.5);
    z-index: 9999999;
    /* so it sits on top of the header bar */
    cursor: default;
    animation: overlayFadeIn .3s ease;
  }

  header button.closed .overlay {
    display: none;
  }

  @keyframes overlayFadeIn {
    from {
      opacity: 0;
      transform: translateX(50%);
    }

    to {
      opacity: 1;
      transform: translateX(0%);
    }
  }

  /* overlay main navigation menu */

  .overlay-nav {
    width:100%;
    max-width:60rem;
    background-color:var(--color-pink);
    font-size: 1rem;
    font-family:var(--font-body);
    border:2px solid black;
    box-shadow:3px 3px 0 #333;
    position:relative;
  }

    /* overlay close button */

    .overlay-nav-close {
      position: absolute;
      top: 0;
      right: 0;
      padding: 1rem;
      border: none;
      background: transparent;
      cursor: pointer;
      color: black;
    }

  .overlay-nav-close:hover,
  .overlay-nav-close:focus {
    color: white;
  }

    /* actual main navigation */

    .overlay-nav > ul {
      display:grid;
      grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
      text-align: left;
      list-style: none;
      width: 100%;
      column-rule: 2px solid black;
      row-rule: 2px solid black;
    }

      .overlay-nav > ul > li {
        padding:var(--default-padding);
      }

      .overlay-nav .sub-menu {
        list-style: none;
      }

      /* navigation links */

      .overlay-nav a {
        display: block;
        padding: .5rem 0;
        color: inherit;
        text-decoration: none;
        font-size:1rem;
        font-weight:normal;
      }

      /* navigation headings */

      .overlay-nav a[href='#'] {
        font-size: 1.2rem;
        text-transform: uppercase;
        pointer-events: none;
        cursor: default;
        font-weight:900;
        margin-bottom:calc(var(--default-padding) / 2);
      }

      .overlay-nav a:hover,
      .overlay-nav a:focus,
      .overlay-nav .current-menu-item a {
        text-decoration: underline;
      }

  @media only screen and (min-width : 600px) {
      .overlay-nav > ul > li {
        padding:calc(2*var(--default-padding));
      }
  }








  /* --------------------------------------------------
   floating nav
-------------------------------------------------- */

.floatingnav {
  position:fixed;
  bottom:1rem;
  left:1rem;
  display:flex;
  gap:1rem;
  flex-direction:column;
  z-index:1;

}

  .floatingnav-button.button {
    gap:2rem;

  }

    .floatingnav-button-illustration {
      width:2rem;
      height:auto;
      display:block;
      transform: scale(2.5);
      transition: all .3s ease;
    }

    .floatingnav-button:hover .floatingnav-button-illustration {
      transform: scale(3) rotate(5deg);
    }







  /* --------------------------------------------------
   main
-------------------------------------------------- */

main {
  min-height:100vh;
}

  main > .has-background:last-child,
  main > .wp-block-gallery:last-child {
    border-bottom:0;
    margin-bottom:0;
  }

  main > .buttonset:last-child {
    margin-bottom:2rem;
  }






  /* --------------------------------------------------
   general purpose building blocks
-------------------------------------------------- */

.section {
  border-top:2px solid black;
  border-bottom:2px solid black;
  padding:calc(2*var(--default-padding)) var(--default-padding);
  margin:var(--default-padding) 0;
}

.section:first-child {
  border-top:none;
  margin-top:0;
}

  .section > * {
    max-width:var(--default-max-width);
    margin-left:auto;
    margin-right:auto;
  }

  .section h1 {
    margin-bottom:0;
  }








  /* --------------------------------------------------
   blog
-------------------------------------------------- */

.ivfblog {

}

  .ivfblog-list {
    list-style: none;
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    padding:var(--default-padding);
    gap:var(--default-padding);
  }

    .ivfblog-list li {
      max-width:var(--default-max-width);
      background:var(--color-pink);
      border:2px solid black;
    }

    .ivfblog .buttonset {
      justify-content: center;
    }

    .ivfpost {

    }

      .ivfpost-image {
      }

        .ivfpost-image img {
          width:100%;
          height: auto;
          aspect-ratio: 1.5;
          object-fit: cover;
        }

      .ivfpost-text {
        padding:var(--default-padding);
      }

      .ivfpost h2 {
        font-size:1.6rem;
      }




.single-header {
  background-color:var(--color-pink);
  height:80vh;
  background-size:cover;
  background-position:center center;
  position:relative;
  margin-bottom:5rem;
  border-bottom:2px solid black;
}
  
  .single-header-text {
    position:absolute;
    bottom:-5rem;
    left:0;right:0;
    max-width:var(--default-max-width);
    margin:0 auto;
    text-align: center;
  }

    .single-header-text-meta {
      display:inline-block;
      padding:.75rem;
      font-size:.8rem;
      font-weight:bold;
      background-color:var(--color-pink);
      border:2px solid black;
      margin-bottom:.5rem;
    }

    .single-header-text-title {
      padding:1rem;
      background-color:var(--color-mint);
      border:2px solid black;
    }

.single-main {

}

  .single-main .buttonset {
    justify-content: center;
    margin-top:2rem;
  }

  /* --------------------------------------------------
   footer
-------------------------------------------------- */

  footer {
    background: var(--color-pink);
    border-top:2px solid black;
    color:black;
    /*margin-top:3rem;*/
  }

  footer a {
    color:black;
  }

  footer a:not(.button):hover {
    color:white;
  }

  footer ul {
    list-style: none;
  }

    .footer-contact {
      display:flex;
      gap:2rem;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      font-size:.8rem;
      padding:var(--default-padding);
    }

      .footer-contact-logo {
        width:6rem;
      }

 

  .footer-social,
  .footer-admin,
  .footer-menu ul {
    display: flex;
    justify-content: center;
    padding: var(--default-padding);
  }

  .footer-social .buttonset {
    justify-content: center;
    list-style: none;
  }

  footer .menu {
    display:flex;
    gap: 1rem;
  }

  .footer-admin {
    border-top:2px solid black;
    background:#666;
  }

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

    .footer-contact {
      flex-direction: row;
    }

  }