/*
 Theme Name:   Sunflower-child
 Theme URI:    https://sunflower-theme.de
 Description:  Sunflower child-theme for https://gruene-rlp.de
 Author:       Marc Dietz
 Template:     sunflower
 Version:      1.2
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/


/* ----------------- Overrides ------------------------------------- */

/* Wir haben sehr viele Menü Einträge unter dem Punkt 'Positionen'
 * daher müssen wir den Abstand zwischen den Einträgen verringern.
 * Außerdem möchten wir die Unterpunkte etwas kleiner darstellen.
 */
 .dropdown-menu ul li a {
    padding-top: 3px;
    padding-bottom: 3px; }
  
  .dropdown-submenu ul li a {
    font-size: 14px; }
  
  /* Blendet das englische Wort "Archive" als Überschrift über diesem Dropdown im Footer aus.*/
    .wp-block-archives-dropdown label {
    display: none; }
  
  
    /* ----------------- Custom styles --------------------------------- */
  
  /* Style für 'gesamte Breite' im Gutenberg Editor */
  .alignfull {
      margin: 32px calc(50% - 50vw);
      max-width: 100vw;
      width: 100vw;
  }
  
  /* Das Datum in der Beitragsliste soll etwas unscheinbarer werden */
  .archive-loop span.posted-on > time.entry-date {
      font-size:1rem;
      color:gray;
      position:relative;
      top:-0.8em;
  }
  
  /* Quick-Fix Link-Text-Farbe in Buttons */
  .wp-block-button a:link {
      color:#fff;
  }
  
  .wp-block-button a:hover {
      color:#fff;
  }
  
  .wp-block-button a:visited {
      color:#fff;
  }
  
  .wp-block-button a:active {
      color:#fff;
  }
  
  /* Quick-Fix Radio-Selection in Contact-Form wird nicht mehr inline angezeigt */
  /* ist noch nicht im Repo */
  .wpcf7-list-item {
      display:block;
  }
  

  /* ----------------- Custom-CSS CD2023 --------------------------------- */
:root {
	--color-sand: #f5f1e9;
	--color-tanne:#005437;
	--color-klee:#008939;
	--color-grashalm:#8abd24;
	--color-sonne:#fff17a;
	--color-himmel:#0ba1dd;
}

/* support custom-palette-colors */
.has-tanne-color {
    color: var(--color-tanne);
}
.has-tanne-background-color {
    background-color: var(--color-tanne);
}
.has-klee-color {
    color: var(--color-klee);
}
.has-klee-background-color {
    background-color: var(--color-klee);
}
.has-grashalm-color {
    color: var(--color-grashalm);
}
.has-grashalm-background-color {
    background-color: var(--color-grashalm);
}
.has-sand-color {
    color: var(--color-sand);
}
.has-sand-background-color {
    background-color: var(--color-sand);
}
.has-sonne-color {
    color: var(--color-sonne);
}
.has-sonne-background-color {
    background-color: var(--color-sonne);
}
.has-himmel-color {
    color: var(--color-himmel);
}
.has-himmel-background-color {
    background-color: var(--color-himmel);
}

@font-face {
    font-family: GrueneType;
    font-weight:600;
    src: url("fonts/GrueneType-BlackCondensedItalic.woff") format('woff'),
    url("fonts/GrueneType-BlackCondensedItalic.woff2") format('woff2');
    font-display: swap; 
}

.bloginfo {
	background-color:var(--color-tanne) !important;
	background-image:none;
}

body.search, body.home, body.page, body.archive, body.blog {
	background-color: var(--color-sand);
}

.has-gray-100-background-color {
    background-color: var(--color-sand) !important; 
}
  
.has-gray-100-hover-background-color:hover {
    background-color: var(--color-sand) !important; 
}

.theme--default .entry-content > .wp-block-cover {
    font-family: GrueneType; 
}

.theme--contrast .entry-content > .wp-block-cover {
    font-family: GrueneType; 
}

.theme--default .roofline {
    font-family: GrueneType; 
}
.theme--contrast .roofline {
    font-family: GrueneType; 
}
.theme--default .roofline-single {
    font-family: GrueneType; 
}
.theme--contrast .roofline-single {
    font-family: GrueneType; 
}

.theme--default h1, .theme--default .h1, .theme--default .h1, .theme--default
.has-huge-font-size {
    font-family: GrueneType; 
}
.theme--contrast h1, .theme--contrast .h1, .theme--contrast .h1, .theme--contrast
.has-huge-font-size {
    font-family: GrueneType; 
}

.theme--default h2, .theme--default .h2, .theme--default .h2, .theme--default
.has-large-font-size {
    font-family: GrueneType; 
}

.theme--contrast h2, .theme--contrast .h2, .theme--contrast .h2, .theme--contrast
.has-large-font-size {
    font-family: GrueneType; 
}

.theme--default .bloginfo-name {
    font-family: GrueneType; 
}

.theme--contrast .bloginfo-name {
    font-family: GrueneType; 
}

.gruenetype {
    font-family: GrueneType !important;
    font-weight: 500; 
}

/* ---------- Customizer-CSS ---------- */

a {
	color:var(--color-klee);
}
a:visited {
	color:var(--color-tanne);
}
a:hover, a:focus, a:active {
	color:var(--color-himmel);
}
.dropdown-menu ul li a {
	color:#000;
}
.dropdown-menu ul li a:hover {
	color:var(--color-klee);
}
.navbar-light .navbar-nav .current-menu-parent {
	border-bottom-color:var(--color-klee)
}
.navbar-light .navbar-nav .current-menu-parent 
a.nav-link {
	color:var(--color-klee);
}

.navbar-light .navbar-nav .nav-link:hover {
	color:var(--color-grashalm);
}

.bg-darkgreen {
	background-color:var(--color-klee);
}
.site-footer {
	background-color:var(--color-tanne);
}
.site-footer a {
	color:#fff;
}
.site-footer a:visited {
	color:var(--color-sand);
}
.site-footer a:hover,
.site-footer a:active,
.site-footer a:focus {
	color:var(--color-himmel);
}

.topmenu {
	background-color:var(--color-klee);
}
.bloginfo-description {
	font-family:GrueneType;
	font-size:1.1em
}
.bloginfo a.h5 {
	font-size:2.4em;
}
.bloginfo img {
	max-width:75px;
}



article.post h2 a,
article.post .h2 a {
	color:000;
	font-family:GrueneType;
}
.theme--default h5,
.theme--default .h5 {
	font-family:GrueneType;
	color:var(--color-sand);
	font-size:1.5em
}
header.entry-header .h5,
header.entry-header h2.card-title a {
	color:var(--color-tanne);
}
/*
header.entry-header h2.card-title a:hover {
	color:var(--color-klee);
}
*/
article.post .entry-header:hover h2 a, article.post .entry-header:hover .h2 a {
	color:var(--color-grashalm);
}


a.event-card article .event-archive-meta {
  color:var(--color-klee);
}
.event-archive-meta .small {
	font-family:PtSans;
}

.widget {
	color:var(--color-sand);
}
.widget ul a {
	color:var(--color-sand);
}
.widget ul a:hover {
	color:var(--color-tanne);
}
.wp-block-button__link {
	background-color:var(--color-klee);
	color:var(--color-sand)!important;
}
.wp-block-button__link:hover {
	background-color:var(--color-grashalm)!important;
	color:var(--color-tanne)!important;
}
.display-single > .entry-header{
	background-color:var(--color-sand);
}
.wp-block-media-text.person .person-name,
.person-name {
	font-family:GrueneType;
}
.sunflower-post-navigation
div
a {
	background-color:var(--color-grashalm);
	color:var(--color-tanne);
}
.sunflower-post-navigation
div
a:hover {
	background-color:var(--color-grashalm);
	color:var(--color-sand);
}
.entry-footer a {
	color:var(--color-klee)
}
.entry-footer a:hover {
	color:var(--color-himmel)
}
.wp-block-tag-cloud a {
	color:var(--color-klee);
}
h1.page-title,
h1.entry-title {
	color:#000;
}
.metabox {
	background-color:var(--color-klee);
	color:var(--color-sand);
}
article.post a.news-title {
	color:var(--color-tanne);
}

nav.navbar.stuck a.navbar-brand img {
	height:40px;
	padding:5px;
	background-color:var(--color-tanne);
}