/*
Theme Name: PimRoth
Author: Elise
Author URI: https://www.team-einhorn.de/
Description: Ein Theme extra für pimroth.de ohne externen Quatsch
Tags:
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pimroth
*/

:root {
  --white: #fff;
  --grey: #f1f1f1;
  --orange: #db7215;
  --text: #777;
  --dark: #363636;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
  font-family: Open Sans, Arial, sans-serif;
  line-height: 1.8;
}

body {
  background-color: var(--grey);
  color: var(--text);
  font-size: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  min-height: 100vh;
  justify-content: space-between;
  gap: 2rem;
}

main {
  flex-grow: 1;
}

header, footer {
  background-color: var(--white);
  text-align: center;
  line-height: 1.4;
}

h1, .site-title {
  color: var(--dark);
  font-size: 2.4rem;
  display: block;
  text-align: center;
  line-height: 1.4;
}

h2, .site-description {
  font-size: 1.6rem;
  display: block;
  text-align: center;
  line-height: 1.4;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all .3s ease;
}

p a {
  color: var(--orange);
  text-decoration: underline;
}

a:hover {
  color: var(--orange);
}

p a:hover {
  color: inherit;
}

header > *,
main,
footer > * {
  padding: 1rem 3rem;
}

header nav {
  position: sticky;
  top: 0;
}

header nav a {
  position: relative;
}

header nav .current_page_item > a {
  color: var(--orange);
}

header nav .current_page_item > a:before {
    content: '';
    position: absolute;
    left: -2rem;
    right: -2rem;
    top: -.5rem;
    bottom: -.5rem;
    border: 1px solid;
}

@media screen and (min-width: 1320px) {
  header > *,
  main,
  footer > * {
    padding: 1rem calc((100vw - 1280px) / 2);
  }
}

article {
  box-shadow: 0px 0px 10px rgba(0,0,0,.1);
}

header .blog-name,
footer nav {
  background-color: var(--grey);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 5rem;
  justify-content: center;
  align-items: center;
  list-style: none;
}


nav a {
  display: inline-block;
}

.post_meta {
  border-bottom: 1px solid;
  padding-bottom: 1rem;
  text-align: center;
  max-width: 960px;
  margin: 0 auto 3rem;
}

.paging-navigation {
  padding-top: 1rem;
  border-top: 1px solid;
  font-style: italic;
  max-width: 960px;
  margin: 3rem auto 0;
}

.site-content.archive {
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px);
  gap: 2rem;
  justify-content: center;
}

article {
  background-color: var(--white);
}

article > a {
  display: block;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

article .title {
  padding: 1rem 3rem;
  text-align: center;
  background-color: var(--white);
  margin-top: -5rem;
  min-height: 5rem;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

article.single {
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: stretch;
  max-width: 960px;
  margin: auto;
}

.pf-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
}

.aligncenter {
  display: block;
  text-align: center;
  margin: auto;
}

.alignleft {
    float: left;
}

.alignright {
    float: right;
}

img.alignleft {
    margin: .5rem 2rem .5rem 0;
}

img.alignright {
    margin: .5rem 0 .5rem 2rem;
}

.widget-area {
  column-count: 2;
  column-gap: 3rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  column-span: 300px;
}

.widget-area > * {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  justify-content: flex-start;
  margin: 0 0 3rem;
  break-inside: avoid;
}

.widget-title {
  color: var(--orange);
  font-weight: bold;
  font-size: 1.6rem;
}

.widget-area ul {
  list-style: none;
}

.entry-summary {
  height: 300px;
  padding: 2rem;
  overflow: hidden;
  font-size: 1.2rem;
  color: var(--white);
  background-color: var(--orange);
}

.instagram-archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 2rem;
  justify-content: center;
}

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

#hamburger {
  display: none;
}

@media screen and (max-width: 768px) {
  nav ul {
    gap: 1rem 3rem;
  }

  #hamburger {
    display: block;
    position: fixed;
    right: 1rem;
    top: 1rem;
    padding: .5rem;
    background-color: var(--white);
    box-shadow: 0px 0px 10px rgba(0,0,0,.1);
    border-radius: .3rem;
    cursor: pointer;
    height: 3rem;
    width: 3rem;
    z-index: 2;
  }

  #hamburger:before,
  #hamburger:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    width: 2rem;
  }

  #hamburger:before {
    height: 2px;
    background-color: var(--orange);
  }

  #hamburger:after {
    height: 10px;
    border-top: 2px solid var(--orange);
    border-bottom: 2px solid var(--orange);
  }

  #site-navigation:not(.visible) {
    display: none;
  }

  #site-navigation {
    position: fixed;
    right: 2rem;
    top: 2rem;
    padding: 5rem;
    max-width: calc(100vw - 4rem);
    max-height: calc(100vh - 4rem);
    overflow: auto;
    background-color: var(--white);
    box-shadow: 0px 0px 10px rgba(0,0,0,.1);
    border-radius: .3rem;
    z-index: 1;
  }

  #site-navigation ul {
    flex-direction: column;
  }
}

@media print {
  header, footer {
    display: none;
  }
}
