/*
Theme Name: Ulenspiegel
Theme URI: https://www.ulenspiegel-giessen.de
Author: pict kommunikationsdesign
Description: WordPress-Umsetzung der Website des Ulenspiegel Gießen im Originaldesign: Logo, Maax, Grund #050006, Weiß, Rot #fe0200, Vollbild-Hintergrundbilder mit Überblendung, Hamburger-Menü, Veranstaltungen als eigener Beitragstyp.
Version: 2.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ulenspiegel
*/

/* ==========================================================================
   Schrift: Maax (205TF) – Lizenzdateien in assets/fonts/maax/ ablegen.
   Fehlen sie, greift Helvetica/Arial (fett).
   ========================================================================== */

@font-face { font-family: Maax; font-style: normal; font-weight: 400; font-display: swap;
	src: url(assets/fonts/maax/Maax-Regular.woff2) format("woff2"), url(assets/fonts/maax/Maax-Regular.woff) format("woff"); }
@font-face { font-family: Maax; font-style: italic; font-weight: 400; font-display: swap;
	src: url(assets/fonts/maax/Maax-Italic.woff2) format("woff2"), url(assets/fonts/maax/Maax-Italic.woff) format("woff"); }
@font-face { font-family: Maax; font-style: normal; font-weight: 700; font-display: swap;
	src: url(assets/fonts/maax/Maax-Bold.woff2) format("woff2"), url(assets/fonts/maax/Maax-Bold.woff) format("woff"); }
@font-face { font-family: Maax; font-style: italic; font-weight: 700; font-display: swap;
	src: url(assets/fonts/maax/Maax-Bold_Italic.woff2) format("woff2"), url(assets/fonts/maax/Maax-Bold_Italic.woff) format("woff"); }

/* ==========================================================================
   Grundlagen (wie Original)
   ========================================================================== */

html { font-size: 100%; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
	background-color: #050006;
	color: #fff;
	font-family: Maax, Helvetica, Arial, sans-serif;
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.5em;
	-webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-weight: 700; color: #fff; }

a { outline: 0; color: #fe0200; text-decoration: none; transition: all ease .3s; }
a:hover, a:active, a.active, a:focus-visible { color: #fff; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid #fe0200; outline-offset: 3px; }

p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: 2.25rem; line-height: 1.2em; }
h2 { font-size: 1.65rem; line-height: 1.4em; }
b, strong { font-weight: 700; display: inline-block; min-width: 130px; }

/* WordPress-Abstände neutralisieren, damit die Originalabstände gelten */
.wp-site-blocks > *, .wp-site-blocks :where(.is-layout-flow) > * { margin-block-start: 0; }
.wp-site-blocks :where(.is-layout-flow) > * + * { margin-block-start: 0; }
.wp-site-blocks { padding: 0; }

/* Ränder wie im Original (stärker als die WordPress-Layoutregeln) */
:root .ulen-page p, :root .ulen-page ul, :root .ulen-page ol { margin-top: 0; margin-bottom: 1em; }
:root .ulen-page h1, :root .ulen-page h2, :root .ulen-page h3,
:root .ulen-page h4, :root .ulen-page h5, :root .ulen-page h6 { margin-top: 0; margin-bottom: .5em; }
:root .ulen-page .navigation ul, :root .ulen-page .navigation-mobile ul { margin: 0; }
:root .ulen-page .events h2 { margin: 0; }
:root .ulen-page .event h1 { margin: 15px 0 0; }
:root .ulen-page .wp-block-columns { margin-bottom: 0; }

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

/* ==========================================================================
   Seitenrahmen
   ========================================================================== */

.ulen-page {
	position: relative;
	z-index: 10;
	margin: 0 auto;
	padding: 20px 25px;
	box-sizing: border-box;
	width: 100%;
	max-width: 960px;
}

.site-header, .site-footer, .content-text, .content-grid {
	width: 100%;
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}
.content-grid { max-width: 860px; }

/* ==========================================================================
   Kopf: Logo rechts, Hamburger links
   ========================================================================== */

.site-header { position: relative; margin-top: 55px; margin-bottom: 40px; text-align: right; }
.site-header .logo, .site-header .logo a { display: inline-block; }
.site-header .logo a:hover { opacity: .8; }
.site-header .logo img { display: inline-block; width: 100%; max-width: 400px; height: auto; }

.navigation, .navigation-mobile { text-transform: lowercase; }
.navigation-mobile { text-align: center; position: relative; height: 40px; }
.navigation-mobile nav { display: none; position: absolute; left: -15px; top: 8px; width: 250px; background: rgba(5,0,6,.7); z-index: 30; text-align: left; }
.navigation-mobile.nav-active nav { display: block; }
.navigation-mobile ul, .navigation ul { margin: 0; padding: 0; list-style: none; }
.navigation-mobile li { margin: 0; }
.navigation-mobile li:not(:last-child) { border-bottom: 1px solid #fe0200; }
.navigation-mobile a { display: block; padding: 5px 15px; color: #fff; }
.navigation-mobile a:hover, .navigation-mobile a.active,
.navigation-mobile .current-menu-item > a { color: #fe0200; }

.menu-button {
	position: absolute; left: -15px; top: -40px;
	padding: 15px; display: inline-block; cursor: pointer;
	background: transparent; border: 0; margin: 0; overflow: visible;
	transition: opacity .15s linear;
}
.menu-button:hover { opacity: .7; }
.menu-button-box { width: 34px; height: 24px; display: inline-block; position: relative; }
.menu-button-inner, .menu-button-inner::before, .menu-button-inner::after {
	width: 34px; height: 4px; background-color: #fff; border-radius: 1px; position: absolute;
	transition-property: transform; transition-duration: .15s; transition-timing-function: ease;
}
.menu-button-inner { display: block; top: 50%; margin-top: -2px;
	transition-duration: .22s; transition-timing-function: cubic-bezier(.55,.055,.675,.19); }
.menu-button-inner::before, .menu-button-inner::after { content: ""; display: block; }
.menu-button-inner::before { top: -10px; transition: top .1s .25s ease-in, opacity .1s ease-in; }
.menu-button-inner::after { bottom: -10px; transition: bottom .1s .25s ease-in, transform .22s cubic-bezier(.55,.055,.675,.19); }
.menu-button.is-active .menu-button-inner,
.menu-button.is-active .menu-button-inner::before,
.menu-button.is-active .menu-button-inner::after { background-color: #fe0200; }
.menu-button.is-active .menu-button-inner { transform: rotate(225deg); transition-delay: .12s; transition-timing-function: cubic-bezier(.215,.61,.355,1); }
.menu-button.is-active .menu-button-inner::before { top: 0; opacity: 0; transition: top .1s ease-out, opacity .1s .12s ease-out; }
.menu-button.is-active .menu-button-inner::after { bottom: 0; transform: rotate(-90deg); transition: bottom .1s ease-out, transform .22s .12s cubic-bezier(.215,.61,.355,1); }

/* ==========================================================================
   Fuß: rote Linie, Navigation
   ========================================================================== */

.site-footer { margin-top: 45px; margin-bottom: 20px; border-top: 1px solid #fe0200; padding-top: 15px; }
.navigation li { margin: 0; }
.navigation a.active, .navigation .current-menu-item > a { color: #fff; }

/* ==========================================================================
   Inhalt
   ========================================================================== */

.content-text ul { margin: 0 0 1em; }

/* Raster wie „Infos für Künstler“ */
.content-grid .grid { gap: 0; }
.content-grid .grid > .wp-block-column { flex-basis: auto; }

/* ==========================================================================
   Veranstaltungen – Liste
   ========================================================================== */

.events { text-transform: uppercase; }
.events article { margin-bottom: 30px; }
.events .col1 { float: left; width: 50px; }
.events .col2 { margin-left: 60px; }
.events .col2::after { content: ''; display: block; clear: left; }
.events .day, .events .month, .events time { display: inline-block; width: 100%; }
.events .day { font-size: 1.65rem; line-height: 1.2em; }
.events h2 { font-size: 1.25rem; line-height: 1.5em; margin: 0; }
.events a { color: #fff; }
.events a:hover, .events a:active, .events a.active { color: #fe0200; }
.events .info { display: block; }
.events-leer { text-transform: none; }

/* ==========================================================================
   Veranstaltung – Einzelansicht
   ========================================================================== */

.event article { margin-bottom: 30px; }
.event header.event-head { margin-bottom: 30px; border: 5px solid #fff; padding: 20px; text-transform: uppercase; }
.event .col1 { float: left; width: 60px; }
.event .col2 { margin-left: 70px; }
.event .col2::after { content: ''; display: block; clear: left; }
.event .day, .event .month, .event time { display: inline-block; width: 100%; }
.event .day, .event .time { font-size: 1.65rem; line-height: 1.3em; }
.event .weekday, .event .time { display: block; }
.event h1 { margin: 15px 0 0; text-transform: none; }
.event .event-img { margin: 0 0 20px; width: auto; }
.event .event-img img { display: block; width: 100%; height: auto; }
.event .links { margin-top: 30px; }

/* ==========================================================================
   Hintergrund: Vollbild-Fotos mit Überblendung + 70 % Abdunklung
   ========================================================================== */

.ulen-bg, .ulen-bg-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; }
.ulen-bg { z-index: 0; background: #050006; overflow: hidden; }
.ulen-bg-overlay { z-index: 5; background: rgba(5,0,6,.7); }
.ulen-bg .slide {
	position: absolute; inset: 0;
	opacity: 0; transition: opacity 1s ease;
}
.ulen-bg .slide.is-active { opacity: 1; }
.ulen-bg .slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* ==========================================================================
   Breakpoints (wie Original)
   ========================================================================== */

@media screen and (min-width: 375px) {
	.ulen-page { padding-left: 50px; padding-right: 50px; }
	.navigation-mobile nav { left: 0; }
}

@media screen and (min-width: 568px) {
	.content-text { padding-right: 50px; }
	.navigation li { display: inline-block; }
	.navigation li:not(:last-child) { float: left; margin-right: 25px; }
	.navigation ul::after { content: ''; display: block; clear: both; }
	.navigation-mobile { height: auto; }
	.navigation-mobile nav { top: 58px; }
	.navigation-mobile .menu-button { top: 10px; }
	.site-header .logo { padding: 0 45px; }
}

@media screen and (min-width: 768px) {
	.content-grid .text-1 { margin-left: 145px; margin-right: 90px; }
	.content-grid .grid { display: flex; flex-wrap: nowrap; padding-top: 30px; }
	.content-grid .grid > .text-2, .content-grid .grid > .text-3 { width: 50%; box-sizing: border-box; }
	.content-grid .grid > .text-2 { padding-right: 25px; }
	.content-grid .grid > .text-3 { padding-left: 25px; padding-top: 75px; }
}
@media screen and (max-width: 767px) {
	.content-grid .grid { display: block; }
}

@media (prefers-reduced-motion: reduce) {
	.ulen-bg .slide, a, .menu-button, .menu-button-inner,
	.menu-button-inner::before, .menu-button-inner::after { transition: none !important; }
}
