/*
Theme Name: Block-Theme Netzialisten 
Theme URI: 
Author: Kirsten Schelper
Author URI: http://start-the-loop.com
Description: Blank Theme mit Styles Child Yumi Netzialisten 
Requires at least: 6.0
Tested up to: 6.2.2
Requires PHP: 5.7
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blocktheme_netzialisten
Tags: 
*/

/*:root {
  --global-border-radius-round: 12px;
}*/

/* GENERAL ADJUSTMENTS */
html {
  scroll-behavior: smooth;
}

.entry-content {
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

p strong {
  font-weight: 500;
}

/* keep lists vertically in line */
.entry-content ul {
  padding-left: 1.25em;
}

/* FIXES THEME */
/*Inherit prevents the links inside paragraphs to show the link color 
There is no way to unset this, initial doesnt work, interferes with lots of things */
/*a{
  color:inherit;
}*/
/* So we have do do this instead*/
.entry-content p a {
  color: var(--wp--preset--color--custom-primary);
}

/* Buttons block – No idea what's going on here; there are two borders on buttons  */

.wp-block-buttons .wp-block-button.is-style-outline {
  border: none;
}
/*Separator categories block in query block; set to dipslay:none in query.scss line 11*/
.wp-block-query .wp-block-post-template .wp-block-post-terms__separator {
  display: block;
}

/*Excerpt text doesnt accept font-sizes. Font-sizes are applied to container but paragraph doesnt react. */
p.wp-block-post-excerpt__excerpt {
  font-size: inherit;
}
/* FIX */
.wp-block-query-pagination-numbers .page-numbers {
  font-weight: 300 !important;
}

/* TODO: No setting for border width? */
.wp-block-separator {
  border: 2px solid;
}
.wp-block-separator.is-style-wide {
  border: 4px solid;
}

#navi-kategorien {
  max-width: calc(var(--wp--style--global--wide-size) + 100px);
  margin-left: auto;
  margin-right: auto;
  margin-top: -40px;
}
/* I give up. Impossible to do this in the editor.Things are constantely breaking. */
p.link-impressum a {
  color: white;
}
/*No gap before category page Blog */
.wp-block-query .wp-block-post-template .wp-block-post-terms {
  gap: var(--wp--preset--spacing--3);
  gap: 0;
  flex-wrap: wrap;
  display: flex;
}

/* Make icon Social Link bigger, no setting found */

.wp-block-social-links .wp-social-link,
.wp-block-social-links .wp-social-link a {
  width: 50px;
  height: 50px;
}

/* Hover color for buttons */

.wp-block-buttons .wp-block-button .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--custom-primary-dark);
}

.wp-block-buttons
  .wp-block-button.is-style-outline
  .wp-block-button__link:hover {
  background-color: #eaeaea !important;
}

/* No settings for font-sizes and font-weights headlines found*/
.entry-content h6 {
  /* font-weight: 500;*/
}

/* THEME SPECIFIC STYLING LINKS */

/* Weiterlesen-Link */
.wp-block-post-excerpt__more-text {
  margin-top: 0;
}
.wp-block-post-excerpt__more-link {
  color: var(--wp--preset--color--custom-primary) !important;
  text-decoration: none !important;
  border: 1px solid;
  border-color: var(--wp--preset--color--custom-primary);
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 0.5em;
}

.wp-block-post-excerpt__more-link:hover {
  background-color: var(--wp--preset--color--custom-primary-dark);
  color: white !important;
  border-color: var(--wp--preset--color--custom-primary-dark);
}

/* URL projekt in excerpt */
a.url-projekt {
  display: block;
}

/* Every block has the same margin top (24px), which is way too big for paragraphs 
No idea whether there is a setting for this */
.entry-content p {
  -webkit-margin-before: 0.5em;
  margin-block-start: 0.5em !important;
}

/* EFFECTS AND HELPERS */
.width-33 {
  width: 33%;
}
/*Zoom animation on hover */

.zoom {
  transition: transform 0.5s;
  /* Animation */
}

.zoom:hover {
  transform: scale(1.1);
  /* (110% zoom) */
}

/*makes image stretch whole height in 2columns element */

figure.stretched {
  height: 100%;
}

figure.stretched img {
  width: auto;
  -o-object-fit: cover;
  object-fit: cover;
  height: 100%;
}

/*Cropped images with aspect ratio. Just add .cropped-images to container */
/*https://codepen.io/ziizium/pen/yLbELqw*/
.cropped-images figure {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: calc(100% * (100 / 150));
}

.cropped-images figure img {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

/*Stretch card items to 100% height for example */
.height-100 {
  height: 100%;
}

/* header with background-image */
header .wp-block-group.inner-header {
  background-image: url(assets/images/buchstabe.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
/* Why cant we do that in editor? Settings dont do anything.*/
/*.site-header {
  max-width: var(--wp--style--global--wide-size);
  margin:0 auto;
  padding-left:0
}*/
.wp-block-site-tagline {
  opacity: 0.5;
}

/* Plugin Ivory Search */

/*Bug fix; align-self doesnt work */
.wp-block-ainoblocks-flex-item.ivory-search {
  align-self: flex-start;
}

.ivory-search form input {
  font-family: inherit;
  font-weight: inherit;
  margin-top: -10px;
  /*color: var(--wp--preset--color--custom-text) !important;*/
  -webkit-appearance: none;
  background-color: white;
  border: 1px solid var(--wp--preset--color--custom-neutral-dark);
  width: 100%;
  padding: 0.75rem;
}

.ivory-search form input[type="submit"] {
  display: none;
}

/*hide strange ivory plugin stuff*/
.is-edit-link,
.is-customize-link {
  display: none !important;
}

/*no idea what this thing is or does*/
.astm-search-menu::marker {
  color: transparent;
}
/* Alte Beiträge */
.entry-content div.alt {
  border: 1px solid #ec9dad;
  background: #fdf2f5;
  padding: 10px 15px;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 2em;
}
/*Code */
pre {
  border: 1px solid var(--wp--preset--color--custom-neutral-dark);
  border-radius: 5px;
  overflow: auto;
  padding: 0.5em;
  display: block;
  white-space: pre-wrap;
  white-space: moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
  padding: 1em 1em 1.5em 1em;
  display: inline-block;
  min-width: 60%;
}
/*shortcode old_posts */
.notice-old-post {
  border: 1px solid #ec9dad;
  background: #fdf2f5;
  padding: 0.5em 0.75em;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 2em;
  max-width:40em !important;
  margin-left:0 !important;/*shortcode has to be grouped to make that work*/
}