/*
Theme Name: HJBirner
Author: Netjutant
Author URI: https://www.netjutant.com
Description: Ein individuelles Theme für Hans-Jörg Birner.
Tags: accessibility-ready, one-column, two-columns, custom-menu, featured-images, microformats, sticky-post, threaded-comments, translation-ready
Version: 2025.1
Requires at least: 5.2
Tested up to: 6.5
Requires PHP: 7.0
Text Domain: birner

Netjutant WordPress Theme 2011-2025
*/
html {
  scroll-behavior: smooth;
}

:root {
  --bg-color: #ffffff;
  --bg-secondary-color: #f3f3f6;
  --color-primary: #0362aa;
  --color-primary-dark: #011a2e;
  --color-secondary: #7ec474;
  /*#6ea78e*/
  --color-secondary-light: #dee9e2;
  /**/
  --color-lightGrey: #f0eee9;
  --color-grey: #747681;
  --color-darkGrey: #3f4144;
  --color-accent: #7ec474;
  --color-error: #d43939;
  --color-success: #7ec474;
  --grid-maxWidth: 100%;
  --grid-gutter: 4rem;
  --grid-gutter-half: 2rem;
  --font-size: 20px;
  --font-color: #3f4144;
  --font-family-sans: "Manrope", "Roboto", -apple-system, BlinkMacSystemFont, Avenir,
    "Avenir Next", "Segoe UI", "Plus Jakarta Sans", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --font-family-mono: monaco, "Consolas", "Lucida Console", monospace;
}

body {
  font-size: var(--font-size);
  color: var(--font-color);
  font-family: var(--font-family-sans);
  margin: 0;
  padding: 0;
}

html {
  box-sizing: border-box;
  font-size: 100%;
  line-height: 1.7;
  letter-spacing: 0cap;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

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

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-lightGrey) var(--bg-primary);
}

*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

*::-webkit-scrollbar-thumb {
  background: var(--color-lightGrey);
}

body::-webkit-scrollbar,
.skip-link {
  display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  /* text-transform: uppercase; */
  font-weight: 700;
  padding-top: 0px;
}

h3:not(:first-child),
h4:not(:first-child),
h5:not(:first-child),
h6:not(:first-child) {
  padding: 1.2em 0 0.2em;
}

h1 {
  font-size: 2.4rem;
  display: inline-block;
  padding: 20px 30px;
  border-radius: 15px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  background: var(--color-primary);
  position: relative;
  z-index: 5;
  font-family: "Raleway";
}

/* 
h2 {
  font-size: 2.2em;
  line-height: 1.2em;
  padding-bottom: 0.8em;
  font-style: italic;
  font-weight: 700;
  font-family: "Cormorant";
} */
h2 {
  font-size: 1.2em;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 15px;
  margin-bottom: 1.2em;
  font-weight: 500;
  color: inherit;
  text-transform: uppercase;
  background: var(--color-secondary);
  position: relative;
  z-index: 5;
  font-family: "Raleway";
}

@media (min-width: 1300px) {
  h1 {
    margin-left: -30px;
  }

  h2 {
    margin-left: -18px;
  }
}

h3 {
  padding-bottom: 0.5em;
  font-size: 1.6em;
  font-weight: 300;
  font-family: "Raleway";
}

h4 {
  font-size: 1.25em;
}

h5 {
  font-size: 1em;
}

h6 {
  font-size: 0.85em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover:not(.button) {
  text-decoration: underline;
  opacity: 0.9;
  /* text-shadow: 1px 1px 1px var(--color-primary); */
}

p {
  margin-top: 0;
}

ul,
ul * {
  text-align: left;
}

@media (max-width: 779px) {
  .wp-block-spacer {
    max-height: 80px !important;
  }
}

.text-center {
  text-align: center;
  display: inherit;
}

.copyright {
  font-size: 0.6em;
  font-style: italic;
  color: #fff;
}

.text-larger,
.text-large {
  font-size: 1.3em;
}

.text-normal {
  font-size: inherit;
}

@media (min-width: 800px) {
  * {
    text-align: left;
  }

  .text-right {
    text-align: right;
  }

  .text-larger {
    font-size: 1.3em;
  }

  .text-large {
    font-size: 1.6em;
  }
}

.has-text-shadow {
  text-shadow: #000 1px 0 10px;
}

.entry-content * {
  line-height: 1.4;
}

blockquote {
  padding: 1.5rem 0;
}

blockquote p {
  margin-bottom: 20px;
  line-height: 1.2;
  hyphens: auto;
  font-size: 1.1em;
}

@media (max-width: 500px) {
  blockquote p {
    font-size: 0.9em;
  }
}

strong, dl dt {
  font-weight: 700;
}

hr {
  background-color: var(--color-lightGrey);
  height: 1px;
  margin: 1rem 0;
}

table {
  width: 100%;
  border: none;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: left;
}

table.striped tr:nth-of-type(2n) {
  background-color: var(--bg-secondary-color);
}

td,
th {
  vertical-align: middle;
  padding: 1.2rem 0.4rem;
}

thead {
  border-bottom: 2px solid var(--color-lightGrey);
}

tfoot {
  border-top: 2px solid var(--color-lightGrey);
}

img {
  max-width: 100%;
  height: auto;
}

figcaption {
  font-size: 0.8em;
}

fieldset {
  border: 1px solid var(--color-lightGrey);
}

.lang-pill {
  color: var(--color-secondary);
  border: 1px var(--color-secondary) solid;
  border-radius: 2px;
  font-size: 0.8em;
  padding: 1px 3px;
}

video {
  max-width: 100%;
  height: auto;
}

/* ------------------------------------------------------------------*/
/* Farben
/* ------------------------------------------------------------------*/
.has-primary-color,
.has-primary-color.has-text-color * {
  color: var(--color-primary) !important;
}

.has-secondary-color,
.has-secondary-color.has-text-color * {
  color: var(--color-secondary) !important;
}

.has-lightgrey-color,
.has-lightgrey-color.has-text-color * {
  color: var(--color-lightGrey);
}

.has-darkgrey-color,
.has-darkgrey-color.has-text-color * {
  color: var(--color-darkGrey);
}

.has-weiss-color,
.has-weiss-color.has-text-color * {
  color: var(--bg-color);
}

.has-accent-color,
.has-accent-color.has-text-color * {
  color: var(--color-accent);
}

.has-primary-background-color {
  background-color: var(--color-primary);
}

.has-secondary-background-color {
  background-color: var(--color-secondary);
}

.has-secondary-light-background-color {
  background-color: var(--color-secondary-light) !important;
}

.has-lightgrey-background-color {
  background-color: var(--color-lightGrey);
}

.has-darkgrey-background-color {
  background-color: var(--color-darkGrey);
}

.has-weiss-background-color {
  background-color: var(--bg-color) !important;
}

.has-accent-background-color {
  background-color: var(--color-accent);
}

/* ------------------------------------------------------------------*/
/* Grid
/* ------------------------------------------------------------------*/
.container {
  margin: 0 20px;
  width: auto;
  padding: 0;
}

.alignfull {
  width: 100vw;
  margin: calc(50% - 50vw);
  margin-bottom: 0px;
  margin-top: 0px;
  padding: 2rem 20px;
  box-sizing: border-box;
}

.alignwide {
  width: calc(100vw - 8vw);
  margin: calc(50% - 50vw + 4vw);
  margin-bottom: 0px;
  margin-top: 0px;
  padding: 0 20px;
  box-sizing: border-box;
  border-radius: 25px;
}

@media (min-width: 1300px) {
  .container {
    margin: 0 20vw;
    width: auto;
    padding: 0;
  }

  .alignfull {
    width: 100vw;
    margin: calc(50% - 50vw);
    margin-bottom: 0px;
    margin-top: 0px;
    padding: 2rem 20vw;
    box-sizing: border-box;
  }

  .alignwide {
    width: calc(100vw - 8vw);
    margin: calc(50% - 50vw + 4vw);
    margin-bottom: 0px;
    margin-top: 0px;
    padding: 0 16vw;
    box-sizing: border-box;
    border-radius: 25px;
  }

  .alignwide.smallerpadding {
    padding: 0 10vw;
  }
}

.nopadding {
  padding: 0;
}

.padding10 {
  padding: 10px;
}

.padding20 {
  padding: 20px;
}

.roundedges {
  border-radius: 25px;
}

@media (min-width: 781px) {
  .borderright {
    position: relative;
    padding-right: 20px;
  }

  .borderright::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 1px;
    height: 100%;
    background-color: var(--font-color);
  }
}

.is-style-rounded img {
  border-radius: 15px;
}

.negmargintop {
  margin-top: -50px;
  display: block;
}

/* ------------------------------------------------------------------*/
/* Layout
/* ------------------------------------------------------------------*/
#wrapper {
  overflow-x: hidden;
}

.wp-block-columns {
  gap: var(--grid-gutter)
}

/* Konsole */
.konsole {
  background-color: var(--color-primary-dark);
  font-size: 0.6em;
  color: #fff;
  padding: 0.5em 0;
  display: none;
  flex-direction: row;
  justify-content: flex-end;
}

.konsole nav ul {
  margin: 0;
}

.konsole nav ul li {
  list-style: none;
}

.konsole a {
  color: #fff;
}

/* Header */
@keyframes bgchange {
  0% {
    background-color: transparent !important;
  }

  100% {
    background-color: #3f4144;
  }
}

#header {
  position: fixed;
  background-image: url(images/logo.svg);
  background-position: 20px center;
  width: 100vw;
  height: 80px;
  top: 0;
  left: 0;
  z-index: 40;
  animation: bgchange linear forwards;
  animation-timeline: scroll();
  box-shadow: 0 -2px 12px #3f4144;
}

@media (min-width: 1300px) {
  #header {
    background-position: 20vw center;
    animation: bgchange linear forwards;
    animation-timeline: scroll();
  }
}

#header .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  position: relative;
  flex-wrap: nowrap;
}

.logo {
  display: block;
  width: 195px;
  height: 70px;
}

.logo picture,
.logo img {
  width: calc(100% - 70px);
  max-width: 300px;
}

/* @media (max-width: 399px) {
  .logo {
    flex-grow: 2;
    align-self: flex-start;
    order: -1;
    position: absolute;
    top: 20px;
  }
} */
/*Footer */
#footer {
  background: #EAF0F4;
  padding: 2vw 0;
  position: relative;
  color: var(--font-color);
  font-size: 0.8em;
}

#footer::before {
  content: "";
  display: block;
  height: 1px;
  width: 80vw;
  background-color: #fff;
  margin: -2vw auto 0;
  clear: both;
  transform: rotate(2deg);
}

#footer li {
  list-style: none;
}

#copyright {
  text-align: right;
  font-size: 0.7em;
  margin: -2vw 2vw 1.6vw 0;
  color: var(--color-primary);
}

/* ------------------------------------------------------------------*/
/* Custom Classes
/* ------------------------------------------------------------------*/
/* Strich */
.strich {
  margin-top: -20px;
  z-index: 20;
  position: relative;
}

/* Logotext */
.logotext {
  font-family: "Raleway";
  line-height: 1em;
  font-weight: 600
}

/* Hero */
.hero {
  min-height: 70vh;
}

.hero ul {
  padding-left: 0;
}

/* Banner */
.banner {
  position: relative;
  margin-bottom: -20px;
  padding: 0;
}

.banner::after {
  content: "";
  height: 4vw;
  width: 100vw;
  background-image: url(images/schraege.svg);
  background-size: cover;
  background-position: top;
  position: absolute;
  left: auto;
  right: auto;
  bottom: -1px;
  z-index: 3;
}

@media (max-width: 1299px) {
  .entry-content .wp-block-columns.banner:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
  }

  .wp-block-columns {
    flex-wrap: wrap !important;
  }
}

@media (min-width: 1300px) {
  .banner {
    margin-bottom: -70px;
  }

  .entry-content .wp-block-columns.banner:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 0 !important;
    flex-grow: 1 !important;
  }

  .banner > .wp-block-column > * {
    padding-right: 20vw;
  }
}

/* Breadcrumb */
.breadcrumb {
  /* background: #caa269; */
  margin: 0 0 40px;
  font-size: 0.8em;
  line-height: 1;
  vertical-align: middle;
}

.breadcrumb p {
  margin-bottom: 0;
}

/* Slider */
.slick-next::before,
.slick-prev::before {
  font-family: inherit;
}

.slick-arrow {
  font-size: 0px;
}

/* Lexikon */
.lexikon-buchstaben {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.buchstabe {
  display: inline-block;
  border: 1px var(--color-primary) solid;
  font-size: 0.8em;
  padding: 0 7px;
  margin-right: 7px;
}

/* Beispielblock */
.beispielblock {
  background: var(--color-primary);
  border-radius: 15px;
  padding: 20px 20px 20px 70px;
  margin: 1em 0;
  font-size: 0.9em;
  position: relative;
}

.beispielblock a:not(.has-text-color) {
  color: var(--color-secondary);
}

/* Checklist & Crosslist & Vorteilnachteil */
.checklist {
  padding-left: 1.3em;
  list-style-position: inside;
}

.checklist li,
.crosslist li {
  list-style: none;
  padding-left: 0.8em;
}

.checklist li::before,
.crosslist li::before {
  content: "";
  width: 1em;
  height: 1em;
  background-image: url(images/icons/check.svg);
  background-size: cover;
  display: inline-block;
  margin-left: -1.8em;
  margin-right: 0.8em;
  margin-top: 4px;
  position: absolute;
}

.checklist li h3 {
  display: inline-block;
}

.crosslist li::before {
  background-image: url(images/icons/error.svg);
}

.vorteilnachteil li {
  list-style: none;
  margin-left: 2em;
  color: var(--color-secondary);
}

.vorteilnachteil li:last-of-type {
  color: var(--color-accent);
}

.vorteilnachteil li::before {
  content: "";
  width: 1em;
  height: 1em;
  background-image: url(images/icons/check.svg);
  background-size: cover;
  display: inline-block;
  margin-left: -1.5em;
  margin-right: 0.4em;
  margin-top: 10px;
}

.vorteilnachteil li:last-of-type:before {
  background-image: url(images/icons/error.svg);
}

/* Scroll-to-Top-Button */
button#scrollToTopButton {
  display: none;
  position: fixed;
  bottom: 3.6vw;
  right: 2vw;
  color: var(--color-secondary);
  background-color: transparent;
  border: none;
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 80px;
  cursor: pointer;
  border-radius: 0;
  padding: 0px;
  z-index: 22;
  transform: rotate(270deg);
}

button#scrollToTopButton:hover {
  color: var(--color-accent);
}

/* ------------------------------------------------------------------*/
/* Formulare
/* ------------------------------------------------------------------*/
.button,
[type="button"],
[type="reset"],
[type="submit"],
button {
  padding: 0.7em 1.2em;
  color: var(--color-primary-dark);
  background: var(--color-secondary);
  border: 1px solid transparent;
  font-size: 1em;
  line-height: 1;
  text-align: center;
  transition: opacity 0.2s ease;
  text-decoration: none;
  transform: scale(1);
  display: inline-block;
  cursor: pointer;
}

.button:hover,
[type="button"]:hover,
[type="reset"]:hover,
[type="submit"]:hover,
button:hover {
  opacity: 0.8;
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

.button.flat {
  display: inline;
  padding: 0px;
  line-height: 1;
}

/* ------------------------------------------------------------------*/
/* Termine
/* ------------------------------------------------------------------*/
.termin {
  display: flex;
  /* color: var(--color-primary); */
  flex-direction: column;
  padding: 10px;
  margin: 10px 0;
  border-bottom: 1px var(--color-lightGrey) solid;
  font-size: 0.9em;
  /* background-color: var(--color-lightGrey); */
}

.datum {
  font-weight: bold;
}

.beginn {
  color: #555;
}

/* .titel {
  margin-top: 5px;
} */
@media (min-width: 600px) {
  .termin {
    flex-direction: row;
    justify-content: space-between;
  }

  .datum, .beginn {
    flex: 1;
    margin-right: 10px;
  }

  .datum {
    flex: 2;
  }

  .titel {
    flex: 5;
    margin-right: 0;
  }
}

/* ------------------------------------------------------------------*/
/* Links
/* ------------------------------------------------------------------*/
.wp-block-social-link a {
  line-height: inherit;
}

.wp-block-social-link a:hover {
  color: var(--color-secondary) !important
}