/*
Theme Name:   Spatz und Rabe
Theme URI:    https://spatzundrabe.de
Description:  Child theme for Twenty Twenty-Four - Personal CV site
Author:       Spatz und Rabe
Author URI:   https://spatzundrabe.de
Template:     twentytwentyfour
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  spatzundrabe
Tags:         block-patterns, editor-style, full-site-editing
*/

body {
  background: linear-gradient(0deg, #2c3720 0%, #67a73c 50%, #283618 100%);
  background-attachment: fixed;
  background-size: 400% 400%;
}

:where(.wp-site-blocks :focus) {
  outline: none;
}

#wpadminbar a,
#wpadminbar a img,
#wpadminbar a img:hover,
#wpadminbar a:hover {
  color: #fff !important;
}

#spatz-color-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none !important;
  outline: none !important;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  color: #d4d4c4;
}

#spatz-color-toggle:hover,
#spatz-color-toggle:focus,
#spatz-color-toggle:active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff3b0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.25s ease;
}

a {
  color: #fff3b0;
  text-decoration: none;
}

a:hover {
  color: #fff3b0 !important;
  text-decoration: none;
  text-shadow:
    0 0 15px rgba(255, 243, 176, 0.8),
    0 0 30px rgba(255, 243, 176, 0.25);
  transition: all 0.25s ease;
}

body.spatz-light #spatz-color-toggle {
  color: #3f4238 !important;
}

body.spatz-light #spatz-color-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #000 !important;
}

#spatz-color-toggle svg {
  width: 18px;
  height: 18px;
}

#spatz-color-toggle .icon-sun {
  display: none;
}

body.spatz-light #spatz-color-toggle .icon-moon {
  display: none;
}

body.spatz-light #spatz-color-toggle .icon-sun {
  display: block;
}

body.spatz-light {
  --wp--preset--color--base: #c2c5aa;
  --wp--preset--color--contrast: #3f4238;
  --wp--preset--color--contrast-2: #5a5f50;
}

body.spatz-light .wp-site-blocks {
  background-color: #c2c5aa !important;
}

body.spatz-light .wp-site-blocks > * {
  background-color: transparent !important;
}

body.spatz-light.has-post-thumbnail .wp-site-blocks {
  background-color: transparent !important;
}

body.spatz-light h1,
body.spatz-light h2,
body.spatz-light h3,
body.spatz-light h4,
body.spatz-light h5,
body.spatz-light h6,
body.spatz-light p,
body.spatz-light .wp-block-paragraph,
body.spatz-light .wp-block-post-content {
  color: #3f4238 !important;
}

body .wp-block-site-title a,
body .wp-block-site-title {
  color: #d4d4c4 !important;
  font-weight: 700 !important;
}

body .wp-block-site-title a:hover {
  color: #fff3b0 !important;
}

body.spatz-light a {
  color: #3f4238 !important;
}

body.spatz-light a:hover {
  color: #000 !important;
}

body.spatz-light .wp-block-site-title,
body.spatz-light .wp-block-site-title a {
  color: #3f4238 !important;
  font-weight: 700 !important;
}

body.spatz-light .wp-block-site-title a:hover {
  color: #000 !important;
}

body.spatz-light .wp-block-button__link {
  background-color: #212918 !important;
  color: #c2c5aa !important;
}

body.spatz-light .wp-block-button__link:hover {
  background-color: #212918 !important;
  color: #c2c5aa !important;
}

/* Dark theme buttons */
.wp-block-button__link,
body .wp-block-button__link {
  background-color: #fff3b0 !important;
  color: #283618 !important;
}

.wp-block-button__link:hover,
body .wp-block-button__link:hover {
  background-color: #b7b7a4 !important;
}

body.spatz-light .wp-block-navigation__responsive-container,
body.spatz-light .wp-block-navigation__container {
  color: #3f4238 !important;
}

body.spatz-light .wp-block-navigation-item a {
  color: #3f4238 !important;
}

/* Light theme nav - no glow effect */
body.spatz-light .wp-block-navigation-item a:hover {
  color: #000 !important;
  text-shadow: none;
}

.wp-block-navigation__submenu-container {
  background-color: transparent !important;
}

.wp-block-navigation.has-base-background-color
  .wp-block-navigation__submenu-container {
  background-color: transparent !important;
}

.has-base-background-color {
  background-color: transparent !important;
}

/* Featured image as full page background */
/*body.has-post-thumbnail .wp-site-blocks::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 200px);
  background-image: var(--featured-image-url, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

body.has-post-thumbnail .wp-site-blocks::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 200px);
  background: rgba(63, 66, 56, 0.7);
  z-index: -1;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

body.has-post-thumbnail .wp-site-blocks {
  position: relative;
  background-color: transparent !important;
}

body.spatz-light.has-post-thumbnail .wp-site-blocks::before {
  display: none;
}

body.spatz-light.has-post-thumbnail .wp-site-blocks::after {
  display: none;
}

body.spatz-light.has-post-thumbnail .wp-site-blocks {
  background-color: #c2c5aa !important;
}

body.spatz-light.has-post-thumbnail .wp-site-blocks::after {
  background: rgba(250, 249, 246, 0.4);
}*/

/* Footer */
footer.wp-block-template-part {
  background-color: #1a1a1a !important;
}

body.spatz-light footer.wp-block-template-part {
  background-color: #3f4238 !important;
}

body.spatz-light footer.wp-block-template-part,
body.spatz-light footer.wp-block-template-part p,
body.spatz-light footer.wp-block-template-part a,
body.spatz-light footer.wp-block-template-part h1,
body.spatz-light footer.wp-block-template-part h2,
body.spatz-light footer.wp-block-template-part h3,
body.spatz-light footer.wp-block-template-part h4,
body.spatz-light footer.wp-block-template-part h5,
body.spatz-light footer.wp-block-template-part h6 {
  color: #c2c5aa !important;
}

body.spatz-light footer.wp-block-template-part a {
  color: #ffffff !important;
}
body.spatz-light footer.wp-block-template-part a:hover {
  color: #fff !important;
  text-decoration: underline;
}

.wp-block-navigation__responsive-container.has-modal-open {
  background-color: #3f4238 !important;
  color: #fff !important;
}
.wp-block-navigation__responsive-container.has-modal-open
  .wp-block-navigation-item
  a,
.wp-block-navigation__responsive-container.has-modal-open
  .wp-block-navigation-item
  a:hover {
  color: #fff !important;
}

.wp-block-navigation__responsive-close {
  color: #fff !important;
}
