/*!
Theme Name: AEFU
Theme URI: http://underscores.me/
Author: digital/organizing
Author URI: http://digitalorganizing.ch
Description: 
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: aefu
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

AEFU is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
@import url("/wp-content/themes/aefu-theme/fonts/fonts.css");

:root {
  --content-padding: max(calc((100vw - 1200px) / 2), 2em);
}

body {
  --text-font-family: "Maitree", serif;
  --text-font-size: 15px;
  --header-color: #efddd6;
  --menu-text: #28215c;
  --menu-font: Inter;
  --background-color: #fff9f9;
  --footer-color: #f2e9e6;
  --primary-color: #0b8871;
  --text-color: #28215d;
  --highlight-background: rgba(11, 136, 113, 0.08);
}

body,
button,
input,
select,
optgroup,
textarea {
  color: #28215d;
  font-family: var(--text-font-family);
  font-size: var(--text-font-size);
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
  text-decoration: none;
}

p {
  margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5em;
}

address {
  margin: 0 0 1.5em;
}

pre {
  background: #eee;
  font-family: "Courier 10 Pitch", courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}

code,
kbd,
tt,
var {
  font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

mark,
ins {
  background: #fff9c0;
  text-decoration: none;
}

big {
  font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
  background: var(--background-color);
}

.site-footer {
  background-color: var(--footer-color);
  display: flex;
  flex-wrap: wrap;
  padding-top: 4em;
  padding-bottom: 3em;
  gap: 1em;
}

.site-footer > * {
  flex: 1 1 auto;
}

.site-footer p {
  margin-top: 0;
}

.footer-1 {
  flex: 1 1 auto;
}

nav > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-navigation a {
  font-family: var(--menu-font);
}

.lang-item a {
  font-weight: 700;
  text-transform: uppercase;
}

nav a {
  color: inherit;
}

.menu a {
  color: var(--menu-text);
  font-family: var(--menu-font);
}
footer.site-footer {
  font-family: Inter;
  font-weight: 500;
}
header .menu a {
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
  position: relative;
}

.top {
  display: flex;
  align-items: center;
  gap: 14px;
}

div.search {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  flex-wrap: nowrap;
  margin-left: 1em;
}

div.search label {
  cursor: pointer;
}

#show-search ~ label > .open-search {
  display: block;
}
#show-search ~ .search-form {
  width: 0px;
  overflow: hidden;
  display: flex;
  transition: all 200ms ease-out;
}
#show-search:checked ~ .search-form {
  width: 12em;
  display: flex;
  flex-wrap: nowrap;
}

.search-form input {
  width: 8em;
}
#show-search ~ label > .close-search {
  display: none;
}

#show-search:checked ~ label > .open-search {
  display: none;
}
#show-search:checked ~ label > .close-search {
  display: block;
}

.main-navigation {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex-direction: column;
  align-items: flex-end;
}

#buttons-menu a {
  background: #0b8871;
  color: white;
  padding: 0.3em 0.6em;
  font-family: Inter;
  text-transform: none;
  font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #0b8871;
}

h2 a {
  color: inherit;
}

.entry-meta {
  color: #28215d;
  font-weight: bold;
}

.entry-meta a {
  color: inherit;
}

hr {
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

ul,
ol {
  margin: 0 0 1.5em 3em;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li > ul,
li > ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

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

figure {
  margin: 1em 0;
}

.entry-content figure img,
.entry-content figure figcaption {
  max-width: 42em;
  width: 100%;
}

figcaption {
  font-style: italic;
}

figure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

table {
  margin: 0 0 1.5em;
  width: 100%;
}

/* Links
--------------------------------------------- */
a {
  color: #4169e1;
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  filter: brightness(0.8);
}

a:focus {
  outline: thin dotted;
}

a:hover,
a:active {
  outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid;
  border-color: #ccc #ccc #bbb;
  border-radius: 3px;
  background: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  color: #111;
}

select {
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

#page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  grid-area: content;
}

footer {
  grid-area: footer;
}

aside {
  grid-area: side;
}

header {
  grid-area: header;
  display: flex;
}

.site-header,
.site-main,
.site-footer {
  padding-right: var(--content-padding);
  padding-left: var(--content-padding);
}

.site-main {
  padding-top: 3em;
  flex: 1;
}

.site-header {
  isolation: isolate;
  z-index: 100;
  background-color: var(--header-color);
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */

.main-navigation ul {
  display: none;
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.main-navigation li {
  /* position: relative; */
}

.main-navigation a {
  display: block;
  text-decoration: none;
}

.toggled svg.open {
  display: none;
}

svg.close {
  display: none;
}

.toggled svg.close {
  display: block;
}

/* Inline #13 | https://aefu.staging.digitalorganizing.ch/ */

@media screen and (min-width: 769px) {
  li ul.sub-menu {
    display: none;
  }
  li:hover .sub-menu {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: absolute;
    right: 0;
    background: var(--header-color);
    left: 0;
    justify-content: end;
    padding-right: var(--content-padding);
    padding-left: var(--content-padding);
    padding-top: 3.3em;
    padding-bottom: 20em;
    grid-gap: 0;
    box-shadow: rgba(0, 0, 0, 0.5) 2px 4px 3px;
    box-sizing: border-box;
  }

  .sub-menu li::after {
    content: "";
    display: block;
    position: absolute;
    width: 1px;
    height: 100%;
    top: 3px;
    right: 0;
    background: var(--text-color);
  }

  .sub-menu li:nth-child(3n)::after,
  .sub-menu li:nth-child(2):last-child::after,
  .sub-menu li:first-child:last-child::after {
    display: none;
  }
}

#buttons-menu li {
  margin-bottom: 0.3em;
}

.sub-menu {
  padding-top: 0.3em;
  padding-bottom: 0.3em;
}

.sub-menu li a {
  font-weight: normal;
}

.sub-menu li {
  padding-left: 1em;
  padding-right: 1em;
  padding-top: 0.5em;
  padding-bottom: 0.4em;
}
#primary-menu .menu-item a::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: black;
  margin-bottom: -1px;
  transition: all 300ms ease-in;
}

#primary-menu .menu-item a:hover::after {
  width: 100%;
}

.nav-links {
  font-weight: bold;
  text-transform: uppercase;
  font-family: Inter;
  text-decoration: underline;
}

.site-branding {
  z-index: 10;
}

.entry-header {
  display: flex;
  flex-direction: column-reverse;
}

.entry-title {
  margin-bottom: 0;
  margin-top: 0;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
  display: block;
}

@media screen and (min-width: 37.5em) {
  .menu-toggle {
    display: none;
  }

  .main-navigation ul {
    display: flex;
    gap: 1rem;
  }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin: 0 0 1.5em;
}

.nav-links {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "next . prev";
}

.nav-next {
  grid-area: next;
}
.nav-previous {
  grid-area: prev;
}
/* Posts and pages
--------------------------------------------- */
.sticky {
  display: block;
}

.post-wrapper.post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.post-wrapper.post-list .post-thumbnail {
  flex: 1 1 30%;
  min-width: min(100%, 220px);
}
.post-thumbnail {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 320px;
}
.post-list .entry-content {
  justify-content: space-between;
  flex: 1 1 60%;
}

.more {
  align-self: flex-end;
  font-family: Inter;
  text-transform: uppercase;
  font-weight: 800;
  color: #28215d;
  margin-bottom: 1em;
}
.entry-content p {
  margin-top: 0;
  max-width: 42em;
}

.post-wrapper.post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
.post-wrapper.post-list .post-thumbnail {
  flex: 1 1 30%;
}
.post-list .entry-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 60%;
}
.entry-content p {
  margin-top: 0;
}

.post {
  margin: 0 0 1.5em;
}
.post {
  border-bottom: solid 2px var(--text-color);
  padding-bottom: 2em;
  margin-bottom: 4em;
}

.post:last-child {
  border-bottom: none;
}

.entry-title {
  margin-bottom: 0.6em;
}

.updated:not(.published) {
  display: none;
}

.page-content,
.entry-content,
.entry-summary {
  margin: 0;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
  margin: 0 0 1.5em;
}

.widget select {
  max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
  display: inline-block;
}

.site-title {
  display: none;
}

@media speech {
  .site-title {
    display: inherit;
  }
}

/* Inline #11 | https://aefu.staging.digitalorganizing.ch/ */

.custom-logo-link img {
  width: 160px;
  margin-bottom: -43px;
}

/* style.css | https://aefu.staging.digitalorganizing.ch/wp-content/themes/aefu-theme/style.css?ver=1.0.0 */

h2.entry-title {
  font-size: 32px;
  line-height: 1.2em;
}

.entry-meta {
  font-size: 15px;
}

.site-header {
  padding-top: 1em;
  margin-bottom: 2em;
  padding-bottom: 0.3em;
}

#primary-menu {
  margin-top: 3em;
  margin-bottom: 0.4em;
}

/* Captions
--------------------------------------------- */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
  margin-bottom: 1.5em;
  display: grid;
  grid-gap: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
  display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
  display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {
  /*rtl:ignore*/
  float: left;

  /*rtl:ignore*/
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  /*rtl:ignore*/
  float: right;

  /*rtl:ignore*/
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

/* Oekoskop */

.index .oekoskop,
.index .tagung {
  flex-wrap: wrap;
  justify-content: center;
}

.index .oekoskop .content,
.index .tagung .content {
  flex: 1 1 60%;
}

/* Inline #7 | https://aefu.staging.digitalorganizing.ch/ */

.post.sticky {
  border-bottom: none;
  margin-bottom: 1em;
}

.index .oekoskop,
.index .tagung {
  display: flex;
  background: #f0f2f0;
  padding-top: 1em;
  padding-left: var(--content-padding);
  margin-left: calc(-1 * var(--content-padding));
  padding-right: var(--content-padding);
  margin-right: calc(-1 * var(--content-padding));
  margin-top: 2em;
  padding-bottom: 1em;
  gap: 0.5em;
}

.index .oekoskop .content,
.index .tagung .content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.index .oekoskop .entry-title,
.index .tagung .entry-title {
  color: #221c4c;
}

.topics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 1em;
  grid-gap: 2em;
  margin-bottom: 5em;
}

@media screen and (max-width: 769px) {
  .topics {
    grid-template-columns: 1fr 1fr;
  }
}
@media screen and (max-width: 420px) {
  .topics {
    grid-template-columns: 1fr;
  }
}

.topic {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
  background: #f2e9e6;
  box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 3px;
}

.topic img {
  height: 100%;
  max-width: unset;
  display: flex;
  justify-content: center;
  align-items: center;
}

.topic span {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1em;
  width: 100%;
  background: white;
  opacity: 0.8;
  font-size: 2em;
}

a {
  color: #0b8871;
}

a:visited {
  text-decoration: underline;
}

.page-header {
  display: flex;
  flex-direction: column;
}

.page-header p {
  max-width: 44em;
}

.de-only,
.it-only,
.fr-only {
  display: none;
}

html[lang^="de"] .de-only {
  display: inherit;
}

html[lang^="fr"] .fr-only {
  display: inherit;
}

html[lang^="it"] .it-only {
  display: inherit;
}

/* Inline #7 | https://aefu.staging.digitalorganizing.ch/ */

.oekoskop + .post {
  margin-top: 4em;
}

.sub-menu .sub-menu.sub-menu {
  display: none;
}

.sub-menu .sub-menu li::after {
  display: none;
}

.sub-menu li:hover .sub-menu,
.sub-menu li.open .sub-menu {
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: none;
}

.load-more {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3em;
  margin-top: 2em;
}
.load-more a {
  cursor: pointer;
}

#scrollToTop {
  position: fixed;
  right: 40px;
  bottom: 40px;
  border: none;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 3px;
  background: #fff9f9;
  border-radius: 50%;
  font-size: 1.3em;
  cursor: pointer;
  padding: 0;
  aspect-ratio: 1 / 1;
  transition: all 400ms ease-in;
}

.scrolled-top #scrollToTop {
  opacity: 0;
}

#scrollToTop > svg {
  width: 33px;
  height: 32px;
}
