/*!
Theme Name: pak
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: pak
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

*/

:root {
	--schwarz: #222;
	--rot: #C72450;
}

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
}
main {
	display: block;
}
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}
a {
	background-color: transparent;
}
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}
b,
strong {
	font-weight: bolder;
}
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: "avenir-next-lt-pro", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}
h1, h2 {
	text-transform: uppercase;
	line-height: 1.3;
}
p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
	margin: 0 auto;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #4169e1;
}

a:visited {
	color: #800080;
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/
.site-branding {
	width: 200px;
	margin: 15px 0 0 15px;
	display: block;
}
@media (min-width: 768px) {
	#masthead {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		padding: 20px 0;
		margin: 0 20px;
        border-bottom: 1px solid #ddd;
	}
	.site-branding {
		width: 260px;
		margin: 0;
	}
	.menu-hauptmenue-container {
		display: flex;
		justify-content: flex-end;
		height: 100%;
	}
}
@media (min-width: 992px) {
	.site-branding {
		width: 320px;
	}
}
@media (min-width: 1310px) {
	#masthead {
		margin: 0 30px;
	}
	.site-branding {
		width: 380px;
		margin: 15px 0 0 0;
	}
}

/* Fußbereich */

/* Förderer */
.foerderer {
	border-top: 1px solid #ddd;
}
.forderer-logos-wrapper {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 30px;
	flex-wrap: wrap;
}
.forderer-logos-wrapper .logo-item {
	display: flex;
	width: 110px;
	height: 110px;
	padding: 5px;
	align-items: center;
	justify-content: center;
	overflow: hidden; /* optional */
}
.forderer-logos-wrapper .logo-item img {
	max-width: 100px;
	max-height: 100px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
@media (min-width: 768px) {
	.forderer-logos-wrapper {
		gap: 30px;
	}
	.forderer-logos-wrapper .logo-item {
		width: 12px;
		height: 120px;
	}
	.forderer-logos-wrapper .logo-item img {
		max-width: 110px;
		max-height: 110px;
	}
}	
@media (min-width: 1280px) {
	.forderer-logos-wrapper {
		gap: 70px;
	}
	.forderer-logos-wrapper .logo-item {
		width: 160px;
		height: 160px;
	}
	.forderer-logos-wrapper .logo-item img {
		max-width: 150px;
		max-height: 150px;
	}
}	

#colophon {
	background: #f6f6f6;
	font-size: 0.925em;
}
.wrapper-legal {
	background: #000;
}
.wrapper-legal, .wrapper-legal a {
	color: #fff;
}
#colophon .site-info {
	display: flex;
  flex-direction: column;
  gap: 2rem;
	max-width: 1280px;
	margin: 15px auto;
	padding: 20px;
}
#colophon .site-info img {
	max-width: 200px;
	margin-bottom: 1rem;
}
#colophon .col {
	width: 100%	
}
@media (min-width: 768px) {
#colophon .site-info {	
	flex-direction: row;
	}
	#colophon .col {
		flex: 1 1 0;
	}
}
#colophon .legal {
	display: flex;
	justify-content: space-between;
	margin: 15px auto;
	max-width: 1280px;
	padding: 20px;
}	
#menu-rechtliche-angaben {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}
#menu-rechtliche-angaben li {
	display: flex;
	margin: 0 0 0 5px;
	padding: 0;
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Slider Startseite */
.slider .slide {
	position: relative;
	max-height: 730px;
}
.slider .slide .ausstellung-bild {
	position: relative;
}
.ausstellung-bild .bu {
	display: none;	
}
@media (min-width: 768px) {
	.ausstellung-bild .bu {
		position: absolute;
		z-index: 11;
		background: #fff;
		padding: 4px 12px;
		font-size: .9125em;
		bottom: 20px;
		left: 20px;
		display: block;
	}	
}

.slider .slide img {
	object-fit: cover;
	max-height: 730px;
	display: block;
}
.slider .slide .text-box {
	margin: -3rem 1rem 1rem;
	position: relative;
	z-index: 9;
}
.slider .slide .text-box-inner {
	background: #fff;
	padding: 1rem;
	box-shadow: 0 0 20px rgba(0,0,0,.15); 
	font-size: .9125em;
}
.slider .slide .text-box * {
	margin: 0;
}
.slider .slide .text-box .datum,
.slider .slide .text-box .kuenstler {
	color: #888;
}
.slider .slide .text-box .kuenstler {
	font-size: 1.2em;
}
.slider .slide .text-box .kuenstler {
	font-weight: bold;	
}
.slider .slide .text-box h1 {
	font-size: 1.5em;
	margin-bottom: .25em;
}
.slider .slide .text-box .teaser {
	margin-bottom: .5em;
}
.slider .slide .text-box .alert {
	background: var(--rot);
	padding: 4px 12px;
	color: #fff;
	display: inline-block;
	font-size: .9125em;
	margin-bottom: 1em !important;
}
@media (min-width: 768px) {
	.slider .slide .text-box {
		position: absolute;
		top: 0;
		bottom: 0;
		right: 30px;
		display: flex;
		align-items: center;
		max-width: 500px;
		width: 30%;
	}
	.slider .slide .text-box-inner {
		font-size: .95em;
	}
}
@media (min-width: 1200px) {
	.slider .slide .text-box-inner {
		font-size: 1em;
		padding: 1.25em;
	}	
}

/* Ausstellungen Teaser */
.ausstellungen-uebersicht article {
	border-bottom: 1px solid #ddd;
}
.article-inner, .vc_section .vc_row, .post-navigation, .foerderer-inner {
	max-width: 1280px;
	margin: 20px auto;
	padding: 20px;
}
.foerderer-inner {
	padding-left: 40px;	
	padding-right: 40px;
}
/* Single-Seiten der Ausstellungen und Default-Seite schnmaler */
.single-ausstellungen .article-inner, .single-ausstellungen .post-navigation,
.page .article-inner {
	max-width: 980px;
}
.article-inner.inner-no-space {
	margin-top: 0;
	margin-bottom: 0;
	padding_top: 0;
	padding-bottom: 0;
}
.vc_section .vc_row {
	padding-left: 5px;
	padding-right: 5px;
}
.ausstellung-teaser {
	display: flex;
	flex-direction: column;
	gap: 30px;
}
@media (min-width: 768px) {
	.ausstellung-teaser {
		flex-direction: row;
	}
	.ausstellung-teaser > div {
		flex: 1 1 0;
	}
}
@media (min-width: 1280px) {
	.ausstellungen-uebersicht article {
		margin: 30px;
	}
	.ausstellung-teaser {
		gap: 50px;
	}
}

/* Ausstellungen Teaser */
.ausstellung-content .datum, .ausstellung-content .kuenstler {
	font-size: 1.25rem;
	color: #888;
}
.page-template-ausstellungen-archiv .ausstellung-content .datum, .page-template-ausstellungen-archiv .ausstellung-content .kuenstler {
	font-size: 1rem;
}
.ausstellung-content .kuenstler {
	font-weight: bold;	
}
.ausstellung-content h2 {
	margin: .25rem 0;
	font-size: 2.25em;
}
.page-template-ausstellungen-archiv .ausstellung-content h2 {
	font-size: 1.5em;
}
.teaser {
	margin-bottom: 1.5em;
}
.teaser * {
	margin-bottom: .5em;	
}
.begleitende-veranstaltung {
	font-size: 0.9125rem;
	margin-top: 1em;
}
.begleitende-veranstaltung h4 {
	margin: 0;
}
.infos_begleitende_veranstaltung * {
	margin-top: 0;
	margin-bottom: .5em;
}

/* Ausstellung Detail */
.ausstellung-content-single {
	padding-bottom: 1rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid #ddd;
}
.ausstellung-bild img {
	width: 100%;
}

@media (min-width: 768px) {
	.ausstellung-content-single {
		display: flex;
		gap: 2rem;
	}
	.ausstellung-bild {
	  }

	  .ausstellung-info  {
		flex: 1;
	  }

	   .ausstellung-beschreibung {
		flex: 2;
	  }

}

/* Galerie */
.ausstellung-galerie .gal-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.gal-grid figure {
	position: relative;
}
.gal-grid figure figcaption {
	position: absolute;
	bottom: 20px;
	left: 10px;
	right: 10px;
	font-size: 13px;
	background: #fff;
	padding: 2px 4px;
	line-height: 1.3;
	visibility: hidden;
	opacity: 0;
	transition: all .2s ease-in-out;
}
.gal-grid figure:hover figcaption, .gal-grid figure:focus figcaption {
	bottom: 10px;
	visibility: visible;
	opacity: 1;
}
.ausstellung-galerie figure {
	margin: 0;
}

.ausstellung-galerie .gal-item {
	display: block;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: 6px;
}
@media (min-width: 768px) {
	.ausstellung-galerie .gal-grid {
		gap: 1rem;
	}
	.ausstellung-galerie .gal-item {
		width: 150px;
		height: 150px;
	}
}
@media (min-width: 1200px) {
	.ausstellung-galerie .gal-grid {
	}
	.ausstellung-galerie .gal-item {
		width: 175px;
		height: 175px;
	}
}
.ausstellung-galerie .gal-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Lightbox */
.gal-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.85);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 99999;

	opacity: 0;
	visibility: hidden;
	transition: opacity .18s ease, visibility 0s linear .18s;
}

.gal-lightbox.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity .18s ease, visibility 0s;
}

.gal-lightbox__inner {
	position: relative;
	max-width: 800px;
	max-height: 800px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;

	transform: scale(.96);
	opacity: 0;
	transition: transform .22s ease, opacity .22s ease;
	will-change: transform, opacity;
}

.gal-lightbox.is-open .gal-lightbox__inner {
	transform: scale(1);
	opacity: 1;
}

.gal-lightbox__img {
	max-width: 800px;
	max-height: 800px;
	width: 100%;
	height: auto;
	display: block;
}

.gal-lightbox__caption {
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	max-width: 800px;
	opacity: .95;
}

.gal-lightbox__close {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	background: rgba(255,255,255,.15);
	color: #fff;
	font-size: 22px;
	line-height: 40px;
}

/* Optional: weniger Bewegung für Nutzer mit entsprechender Systemeinstellung */
@media (prefers-reduced-motion: reduce) {
	.gal-lightbox,
	.gal-lightbox__inner {
		transition: none;
	}
}

/* Liste der Künstler */
.kuenstler-liste {
	list-style: none;
	padding: 0;
	margin: 0;
}
.kuenstler-liste li {
	display: inline-block;
	margin: 3px 5px;
}
.kuenstler-liste li {
	display: inline-block;
	padding: 3px 14px;
	background: #555;
	color: #fff;
	transition: background .2s ease-in-out;
}
.kuenstler-liste li a {
	color: #fff;
}
.kuenstler-liste li a::after {
	content: "";
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	margin-left: 0.3em;
	background: currentColor;
	mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="black" stroke-width="2" viewBox="0 0 24 24"><path d="M14 3h7v7"/><path d="M10 14L21 3"/><path d="M21 14v7h-7"/><path d="M3 10v11h11"/></svg>') no-repeat center / contain;
}
.kuenstler-liste li:hover, .kuenstler-liste li:focus {
	background: #000;
}
/* Buttons */
.btn, .wpb_text_column a, .wpb_text_column a:visited {
	text-transform: uppercase;
	font-size: .875em;
	letter-spacing: .5px;
	color: var(--rot) !important;
	transition: color .2s ease-in-out;
}
.btn:hover, .wpb_text_column a:hover, .btn:focus, .wpb_text_column a:focus {
	color: #000 !important;
}
.site-main .btn:after {
	content: '→';
	display: inline-block;
	margin-left: .5em;
	transition: margin-left .2s ease-in-out;
}
.site-main .btn:hover:after, .site-main .btn:focus:after {
	margin-left: .75em;
}
#primary .button {
	padding: 1em 3em;
	background-color: var(--rot);
	opacity: .7;
	border: none;
	color: #fff;
	border-radius: 8px;
	font-size: 1em;
}
@media (min-width: 992px) {
	#primary .button {
		padding: 1.25em 4em;
	}
}

/* Veranstaltungen *

/* Jahreszahlen-Filter */
.veranstaltungen-filter-button, .ausstellungen-filter-button {
	display: inline-block;
    padding: 3px 14px;
    background: #555;
    color: #fff !important;
    transition: background .2s ease-in-out;
}
.veranstaltungen-filter-button.is-active, .veranstaltungen-filter-button:hover, .veranstaltungen-filter-button:focus,
.ausstellungen-filter-button.is-active, .ausstellungen-filter-button:hover, .ausstellungen-filter-button:focus {
	background: #000;
}

/* Newsletter-Formular, Beitrittsformular, Formular */
.site-main div.tnp-subscription {
	width: auto;
	max-width: 600px;
}
.gform_page {
	padding: .5rem !important;
}
.site-main .tnp-field  {
	position: relative;
	margin-bottom: 2rem !important;
}
.site-main .gfield  {
	position: relative;
}
.site-main .tnp-field label, .gfield:not(.gfield--type-date) label {
	position: absolute;
	left: 20px;
	top: 20px;
	transition: all .18s ease;
}
.gfield_checkbox .gchoice label {
	position: static !important;
}
.site-main .tnp-field label.fokus, 
#primary .gfield--type-text label.fokus,
#primary .gfield--type-number label.fokus,
#primary .gfield--type-phone label.fokus,
#primary .gfield--type-email label.fokus {
	left: 12px;
	top: 5px;
	font-size: 10px;
	color: #999;
}
.tnp-subscription input[type=text], .tnp-subscription input[type=email], 
#primary .gfield--type-text input, #primary .gfield--type-number input,
#primary .gfield--type-phone input, #primary .gfield--type-email input,
#primary .gfield--type-date input {
	height: 60px;
	margin-bottom: 30px;
	border-radius: 8px !important;
	background: #fff !important;
	border: 1px solid #777 !important;
}
#primary .gfield--type-text input,
#primary .gfield--type-number input,
#primary .gfield--type-phone input, 
#primary .gfield--type-email input,
#primary .gfield--type-date input {
	margin-bottom: 0 !important;
}
.tnp-subscription input[type=text]:focus, 
.tnp-subscription input[type=email]:focus, 
#primary .gfield--type-text input:focus,
#primary .gfield--type-number input:focus,
#primary .gfield--type-phone input:focus, 
#primary .gfield--type-email input:focus {
	border: 2px solid var(--rot) !important;
	outline: none;
}
.tnp-privacy-field label {
	position: relative !important;
	font-size: 1em !important;
	transition: none !important;
	left: auto !important;
	top: auto !important;
}
.tnp-submit {
	border-radius: 8px !important;
	background: var(--rot) !important;
	display: block !important;
	width: 100% !important;
	height: 60px !important;
}

/* Mitgliedsbeiträge */
.beitraege {
	background: #F8F8F8;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	padding: 1em;
}
@media (min-width: 768px) {
	.beitraege {
		padding: 2em;
	}
}
.beitraege h2 {
	margin: 0 0 1em 0;
}
.beitraege p {
	margin: 0 0 .5rem 0;
	padding-bottom: .5em;
	border-bottom: 1px solid #ddd;
}
.beitraege p:last-of-type {
	border-bottom: none;
	margin: 0;
	padding: 0;
}

/* Beitragsformular */
.gform_wrapper {
	
}


/* Navigation
--------------------------------------------- */

.main-navigation {
	display: flex;
	width: 50%;
	max-width: 460px;
	align-items: center;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
	font-size: 18px;
	padding: 6px 15px;
	color: #fff;
	position: relative;
}
.main-navigation .sub-menu a {
	font-size: .875em;
	padding-left: 30px;
}
#primary-menu .member-login {
	font-size: .875em;
	border-top: 1px solid #aaa;
	margin-top: 10px;
}
#primary-menu .member-login a {
	font-size: .875em;
	padding-top: 1rem;
}
/* Das Wort "Menü" im Menüslide oben anzeigen */
.menu-menu-1-container:before {
	content: "Menü";
	display: block;
	font-size: 22px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #fff;
	position: absolute;
    top: 15px;
    left: 22px;
}
/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}
.menu-toggle {
	background: var(--schwarz);
	border: none;
	position: fixed;
    right: 15px;
    top: 15px;
	height: 46px;
	width: 46px;
    margin: 0;
	z-index: 1000;
	cursor: pointer;
}
@media (min-width: 992px) {
	.menu-menu-1-container:before {
		font-size: 24px;
		top: 30px;
		left: 35px;
	}
	.menu-toggle {
		right: 40px;
		top: 40px;
		height: 80px;
		width: 80px;
	}
	.main-navigation a {
		font-size: 20px;	
	}
	
}
.menu-toggle .icon-bar {
    display: block;
    width: 32px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
    transition: transform 200ms, top 200ms;
	position: relative;
	left: -9px;
	top: -2px;
}
.menu-toggle .menu-text {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
	line-height: 1;
	position: relative;
	top: -4px;
	left: -9px;
	color: #fff;
}
.menu-toggle.toggled .menu-text {
    display: none;
}
.menu-toggle.toggled  .icon-bar:first-child {
    transform: rotate(45deg);
    display: block;
    top: 1px;
}
.menu-toggle.toggled  .icon-bar:last-child {
    transform: rotate(-45deg);
    display: block;
    bottom: 2px;
    top: auto;
}
@media (min-width: 992px) {
	.menu-toggle .icon-bar {
		width: 50px;
		left: -1px;
		top: -3px;
	}
	.menu-toggle .icon-bar:first-child {
	  top: -7px;
	}
	.menu-toggle .icon-bar:last-child {
	  top: 4px;
	}
	.menu-toggle .menu-text {
		font-size: 14.5px;
		top: -1px;
		letter-spacing: 2px;
		left: -1px;
	}
}
.main-navigation .menu-menu-1-container {
  width: 46px;
  max-height: 46px; /* statt height + statt 500px */
  background: var(--schwarz);
  transition: width 0.5s ease-in-out, max-height 0.5s ease-in-out;
  overflow: hidden;
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 999;
  box-sizing: border-box !important;
}
.overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 997;
	background: #000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}
.overlay.toggled {
	opacity: .75;
	visibility: visible;
}
.main-navigation .menu-menu-1-container.toggled {
	
}
.main-navigation #primary-menu {
	margin: 60px 10px 30px;
	position: relative;
	z-index: 1001;
}
@media (min-width: 992px) {
  .main-navigation .menu-menu-1-container {
    right: 40px;
    top: 40px;
    width: 80px;
    max-height: 80px; /* statt height */
  }

  .main-navigation #primary-menu {
    margin: 100px 20px 40px;
  }
}
.main-navigation a:after {
	content: '\2192';
	display: inline-block;
	position: absolute;
	right: 30px;
	visibility: hidden;
	opacity: 0;
	transition: all .2s ease-in-out;
}
.main-navigation a:hover:after, .main-navigation a:focus:after {
	right: 15px;
	visibility: visible;
	opacity: 1;
}
@media (min-width: 992px) {
	.main-navigation a:after {
		right: 50px;
	}
	.main-navigation a:hover:after, .main-navigation a:focus:after {
		right: 40px;
	}
}

@media (min-width: 1400px) {
	/* Das Wort "Menü" verstecken */
	.menu-menu-1-container:before {
		display: none;
	}
	/* Button verstecken */
	.menu-toggle {
		display: none;
	}
	.main-navigation {
		width: auto;
		max-width: none;
		margin-right: 30px;
	}
	.main-navigation .menu-menu-1-container {
		position: static;
		width: auto;
		height: auto;
		background: transparent;
		overflow: visible;
		max-width: none;
		max-height: none;
	}
	.main-navigation #primary-menu {
		margin: 0;
		display: flex;
	}
	.main-navigation a {
		color: #222;
		font-size: 1rem;
		padding: 8px 15px;
		transition: color .2s ease-in-out;
	}
	.main-navigation a:hover, .main-navigation a:focus {
		color: var(--rot);
	}
	.menu-item-has-children a {
		padding-right: 20px;
	}
	.main-navigation a:after {
		display: none;
	}
	 .menu-item-has-children > a:after, .menu-item-has-children > a:hover:after {
		display: block;
		 right: 0;
		 top: 10px;
		 left: auto;
		 visibility: visible;
		 opacity: 1;
		 transform: rotate(90deg);
	}
	.main-navigation ul ul {
		box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
		float: left;
		position: absolute;
		top: 100%;
		left: auto;
		z-index: 99999;
		opacity: 0;
		transform: translateY(8px); /* animierbar */
		visibility: hidden;
		pointer-events: none;
		background: #fff;
		transition: opacity .2s ease-in-out, transform .2s ease-in-out, visibility 0s linear .2s;
	}

	.main-navigation ul ul ul {
		left: -999em;
		top: 0;
	}

	.main-navigation ul ul li:hover > ul,
	.main-navigation ul ul li.focus > ul {
		display: block;
		left: auto;
	}

	.main-navigation ul ul a {
		width: 200px;
	}

	.main-navigation ul li:hover > ul,
	.main-navigation ul li.focus > ul {
	  opacity: 1;
	  transform: translateY(0);
	  visibility: visible;
	  pointer-events: auto;

	  transition: opacity .2s ease-in-out, transform .2s ease-in-out, visibility 0s;
	}
	/* Mitglied werden */
	#primary-menu .btn {
		background: var(--rot);
		border-radius: 4px;
		margin-left: 30px;
	}
	#primary-menu .btn a {
		color: #fff;
	}
	#primary-menu .member-login {
		display: none;
	}
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}
