/*
Theme Name: Aglasio Retro
Theme URI: https://aglasio.de/
Description: Child-Theme von Twenty Twenty-Five im Look der frühen 2000er: feste Seitenbreite (980 px), Seitenleiste mit Bevel-Buttons, Grunge-Textur, Lauftext, Besucherzähler und News-Bereich auf der Startseite.
Author: Aglasio
Template: twentytwentyfive
Version: 0.7.0
Requires at least: 6.7
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: aglasio-retro
*/

/* ===== Grundgerüst: Hintergrund + feste Breite ===== */

body {
	background: #050505 url(assets/images/bg-grunge.png) repeat;
	scrollbar-color: #b3001b #111;
}

::selection {
	background: #b3001b;
	color: #fff;
}

.wp-site-blocks {
	max-width: 980px;
	margin: 24px auto;
	padding: 0 !important;
	background: #0e0e0e;
	border: 1px solid #3a3a3a;
	outline: 1px solid #000;
	box-shadow: 0 0 0 4px #151515, 0 0 0 5px #2c2c2c, 0 0 40px rgba(179, 0, 27, 0.25);
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

/* Scrollbar im Stil von IE 5.5 / 6, nur in WebKit/Blink in voller Pracht */
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: #111 url(assets/images/scanlines.png); }
::-webkit-scrollbar-thumb {
	background: linear-gradient(90deg, #5a0010, #b3001b 50%, #5a0010);
	border: 2px outset #d0263a;
}
::-webkit-scrollbar-button {
	background: #2a2a2a;
	border: 2px outset #555;
	height: 16px;
}

/* ===== Header ===== */

.retro-header {
	border-bottom: 1px solid #3a3a3a;
}

.retro-header__banner {
	position: relative;
	min-height: 120px;
	padding: 18px 22px !important;
	gap: 18px;
	background:
		url(assets/images/scanlines.png),
		radial-gradient(ellipse at 20% 40%, rgba(179, 0, 27, 0.45), transparent 60%),
		linear-gradient(180deg, #2b2b2b 0%, #111 55%, #050505 100%);
	border-bottom: 2px solid #b3001b;
}

.retro-header__banner::after {
	content: "";
	position: absolute;
	inset: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	pointer-events: none;
}

.retro-logo,
.retro-logo a {
	margin: 0;
	font-family: "Operation Napalm", Impact, "Arial Black", sans-serif !important;
	font-size: 60px !important;
	font-weight: 400 !important;
	letter-spacing: 4px !important;
	line-height: 1 !important;
	text-transform: uppercase;
	text-decoration: none !important;
	color: #e9e9e9 !important;
	background: linear-gradient(180deg, #ffffff 0%, #b9b9b9 45%, #5c5c5c 52%, #d8d8d8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(2px 2px 0 #000) drop-shadow(0 0 8px rgba(255, 46, 68, 0.55));
}

.retro-tagline {
	margin: 0;
	font-family: Tahoma, Verdana, sans-serif;
	font-size: 11px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #8a8a8a;
}

.retro-header .wp-block-site-logo img {
	border: 1px solid #444;
	background: #000;
	padding: 2px;
}

/* Lauftext (Marquee) */
.retro-marquee {
	overflow: hidden;
	white-space: nowrap;
	background: #000;
	border-top: 1px solid #222;
	border-bottom: 1px solid #222;
	padding: 3px 0 !important;
	font-family: "Courier New", Courier, monospace;
	font-size: 12px;
	font-weight: 700;
	color: #ff2e44;
	text-shadow: 0 0 6px rgba(255, 46, 68, 0.7);
}

.retro-marquee p {
	display: inline-block;
	width: max-content;
	max-width: none;
	white-space: nowrap;
	margin: 0;
	padding-left: 100%;
	animation: retro-marquee 22s linear infinite;
}

.retro-marquee:hover p {
	animation-play-state: paused;
}

@keyframes retro-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-100%); }
}

/* ===== Layout: Seitenleiste + Inhalt ===== */

.retro-layout {
	margin: 0 !important;
	gap: 0 !important;
	align-items: stretch !important;
}

.retro-sidebar {
	padding: 10px !important;
	background: #121212;
	border-right: 1px solid #2e2e2e;
	box-shadow: inset -1px 0 0 #000;
}

.retro-main {
	padding: 10px 12px 16px !important;
	min-width: 0;
}

.retro-sidebar > aside > * + * ,
.retro-main main > * + * {
	margin-top: 10px;
}

/* ===== Kästen ===== */

.is-style-retro-box {
	background: #171717;
	border: 1px solid #333;
	box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.06), 1px 1px 0 #000;
	padding: 0 8px 8px;
}

.is-style-retro-box > * {
	margin-block-start: 8px;
}

.retro-box-title,
h1.retro-box-title,
h2.retro-box-title {
	margin: 0 -8px 8px !important;
	padding: 3px 8px;
	font-family: Tahoma, Verdana, sans-serif !important;
	font-size: 11px !important;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #fff !important;
	background: linear-gradient(180deg, #d0102c 0%, #8e0016 50%, #5e000e 51%, #7a0013 100%);
	border-bottom: 1px solid #000;
	text-shadow: 1px 1px 0 #000;
}

.retro-box-title::before {
	content: ":: ";
	color: #ffb3bd;
}

/* Kasten, der nur aus der Titelleiste besteht */
.retro-box--title-only {
	padding-bottom: 0;
}

.retro-box--title-only .retro-box-title {
	margin-bottom: 0 !important;
}

h1.retro-page__title {
	font-size: 13px !important;
}

/* ===== Navigation als Bevel-Buttons ===== */

.retro-nav,
.retro-nav .wp-block-navigation__container,
.retro-nav .wp-block-page-list {
	display: flex;
	flex-direction: column;
	align-items: stretch !important;
	gap: 3px !important;
	width: 100%;
}

.retro-nav .wp-block-navigation-item {
	width: 100%;
}

.retro-nav .wp-block-navigation-item__content {
	display: block !important;
	width: 100%;
	box-sizing: border-box;
	padding: 4px 8px 4px 18px !important;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none !important;
	color: #dcdcdc !important;
	background: linear-gradient(180deg, #3a3a3a 0%, #222 50%, #161616 51%, #1e1e1e 100%);
	border: 2px outset #4a4a4a;
	position: relative;
}

.retro-nav .wp-block-navigation-item__content::before {
	content: "\00BB";
	position: absolute;
	left: 7px;
	color: #b3001b;
}

.retro-nav .wp-block-navigation-item__content:hover,
.retro-nav .current-menu-item > .wp-block-navigation-item__content,
.retro-nav [aria-current="page"] {
	color: #fff !important;
	background: linear-gradient(180deg, #d0102c 0%, #8e0016 50%, #5e000e 51%, #7a0013 100%);
	border-color: #c0213a;
}

.retro-nav .wp-block-navigation-item__content:active {
	border-style: inset;
}

.retro-nav .wp-block-navigation__submenu-container {
	position: static !important;
	opacity: 1 !important;
	visibility: visible !important;
	width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	border: 0 !important;
	background: transparent !important;
	padding: 3px 0 0 10px !important;
}

.retro-nav .wp-block-navigation__submenu-icon {
	display: none;
}

/* Linkliste */
.retro-links {
	list-style: "\25BA  ";
	padding: 0 0 0 14px;
	margin: 0;
}

.retro-links li::marker {
	color: #b3001b;
	font-size: 9px;
}

/* ===== Formulare + Buttons ===== */

.wp-element-button,
.wp-block-button__link,
.wp-block-search__button,
input[type="submit"],
button.wc-block-components-button,
.wc-block-components-button:not(.is-link) {
	font-family: Verdana, Geneva, sans-serif !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	color: #fff !important;
	background: linear-gradient(180deg, #d0102c 0%, #8e0016 50%, #5e000e 51%, #7a0013 100%) !important;
	border: 2px outset #c0213a !important;
	border-radius: 0 !important;
	padding: 3px 12px !important;
	cursor: pointer;
}

.wp-element-button:active,
.wp-block-search__button:active,
input[type="submit"]:active {
	border-style: inset !important;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select,
.wp-block-search__input {
	font-family: Verdana, Geneva, sans-serif !important;
	font-size: 12px !important;
	color: #e6e6e6 !important;
	background: #050505 !important;
	border: 2px inset #3a3a3a !important;
	border-radius: 0 !important;
	padding: 3px 5px !important;
}

.retro-search .wp-block-search__inside-wrapper {
	gap: 4px;
	border: 0 !important;
	padding: 0 !important;
}

.retro-search .wp-block-search__input {
	min-width: 0;
}

/* ===== News / Beiträge ===== */

.retro-news .wp-block-post-template {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.retro-news,
.retro-news > * + * {
	margin-top: 10px;
}

.retro-post__bar {
	margin: 0 -8px !important;
	padding: 4px 8px !important;
	background: linear-gradient(180deg, #2c2c2c, #1b1b1b);
	border-bottom: 1px solid #b3001b;
	gap: 10px;
}

.retro-post__title {
	margin: 0 !important;
	font-size: 14px !important;
	letter-spacing: 1px;
}

.retro-post__title a {
	color: #ff2e44 !important;
	text-decoration: none;
}

.retro-post__title a:hover {
	color: #fff !important;
	text-decoration: underline;
}

.retro-post__date,
.retro-post__date-single {
	flex-shrink: 0;
	font-family: "Courier New", Courier, monospace;
	font-size: 11px;
	color: #8a8a8a;
}

.retro-post .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 700;
	color: #ff2e44 !important;
}

.retro-pagination {
	font-size: 11px;
	font-weight: 700;
	gap: 6px;
}

/* ===== Bilder ===== */

.is-style-retro-frame img,
.retro-main .wp-block-image img,
.retro-main .wp-block-post-featured-image img {
	border: 1px solid #444;
	padding: 3px;
	background: #000;
	box-shadow: 2px 2px 0 #000;
}

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

.retro-main a {
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 2px;
}

.retro-main hr,
.wp-block-separator {
	border: 0 !important;
	border-top: 1px solid #000 !important;
	border-bottom: 1px solid #333 !important;
	height: 0 !important;
	opacity: 1;
}

blockquote,
.wp-block-quote {
	border-left: 3px solid #b3001b !important;
	background: #101010;
	padding: 6px 10px !important;
	font-style: italic;
}

table,
.wp-block-table table {
	border-collapse: collapse;
	font-size: 12px;
}

.wp-block-table th,
.wp-block-table td,
table th,
table td {
	border: 1px solid #333 !important;
	padding: 3px 6px !important;
}

.wp-block-table thead,
table th {
	background: #2a2a2a;
	color: #fff;
}

.wp-block-table tbody tr:nth-child(even) {
	background: #141414;
}

/* ===== Kommentare (falls bei News aktiviert) ===== */

.retro-guestbook .wp-block-comments-title,
.retro-guestbook .comment-reply-title {
	font-size: 13px !important;
}

.retro-guestbook .wp-block-comment-template li {
	background: #101010;
	border: 1px dashed #3a3a3a;
	padding: 6px 8px;
	margin-bottom: 8px;
}

.retro-guestbook .wp-block-avatar img {
	border: 1px solid #444;
}

/* ===== Footer ===== */

.retro-footer {
	padding: 12px 12px 16px !important;
	background:
		url(assets/images/scanlines.png),
		linear-gradient(180deg, #161616, #070707);
	border-top: 2px solid #b3001b;
	color: #8a8a8a;
}

.retro-footer > * {
	margin-block-start: 8px;
}

.retro-badges {
	gap: 6px !important;
}

.retro-badge {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 88px;
	height: 31px;
	margin: 0 !important;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 9px !important;
	font-weight: 700;
	line-height: 1.1 !important;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(180deg, #444, #1a1a1a);
	border: 1px solid #000;
	outline: 1px solid #555;
	outline-offset: -2px;
}

.retro-badge span {
	display: block;
	font-size: 7px;
	color: #bbb;
	letter-spacing: 1px;
}

.retro-badge--red {
	background: linear-gradient(180deg, #c0102a, #4a000b);
}

.retro-counter {
	display: flex;
	justify-content: center;
	gap: 1px;
}

.retro-counter__digit {
	display: inline-block;
	width: 13px;
	padding: 1px 0;
	font-family: "Courier New", Courier, monospace;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	color: #ff2e44;
	background: linear-gradient(180deg, #000 0%, #1c1c1c 50%, #000 51%, #0b0b0b 100%);
	border: 1px solid #333;
	text-shadow: 0 0 4px rgba(255, 46, 68, 0.9);
}

.retro-footer .wp-block-shortcode,
.retro-footer p:has(.retro-counter) {
	margin-top: 2px;
}

.retro-fineprint {
	font-size: 10px !important;
	color: #5e5e5e;
}

.retro-legal a {
	color: #bdbdbd !important;
}

/* ===== Effekte ===== */

.is-style-retro-blink {
	animation: retro-blink 1s steps(1, end) infinite;
	color: #ff2e44;
}

@keyframes retro-blink {
	50% { visibility: hidden; }
}

.retro-construction {
	display: inline-block;
	width: 100%;
	padding: 10px 0 !important;
	font-family: Impact, "Arial Black", sans-serif;
	font-size: 26px !important;
	letter-spacing: 3px;
	color: #111 !important;
	background: repeating-linear-gradient(-45deg, #f5c400 0 14px, #111 14px 28px);
	text-shadow: none;
}

.retro-construction {
	-webkit-text-stroke: 0;
}

.retro-404 .retro-construction {
	color: #fff !important;
	text-shadow: 2px 2px 0 #000, -1px -1px 0 #000;
}

@media (prefers-reduced-motion: reduce) {
	.retro-marquee p,
	.is-style-retro-blink {
		animation: none;
	}
	.retro-marquee p {
		padding-left: 8px;
		white-space: normal;
	}
}

/* ===== Mobil: Der einzige Kompromiss an die Gegenwart ===== */

@media (max-width: 1020px) {
	.wp-site-blocks {
		margin: 0 auto;
		border-left: 0;
		border-right: 0;
		box-shadow: none;
	}

	.retro-logo,
	.retro-logo a {
		font-size: 42px !important;
		letter-spacing: 2px !important;
	}

	.retro-header__banner {
		min-height: 0;
		padding: 14px !important;
	}
}

@media (max-width: 781px) {
	.retro-sidebar {
		flex-basis: 100% !important;
		border-right: 0;
		border-bottom: 1px solid #2e2e2e;
	}

	.retro-nav,
	.retro-nav .wp-block-navigation__container,
	.retro-nav .wp-block-page-list {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.retro-nav .wp-block-navigation-item {
		width: auto;
		flex: 1 1 40%;
	}

	.retro-desktop-only {
		display: none !important;
	}

	.retro-links {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 14px;
	}
}

/* Abstände des Kommentar-Musters von Twenty Twenty-Five zähmen */
.retro-guestbook .wp-block-comments {
	margin: 0 !important;
	padding: 0 !important;
}

.retro-guestbook .wp-block-comments > *,
.retro-guestbook .wp-block-comment-template,
.retro-guestbook .wp-block-post-comments-form {
	margin-top: 10px !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.retro-guestbook .wp-block-comment-template .wp-block-columns {
	margin: 0;
	gap: 10px;
}

.retro-all-news {
	margin-top: 4px !important;
	font-weight: 700;
}

.retro-all-news a {
	color: #ff2e44 !important;
}

/* Logo invertieren: aus Schwarz auf Weiß wird Weiß auf Schwarz */
.is-style-retro-invert img {
	filter: invert(1) drop-shadow(0 0 6px rgba(255, 46, 68, 0.5));
	border-color: #222 !important;
	background: transparent !important;
}

/* ===== Seitenmuster ===== */

.retro-page .is-style-retro-box {
	background: #121212;
	border-color: #2c2c2c;
}

.retro-page .retro-box-title {
	font-size: 11px !important;
}

.retro-lead {
	font-family: Tahoma, Verdana, sans-serif;
	font-size: 14px !important;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #ff2e44;
}

.retro-credit {
	font-size: 10px !important;
	color: #777;
	font-style: italic;
}

.retro-table table {
	width: 100%;
	font-family: Verdana, Geneva, sans-serif;
	font-size: 11px;
}

.retro-table thead th {
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #fff;
	background: linear-gradient(180deg, #3a3a3a, #222) !important;
	border-bottom: 2px solid #b3001b !important;
}

.retro-table tbody tr:nth-child(even) {
	background: #141414;
}

.retro-table tbody tr:hover {
	background: #2a0008;
}

.retro-main .wp-block-columns {
	gap: 12px;
	margin-bottom: 0;
}

.retro-main .wp-block-buttons {
	gap: 6px;
}

.retro-main .wp-block-embed iframe {
	border: 1px solid #333;
	background: #000;
	max-width: 100%;
}

.retro-gallery.wp-block-gallery {
	gap: 6px !important;
}

.retro-gallery img {
	border: 1px solid #444;
	padding: 2px;
	background: #000;
}

.retro-main ol.wp-block-list,
.retro-main ul.wp-block-list {
	padding-left: 22px;
}

.retro-main a.wp-block-button__link,
.retro-main a.wp-element-button {
	text-decoration: none !important;
}
