/*
Theme Name: Alt Alfeld Modern
Description: Modernisierte klassische Gestaltung von alt-alfeld.de mit Bildausrichtung und Textumfluss.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: teusis
*/
:root {
  --background: #e8e8e8;
  --shadow: 2px 2px 2px #d1d1d1;
  --border: 1px solid #d1d1d1;
  --borderdark: 1px solid #9b9b9b;
  --menucolorover: #5b5b5b;
  --menucolor: #3c4041;
  --borderradius: 8px;
  --sidebarbuttonbg: #9b9b9b;
  --sb-width: 200px;
  --sb-widthleft: 220px;
  --sb-togglewidth: 50px;
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

/* =Fonts
-------------------------------------------------------------- */
@font-face {
	font-family: MyCustomFont;
	src: url(myriadproregular.ttf) format("opentype");
	font-display: swap;
}


ul,
li {
  list-style: none;
  padding: 0px;
  margin: 0;
}

a {
  text-decoration: none;
}

p {
	margin-bottom: 0.75em;
}

html {
  font-size: 67.5%;
}

body {
  background-color: var(--background);
  font-size: 1.4rem;
  margin-top: 10px;
  margin-bottom: 5px;
  /*font-family: Arial, Helvetica, sans-serif;*/
  font-family: MyCustomFont;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

img {
	width: auto;
	max-width: 100%;
	height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border: var(--border);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  border-radius: var(--borderradius);
  margin-bottom: 0.75em;
}
.wp-caption {
	border: 1px solid #d1d1d1 !important;
	-moz-border-radius:8px !important;
	-khtml-border-radius:8px !important;
	border-radius: 8px !important;
	-moz-box-shadow: 2px 2px 2px #d1d1d1;
	-webkit-box-shadow: 2px 2px 2px #d1d1d1;
    box-shadow: 2px 2px 2px #d1d1d1;
  padding: 4px 4px 4px 4px;
  background-color: #d1d1d1;
}

.wp-caption-text {
	color: #3c4041;
	text-align: justify;

}

.las {
  font-size: 2.6rem;
}

.nav-toggle-btn {
  display: none;
  cursor: pointer;
}

.nav-toggle-btn span {
  cursor: pointer;
}

#toggle-btn {
  display: none;
}

.nav-toggle-sb-btn {
  display: none;
}

.nav-toggle-sb-btn span {
  cursor: pointer;
}

#toggle-btn-sb {
  display: none;
}

#wrapper {
  border: none;
  margin: 0 auto;
  margin-bottom: 4em;
  /*width: 1150px;*/
}

header {
  width: 100%;
}

header img {
  width: 100%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border: 0.5rem solid #fff;
  border-radius: var(--borderradius);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
}

#access {
  position: relative;
  border: var(--border);
  border-radius: var(--borderradius);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  background: #fff;
  float: left;
  width: 100%;
  padding: 0px 10px;
}

#access ul ul .sub-menu {
  position: absolute;
  float: left;
}

#access .menu-header li,
div.menu li {
  float: left;
  position: relative;
  margin-left: 0px;
}

#access a {
  color: var(--menucolor);
  display: block;
  line-height: 38px;
  padding: 0px 15px;
  text-decoration: none;
  font-size: 1.4rem;
  font-family: MyCustomFont;
}

#access ul ul {
  -webkit-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
          box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
  display: none;
  position: absolute;
  top: 38px;
  left: 0;
  float: left;
  width: 180px;
  z-index: 99999;
}

#access ul ul li {
  /*min-width: 180px;*/
  max-width: 180px;
}

#access ul ul ul {
  left: 100%;
  top: 0;
}

#access ul ul a {
  background: #fff;
  line-height: 1em;
  padding: 10px;
  width: 180px;
  height: auto;
  color: var(--menucolor);
}

#access li:hover > a,
#access ul ul :hover > a {
  background: #fff;
  color: var(--menucolorover);
}

#access ul li:hover > ul {
  display: block;
}

#access ul li.current_page_item > a,
#access ul li.current-menu-item > a,
#access ul li.current-menu-parent > a {
  background: transparent;
  color: var(--menucolorover);
}

main {
  display: inline-block;
  width: 100%;
  border: var(--border);
  background: #fff;
  border-radius: var(--borderradius);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
}

.widget-area {
  width: var(--sb-width);
  margin-left: 10px;
  float: left;
  overflow: hidden;
}

.widget-area .widget-container {
  font-size: 1.4rem;
  margin-bottom: 1em;
}

.widget-area .post-title {
  font-size: 1.4rem;
  font-weight: normal;
}

.widget-area a:link,
.widget-area a:active,
.widget-area a:hover,
.widget-area a:visited {
  color: #fff;
  line-height: 26px;
  margin-left: 5px;
  margin-right: 5px;
}

.widget-area a:hover {
  text-decoration: underline;
}

.widget-area li a {
	font-family: MyCustomFont;
}

.widget-area li ul li,
.widget-area li h2 {
  border: var(--border);
  border-radius: var(--borderradius);
  background: var(--sidebarbuttonbg);
}

.widget-area li ul li ul li {
  border: var(--border);
  background: #d1d1d1;
  color: #656565;
}

.widget-area ul ul .children {
  margin-left: 8px;
}

.widget-area li ul li ul li {
  border: var(--borderdark);
}

.widget-area ul ul .children a {
  color: #656565;
}

.widget-area li ul li ul li a:link,
.widget-area li ul li ul li a:active,
.widget-area li ul li ul li a:hover,
.widget-area li ul li ul li a:visited,
.widget-area li ul li ul li.current_page_item > a,
.widget-area li ul li ul li.current-menu-ancestor > a,
.widget-area li ul li ul li.current-menu-item > a,
.widget-area li ul li ul li.current-menu-parent > a {
  color: #656565;
  line-height: 26px;
  margin-left: 5px;
  margin-right: 5px;
}

.widget-area img {
	width: 194px;
	height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border: var(--border);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  border-radius: var(--borderradius);
 }

#content {
  position: relative;
  width: auto;
  margin-left: var(--sb-widthleft);
  margin-top: 1em;
  margin-right: 1em;
  padding-left: 1em;
  padding-right: 1em;
  margin-bottom: 1em;
  border: var(--border);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  border-radius: var(--borderradius);
}

.post-intern {
	display: inline-block;
}

.entry-content {
	line-height: 1.6em;
}

.entry-content p {
	clear: none;
}



.entry-content img,
.entry-content p img {
	vertical-align: top;
  border: var(--border);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  border-radius: var(--borderradius);
}

.left {
	float: left;
	margin-right: 0.5em;
}

.justify {
	margin-right: 0.5em;
	margin-left: 0.5em;
}

.right {
	float: right;
	margin-left: 0.5em;
}

.entry-content .gb-author-info img {
	width: 4em;
	height: 4em;
  border: var(--border);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  border-radius: var(--borderradius);
}

.entry-content iframe {
	width: 100%;
	min-height: 50%;
	max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  border: var(--border);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  border-radius: var(--borderradius);
}

.entry-content video {
	width: 100%;
	min-height: 50%;
	max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  border: var(--border);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  border-radius: var(--borderradius);
}

.entry-content table {
	width: 100%;
	}

.entry-content .envira-gallery-wrap {
	width: 100%;
	display: grid;
	margin: 0 auto;
}

#footer {
  background: #fff;
  border: var(--border);
  margin-top: 5px;
  margin-bottom: 3em;
  border-radius: var(--borderradius);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  height: 3em;
  float: left;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: left;
      -ms-flex-pack: left;
          justify-content: left;
  padding-left: 10px;
}

#footer a {
	text-decoration: none;
	color: #000;
}

#toggle-btn-sb:checked + .widget-area {
  display: inline;
  width: var(--sb-width);
  margin-left: 10px;
  float: left;
}

#toggle-btn-sb:checked ~ #content {
  margin-left: var(--sb-widthleft);
}

#toggle-btn:checked + #access {
  display: block;
  position: absolute;
  border: var(--border);
  border-radius: var(--borderradius);
  -webkit-box-shadow: var(--shadow);
          box-shadow: var(--shadow);
  background: #fff;
  float: right;
  width: 200px;
  padding: 0px 10px;
  right: 0.5em;
  z-index: 999;
}

label[for=toggle-btn-sb],
label[for=toggle-btn] {
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 2.0rem;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  float: right;
}

label[for=toggle-btn-sb] span,
label[for=toggle-btn] span {
  display: block;
  height: 2px;
  width: 2.4rem;
  border-radius: 2px;
  background-color: #3c4041;
}

.widget-area .goog-te-gadget img {
	width:100px;
	border: none;
	box-shadow: none;
}

@media screen and (max-width: 1150px) {
  #wrapper {
    width: 100%;
  }
	#footer {
	  margin-bottom: 3.5em;
	}
}

@media screen and (max-width: 1100px) {
  #wrapper {
    width: 100%;
  }
	#footer {
	  /*margin-bottom: 4.25em;  */
	}
}

@media screen and (max-width: 680px) {
  html {
    font-size: 75%;
  }
  #wrapper {
    width: auto;
  }
  #content {
    position: relative;
    margin: 1em;
    font-size: 1.5rem;
  }

	.entry-content .gwolle-gb {
		top: 0em;
		margin-bottom: 0em;
	}
  .widget-area {
    display: none;
  }
  .nav-toggle-sb-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    float: left;
    margin: 1.6em;
    margin-left: 0;
  }
	#footer {
	  /*margin-bottom: 5em;  */
	}}

@media screen and (max-width: 680px) {
  html {
    font-size: 65%;
  }
  .nav-toggle-btn {
    display: block;
    width: 100%;
    height: 38px;
    text-align: right;
    padding-right: 10px;
    padding-top: 8px;
    background: #fff;
    border: var(--border);
    border-radius: var(--borderradius);
    -webkit-box-shadow: var(--shadow);
            box-shadow: var(--shadow);
    z-index: 100;
  }
  #wrapper {
    width: 100%;
  }
  #access {
    display: none;
  }
  #access ul ul .sub-menu {
    position: absolute;
    float: right;
  }
  #access li {
    width: 180px;
  }
  #access .menu-header li,
  div.menu li {
    float: left;
    position: relative;
    margin-left: 0px;
  }
  #access a {
    color: var(--menucolor);
    display: block;
    line-height: 38px;
    padding: 0px 15px;
    text-decoration: none;
    font-size: 1.8rem;
  }
  #access ul ul {
    -webkit-box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
            box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.2);
    display: none;
    position: absolute;
    top: 38px;
    left: 0;
    float: left;
    width: 180px;
    z-index: 99999;
  }
  #access ul ul li {
    /*min-width: 180px;*/
    max-width: 180px;
  }
  #access ul ul ul {
    left: 100%;
    top: 0;
  }
  #access ul ul a {
    background: #fff;
    line-height: 1em;
    padding: 10px;
    width: 180px;
    height: auto;
    color: var(--menucolor);
  }
  #access li:hover > a,
  #access ul ul :hover > a {
    background: #fff;
    color: var(--menucolorover);
  }
  #access ul li:hover > ul {
    display: block;
  }
  #access ul li.current_page_item > a,
  #access ul li.current-menu-item > a,
  #access ul li.current-menu-parent > a {
    background: transparent;
    color: var(--menucolorover);
  }
}

@media screen and (max-width: 580px) {
	#footer {
	  /*margin-bottom: 6em; */
	}
}

/* Compatibility fixes: preserve the original resting appearance. */
body.aa-theme.custom-background { background-color: var(--background); }
.aa-toggle { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; }
.aa-toggle { cursor: pointer; display: flex; height: 2rem; flex-direction: column; justify-content: space-between; float: right; }
.aa-toggle span { display: block; height: 2px; width: 2.4rem; border-radius: 2px; background-color: #3c4041; }
#access li:focus-within > ul { display: block; }
:focus-visible { outline: 2px solid #3c4041; outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.screen-reader-text:focus { clip-path: none; width: auto; height: auto; padding: 8px; background: #fff; z-index: 100000; }
.entry-title.aa-front-title { font-size: 1.5em; margin-block: .83em; }
#headerimage img { vertical-align: bottom; }
.post-intern { max-width: 100%; }
