/*
Theme Name: Rabbit Eye Movement
Theme URI: https://rabbiteyemovement.at
Description: Neubau des Rabbit-Eye-Movement-Themes ohne Plugin-AbhÃ¤ngigkeiten. EnthÃ¤lt Akkordeon-MenÃ¼, Sticky-Sidebar, Mobile-MenÃ¼, Lightbox, Pagination, responsive Videos und Scroll-to-Top direkt im Theme.
Version: 2.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: rem
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--rem-bg: #000;
	--rem-text: #ccc;
	--rem-white: #fff;
	--rem-gold: #c58408;
	--rem-orange: #e8470a;
	--rem-bar: #0d0d0d;
	--rem-panel: #2e2e2e;
	--rem-font-display: 'Pathway Gothic One', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--rem-font-brush: 'Bangers', Impact, sans-serif;
	--rem-font-body: Arial, 'Helvetica Neue', Helvetica, sans-serif;
	--rem-container: 1140px;
	--rem-sidebar: 260px;
	--rem-gap: 50px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--rem-bg);
	color: var(--rem-text);
	font-family: var(--rem-font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection { background: var(--rem-gold); color: #fff; text-shadow: none; }

img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; border: 0; }

a, a:visited { color: var(--rem-white); text-decoration: underline; }
a:hover, a:focus { color: var(--rem-orange); }
a:focus-visible { outline: 2px dotted var(--rem-orange); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { color: #fff; font-family: Arial, sans-serif; font-weight: 400; }
h1 { font-size: 34px; line-height: 40px; }
h2 { font-size: 26px; line-height: 30px; margin: .8em 0 16px; }
h3 { font-size: 19px; line-height: 24px; margin-bottom: 8px; text-transform: uppercase; }
h4 { font-size: 21px; line-height: 30px; margin-bottom: 4px; }
h5 { font-size: 17px; line-height: 24px; }
h6 { font-size: 14px; line-height: 21px; }

p { line-height: 24px; margin: 0 0 24px; color: var(--rem-text); }
em { font-style: italic; color: #fff; }
strong, b { color: #fff; font-weight: 600; }

blockquote { border-left: 1px solid #ddd; margin: 10px 0 24px; padding: 9px 20px 0 19px; }
blockquote, blockquote p { color: #969696; font-style: italic; }
blockquote cite { color: #777; display: block; font-size: 12px; }
blockquote cite::before { content: "\2014 \0020"; }

hr { border: solid #444; border-width: 1px 0 0; clear: both; height: 0; margin: 10px 0 30px; }

ul, ol { margin: 0 0 24px; }
li { line-height: 1.4; margin-bottom: 12px; }

table { border-collapse: collapse; border-spacing: 0; width: 100%; margin-bottom: 24px; }
td, th { border: 1px solid #333; padding: 6px 10px; text-align: left; }

input[type="text"], input[type="search"], input[type="password"], input[type="email"],
input[type="url"], input[type="tel"], input[type="number"], textarea, select {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 2px;
	color: #444;
	font: 14px var(--rem-font-body);
	padding: 7px 6px;
	margin: 0 0 20px;
	max-width: 100%;
	width: 260px;
}
textarea { min-height: 80px; width: 100%; }
::placeholder { color: orangered; }

.button, button, input[type="submit"], input[type="reset"], input[type="button"] {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 3px;
	color: #222;
	cursor: pointer;
	display: inline-block;
	font: 600 12px/1 var(--rem-font-body);
	padding: 9px 12px;
	text-decoration: none;
}
.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
	background: var(--rem-orange);
	border-color: var(--rem-orange);
	color: #fff;
}

.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;
}
.screen-reader-text:focus {
	background: #fff; color: #000; clip: auto; clip-path: none;
	display: block; height: auto; width: auto; left: 8px; top: 8px; padding: 12px 18px; z-index: 100000;
}

/* WordPress Core-Klassen */
.alignleft { float: left; margin: 5px 20px 20px 0; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.aligncenter { display: block; margin: 5px auto; }
.alignnone { margin: 5px 20px 20px 0; height: auto; }
.wp-caption { max-width: 100%; text-align: center; }
.wp-caption img { display: block; margin: 0 auto; }
.wp-caption-text, .gallery-caption, figcaption { color: #999; font-size: 12px; line-height: 17px; padding: 6px 4px; }
.sticky, .bypostauthor {}
.clear, .clearfix::after { clear: both; content: ""; display: block; }

/* ==========================================================================
   Layout
   ========================================================================== */
.rem-container {
	width: 100%;
	max-width: var(--rem-container);
	margin: 0 auto;
	padding: 0 20px;
}

.rem-layout {
	display: grid;
	grid-template-columns: var(--rem-sidebar) minmax(0, 1fr);
	grid-template-areas: "sidebar main";
	column-gap: var(--rem-gap);
	align-items: start;
}
.rem-main { grid-area: main; min-width: 0; }
.rem-sidebar { grid-area: sidebar; }

/* ==========================================================================
   Header (Social Icons)
   ========================================================================== */
.rem-header { padding-top: 12px; }
.rem-social {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.rem-social li { margin: 0; }
.rem-social a {
	display: block;
	color: #fff;
	font-size: 33px;
	line-height: 1;
	text-decoration: none;
	transition: color .2s ease-in-out;
}
.rem-social a:hover, .rem-social a:focus { color: var(--rem-gold); }

/* ==========================================================================
   Sidebar: Logo + Akkordeon-MenÃ¼ (ersetzt jQuery Vertical Accordion Menu
   und Q2W3 Fixed Widget)
   ========================================================================== */
.rem-sidebar-inner { position: sticky; top: 20px; padding-top: 20px; }
.admin-bar .rem-sidebar-inner { top: 52px; }

.rem-logo { display: block; margin: 0 0 10px 25px; }
.rem-logo img { display: block; max-width: 100%; height: auto; }

.rem-nav ul { list-style: none; margin: 0; padding: 0; }
.rem-nav li { margin: 0; position: relative; }
.rem-nav a {
	display: block;
	padding: 10px 40px 0 30px;
	color: #fff;
	font-family: var(--rem-font-display);
	font-size: 26px;
	line-height: 1;
	text-decoration: none;
	transition: color .2s ease-in-out;
}
.rem-nav a:hover, .rem-nav a:focus { color: var(--rem-gold); }
.rem-nav .current-menu-item > a,
.rem-nav .current_page_item > a,
.rem-nav .current-menu-ancestor > a,
.rem-nav .current-page-ancestor > a { color: var(--rem-gold); }

.rem-nav .sub-menu { display: none; padding-left: 14px; }
.rem-nav .is-open > .sub-menu { display: block; }
.rem-nav .sub-menu a { font-size: 21px; padding-top: 8px; }

.rem-submenu-toggle {
	position: absolute;
	right: 0;
	top: 8px;
	width: 32px;
	height: 28px;
	padding: 0;
	background: none;
	border: 0;
	color: #fff;
	font-size: 18px;
	line-height: 28px;
	cursor: pointer;
}
.rem-submenu-toggle:hover { background: none; color: var(--rem-gold); }
.rem-submenu-toggle::before { content: "+"; font-family: var(--rem-font-display); }
.is-open > .rem-submenu-toggle::before { content: "\2013"; }

.rem-sidebar .widget { margin: 30px 0 0 30px; }
.rem-sidebar .widget-title { font-family: var(--rem-font-display); font-size: 24px; margin: 0 0 10px; }

/* ==========================================================================
   Seitentitel (Bild-Ãœberschriften wie news.jpg / artspace.jpg)
   ========================================================================== */
.rem-page-heading {
	margin: 96px 0 -28px;
	font-family: var(--rem-font-display);
	font-size: 34px;
	line-height: 40px;
}
.rem-page-heading img { display: block; max-height: 100px; width: auto; }
.page .rem-page-heading,
.rem-page-heading.is-plain { margin-bottom: 20px; }
.rem-page-heading-text {
	display: inline-block;
	font-family: var(--rem-font-brush);
	font-size: 80px;
	line-height: 1;
	letter-spacing: 1px;
	color: #fff;
	text-transform: uppercase;
	transform: rotate(-3deg);
}

/* ==========================================================================
   News-Ãœbersicht
   ========================================================================== */
.rem-post { margin-bottom: 30px; }

.rem-date-badge {
	position: relative;
	top: 40px;
	z-index: 100;
	display: inline-block;
	margin-left: -14px;
	padding: 5px 5px 5px 7px;
	background: #fff;
	color: #000;
	box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, .3);
	font-family: var(--rem-font-display);
	font-size: 20px;
	line-height: 1.2;
}
.rem-date-badge::after {
	content: "";
	position: absolute;
	left: 0;
	top: 100%;
	border-width: 5px 7px;
	border-style: solid;
	border-color: #666 #666 transparent transparent;
}

.rem-thumb {
	position: relative;
	z-index: 10;
	max-height: 260px;
	overflow: hidden;
}
.rem-thumb img { display: block; width: 100%; height: auto; }
.rem-thumb a { display: block; }

.rem-post-title { margin: 10px 0 0; padding-top: 15px; }
.rem-post-title a,
.rem-post-title a:visited {
	color: #fff;
	font-family: var(--rem-font-display);
	font-size: 42px;
	line-height: 1.1;
	text-decoration: none;
	transition: color .2s ease-in-out;
}
.rem-post-title a:hover, .rem-post-title a:focus { color: var(--rem-gold); }

.rem-excerpt p { margin-top: 24px; }

.rem-divider {
	max-width: 293px;
	height: 20px;
	margin: 0 auto;
	background:
		var(--rem-divider-image, none) center / contain no-repeat,
		radial-gradient(circle, #777 0 3px, transparent 4px) center / 10px 10px no-repeat,
		linear-gradient(90deg, transparent, #555 30%, #555 70%, transparent) center / 100% 1px no-repeat;
}

/* ==========================================================================
   Einzelbeitrag / Seite
   ========================================================================== */
.single .rem-post { padding-top: 56px; }
.rem-single-title {
	margin: 40px 0 10px;
	font-family: var(--rem-font-display);
	font-size: 34px;
	line-height: 40px;
}
.rem-meta {
	margin-bottom: 20px;
	color: #fff;
	font-family: var(--rem-font-display);
	font-size: 18px;
}
.rem-entry::after { clear: both; content: ""; display: block; }
.rem-entry ul { list-style: disc outside; padding-left: 20px; }
.rem-entry ol { list-style: decimal outside; padding-left: 20px; }

/* Responsive Videos (ersetzt "Responsive Video Embeds") */
.rem-entry iframe { max-width: 100%; }
.rve, .rem-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: 24px;
}
.rve iframe, .rem-embed iframe,
.rve object, .rve embed {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
}
.wp-block-embed.is-type-video .wp-block-embed__wrapper { aspect-ratio: 16 / 9; position: relative; }
.wp-block-embed.is-type-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Galerien (klassisch + Block) */
.gallery { display: grid; gap: 10px; margin-bottom: 24px; grid-template-columns: repeat(3, 1fr); }
.gallery-columns-1 { grid-template-columns: 1fr; }
.gallery-columns-2 { grid-template-columns: repeat(2, 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-item { margin: 0; }
.gallery-item img { display: block; width: 100%; height: auto; }
.gallery br { display: none; }

.rem-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin: 30px 0;
	font-family: var(--rem-font-display);
	font-size: 20px;
}

/* ==========================================================================
   Pagination (ersetzt WP-PageNavi, gleiche Optik)
   ========================================================================== */
.rem-pagination { position: relative; z-index: 100; margin: 20px 0 40px; }
.rem-pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.rem-pagination .page-numbers,
.rem-pagination .pages {
	display: inline-block;
	padding: 3px 7px;
	background: #fff;
	border: 1px solid #fff;
	color: #000;
	font-size: 14px;
	text-decoration: none;
}
.rem-pagination a.page-numbers:hover,
.rem-pagination .page-numbers.current { border-color: var(--rem-orange); }
.rem-pagination .page-numbers.current { font-weight: 700; }
.rem-pagination .dots { background: none; border-color: transparent; color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.rem-footer { padding: 60px 0 40px; }
.rem-footer-line { color: var(--rem-text); font-size: 16px; }
.rem-footer a { text-decoration: none; }
.rem-footer-menu { display: inline; list-style: none; margin: 0; padding: 0; }
.rem-footer-menu li { display: inline; margin: 0; }
.rem-footer-menu li::before { content: "\00a0|\00a0"; }

/* Scroll to Top (ersetzt Cudazi Scroll To Top) */
.rem-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 900;
	width: 44px;
	height: 44px;
	border: 1px solid #444;
	border-radius: 50%;
	background: rgba(0, 0, 0, .8);
	color: #fff;
	font-size: 20px;
	line-height: 42px;
	text-align: center;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, visibility .2s, color .2s, border-color .2s;
}
.rem-to-top.is-visible { opacity: 1; visibility: visible; }
.rem-to-top:hover, .rem-to-top:focus { color: var(--rem-orange); border-color: var(--rem-orange); }

/* ==========================================================================
   Mobile-MenÃ¼ (ersetzt WP Responsive Menu)
   ========================================================================== */
.rem-mobilebar { display: none; }

@media (max-width: 767px) {
	body { padding-top: 56px; }
	.admin-bar .rem-mobilebar { top: 46px; }

	.rem-mobilebar {
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 9999;
		background: var(--rem-bar);
	}
	.rem-mobilebar-inner {
		display: flex;
		align-items: center;
		height: 56px;
		padding: 0 14px;
	}
	.rem-burger {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 6px 0;
		background: none;
		border: 0;
		color: #fff;
		font: 400 20px/1 var(--rem-font-body);
	}
	.rem-burger:hover { background: none; color: #fff; }
	.rem-burger-box { position: relative; display: inline-block; width: 30px; height: 22px; }
	.rem-burger-box span,
	.rem-burger-box::before,
	.rem-burger-box::after {
		content: "";
		position: absolute;
		left: 0;
		width: 100%;
		height: 4px;
		border-radius: 2px;
		background: #fff;
		transition: transform .2s, opacity .2s, top .2s;
	}
	.rem-burger-box::before { top: 0; }
	.rem-burger-box span { top: 9px; }
	.rem-burger-box::after { top: 18px; }
	.rem-burger[aria-expanded="true"] .rem-burger-box::before { top: 9px; transform: rotate(45deg); }
	.rem-burger[aria-expanded="true"] .rem-burger-box span { opacity: 0; }
	.rem-burger[aria-expanded="true"] .rem-burger-box::after { top: 9px; transform: rotate(-45deg); }

	.rem-mobilebar-logo { margin-left: 8px; }
	.rem-mobilebar-logo img { display: block; height: 26px; width: auto; }

	.rem-mobilemenu {
		display: none;
		max-height: calc(100vh - 56px);
		overflow-y: auto;
		background: var(--rem-panel);
		padding: 10px 0 20px;
	}
	.rem-mobilemenu.is-open { display: block; }
	.rem-mobilemenu .rem-nav a { padding: 12px 50px 12px 20px; border-bottom: 1px solid #3c3c3c; font-size: 24px; }
	.rem-mobilemenu .rem-submenu-toggle { top: 10px; right: 10px; }

	.rem-layout { display: block; }
	.rem-sidebar { display: none; }
	.rem-social a { font-size: 30px; }

	.rem-page-heading { margin-top: 60px; }
	.rem-page-heading-text { font-size: 60px; }
	.rem-date-badge { margin-left: -10px; }
	.rem-post-title a { font-size: 34px; }
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.alignleft, .alignright { float: none; margin: 5px 0 20px; }
}

@media (min-width: 768px) and (max-width: 959px) {
	:root { --rem-sidebar: 200px; --rem-gap: 30px; }
	.rem-nav a { font-size: 22px; padding-left: 10px; }
	.rem-logo { margin-left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}

/* ==========================================================================
   Lightbox (ersetzt WP jQuery Lightbox)
   ========================================================================== */
.rem-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 50px 60px;
	background: rgba(0, 0, 0, .92);
}
.rem-lightbox[hidden] { display: none; }
.rem-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.rem-lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; touch-action: pan-y; }
.rem-lightbox figcaption { color: #ccc; font-size: 14px; padding-top: 10px; }
.rem-lightbox button {
	position: absolute;
	background: none;
	border: 0;
	color: #fff;
	font-size: 40px;
	line-height: 1;
	padding: 10px;
}
.rem-lightbox button:hover { background: none; color: var(--rem-orange); }
.rem-lb-close { top: 10px; right: 14px; }
.rem-lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.rem-lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.rem-lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #999; font-size: 13px; }

/* ==========================================================================
   Plugins, die weiterhin existieren (Mailchimp for WP, The Events Calendar)
   ========================================================================== */
.mc4wp-form input[type="email"], .mc4wp-form input[type="text"] { width: 100%; max-width: 360px; }
.mc4wp-form label { color: #fff; display: block; margin-bottom: 6px; }
.tribe-events-tooltip p.entry-summary { color: #000; font-size: 13px; line-height: 1.5; padding: 0; }
