/*
Theme Name: Discofox80
Theme URI: https://discofox80.com/
Description: Child-Theme von Twenty Twenty-Five im Look der bisherigen Discofox80-Seite: schwarzer Hintergrund, Kopfgrafik mit Logo, rote Navigationsleiste, Cover-Galerie mit Rahmen. Responsiv, Schrift lokal eingebunden (keine externen Anfragen).
Author: Julian Fischer
Author URI: https://julianfischer.de/
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.1
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: discofox80
*/

/* ==========================================================================
   Grundlagen
   ========================================================================== */

:root {
	--df-site-width: 960px;
	--df-frame: #cfcfcf;
	--df-nav-height: 50px;
}

body {
	background-color: #000;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Kein Abstand zwischen Kopf, Inhalt und Fuß – wie bisher. */
.wp-site-blocks > header,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

/* ==========================================================================
   Kopfbereich: Grafik + Logo
   ========================================================================== */

.df-header {
	max-width: var(--df-site-width);
	margin-inline: auto;
	background-color: #000;
}

.df-header > * {
	margin-block: 0;
}

.df-header__art {
	position: relative;
	height: 180px;
	margin-top: 2px;
	background: #000 url("assets/images/hg.jpg") no-repeat right top;
}

/* Logo sitzt wie bisher links, leicht über der Grafik. */
.df-header .df-logo {
	position: absolute;
	top: 27.8%;
	left: 0;
	margin: 0;
	line-height: 0;
}

.df-header .df-logo img {
	display: block;
	width: 206px;
	max-width: 100%;
	height: auto;
}

.df-header .df-logo a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.df-nav.wp-block-navigation {
	min-height: var(--df-nav-height);
	padding: 0 20px;
	background: #000 url("assets/images/hg_nav.jpg") repeat left top;
	font-size: 16px;
	line-height: var(--df-nav-height);
	text-transform: uppercase;
}

.df-nav .wp-block-navigation__container {
	gap: 0 40px;
	align-items: center;
}

.df-nav .wp-block-navigation-item__content,
.df-nav .wp-block-navigation-item__content:visited {
	display: inline-block;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}

.df-nav .wp-block-navigation-item__content:hover,
.df-nav .wp-block-navigation-item__content:focus {
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 6px;
}

.df-nav .wp-block-navigation-item__content:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.df-nav .current-menu-item > .wp-block-navigation-item__content,
.df-nav .wp-block-navigation-item__content[aria-current="page"] {
	font-weight: 700;
}

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

.df-main {
	padding-top: 24px;
	padding-bottom: 48px;
	margin-block-start: 0;
}

.df-main .df-page-title {
	margin-top: 0;
	margin-bottom: 24px;
}

.df-main .wp-block-post-content > * + * {
	margin-block-start: 1.5rem;
}

.df-main .wp-block-post-content h2 {
	margin-block-start: 2.25rem;
	margin-block-end: 0;
}

.df-main .wp-block-post-content > :first-child {
	margin-block-start: 0;
}

.df-main .wp-block-post-content h2 + p {
	margin-block-start: 0.5rem;
}

.df-main .wp-block-post-content h3,
.df-main .wp-block-post-content h4 {
	margin-block-start: 1.75rem;
	margin-block-end: 0;
}

.df-main .wp-block-post-content h3 + *,
.df-main .wp-block-post-content h4 + * {
	margin-block-start: 0.375rem;
}

.df-main .wp-block-post-content a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* ==========================================================================
   Cover-Galerie (Startseite): Rahmen wie bisher
   ========================================================================== */

.wp-block-gallery.df-covers {
	--wp--style--unstable-gallery-gap: 40px;
	gap: 40px;
	margin-block: 2.5rem;
}

.wp-block-gallery.df-covers .wp-block-image img {
	box-sizing: border-box;
	padding: 12px;
	background-color: #000;
	border: 2px solid var(--df-frame);
	border-radius: 3px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	transition: border-color 0.2s ease;
}

.wp-block-gallery.df-covers .wp-block-image:hover img,
.wp-block-gallery.df-covers .wp-block-image:focus-within img {
	border-color: #fff;
}

/* Lightbox (Klick auf ein Cover) mit schwarzem Hintergrund */
.wp-lightbox-overlay .scrim {
	background-color: #000 !important;
}

/* ==========================================================================
   Fußbereich
   ========================================================================== */

.df-footer {
	max-width: var(--df-site-width);
	margin-inline: auto;
	padding: 20px 20px 28px;
	border-top: 1px solid #222;
	font-size: 0.8125rem;
	line-height: 1.6;
	color: #8a8a8a;
}

.df-footer > * {
	margin-block: 0;
}

.df-footer > * + * {
	margin-block-start: 0.25rem;
}

.df-footer a {
	color: #999;
	text-decoration: none;
}

.df-footer a:hover,
.df-footer a:focus {
	color: #fff;
	text-decoration: underline;
}

/* ==========================================================================
   Tablet und Handy
   ========================================================================== */

@media (max-width: 959px) {
	/* Grafik skaliert mit; der linke Teil läuft wie im Original ins Schwarz aus. */
	.df-header__art {
		width: 100%;
		height: clamp(110px, 18.75vw, 180px);
		background-size: auto 100%;
	}

	.df-nav.wp-block-navigation {
		padding: 0 16px;
	}

	.df-nav .wp-block-navigation__container {
		gap: 0 28px;
	}
}

@media (max-width: 599px) {
	.df-header .df-logo {
		left: 0;
	}

	.df-header .df-logo img {
		width: 170px;
	}

	.df-nav.wp-block-navigation {
		--df-nav-height: 44px;
		font-size: 13.5px;
		letter-spacing: 0.02em;
	}

	.df-nav .wp-block-navigation__container {
		gap: 0 18px;
	}

	.df-main {
		padding-top: 18px;
	}

	.wp-block-gallery.df-covers {
		--wp--style--unstable-gallery-gap: 16px;
		gap: 16px;
	}

	.wp-block-gallery.df-covers .wp-block-image img {
		padding: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-gallery.df-covers .wp-block-image img {
		transition: none;
	}
}
