/*!
Theme Name: ReKi
Theme URI: https://github.com/able2create/underscores-a2c-modern
Author: able2create
Author URI: https://able2create.com
Description: A minimal, modern WordPress starter theme. Built with PHP 8.4+, pure CSS/JS. No build process. Plugin-friendly. Based on Underscores.
Version: 2.0.0
Tested up to: 6.9
Requires at least: 6.4
Requires PHP: 8.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: reki
Tags: accessibility-ready, custom-background, custom-logo, custom-menu, featured-images, translation-ready, one-column, two-columns
*/

/*--------------------------------------------------------------
# CSS Reset
--------------------------------------------------------------*/
*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	scrollbar-color: var(--gs-colorthree) var(--gs-colortwo);
	scrollbar-width: thin;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
}

::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

::-webkit-scrollbar-track {
	background: var(--gs-colortwo);
}

::-webkit-scrollbar-thumb {
	background: var(--gs-colorthree);
	border-radius: 999px;
	border: 3px solid var(--gs-colortwo);
}

::-webkit-scrollbar-thumb:hover {
	filter: brightness(1.08);
}

/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/
:root {

	--color-text: inherit;
	--color-heading: inherit;
	--color-link: #1f1f1f;
	--color-border: #dddddd;
	--color-bg: #ffffff;
	--color-bg-alt: #f7f7f7;

	--font-base: 'Maknak-Book', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	--font-heading: 'Maknak-Book', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	--font-code: ui-monospace, Menlo, Monaco, 'Courier New', monospace;

	--font-size-h1: clamp(48px, 10vw, 170px);
	--font-size-h2: clamp(16px, 1vw, 18px);
	--font-size-megasize: clamp(48px, 10vw, 140px);
	--font-size-bigsize: clamp(36px, 6vw, 80px);
	--font-size-bigsize-menu: clamp(36px, 6vw, 80px);
	--font-size-mediumrare: clamp(32px, 5vw, 60px);
	--font-size-medium: clamp(28.8px, 4vw, 38px);
	--font-size-body: clamp(20px, 2vw, 22px);
}

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

body {
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-base);
	font-size: var(--font-size-body);
	line-height: 160%;
	-webkit-font-smoothing: antialiased;
}

.ind-liste>div:first-of-type p {
	margin-top: 8px;
	margin-bottom: 12px;
}

.ind-liste p {
	margin-top: 8px;
	margin-bottom: 4px;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--color-text);
	font-family: var(--font-heading);
	line-height: 120%;
	margin-bottom: 14px;
	font-weight: 400;
}

h1 {
	font-size: var(--font-size-h1);
	line-height: 100%;
}

h2 {
	font-size: var(--font-size-h2);
	line-height: 120%;
	text-transform: uppercase;
	letter-spacing: 0.11em;
}

h3 {
	font-size: clamp(27.2px, 3vw + 12.8px, 30px);
}

h4 {
	font-size: clamp(22.4px, 2.5vw + 9.6px, 24px);
}

h5 {
	font-size: clamp(19.2px, 2vw + 8px, 20px);
}

h6 {
	font-size: clamp(17.6px, 1.5vw + 6.4px, 18px);
}

p {
	margin-bottom: 24px;
}

.megasize {
	font-size: var(--font-size-megasize);
	line-height: 90%;
}

.bigsize {
	font-size: var(--font-size-bigsize);
	line-height: 110%;
	margin-bottom: 30px;
}

.mediumrare {
	font-size: var(--font-size-mediumrare);
	line-height: 120%;
}

.medium {
	font-size: var(--font-size-medium);
	line-height: 125%;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/

hr {
	background: var(--color-border);
	border: 0;
	height: 1px;
	margin: 24px 0;
}

ul,
ol {
	margin: 0 0 24px 32px;
}

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

blockquote {
	margin: 0 24px;
	padding-left: 24px;
	border-left: 4px solid var(--color-border);
	font-style: italic;
}

pre {
	background: var(--color-bg-alt);
	font-family: var(--font-code);
	font-size: 16px;
	line-height: 160%;
	margin-bottom: 24px;
	overflow: auto;
	padding: 20px;
}

code {
	font-family: var(--font-code);
	font-size: 16px;
	background: var(--color-bg-alt);
	padding: 2px 6px;
}

table {
	width: 100%;
	margin-bottom: 24px;
	border-collapse: collapse;
}

th,
td {
	padding: 12px;
	border: 1px solid var(--color-border);
	text-align: left;
}

th {
	font-weight: 700;
}

.gspb_image {
	margin: 0 0 1em 0;
}

/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/

a:link {
	color: var(--color-link);
	text-decoration: underline;
}

a:visited {
	color: var(--color-link);
	text-decoration: none;
}

a:hover {
	text-decoration: none;
}

a:focus,
a:focus-visible {
	outline: none;
}

a.megabutton {
	display: block;
	text-decoration: none;
	color: var(--gs-colorone);
	background: none;
	border: none;
	text-transform: uppercase;
	margin-left: 0;
	transition: all .4s ease-in-out;
	padding-left: 0;
	padding-right: 0;
}

a.megabutton h3 {
	margin-bottom: -35px;
}

a.megabutton:hover {
	display: block;
	text-decoration: none;
	color: var(--gs-colortwo);
	background: none;
	border: none;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
	padding: 48px 0;
}

.content-area {
	max-width: var(--wide-width);
	margin: 0 auto;
	padding: 0 24px;
}

.no-sidebar .content-area {
	max-width: var(--content-width);
}

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

/* --- BASIS HEADER --- */
.site-header {
	position: fixed;
	width: 100%;
	z-index: 99;
	background-color: transparent;
	/* Optional: verhindert Flackern bei Transitionen */
	transition: background-color 0.3s ease;
}

.header-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 50px;
	background-color: transparent;
}

/* --- LOGO LOGIK (STACKING) --- */
.site-branding {
	padding: 22px 0;
	position: relative;
	z-index: 100;
}

/* Das Grid sorgt dafür, dass beide Bilder exakt übereinander liegen */
.header-container .custom-logo-link {
	display: grid;
	grid-template-areas: "stack";
	align-items: center;
}

.site-logo {
	grid-area: stack;
	height: 80px;
	width: auto;
	display: block;
	transition: opacity 0.3s ease;
}

/* Standard: Creme sichtbar, Dunkel unsichtbar */
.header-container .logo-creme {
	opacity: 1;
}

.header-container .logo-dark {
	opacity: 0;
}

/* WENN HINTERGRUND HELL (Klasse kommt von JS): Logo wechseln */
.site-header.view-dark-logo .logo-creme {
	opacity: 0;
}

.site-header.view-dark-logo .logo-dark {
	opacity: 1;
}

/* --- HAMBURGER BUTTON --- */
#hamburger {
	background-color: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 9px;
	z-index: 9999999;
	position: relative;
	transition: all 0.2s ease-in-out;
}

#hamburger:hover {
	gap: 7px;
}

/* --- HAMBURGER LINIEN FARBLOGIK --- */
.line {
	width: 60px;
	height: 6px;
	background: #f3e9c0;
	/* Standard: Creme (für dunkle Hintergründe) */
	transform-origin: center;
}

/* WENN HINTERGRUND HELL (Klasse kommt von JS): Linien dunkel */
.site-header.view-dark-burger .line {
	background: #293213;
}

/* WENN MENÜ OFFEN IST: Immer Dunkelgrün (da Flyout hell ist) */
#hamburger.active .line {
	background: #293213 !important;
	transition: all 0.4s ease;
}

/* Hamburger Animationen (X-Form) */
#hamburger.active .top {
	transform: translateY(15px) rotate(45deg);
}

/* 2. Mittlere Linie: Einfach ausblenden */
#hamburger.active .middle {
	opacity: 0;
	transform: scale(0);
	/* Zieht sich schön zusammen */
}

/* 3. Untere Linie: 15px hoch in die Mitte, dann zurückdrehen */
#hamburger.active .bottom {
	transform: translateY(-15px) rotate(-45deg);
}

#hamburger.active:hover {
	gap: 9px;
}

#hamburger:focus,
#hamburger:focus-visible {
	outline: none;
	box-shadow: none;
}

/* --- FLYOUT MENÜ --- */
#flyout {
	opacity: 0;
	pointer-events: none;
	transform: translateY(100%);
	transition: transform 0.6s ease, opacity 0.6s ease;
	position: fixed;
	top: 0;
	right: 0;
	width: 100vw;
	height: 100vh;
	background: #f0e8c1;
	/* Heller Hintergrund */
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 999999;
}

#flyout.open {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

/* Logo im Flyout (Dort ist immer das dunkle Logo, kein Switch nötig) */
#flyout .site-branding {
	position: absolute;
	top: 15px;
	left: 60px;
	padding: 0;
}

/* Reset für das Logo im Flyout, falls Grid stört */
#flyout .custom-logo-link {
	display: block;
}

#flyout .site-branding a::after {
	display: none;
}

/* Menü Links Styling */
#flyout a {
	color: inherit;
	text-decoration: none;
	text-transform: uppercase;
	display: inline-block;
	position: relative;
}

/* Unterstreichungs-Effekt */
#flyout a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0.08em;
	width: 100%;
	height: 3px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
}

#flyout a:hover::after,
#flyout .current-menu-item>a::after {
	transform: scaleX(1);
}

#flyout .current-menu-ancestor>a:not(:hover)::after {
	transform: scaleX(0);
}

/* Menü Struktur */
#flyout .menu,
#flyout ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--font-size-bigsize-menu);
	line-height: 110%;
}

/* "MODULE" Label */
#flyout .menu>li.menu-item-has-children>.sub-menu::before {
	content: "MODULE";
	display: block;
	margin-bottom: 0;
	margin-left: 0;
	letter-spacing: 0.11em;
	font-size: var(--font-size-h2);
	text-transform: uppercase;
	height: 40px;
}

#flyout .menu>li {
	margin: 18px 0;
}

#flyout .menu>li>a {
	display: inline-block;
}

#flyout .menu>li .sub-menu {
	margin-top: -10px;
	padding-left: 170px;
}

#flyout .menu>li .sub-menu li {
	margin: 18px 0;
}

#flyout .menu>li .sub-menu a {
	display: inline-block;
}

#hamburger:focus,
#hamburger:focus-visible {
	outline: none;
	box-shadow: none;
}

.site-branding {
	position: relative;
}

.custom-logo-link img {
	transition: opacity 0.3s ease;
	display: block;
}

/* Beide Logos übereinander legen */
.custom-logo-link {
	display: grid;
	grid-template-areas: "logo";
}

.custom-logo-link img {
	grid-area: logo;
}

/* Standard: Creme ist sichtbar, Dunkel ist unsichtbar */
.logo-creme {
	opacity: 1;
}

.logo-dark {
	opacity: 0;
}

/* Wenn der Header auf einem hellen Hintergrund ist -> Dunkles Logo zeigen */
.site-header.skin-dark .logo-creme {
	opacity: 0;
}

.site-header.skin-dark .logo-dark {
	opacity: 1;
}

/* Hamburger Menu Farben */
.line {
	background-color: #f3e9c0;
	/* Standard Creme */
	transition: background-color 0.3s ease;
}

/* Wenn Hintergrund hell -> Hamburger Dunkel */
.site-header.skin-dark-burger .line {
	background-color: #293213;
	/* Dein Dunkelgrün */
}

/*--------------------------------------------------------------
# Posts
--------------------------------------------------------------*/

.entry-header {
	margin-bottom: 24px;
}

.home .entry-header {
	margin-bottom: 0;
}

.entry-title {
	margin-bottom: 12px;
}

.entry-meta {
	font-size: 16px;
	color: #666666;
}

/* .entry-content {
	margin-top: 24px;
} */

.home .entry-content {
	margin-top: 0;
}

.post-thumbnail {
	margin-bottom: 24px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.cta-float {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: -65px;
	z-index: 1;
	animation: ctaIn 1.2s ease-out forwards;
	animation-delay: 1200ms;
}

@keyframes ctaIn {
	to {
		bottom: 35px;
	}
}

.cta-float a {
	display: inline-block;
	background: var(--gs-colorone);
	padding: 10px 30px 6px;
	border-radius: 25px;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.3s ease;
	width: max-content;
}

.cta-float a {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.cta-float.view-dark-cta a {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	background: var(--gs-colorcolor4);
}

.cta-float a:hover,
.cta-float.view-dark-cta a:hover {
	background: var(--gs-colortwo);
	color: var(--gs-colorcolor4);
}

.site-footer {
	background: var(--gs-colorcolor4);
	padding: 50px 50px 120px 50px;
}

.site-footer__inner {
	width: 100%;
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 3rem);

	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 2rem;
}

.site-footer__col--copyright {
	text-align: left;
}

.site-footer__col--social {
	text-align: center;
}

.site-footer__col--menu {
	text-align: right;
}

.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

.site-footer .current-menu-item>a,
.site-footer .current_page_item>a {
	text-decoration: underline;
}

.footer-menu {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	justify-content: flex-end;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/

.widget {
	margin-bottom: 48px;
}

.widget-title {
	font-size: 22px;
	margin-bottom: 16px;
}

.widget ul {
	list-style: none;
	padding: 0;
}

.widget li {
	padding: 8px 0;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 14px;
	text-align: center;
	color: #666666;
	margin-top: 8px;
}

.gallery {
	display: grid;
	gap: 16px;
	margin-bottom: 24px;
}

.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);
}

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

.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: var(--color-bg-alt);
	clip: auto !important;
	clip-path: none;
	color: var(--color-link);
	display: block;
	font-size: 16px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 16px 24px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/

.alignleft {
	float: left;
	margin: 0 24px 24px 0;
}

.alignright {
	float: right;
	margin: 0 0 24px 24px;
}

.aligncenter {
	display: block;
	margin: 0 auto 24px;
}

@media (hover: none) and (pointer: coarse) {
	[data-cursor-effect] {
		transform: none !important;
	}
}

/* Greenshift Shit */

.wp-block-greenshift-blocks-pagescroll {
	background: var(--gs-colorcolor4);
}

@media only screen and (max-width: 768px) {

	.header-container {
		padding: 5px 20px;
	}

	.site-branding {
		padding: 15px 0;
	}

	#flyout .menu>li.menu-item-has-children>.sub-menu::before {
		height: 20px;
		margin-top: 15px;
	}

	#flyout .site-branding {
		top: 5px;
		left: 20px;
	}

	#flyout .menu>li .sub-menu {
		margin-top: -10px;
		padding-left: 10px;
	}

	.site-logo {
		height: 50px;
	}

	.site-footer {
		padding: 20px 20px 80px 20px;
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.site-footer__col--copyright {
		text-align: center;
	}

	.site-footer__col--menu {
		text-align: center;
	}

	.footer-menu {
		justify-content: center;
		flex-wrap: wrap;
	}

	@keyframes ctaIn {
		to {
			bottom: 20px;
		}
	}

}