/*
Theme Name: LAN Reservation
Author: Bojett
Description: Modernes Theme für LAN Reservierungen mit Video-Hintergrund, responsivem Design und anpassbaren Farben.
Version: 1.0
*/

/* --- CSS-Variablen für einfache Farbanpassungen --- */
:root {
    --color-background: #121212;
    --color-surface: #1e1e1e;
    --color-primary: #e01a22;
    --color-primary-dark: #a11318;
    --color-text-primary: #ffffff;
    --color-text-secondary: #b3b3b3;
    --font-main: 'Montserrat', sans-serif;
}

/* --- Globaler Reset & Body-Styling --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-background);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: var(--color-text-primary);
    font-weight: 700;
}

h3 {
    margin-bottom: 15px;
}

h4 {
    margin-top: 15px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

/* --- Header / Navigation --- */
.site-header {
    background-color: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--color-primary);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
        
.site-logo {
    font-size: 1.5em;
    font-weight: 900;
    color: var(--color-text-primary);
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.main-nav a:hover, .main-nav .current-page-item a {
    border-color: var(--color-primary);
}
        
.nav-socials a {
    font-size: 1.2em;
    border: none;
}
        
.nav-volunteer a {
    background-color: var(--color-primary);
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    transition: background-color 0.3s ease;
}
.nav-volunteer a:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-text-primary);
}

/* --- Hero Section mit Video-Hintergrund --- */
.hero-section {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    margin-top: 60px; /* Platz für den fixierten Header */
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}
        
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--color-background) 0%, rgba(18, 18, 18, 0.5) 50%, rgba(18, 18, 18, 0.2) 100%);
    z-index: -1;
}

.hero-content {
    padding-top: 80px; /* Platz für den fixierten Header */
}

.hero-headline {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive Schriftgrösse */
    font-weight: 900;
    text-transform: uppercase;
    color: var(--color-text-primary);
    text-shadow: 0 0 20px rgba(0,0,0,0.7);
}
        
.hero-date {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    margin: -10px 0 30px 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Abstand zwischen den Buttons */
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-primary);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: var(--color-text-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border-color: var(--color-text-primary);
}
.btn-secondary:hover {
    background-color: var(--color-text-primary);
    color: var(--color-background);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Content-Bereich (News & Twitter) --- */
.content-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    position: relative;
}
        
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    margin: 15px auto 60px;
}
        
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* --- News-Artikel --- */
.news-article {
    background-color: var(--color-surface);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid var(--color-primary);
}

.news-article h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}
        
.news-meta {
    font-size: 0.9em;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}
        
.news-meta a {
    font-weight: 700;
}

/* --- Sidebar (Twitter Feed) --- */
.sidebar-widget {
    background-color: var(--color-surface);
    padding: 20px;
    border-radius: 8px;
}
        
.sidebar-widget h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-surface);
    padding: 60px 0 20px 0;
    border-top: 2px solid var(--color-primary);
}
        
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
        
.footer-widget h3 {
    color: var(--color-text-primary);
    margin-bottom: 20px;
}
        
.footer-widget p, .footer-widget ul {
    font-size: 0.9em;
}
        
.footer-widget ul {
    list-style: none;
}
        
.footer-widget ul li {
    margin-bottom: 10px;
}
        
.footer-widget i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.8em;
}

.small-input {
    border-bottom-width: 3px;
    font-family: "Montserrat", sans-serif;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    color: white;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    font-size: 16px;
    width: 78px;
}

.input {
    border-bottom-width: 3px;
    font-family: "Montserrat", sans-serif;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    color: white;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    font-size: 16px;
    width: 100%;
}

#lan_event_id {
    border-bottom-width: 3px;
    font-family: "Montserrat", sans-serif;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    color: white;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    font-size: 16px;
    width: 100%;
}

#lan_event_id option {
    color: black;
}

.input:focus, .small-input:focus {
    border-bottom: 3px solid red;
}

#wp-submit, .submitbutton {
    background-color: var(--color-primary);
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    transition: background-color 0.3s ease;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    line-height: 25.6px;
    font-size: 14.4px;
    margin-top: 5px;
    margin-bottom: 15px;
    cursor: pointer;
}

#loginform label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}

.timeline {
	margin: auto;
	padding: 0 1.5em;
	width: 100%;
	max-width: 36em;
}

.timeline__date {
	font-size: 0.833em;
	line-height: 2.4;
}
.timeline__dot {
	background-color: currentColor;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
	margin: 0.625em 0;
	margin-inline-end: 1em;
	position: relative;
	width: 0.75em;
	height: 0.75em;
}
.timeline__item {
	position: relative;
	padding-bottom: 2.25em;
}
.timeline__item:not(:last-child):before {
	background-color: currentColor;
	content: "";
	display: block;
	position: absolute;
	top: 1em;
	left: 6px;
	width: 0.125em;
	height: 100%;
	transform: translateX(-50%);
}
[dir="rtl"] .timeline__arrow-icon {
	transform: rotate(90deg);
}
[dir="rtl"] .timeline__item:not(:last-child):before {
	right: 2.625em;
	left: auto;
	transform: translateX(50%);
}
.timeline__item-header {
	display: flex;
}
.timeline__item-body {
	border-radius: 0.375em;
	overflow: hidden;
	margin-top: 0.5em;
	margin-inline-start: 4em;
	height: 0;
}
.timeline__item-body-content {
	background-color: hsl(var(--hue),10%,50%,0.2);
	opacity: 0;
	padding: 0.5em 0.75em;
	visibility: hidden;
	transition:
		opacity var(--trans-dur) var(--trans-timing),
		visibility var(--trans-dur) steps(1,end);
}
.timeline__meta {
	width: 100%;
}
.timeline__title {
	font-size: 16px;
	line-height: 26px;
}
/* Expanded state */
.timeline__item-body--expanded {
	height: auto;
}
.timeline__item-body--expanded .timeline__item-body-content {
	opacity: 1;
	visibility: visible;
	transition-delay: var(--trans-dur), 0s;
}
.timeline__arrow[aria-expanded="true"] .timeline__arrow-icon {
	transform: rotate(0);
}

.wp-block-details summary {
    font-weight: bold;
}

.trp_language_switcher_shortcode {
    margin-top: 3px;
}

.trp-language-switcher > div > a {
    padding: 0;
    background-color: transparent;
    color: white;
}

.trp-language-switcher > div > a:hover {
    background-color: transparent;
    color: white;
}

.trp-language-switcher > div {
    background-color: transparent;
    color: white;
    margin-top: 2px;
    border: 0;
}

/* Base styles */
.or::before,
.or::after {
    content: "";
}

/* 
    Vertical 
    Requires a height to be set on this element or its parent.
*/
.or--y {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

/* 
    Absolutely position each pseudo element, and calculate
    a height shorter than 50% using em units to create space
    around the text and allows divider line height to scale 
    based on parent element divider height.
*/
.or--y::before,
.or--y::after {
    position: absolute;
    border-left: 1px solid #ccc;
    height: calc(50% - 0.85em);
    left: 50%;
    margin-left: -1px;
}

/* ::before on top */
.or--y::before {
    top: 0;
}

/* ::after on bottom */
.or--y::after {
    bottom: 0;
}

/* Horizontal */
.or--x::before,
.or--x::after {
    position: relative;
    border-top: 1px solid #ccc;
    display: inline-block;
    vertical-align: middle;
    width: 50%;
    margin-bottom: 0.15em;
    overflow: hidden;
}

.or--x::before {
    right: 0.5em;
    margin-left: -50%;
}

.or--x::after {
    left: 0.5em;
    margin-right: -50%;
}

/* Demo styles */
.seperator-line {
    margin: 0.4em 2em;
    text-align: center;
}

.seperator-line .or {
    margin: 0.4em auto;
}

header .trp-language-switcher {
    width: unset;
}

.trp-ls-shortcode-current-language {
    width: unset !important;
}

main#content .wp-block-table td {
    border: 0;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
	:root {
		--bg: hsl(var(--hue),10%,10%);
		--fg: hsl(var(--hue),10%,90%);
		--primary: hsl(var(--hue),90%,70%);
	}
}
        
/* --- Responsive Design --- */
@media (max-width: 900px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        height: 500px;
    }
}
@media (max-width: 768px) {
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .main-nav ul li {
        margin-left: 15px;
    }
    .section-title {
        font-size: 2rem;
        hyphens: auto;
    }

    .site-header .container {
        gap: 0;
    }
    
    .trp-language-switcher > div {
        padding: 5px 5px 3px 5px
    }

    .trp-language-switcher:focus .trp-ls-shortcode-language, .trp-language-switcher:hover .trp-ls-shortcode-language {
        padding: 5px 5px;
        width: unset !important;
    }

    .btn-primary, .btn-secondary {
        font-size: 12px;
    }
}
