/*
Theme Name: Theaterverein Zirl
Theme URI: https://theaterverein-zirl.at
Author: Theaterverein Zirl
Author URI: https://theaterverein-zirl.at
Description: Ein angepasstes WordPress-Theme für den Theaterverein Zirl mit erdigen Farben, Azo Sans Schriftart und responsivem Design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theaterverein-zirl
*/

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Azo Sans", "azo-sans", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #3a2c1a;
	background-color: var(--bg-color, #f5f1e8);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Adobe Fonts Azo Sans - Fallback */
@font-face {
	font-family: "Azo Sans";
	src:
		url("./fonts/azo-sans-regular.woff2") format("woff2"),
		url("./fonts/azo-sans-regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Azo Sans";
	src:
		url("./fonts/azo-sans-bold.woff2") format("woff2"),
		url("./fonts/azo-sans-bold.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ============================================
   LAYOUT & STRUCTURE
   ============================================ */
.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.site-header {
	padding: 20px 0;
}

.site-header .container {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.site-logo {
	flex: 0 0 300px;
	text-align: center;
}

.site-logo img {
	max-width: 250px;
	height: auto;
	display: block;
	margin: 0 auto;
}

.site-navigation {
	flex: 1;
	min-width: 250px;
}

.main-navigation {
	display: flex;
	justify-content: flex-end;
	list-style: none;
}

.main-navigation ul {
	display: flex;
	gap: 25px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	text-decoration: none;
	color: #3a2c1a;
	font-weight: 500;
	font-size: 1.1rem;
	padding: 8px 12px;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
	color: #8b5a2b;
	background-color: rgba(139, 90, 43, 0.1);
}

.main-navigation .sub-menu {
	display: none;
	position: absolute;
	background-color: rgba(245, 241, 232, 0.98);
	min-width: 200px;
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
	z-index: 1001;
	flex-direction: column;
	gap: 10px;
}

.main-navigation .menu-item-has-children:hover > .sub-menu {
	display: flex;
}

.main-navigation .sub-menu a {
	font-size: 1rem;
	padding: 8px 15px;
	white-space: nowrap;
}

.hamburger-menu {
	display: none;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #3a2c1a;
	padding: 10px;
}

/* ============================================
   CONTENT AREAS
   ============================================ */
.site-content {
	flex: 1;
	padding: 40px 0;
}

.content-area {
	padding: 30px 0;
}

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

.entry-title {
	font-size: 2.2rem;
	font-weight: 700;
	color: #8b5a2b;
	margin-bottom: 15px;
	line-height: 1.3;
}

.entry-content {
	font-size: 1.1rem;
	line-height: 1.8;
}

.entry-content p {
	margin-bottom: 20px;
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 20px 0;
	box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.page-content {
	margin: 30px 0;
}

/* ============================================
   SIDEBAR
   ============================================ */
.site-sidebar {
	padding: 30px 0;
}

.widget {
	background-color: rgba(255, 255, 255, 0.6);
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.widget-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: #8b5a2b;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #d4a762;
}

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

.widget li {
	padding: 10px 0;
	border-bottom: 1px solid rgba(139, 90, 43, 0.2);
}

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

.widget a {
	text-decoration: none;
	color: #3a2c1a;
	transition: color 0.3s ease;
}

.widget a:hover {
	color: #8b5a2b;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
	background-color: #3a2c1a;
	color: #f5f1e8;
	padding: 50px 0 30px;
	margin-top: auto;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-widget {
	padding: 0 15px;
}

.footer-widget h3 {
	font-size: 1.4rem;
	color: #d4a762;
	margin-bottom: 20px;
}

.footer-widget p,
.footer-widget a {
	color: #f5f1e8;
	text-decoration: none;
	margin-bottom: 10px;
	display: block;
}

.footer-widget a:hover {
	color: #d4a762;
}

.footer-bottom {
	text-align: center;
	padding-top: 30px;
	border-top: 1px solid rgba(212, 167, 98, 0.3);
	font-size: 0.9rem;
	color: rgba(245, 241, 232, 0.7);
}

/* ============================================
   CUSTOMIZER STYLES
   ============================================ */
:root {
	--primary-color: #8b5a2b;
	--secondary-color: #d4a762;
	--text-color: #3a2c1a;
	--bg-color: #f5f1e8;
	--link-color: #8b5a2b;
	--link-hover-color: #d4a762;
}

body {
	background-color: var(--bg-color, #f5f1e8);
}

.header-main-wrapper {
	background-image: var(--background-image-url, none);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	flex: 1;
}

.background-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--background-overlay-color, rgba(0, 0, 0, 0.3));
	pointer-events: none;
	z-index: -1;
}

.main-navigation a {
	color: var(--nav-link-color, #3a2c1a);
}

.main-navigation a:hover,
.main-navigation a:focus {
	color: var(--nav-link-hover-color, #8b5a2b);
	background-color: var(--nav-link-hover-bg, rgba(139, 90, 43, 0.1));
}

.entry-title,
.widget-title,
.footer-widget h3 {
	color: var(--heading-color, #8b5a2b);
}

a {
	color: var(--link-color, #8b5a2b);
}

/* ============================================
   PAGE TEMPLATES - NEWS
   ============================================ */
.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin: 30px 0;
}

.news-card {
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.news-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-card featured-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.news-card-content {
	padding: 25px;
}

.news-card-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: #8b5a2b;
	margin-bottom: 15px;
}

.news-card-excerpt {
	color: #3a2c1a;
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 15px;
}

.news-card-meta {
	font-size: 0.9rem;
	color: #8b5a2b;
	opacity: 0.8;
}

.news-card-read-more {
	display: inline-block;
	margin-top: 15px;
	padding: 8px 16px;
	background-color: #8b5a2b;
	color: #f5f1e8;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 500;
	transition: background-color 0.3s ease;
}

.news-card-read-more:hover {
	background-color: #d4a762;
}

/* ============================================
   PAGE TEMPLATES - EVENTS
   ============================================ */
.events-list {
	margin: 30px 0;
}

.event-item {
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 25px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
	display: flex;
	gap: 25px;
	flex-wrap: wrap;
}

.event-date {
	flex: 0 0 120px;
	font-size: 1.1rem;
	font-weight: 700;
	color: #8b5a2b;
	text-align: center;
	padding: 15px;
	background-color: rgba(139, 90, 43, 0.1);
	border-radius: 8px;
}

.event-date .day {
	font-size: 2rem;
	display: block;
}

.event-date .month-year {
	font-size: 0.9rem;
	opacity: 0.8;
}

.event-content {
	flex: 1;
	min-width: 200px;
}

.event-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #8b5a2b;
	margin-bottom: 10px;
}

.event-meta {
	font-size: 0.95rem;
	color: #3a2c1a;
	margin-bottom: 15px;
	opacity: 0.9;
}

.event-description {
	color: #3a2c1a;
	line-height: 1.7;
}

.event-featured-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 8px;
	margin-top: 15px;
}

/* ============================================
   PAGE TEMPLATES - TEAM
   ============================================ */
.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
	margin: 30px 0;
}

.team-member {
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	text-align: center;
	transition: transform 0.3s ease;
}

.team-member:hover {
	transform: translateY(-5px);
}

.team-member-image {
	width: 100%;
	height: 300px;
	object-fit: cover;
}

.team-member-info {
	padding: 25px;
}

.team-member-name {
	font-size: 1.4rem;
	font-weight: 700;
	color: #8b5a2b;
	margin-bottom: 8px;
}

.team-member-role {
	font-size: 1.1rem;
	color: #d4a762;
	margin-bottom: 15px;
}

.team-member-bio {
	font-size: 1rem;
	color: #3a2c1a;
	line-height: 1.7;
}

/* ============================================
   PAGE TEMPLATES - GALLERY
   ============================================ */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 1;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

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

.gallery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.7) 0%,
		transparent 100%
	);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
	opacity: 1;
}

.gallery-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px 15px 15px;
	color: white;
	text-align: center;
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
	transform: translateY(0);
}

/* ============================================
   PAGE TEMPLATES - CONTACT
   ============================================ */
.contact-info {
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 12px;
	padding: 30px;
	margin-bottom: 40px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
	color: #8b5a2b;
	margin-bottom: 25px;
	font-size: 1.8rem;
}

.contact-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 25px;
}

.contact-item {
	padding: 20px;
	border-radius: 8px;
	background-color: rgba(139, 90, 43, 0.05);
}

.contact-item i {
	color: #8b5a2b;
	font-size: 1.5rem;
	margin-bottom: 10px;
}

.contact-item h4 {
	color: #8b5a2b;
	margin-bottom: 8px;
}

.contact-item p {
	color: #3a2c1a;
	margin: 0;
}

.contact-item a {
	color: #8b5a2b;
}

/* ============================================
   SHORTCODES - GALERIE
   ============================================ */
.galerie-container {
	margin: 40px 0;
}

.galerie-title {
	text-align: center;
	color: #8b5a2b;
	margin-bottom: 30px;
	font-size: 2rem;
}

/* ============================================
   SHORTCODES - KONTAKTFORMULAR
   ============================================ */
.kontaktformular-container {
	background-color: rgba(255, 255, 255, 0.8);
	border-radius: 12px;
	padding: 30px;
	margin: 30px 0;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.kontaktformular-title {
	text-align: center;
	color: #8b5a2b;
	margin-bottom: 30px;
}

.kontaktformular-form {
	max-width: 500px;
	margin: 0 auto;
}

.kontaktformular-form .form-group {
	margin-bottom: 20px;
}

.kontaktformular-form label {
	display: block;
	margin-bottom: 8px;
	color: #3a2c1a;
	font-weight: 500;
}

.kontaktformular-form input,
.kontaktformular-form textarea {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid #ddd;
	border-radius: 6px;
	font-family: inherit;
	font-size: 1rem;
	transition: border-color 0.3s ease;
}

.kontaktformular-form input:focus,
.kontaktformular-form textarea:focus {
	outline: none;
	border-color: #8b5a2b;
}

.kontaktformular-form textarea {
	min-height: 150px;
	resize: vertical;
}

.kontaktformular-form .submit-btn {
	background-color: #8b5a2b;
	color: #f5f1e8;
	border: none;
	padding: 12px 30px;
	font-size: 1.1rem;
	font-weight: 500;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.kontaktformular-form .submit-btn:hover {
	background-color: #d4a762;
}

.kontaktformular-success {
	background-color: rgba(76, 175, 80, 0.2);
	color: #2e7d32;
	padding: 20px;
	border-radius: 8px;
	margin: 20px 0;
	text-align: center;
}

.kontaktformular-error {
	background-color: rgba(244, 67, 54, 0.2);
	color: #c62828;
	padding: 20px;
	border-radius: 8px;
	margin: 20px 0;
	text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Base styles are mobile-first */

/* Tablet - 600px and up */
@media (min-width: 600px) {
	.site-header .container {
		gap: 30px;
	}

	.main-navigation ul {
		gap: 30px;
	}

	.entry-title {
		font-size: 2.4rem;
	}

	.news-grid {
		grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	}

	.team-grid {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	}
}

/* Desktop - 900px and up */
@media (min-width: 900px) {
	.site-header .container {
		flex-wrap: nowrap;
	}

	.main-navigation {
		justify-content: center;
	}

	.entry-title {
		font-size: 2.8rem;
	}

	.news-grid {
		grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
		gap: 40px;
	}

	.event-item {
		flex-wrap: nowrap;
	}

	.event-date {
		flex: 0 0 150px;
	}

	.event-featured-image {
		flex: 0 0 200px;
	}
}

/* Large Desktop - 1200px and up */
@media (min-width: 1200px) {
	.container {
		padding: 0 40px;
	}

	.main-navigation ul {
		gap: 40px;
	}

	.footer-widgets {
		gap: 60px;
	}
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.btn {
	display: inline-block;
	padding: 10px 25px;
	background-color: #8b5a2b;
	color: #f5f1e8;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 500;
	transition: all 0.3s ease;
}

.btn:hover {
	background-color: #d4a762;
	transform: translateY(-2px);
}

.btn-secondary {
	background-color: #d4a762;
}

.btn-secondary:hover {
	background-color: #8b5a2b;
}

.text-center {
	text-align: center;
}

.mt-1 {
	margin-top: 10px;
}
.mt-2 {
	margin-top: 20px;
}
.mt-3 {
	margin-top: 30px;
}
.mt-4 {
	margin-top: 40px;
}
.mb-1 {
	margin-bottom: 10px;
}
.mb-2 {
	margin-bottom: 20px;
}
.mb-3 {
	margin-bottom: 30px;
}
.mb-4 {
	margin-bottom: 40px;
}

.p-1 {
	padding: 10px;
}
.p-2 {
	padding: 20px;
}
.p-3 {
	padding: 30px;
}

/* Print Styles */
@media print {
	body {
		background-color: white;
		color: black;
	}

	.site-header,
	.site-footer,
	.main-navigation,
	.hamburger-menu {
		display: none !important;
	}

	.site-content {
		padding: 0;
	}

	.entry-title,
	.widget-title,
	.footer-widget h3 {
		color: black;
	}

	a {
		color: #0000ee;
		text-decoration: underline;
	}
}
