/*
 Theme Name:   Künstlerhaus Meinersen
 Theme URI:    https://kuenstlerhaus-meinersen.com
 Description:  Neues Theme
 Author:       Marcus Morczinietz
 Author URI:   https://marcuus.de
 Version:      1.0
*/

/********* FONTS *********/

@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/barlow-v12-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  src: url('assets/fonts/barlow-v12-latin-700.woff2') format('woff2');
}

/********* VARIABLES *********/

:root,
.editor-styles-wrapper :root {
  /* Indian Yellow Variations */
  --indian-yellow: #F5B704;
  --indian-yellow-25: #FFE69F;
  --indian-yellow-10: #FEF8E6;

  /* Sand Variations */
  --sand: #E0CFC7;
  --sand-25: #F7F3F1;
  --sand-10: #FCFAF9;

  /* Other Colors */
  --black: #121212;
  --white: #FFFFFF;
  --grey: #757575;
  --lightgrey: #ddd;

  /* Überschriften */
  --hero-size: 4.5rem;
  --h1-size: 2.5rem;
  --h2-size: 1.75rem;
  --h3-size: 1.5rem;
  --h4-size: 1.25rem;

  /* Schriftfamilie */
  --font-family-body: 'Barlow', sans-serif;
}

/********* GLOBAL *********/

html {
  font-size: 100%;
  font-size: 20px;
  margin: 0;
  padding: 0;
}

html :where(.wp-block) {
  max-width: 1140px;
}

body:not(.wp-admin) {
  background-color: var(--sand-25);
  font-family: var(--font-family-body);
  line-height: 1.4;
}

.editor-styles-wrapper {
  font-family: var(--font-family-body) !important;
  background-color: var(--sand-25);
}

.editor-visual-editor__post-title-wrapper h1 {
  font-size: 1rem;
}

.editor-visual-editor__post-title-wrapper h1:before {
  content: "Titel: ";
  font-weight: 400;
}

/* Headings */
h1, .h1 {
  font-size: var(--h1-size);
  /* 3.5rem */
  line-height: 1.25;
  font-weight: 700;
}

h2, .h2 {
  font-size: var(--h2-size);
  /* 2.65rem */
  line-height: 1.3;
  font-weight: 700;
}

h3, .h3 {
  font-size: var(--h3-size);
  /* 2rem */
  line-height: 1.35;
  font-weight: 700;
}

h4, .h4 {
  font-size: var(--h4-size);
  /* 1.5rem */
  line-height: 1.4;
  font-weight: 700;
}


.menu {
  flex-basis: 66%;
}
.logo {
  flex-basis: 33%
}
.logo img {
  max-height: 90px;
}
.text-center {
  text-align: center;
}
header {
  padding: 1rem 0;
}
main {
  margin: 3rem 0 8rem 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
address {
    font-style: normal;
}
.wp-block-heading {
  margin: 0 0 1rem 0;
}

.wp-block-column p,
.post-content p {
  line-height: 1.6;
  margin: 0 0 2rem 0;
}
.wp-block-column .wp-block-buttons {
  margin-bottom: 1rem;
}

/* Link Styles */
a {
  text-decoration: underline;
  text-decoration-color: var(--indian-yellow);
  text-decoration-thickness: 2px;
  color: var(--black);
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-color: var(--indian-yellow);
  text-decoration-thickness: 4px;
  text-underline-offset: 4px;
}

.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Navigation */
header.g-container {
  gap: 1.5rem;
}
nav ul {
  list-style: none;
  padding: 0px;
  margin: 0px;
  display: flex;
  justify-items: flex-end;
  justify-content: flex-end;
  flex: 1 1 100%;
}
nav ul.navigation {
  font-size: 1rem;
  margin-right: -0.75rem;
}
nav ul.navigation li {
  display: flex;
  padding: 0 1rem;
}
nav ul li a {
  padding: 0.5rem 0;
  transition: background-size 0.6s;
  background-image: linear-gradient(var(--indian-yellow), var(--indian-yellow));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 3px;
  text-decoration: none;
}
nav ul li a:hover,
nav ul li a:focus {
  background-size: 100% 3px;
}
nav ul li.current-menu-item a {
  background-size: 100% 3px;
}

/* Mobile Menu - Default Hidden */
.menu-toggle.button {
  display: none;
}

/* Mobile Styles */
@media (max-width: 1024px) {
  html, body {
    font-size: 100%;
    font-size: 18px;
  }
  body {
    margin: 0;
  }
  header {
    padding: 1rem;
    display: flex;
  }
  header .logo.g-col {
    display: flex;
    flex-basis: calc(60% - 1.5rem);
  }
  header .menu.g-col {
    display: flex;
    flex-basis: calc(30% - 1.5rem);
    justify-content: end;
  }
  .g-container {
    gap: 1rem;
  }
  main {
    margin-top: 1rem;
    padding: 0 1rem;
  }
  .logo img {
    width: auto;
  }
  .navigation {
    display: none;
  }
  .navigation.open {
    display: block;
    z-index: 9999;
    position: fixed;
    left: 0px;
    top: 90px;
    width: 100vw;
    height: auto;
    background: var(--white);
    padding: 3rem 2rem;
  }
  .navigation.open li {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
    padding: 0;
  }
  .navigation.open li a {
    font-size: 1.25rem;
    display: inline-block;
    padding: 0.5rem 0;
  }
  .menu-toggle.button {
    font-size: 1rem;
    display: flex;
    padding: 0.5rem 1rem;
    gap: 6px;
    align-items: center;
  }
  .menu {
    margin-top: 16px;
  }
  footer {
    padding: 1rem;
  }
  footer .g-col {
    justify-content: flex-start
  }
  .footer-navigation {
    flex-direction: column;
  }
  .footer-navigation li {
      display: block;
  }
}

/* Footer Styles */
footer {
  border-top: 1px solid var(--black);
}
.footer-info p {
  margin-top: 0px;
}
.footer-navigation {
  gap: 24px;
}
footer .footer-right {
  text-align: right;
}
.copyright {
  margin: 1rem 0 0 0;
}
@media (max-width: 768px) {
  .g-col {
    justify-content: center;
    align-items: center;
  }
  .footer-navigation {
    justify-items: start;
    justify-content: start;
  }
  footer .footer-right {
    text-align: left;
  }
  .copyright {
    margin-top: 1rem;
    display: block;
  }
}

/* Button Styles */
.wp-core-ui .button, .wp-core-ui .button-primary, .wp-core-ui .button-secondary {
  box-sizing: content-box;
}
button,
input {
  font-family: var(--font-family-body);
}
:where(.editor-styles-wrapper) .wp-block-button__link  {
  background-color: var(--indian-yellow-25) !important;
  color: var(--black) !important;
}
.button, .wp-block-button__link {
  display: inline-block;
  padding: 0.35rem 1.5rem 0.525rem 1.5rem;
  font-size: 1rem;
  background-color: var(--indian-yellow-25);
  color: var(--black);
  text-decoration: none;
  border-radius: 100px;
  border: 3px solid transparent;
  transition: background-color 0.5s ease;
}

.button.circle {
  width: 3rem;
  height: 3rem;
  padding: 0.5rem;
  border-radius: 100%;
}

.button.circle svg {
  width: 3rem;
  height: 3rem;
}

.button.circle:hover,
.button:hover, .wp-block-button__link:hover {
  background-color: transparent;
  border: 3px solid var(--indian-yellow);
}

@media (max-width: 768px) {
  .button.circle {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
  }

  .button.circle svg {
    width: 2.5rem;
    height: 2.5rem;
  }
}