/*
Theme Name: Andreas Baum Theme
Theme URI: http://andreasbaum.de/
Author: Mediatis AG
Author URI: http://mediatis.de/
Description: Modern photography portfolio theme with top navigation, video hero support, and enhanced gallery layouts
Version: 2.0.0
Text Domain: ab_theme
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

 /*	Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
--------------------------------------------------------------------------------------- */
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}
.clearfix:after{clear:both;content:' ';display:block;font-size:0;line-height:0;visibility:hidden;width:0;height:0;}.clearfix {display:inline-block;}* html .clearfix {height: 1%;}.clearfix {display: block;}

@font-face{font-family:'Oswald-Bold';src:url('fonts/Oswald-Bold.ttf');}@font-face{font-family:'Oswald-Light';src:url('fonts/Oswald-Light.ttf');}@font-face{font-family:'Oswald-Regular';src:url('fonts/Oswald-Regular.ttf');}

/* Allgemeines */

body {
	color: #666;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.5em;
}

a {
	color: #666;
	text-decoration: none;
}

h1, h2, h3 {
	font-size: 18px;
	font-weight: 500;
	margin-bottom: 0.5em;
}

/* Startseite / Vorschaltseite - Hero Teaser Section */

/* Smooth scrolling */
html {
	scroll-behavior: smooth;
}

body.home #wrapper {
	padding-top: 0; /* Remove top padding on home page */
}

/* Hero Teaser Section - Full viewport height, scrollable */
.hero-teaser-section {
	position: relative;
	width: 100%; /* Full width */
	height: 100vh;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.hero-teaser-content {
	width: 100%;
	height: 100%;
}

.hero-teaser-link {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: transparent no-repeat center center/cover;
}

/* Hero Video Styles */
.hero-video {
	position: relative;
	width: 100%;
	height: 100%;
}

.hero-video-element {
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 100%;
	min-height: 100%;
	width: auto;
	height: auto;
	transform: translate(-50%, -50%);
	object-fit: cover;
}

/* Hero Overlay */
.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.2);
	z-index: 1;
	transition: background 0.3s ease;
}

.hero-teaser-link:hover .hero-overlay {
	background: rgba(0, 0, 0, 0.3);
}

/* Hero Title */
.hero-title {
	display: block;
	position: absolute;
	bottom: 15vh;
	left: 0;
	right: 0;
	z-index: 2;

	color: #fff;
	font-family: 'Oswald-Light', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 48px;

	text-transform: uppercase;
	text-align: center;
	text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);

	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-teaser-link:hover .hero-title {
	opacity: 1;
	transform: translateY(0);
}

/* Scroll Indicator */
.scroll-indicator {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
	opacity: 0.7;
}

.scroll-arrow {
	display: block;
	width: 30px;
	height: 30px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
	animation: scroll-bounce 2s infinite;
	filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
}

@keyframes scroll-bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: rotate(45deg) translateY(0);
	}
	40% {
		transform: rotate(45deg) translateY(-10px);
	}
	60% {
		transform: rotate(45deg) translateY(-5px);
	}
}

/* Hero Placeholder (No Media Configured) */
.hero-no-media {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.hero-placeholder {
	color: #fff;
	padding: 40px;
	max-width: 800px;
}

.hero-placeholder h1 {
	font-family: 'Oswald-Bold';
	font-size: 48px;
	text-transform: uppercase;
	margin-bottom: 20px;
	text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Main Content Section */
.main-content-section {
	position: relative;
	background: #fff;
	min-height: 50vh;
}

.main-content-section .maincontent {
	padding-top: 60px;
	padding-bottom: 60px;
}

/* Hide title if you want - uncomment below */
/*
.hero-title {
	display: none;
}
*/

/* Top Navigation Header */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid #e0e0e0;
	z-index: 1000;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

body.home .site-header {
	background: rgba(255, 255, 255, 0);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	transform: translateY(-100%);
}

body.home.scrolled .site-header {
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid #e0e0e0;
	transform: translateY(0);
}

.header-container {
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 80px;
}

.site-branding {
	flex-shrink: 0;
}

.site-logo {
	font-family: 'Oswald-Bold';
	font-size: 24px;
	text-transform: uppercase;
	color: #343434;
	text-decoration: none;
	display: block;
	transition: color 0.3s ease;
}

body.home .site-logo {
	color: #fff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

body.home.scrolled .site-logo {
	color: #343434;
	text-shadow: none;
}

.site-logo:hover {
	color: #CC6633;
}

/* Main Navigation */
.main-navigation {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.main-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 40px;
}

.main-navigation li {
	margin: 0;
	position: relative;
}

.main-navigation a {
	font-family: 'Oswald-Light';
	font-size: 16px;
	line-height: 1.3;
	text-transform: uppercase;
	color: #343434;
	text-decoration: none;
	display: block;
	padding: 10px 0;
	transition: color 0.3s ease;
	position: relative;
}

body.home .main-navigation a {
	color: #fff;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

body.home.scrolled .main-navigation a {
	color: #343434;
	text-shadow: none;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
	color: #CC6633;
}

.main-navigation a::after {
	content: '';
	position: absolute;
	bottom: 5px;
	left: 0;
	right: 0;
	height: 2px;
	background: #CC6633;
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
	transform: scaleX(1);
}

.main-navigation .nav_photography a {
	font-family: 'Oswald-Regular';
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	padding: 5px;
	cursor: pointer;
	width: 30px;
	height: 24px;
	flex-shrink: 0;
	margin-left: 20px;
}

.menu-toggle-icon {
	display: block;
	width: 24px;
	height: 18px;
	position: relative;
}

.menu-toggle-icon span {
	display: block;
	height: 2px;
	background: #343434;
	margin-bottom: 5px;
	transition: all 0.3s ease;
	border-radius: 2px;
}

body.home .menu-toggle-icon span {
	background: #fff;
}

body.home.scrolled .menu-toggle-icon span {
	background: #343434;
}

.menu-toggle-icon span:last-child {
	margin-bottom: 0;
}

.mobile-menu-toggle.active .menu-toggle-icon span:nth-child(1) {
	transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active .menu-toggle-icon span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.active .menu-toggle-icon span:nth-child(3) {
	transform: rotate(-45deg) translateY(-8px);
}

/* Inhaltsspalte */

#wrapper {
	min-height: 90vh;
	margin-top: 80px; /* Space for fixed header */
	transition: margin-top 0.3s ease;
}

body.home #wrapper {
	margin-top: 0; /* No header margin on home page - hero is full viewport */
}

.maincontent {
	padding: 2em 28px;
	max-width: 1800px;
	margin: 0 auto;
}

.maincontent p {
	max-width: 800px;
}
p + h1,
p + h2,
p + h3 {
    margin-top: 1.5em;
}
h2 + h3 {
	margin-top: 1em;
}
.maincontent h1 {
	margin-bottom: 1em;
}
.maincontent h2 {
	font-size: 16px;
}
.maincontent h3 {
	font-size: 14px;
}

/* Albumliste "Photography" */
#albumlist, .envira-gallery-wrap {
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 28px;
}

.ab-item {
	margin-bottom: 14px;
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ab-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
	z-index: 10;
}

.ab-item-link {
	display: block;
	position: relative;
	overflow: hidden;
}

.ab-item img {
	vertical-align: top;
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.5s ease;
}

.ab-item:hover img {
	transform: scale(1.05);
}

/* Gallery Item Overlay */
.ab-item-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
	padding: 20px;
	opacity: 0;
	transform: translateY(100%);
	transition: opacity 0.3s ease, transform 0.3s ease;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.ab-item:hover .ab-item-overlay {
	opacity: 1;
	transform: translateY(0);
}

.ab-item-title {
	color: #fff;
	font-family: 'Oswald-Bold';
	font-size: 18px;
	text-transform: uppercase;
	margin-bottom: 5px;
	display: block;
}

.ab-item-caption {
	color: rgba(255, 255, 255, 0.9);
	font-size: 13px;
	line-height: 1.4;
	display: block;
}

/* Orientation-specific styles */
.ab-orientation-portrait {
	/* Portrait images get more visual weight */
}

.ab-orientation-landscape {
	/* Landscape images can span wider */
}

.ab-orientation-square {
	/* Square images maintain aspect ratio */
}

/* Envira Gallery (Single Gallery View) */
.envira-gallery-wrap {
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 28px !important;
}

/* Envira Gallery Item Captions */
.envira-gallery-item {
	position: relative;
	overflow: hidden;
	margin-bottom: 14px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.envira-gallery-item:hover {
	transform: translateY(-2px);
}

.envira-gallery-item img {
	transition: transform 0.5s ease;
}

.envira-gallery-item:hover img {
	transform: scale(1.03);
}

/* Envira Lightbox Styles */
.envirabox-bg {
	background: #000 !important;
}

.envirabox-is-open .envirabox-bg {
	opacity: 1 !important;
}

/* Envira Caption Styles in Lightbox */
.envirabox-caption {
	background: rgba(0, 0, 0, 0.85) !important;
	color: #fff !important;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
	padding: 20px !important;
}

.envirabox-caption-title {
	font-family: 'Oswald-Bold' !important;
	font-size: 18px !important;
	text-transform: uppercase !important;
	margin-bottom: 8px !important;
	color: #fff !important;
}

.envirabox-caption-description {
	font-size: 13px !important;
	color: rgba(255, 255, 255, 0.9) !important;
}

/* Site Footer */
/* Fußnavigation */

.footernav {
	padding: 28px;
}
.footernav li {
	display: inline-block;
	margin-right: 20px;
}
.footernav a {
	font-family: 'Oswald-Light';
	font-size: 17px;
	line-height: 1.3;
	font-weight: normal;
	font-stretch: ultra-condensed;
	text-transform: uppercase;
}
.footernav a:hover, .footernav .current-menu-item a { color: #CC6633; }

/* Responsive Styles */

@media screen and (max-width: 992px) {
	/* Mobile navigation */
	.mobile-menu-toggle {
		display: block;
	}

	.main-navigation {
		position: fixed;
		top: 80px;
		left: 0;
		right: 0;
		background: rgba(255, 255, 255, 0.98);
		backdrop-filter: blur(10px);
		padding: 20px 28px;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
		border-bottom: 1px solid #e0e0e0;
	}

	.main-navigation.active {
		max-height: 80vh;
		overflow-y: auto;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0;
		align-items: flex-start;
	}

	.main-navigation li {
		width: 100%;
		border-bottom: 1px solid #f0f0f0;
	}

	.main-navigation li:last-child {
		border-bottom: none;
	}

	.main-navigation a {
		padding: 15px 0;
		color: #343434 !important;
		text-shadow: none !important;
	}

	.main-navigation a::after {
		display: none;
	}

	.header-container {
		height: 70px;
		padding: 0 20px;
	}

	.site-logo {
		font-size: 20px;
	}

	#wrapper {
		margin-top: 70px;
	}

	body.home #wrapper {
		margin-top: 0;
	}
}

@media screen and (max-width: 768px) {
	.maincontent {
		padding: 1.5em 20px;
	}

	/* Header Mobile */
	.header-container {
		height: 60px;
		padding: 0 15px;
	}

	.site-logo {
		font-size: 18px;
	}

	.main-navigation {
		top: 60px;
		padding: 15px 20px;
	}

	#wrapper {
		margin-top: 60px;
	}

	body.home #wrapper {
		margin-top: 0;
	}

	/* Footer responsive */
	.footer-container {
		padding: 30px 20px 15px;
	}

	.footer-widgets {
		grid-template-columns: 1fr;
		gap: 30px;
		margin-bottom: 30px;
		padding-bottom: 30px;
	}

	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}

	.footer-navigation ul {
		flex-direction: column;
		gap: 10px;
	}

	.footer-copyright {
		order: 2;
	}

	.footer-legal {
		order: 1;
	}

	/* Hero section mobile */
	.hero-teaser-section {
		height: 100vh; /* Full viewport on mobile */
	}

	.hero-title {
		font-size: 32px;
		bottom: 12vh;
		padding: 0 20px;
	}

	.scroll-indicator {
		bottom: 30px;
	}

	.scroll-arrow {
		width: 24px;
		height: 24px;
	}

	.main-content-section .maincontent {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	/* Gallery responsive */
	#albumlist, .envira-gallery-wrap {
		padding: 0 20px !important;
	}

	.ab-item-title {
		font-size: 16px;
	}

	.ab-item-caption {
		font-size: 12px;
	}

	.ab-item-overlay {
		padding: 15px;
	}

	.envirabox-caption {
		padding: 15px !important;
	}

	.envirabox-caption-title {
		font-size: 16px !important;
	}
}




