/*
Theme Name: Red Wednesday Theme
Author: feuerball design
Author URI: https://feuerball.de
Description: Theme für red-wednesday.de
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: red-wednesday-theme
*/

/*
Color scheme:
#231f20: base - schwarz
#ffffff: contrast - weiss
#b4061c: accent-1 - Rot dunkel
#e0002b: accent-2 - Rot hell
#939598: accent-3 - Grau dunkel
#eceded: accent-4 - Grau hell
*/

/*
* Typewriter Effect
https://css-tricks.com/snippets/css/typewriter-effect/
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
/*
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}
*/

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

html {
	scroll-behavior: smooth;
}

/* Nutzbar ab Internet Explorer 9 oder höher */
.visually-hidden:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}


:root {
	--red-header-height: 157px;
}

strong {
	font-weight: 600;
}

header > #site-header > .wp-block-group {
	max-width: inherit;
	justify-content: space-between;
}

.wp-block-site-logo img {
	max-width: 200px;
}


.wp-block-navigation__responsive-container-open {
	display: inline-block;
}

.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open {
	transform: scale(1.8, 1.4);
}

.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open svg path {
	stroke: black;
    stroke-width: 1px;
    stroke-linecap: round;
}


.wp-block-navigation .wp-block-navigation-item__content {
	padding: .5rem .75rem;
	text-transform: uppercase;
}

.wp-block-navigation .wp-block-navigation-item:nth-child(2) .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--accent-2);
	border-radius: 10px;
}

.godown .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
}

.godown .wp-block-navigation .wp-block-navigation-item:nth-child(2) .wp-block-navigation-item__content.wp-block-navigation-item__content {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--accent-2);
	border-radius: 10px;
}

.wp-block-navigation-item .wp-block-navigation-item__content > .wp-block-navigation-item__label {
    text-decoration: none;
    background-image: linear-gradient(var(--wp--preset--color--accent-1), var(--wp--preset--color--accent-1));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 6px;
    transition: background-size .3s;
	padding-bottom: .3rem;
}

.wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content > .wp-block-navigation-item__label,
:root :where(.wp-block-navigation :hover > .wp-block-navigation-item__label), :root :where(.wp-block-navigation :focus > .wp-block-navigation-item__label) {
	background-size: 100% 6px !important;
}

.wp-block-navigation .wp-block-navigation-item:nth-child(2) .wp-block-navigation-item__content > .wp-block-navigation-item__label {
    background-image: linear-gradient(var(--wp--preset--color--contrast), var(--wp--preset--color--contrast));
}

.godown .wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content > .wp-block-navigation-item__label {
    background-image: linear-gradient(var(--wp--preset--color--contrast), var(--wp--preset--color--contrast));
}

.godown .wp-block-navigation .wp-block-navigation-item:nth-child(2) .wp-block-navigation-item__content > .wp-block-navigation-item__label {
    background-image: linear-gradient(var(--wp--preset--color--accent-1), var(--wp--preset--color--accent-1));
}

.red-extern a::after {
	content: "";
    width: 16px;
    height: 16px;
    display: inline-block;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath fill='%23b4061c' d='M 25.980469 2.9902344 A 1.0001 1.0001 0 0 0 25.869141 3 L 20 3 A 1.0001 1.0001 0 1 0 20 5 L 23.585938 5 L 13.292969 15.292969 A 1.0001 1.0001 0 1 0 14.707031 16.707031 L 25 6.4140625 L 25 10 A 1.0001 1.0001 0 1 0 27 10 L 27 4.1269531 A 1.0001 1.0001 0 0 0 25.980469 2.9902344 z M 6 7 C 4.9069372 7 4 7.9069372 4 9 L 4 24 C 4 25.093063 4.9069372 26 6 26 L 21 26 C 22.093063 26 23 25.093063 23 24 L 23 14 L 23 11.421875 L 21 13.421875 L 21 16 L 21 24 L 6 24 L 6 9 L 14 9 L 16 9 L 16.578125 9 L 18.578125 7 L 16 7 L 14 7 L 6 7 z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
	position: relative;
	top: 2px;
	margin-left: .2rem;	
}

.godown .red-extern a::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath fill='%23ffffff' d='M 25.980469 2.9902344 A 1.0001 1.0001 0 0 0 25.869141 3 L 20 3 A 1.0001 1.0001 0 1 0 20 5 L 23.585938 5 L 13.292969 15.292969 A 1.0001 1.0001 0 1 0 14.707031 16.707031 L 25 6.4140625 L 25 10 A 1.0001 1.0001 0 1 0 27 10 L 27 4.1269531 A 1.0001 1.0001 0 0 0 25.980469 2.9902344 z M 6 7 C 4.9069372 7 4 7.9069372 4 9 L 4 24 C 4 25.093063 4.9069372 26 6 26 L 21 26 C 22.093063 26 23 25.093063 23 24 L 23 14 L 23 11.421875 L 21 13.421875 L 21 16 L 21 24 L 6 24 L 6 9 L 14 9 L 16 9 L 16.578125 9 L 18.578125 7 L 16 7 L 14 7 L 6 7 z'/%3E%3C/svg%3E") no-repeat center center;
}
	
header + .entry-content {
	margin-top: 0;
}

.entry-content > .wp-block-cover {
	min-height: 260px;
}

h1 {
	line-height: 1.1em;
	hyphens: auto;
}

.wp-block-cover h1 {
	font-weight: 300;
	letter-spacing: -1px;
	font-size: 2rem;
	line-height: 3rem;
}

.wp-block-cover h1 span {
	font-weight: 700;
}

body:not(.wp-theme-red-wednesday-theme):not(.editor-styles-wrapper) {
	background: transparent;
}

body:not(.wp-theme-red-wednesday-theme):not(.editor-styles-wrapper) > div > h1 {
	font-size: 2rem;
	color: var(--wp--preset--color--contrast);
}

.wp-block-buttons .wp-block-button__link:after {
	content: "";
    width: 18px;
    height: 20px;
    display: inline-block;
    background: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 280 300'%3E%3Cg%3E%3Cpath fill='%23e0002b' d='M153.219 18.605c10.035 11.311 20.219 22.491 30.284 33.775c10.069 11.289 20.002 22.701 30.115 33.951c16.005 17.803 32.11 35.515 48.169 53.27c0.444 0.491 0.825 1.039 1.245 1.553c9.245 11.319 9.102 11.184-1.015 21.889c-10.047 10.632-19.836 21.512-29.606 32.401c-12.437 13.86-24.752 27.829-37.097 41.771c-13.77 15.549-27.686 30.973-41.188 46.75c-5.989 6.998-13.368 8.533-21.556 6.788c-6.812-1.452-11.418-6.246-13.078-13.065c-1.541-6.334-1.006-12.557 3.622-17.786c9.038-10.213 18.074-20.427 27.111-30.64c15.867-17.932 31.729-35.867 47.604-53.791c6.282-7.094 12.519-14.229 18.933-21.202c1.997-2.17 2.03-3.696 0.05-5.879c-12.631-13.917-25.193-27.897-37.713-41.914c-10.633-11.903-21.154-23.905-31.77-35.824c-8.072-9.063-16.465-17.848-24.405-27.015c-5.26-6.072-7.237-21.715 1.976-29.095C135.25 6.25 148.969 13.815 153.219 18.605z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
	position: relative;
	top: 3px;
}

.wp-block-buttons .wp-block-button__link:hover:after {
    background: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 280 300'%3E%3Cg%3E%3Cpath fill='%23ffffff' d='M153.219 18.605c10.035 11.311 20.219 22.491 30.284 33.775c10.069 11.289 20.002 22.701 30.115 33.951c16.005 17.803 32.11 35.515 48.169 53.27c0.444 0.491 0.825 1.039 1.245 1.553c9.245 11.319 9.102 11.184-1.015 21.889c-10.047 10.632-19.836 21.512-29.606 32.401c-12.437 13.86-24.752 27.829-37.097 41.771c-13.77 15.549-27.686 30.973-41.188 46.75c-5.989 6.998-13.368 8.533-21.556 6.788c-6.812-1.452-11.418-6.246-13.078-13.065c-1.541-6.334-1.006-12.557 3.622-17.786c9.038-10.213 18.074-20.427 27.111-30.64c15.867-17.932 31.729-35.867 47.604-53.791c6.282-7.094 12.519-14.229 18.933-21.202c1.997-2.17 2.03-3.696 0.05-5.879c-12.631-13.917-25.193-27.897-37.713-41.914c-10.633-11.903-21.154-23.905-31.77-35.824c-8.072-9.063-16.465-17.848-24.405-27.015c-5.26-6.072-7.237-21.715 1.976-29.095C135.25 6.25 148.969 13.815 153.219 18.605z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center center;
}

.wp-block-buttons.red-btn-white .wp-block-button__link {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--accent-2);
}

.wp-block-buttons.red-btn-white .wp-block-button__link:hover,
.wp-block-buttons.red-btn-white .wp-block-button__link:focus {
	background-color: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
}

.wp-block-image .wp-element-caption,
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: absolute;
	bottom: 50px;
	z-index: 9;
	color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--accent-2);
	padding: .5rem 2rem .5rem 4rem;
	font-size: var(--wp--preset--font-size--x-small);
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	background-image: none;
	right: inherit;
	padding-left: 2rem;
	bottom: 2rem;
	text-shadow: none;
}

.wp-block-columns .wp-block-column > .wp-block-image .wp-element-caption {
	bottom: 0;
}

.red-background-gradient {
	background: #E0002B;
	/*background: linear-gradient(135deg, rgba(224, 0, 43, 1) 0%, rgba(255, 255, 255, 1) 450px);*/
	background: radial-gradient(circle at left top,rgba(244, 0, 43, 1) 0%, rgba(255, 255, 255, 1) 20vw);
}

.red-btn-totop {
	position: relative;
}

.red-btn-totop .wp-block-buttons {
	position: absolute;
	top: 30px;
	left: 30px;
	margin-top: 0;
}


.wp-block-details summary {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
	position: relative;
	padding-right: 30px;
	cursor: pointer;
	
	border: 1px solid #eee;
	border-radius: 5px;
	padding: 10px 32px 10px 10px;
	border-bottom: 0;
}

.wp-block-details summary::marker {
	display: none;
	content: "";
}

.wp-block-table {
	overflow-x: auto;
}

/* for blink/webkit */
details summary::-webkit-details-marker {
  display: none;
}
/* for firefox */
details > summary:first-of-type {
  list-style: none;
}

::-ms-details-marker,
::-moz-details-marker,
::-webkit-details-marker,
::details-marker,
::-ms-marker,
::-moz-marker,
::-webkit-marker,
::marker,
summary::-ms-details-marker,
summary::-moz-details-marker,
summary::-webkit-details-marker,
summary::details-marker,
summary::-ms-marker,
summary::-moz-marker,
summary::-webkit-marker,
summary::marker {
	display: none;
}

.wp-block-details summary::after {
	content: "";
	width: 20px;
	height: 20px;
    transition: all 0.5s;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M169.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 306.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: cover;
	position: absolute;
	top: 23px;
	right: 8px;	
}

.wp-block-details[open] summary {
    transition: all 0.2s ease-in-out;
}

.wp-block-details[open] > summary::after{
	right: 10px;
	bottom: -13px;
	transform: rotate(180deg);
}

.wp-block-details summary + p {
	
}

form .wp-block-columns:has(+ .wp-block-columns) {
	margin-bottom: 0;
}

form label {
	color: var(--wp--preset--color--accent-2);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}

form p {
	font-size: var(--wp--preset--font-size--small);
}

form input:not([type="submit"]) {
	border: 0;
	background-color: var(--wp--preset--color--accent-4);
	padding: .75rem;
	font-size: 1.25rem;
	font-family: var(--wp--preset--font-family--body);
	/*border: 1px solid var(--wp--preset--color--accent-3);*/
}

form input[type="text"],
form input[type="date"],
form input[type="time"],
form input[type="email"],
form input[type="tel"],
form input[type="number"] {
	box-sizing: border-box;
	width: 100%;
}

form input[type="submit"] {
	cursor: pointer;
}


footer {
	font-size: var(--wp--preset--font-size--x-small);
	line-height: var(--wp--custom--typography--line-height--medium);
}

.marquee {
	--gap: 1rem;
	display: flex;
	overflow: hidden;
	user-select: none;
	gap: var(--gap);
	
	background-color: var(--wp--preset--color--accent-1);
}

.marquee__content {
	flex-shrink: 0;
	display: flex;
	justify-content: space-around;
	min-width: 100%;
	gap: var(--gap);
	
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-2);
	list-style-type: "\2014";
	margin: 0;
	padding: inherit;
	font-size: 7rem;
	font-weight: 400;	
}

.marquee__content li {
	padding: 0 3rem;
	margin: 0 1.5rem;	
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

/* Enable animation */
.marquee__content {
	animation: scroll 20s linear infinite;
}


@media (max-width: 768px) {
	.red-infobox .wp-block-group .wp-block-group {
		min-width: 100%;
		padding-left: 0;
		padding-right: 0;
	}
}

/* Reset core style */
@media (min-width: 600px) {
	.wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

@media (min-width: 600px) {
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: none;
    }
}

/* Apply the core style at 800px again */
@media (min-width: 1024px) {

	.wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: none;
	}
	
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: block;
    }
}


@media (min-width: 560px) {
		
	.entry-content > .wp-block-cover {
		min-height: 320px;
	}
		
	.wp-block-cover h1 {
		font-size: 3rem;
		line-height: 4rem;
	}
	
}


@media (min-width: 768px) {
		
	.wp-block-cover h1 {
		font-size: 4rem;
		line-height: 5rem;
	}
}



@media (min-width: 1024px) {

	header {
		position: fixed;
		width: 100%;
		top: 0;
		z-index: 9999;
	}
	
	.admin-bar header {
		top: 32px;
	}
	
	header + .entry-content {
		margin-top: var(--red-header-height);
	}

	header > #site-header {
		background-color: var(--wp--preset--color--contrast);
		height: var(--red-header-height);
		display: flex;
		flex-wrap: wrap;
		align-content: space-between;
		border-bottom: 8px solid var(--wp--preset--color--accent-1);
		padding-left: 2rem;
		padding-right: 2rem;
	}
	
	header > #site-header.godown {
		background-color: var(--wp--preset--color--accent-2);
	}
	
	header > #site-header > .wp-block-group {
		align-items: baseline;
		gap: 0.5rem;
	}
	
	.wp-block-site-logo img {
		max-width: 180px;
	}
	
	.wp-block-navigation ul {
		gap: 0;
	}
	
	.entry-content > .wp-block-cover {
		min-height: 520px;
	}
		
	.wp-block-cover h1 {
		font-size: 5rem;
		line-height: 6rem;
	}
	
	.red-background-topleft {
		background: url(assets/images/acn-logo_background.jpg) no-repeat 30px 250px;
		background-size: calc((100% - 796px - 100px) / 2); /* 300px; */
	}

	h1 {
		hyphens: none;
	}	
		
	.wp-block-file > a:first-child {
		display: inline-block;
		max-width: 70%;
	}

	.wp-block-file a.wp-block-file__button {
		float: right;
	}

	.red-background-gradient {
		background: #E0002B;
		/*background: linear-gradient(135deg, rgba(224, 0, 43, 1) 0%, rgba(255, 255, 255, 1) 450px);*/
		background: radial-gradient(circle at left top,rgba(244, 0, 43, 1) 0%, rgba(255, 255, 255, 1) 320px);
	}
	
}

@media (min-width: 1280px) {
	
	header > #site-header {
		padding-right: var(--wp--style--root--padding-right);
		padding-left: var(--wp--style--root--padding-left);
	}
		
	header > #site-header > .wp-block-group {
		gap: 1.8rem;
	}
	
	header > #site-header > .wp-block-group,
	footer .wp-block-group > .wp-block-columns {
		max-width: 1280px;
		margin: 0 auto;
	}
	
	.wp-block-navigation ul {
		gap: inherit;
	}
	
	.wp-block-site-logo img {
		max-width: 220px;
	}
	
	h1 + p {
		margin-top: 0 !important;
	}

	footer .wp-block-group > .wp-block-columns > .wp-block-column {
		display: flex;
		flex-wrap: wrap;
	}

	footer .wp-block-group > .wp-block-columns > .wp-block-column:nth-child(2) > * {
		margin: 0 auto;
	}

	footer .wp-block-group > .wp-block-columns > .wp-block-column:last-child > * {
		margin: 0 0 0 auto;
	}
	
}


@media (min-width: 1400px) {

	.red-background-gradient {
		background: #E0002B;
		/*background: linear-gradient(135deg, rgba(224, 0, 43, 1) 0%, rgba(255, 255, 255, 1) 450px);*/
		background: radial-gradient(circle at left top,rgba(244, 0, 43, 1) 0%, rgba(255, 255, 255, 1) 500px);
	}
}