
header.wp-block-template-part {
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto;
	padding-inline: var(--wp--style--global--spacing--padding);
	padding: 3rem 1rem;
}

header .wp-block-site-title,
header .wp-block-site-tagline {
	font-size: 24px;
	text-shadow: 2px 2px 2px #000000;
	text-align: left;
}
header .wp-block-site-tagline {
	margin-left: 3rem;
}
header .wp-block-site-title,
header .wp-block-site-tagline,
header .header-social a {
	color: var(--wp--preset--color--base) !important;
}

/* === HEADER GRID === */
header.wp-block-template-part {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-rows: auto auto;
	column-gap: 2rem;
	row-gap: 0.25rem;
	align-items: center;
}

/* Logo links */
.header-logo {
	grid-column: 1;
	grid-row: 1 / span 2;
	align-self: center;
}

/* Titel */
.wp-block-site-title {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
}

/* Untertitel */
.wp-block-site-tagline {
	grid-column: 2;
	grid-row: 2;
	margin: 0;
}

/* Social Nav rechts oben */
.header-social {
	grid-column: 3;
	grid-row: 1;
	justify-self: center;
}

/* Spenden-Button rechts unten */
.header-donate {
	grid-column: 3;
	grid-row: 2;
	justify-self: end;
}


@media (max-width: 900px) {
	header.wp-block-template-part {
		grid-template-columns: 100px 260px;
		grid-template-rows: auto;
		text-align: center;
		row-gap: 1rem;
		column-gap: 3rem;
		justify-content: center;
	}

	.header-logo {
		grid-column: 1;
		grid-row-start: 1;
		grid-row-end: span 2;
		justify-self: center;
	}

	header .wp-block-site-title   {grid-row: 3;}
	header .wp-block-site-tagline {grid-row: 4;}
	header .wp-block-site-title,
	header .wp-block-site-tagline {
		text-align: center;
		margin-left: unset;
		grid-column-start: 1;
		grid-column-end: span 2;
	}

	.header-social,
	.header-donate {
		grid-column: 2;
		justify-self: center;
	}
}
@media (max-width: 450px) {
	header.wp-block-template-part {
		grid-template-columns: 1fr;
	}
	header .wp-block-site-logo    {grid-column: 1; grid-row: 1;}
	header .header-social         {grid-column: 1; grid-row: 2;}
	header .header-donate         {grid-column: 1; grid-row: 3;}
	header .wp-block-site-title   {grid-column: 1; grid-row: 4;}
	header .wp-block-site-tagline {grid-column: 1; grid-row: 5;}
}


/* ========== Header Context: Front Page ========== */

header.is-frontpage .header-logo img       {width: 15vw; height: auto;}
header.is-frontpage .wp-block-site-title   {font-size: 60px;}
header.is-frontpage .wp-block-site-tagline {font-size: 40px;}
header.is-frontpage .header-donate         {display: none;}
@media (min-width: 1001px) {
	header.is-frontpage nav.header-social      {
		gap: unset;
		align-self: flex-end;
		justify-self: stretch;
	}
	header.is-frontpage nav.header-social > ul {
		display: flex;
		justify-content: space-between;
	}
}

header.is-frontpage.wp-block-template-part {
	grid-template-columns: 15vw auto;
}
/* Logo oben links */
header.is-frontpage .header-logo   {grid-column: 1; grid-row: 1;}
/* Social Nav unten links */
header.is-frontpage .header-social {grid-column: 1; grid-row: 2; justify-self: left;}
/* Titel oben rechts Untertitel unten rechts, grid position bleibt */

@media (max-width: 1000px) {
	header.is-frontpage.wp-block-template-part {
		grid-template-columns: auto;
		justify-content: center;
		gap: 1rem;
		padding-left:  2rem;
		padding-right: 2rem;
	}
	header.is-frontpage .header-logo   {grid-row: 1; text-align: center;}
	header.is-frontpage .header-social {grid-row: 2; justify-self: center;}
	header.is-frontpage .wp-block-site-title   {grid-row: 3; grid-column: 1;}
	header.is-frontpage .wp-block-site-tagline {grid-row: 4; grid-column: 1;}

	header.is-frontpage .wp-block-site-title   {font-size: 40px;}
	header.is-frontpage .wp-block-site-tagline {font-size: 30px;}
	header.is-frontpage .header-logo img {width: 30vw;}
}
@media (max-width: 600px) {
	header.is-frontpage .wp-block-site-title   {font-size: 30px;}
	header.is-frontpage .wp-block-site-tagline {font-size: 20px;}
	header.is-frontpage.wp-block-template-part {padding:  1rem;}
	header.is-frontpage .header-logo img {width: 180px;}
}
