/*
Theme Name: APL Theme
Theme URI: https://apl.uni-ak.ac.at
Author: APL Team
Author URI: https://apl.uni-ak.ac.at
Description: Professional WordPress theme for Angewandte Performance Lab with portfolio grid design, fixed header, and event management. Custom purple branding (#cc66cc) with white footer. About section with light grey background box. Lora serif font. Hero slideshow with large logo overlay and rounded corners.
Version: 4.3.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apl-theme
*/

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-margin-top: 130px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

body {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.65;
    color: #1a1a1a;
    background: #fff;
    overflow-x: hidden;
    padding-top: 110px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ===== NAVIGATION - RECHTSBÜNDIG ===== */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 30px 0;
    transition: all 0.3s ease;
}

#main-nav.scrolled {
    padding: 25px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container,
.nav-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo-link,
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link a,
.nav-logo a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.logo-svg {
    height: 35px;
    width: auto;
}

.custom-logo,
.logo-image {
    height: 80px;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
    margin-top: 5px;
}

.custom-logo:hover,
.logo-image:hover {
    opacity: 0.8;
}

#main-nav.scrolled .custom-logo,
#main-nav.scrolled .logo-image {
    height: 40px;
}

/* Navigation Links - RECHTSBÜNDIG */
.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    margin-left: auto;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.3px;
    padding: 8px 0;
    position: relative;
    display: block;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #fff;
}

/* Dropdown Menus */
.nav-links .menu-item-has-children,
.nav-links .has-dropdown {
    position: relative;
}

.nav-links .menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 12px;
    margin-left: 5px;
}

.nav-links .sub-menu,
.nav-links .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 26, 26, 0.95);
    min-width: 220px;
    padding: 15px 0;
    list-style: none;
    margin: 0;
    margin-top: 10px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .sub-menu li,
.nav-links .dropdown-menu li {
    padding: 0;
}

.nav-links .sub-menu a,
.nav-links .dropdown-menu a {
    display: block;
    padding: 12px 25px;
    white-space: nowrap;
}

.nav-links .sub-menu a:hover,
.nav-links .dropdown-menu a:hover {
    background: rgba(255,255,255,0.1);
}

.nav-links li:last-child .sub-menu,
.nav-links li:last-child .dropdown-menu {
    left: auto;
    right: 0;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

/* ===== HERO SLIDESHOW ===== */
.hero-slideshow {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 40px;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px !important;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26,26,26,0.4) 0%, rgba(45,45,45,0.4) 100%);
    z-index: 1;
    border-radius: 12px;
}

/* Logo Overlay - über allen Slides */
.hero-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 90%;
    max-width: 900px;
    pointer-events: none;
}

.hero-logo {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.hero-slide .hero-content {
    position: relative;
    z-index: 2;
    display: none; /* Logo-Overlay ersetzt Text */
}

/* Slideshow Controls - Unsichtbare Click-Bereiche */
.hero-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.hero-prev,
.hero-next {
    background: transparent;
    border: none;
    width: 50%;
    height: 100%;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
}

.hero-prev {
    left: 0;
}

.hero-next {
    right: 0;
}

/* Slideshow Dots */
.hero-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.hero-dot.active {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    width: 40px;
    border-radius: 6px;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 90vh;
    min-height: 600px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    padding: 0 40px;
    z-index: 2;
}

.hero h1,
.hero-content h1 {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero p,
.hero-content p {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    display: none;
}

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

/* ===== BUTTONS ===== */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: #fff;
    color: #1a1a1a;
}

.cta-button.primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta-button.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-button.secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section.alt {
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.container-narrow {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.section-heading {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
}

.section-heading.center {
    text-align: center;
    margin: 0 auto 50px;
}

.view-all {
    font-size: 15px;
    color: #cc66cc;
    text-decoration: none;
    border-bottom: 2px solid #cc66cc;
    transition: opacity 0.3s ease;
}

.view-all:hover {
    opacity: 0.7;
}

/* ===== EVENT GRID (Homepage) ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.event-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.event-image-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.event-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image-wrapper img {
    transform: scale(1.05);
}

.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.95);
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
}

.event-badge.workshop { background: #4caf50; color: #fff; }
.event-badge.residency { background: #2196f3; color: #fff; }
.event-badge.exhibition { background: #ff9800; color: #fff; }
.event-badge.performance { background: #9c27b0; color: #fff; }
.event-badge.lecture { background: #f44336; color: #fff; }

.event-content {
    padding: 30px;
}

.event-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.event-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.event-title a {
    color: #1a1a1a;
    transition: opacity 0.3s ease;
}

.event-title a:hover {
    opacity: 0.7;
}

.event-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.event-link {
    color: #cc66cc;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #cc66cc;
    transition: opacity 0.3s ease;
}

.event-link:hover {
    opacity: 0.7;
}

/* ===== EVENT LIST (Archives) ===== */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.event-list-item {
    display: flex;
    gap: 30px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.event-list-image {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    overflow: hidden;
}

.event-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-list-item:hover .event-list-image img {
    transform: scale(1.05);
}

.event-list-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-list-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.event-list-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.event-list-title a {
    color: #1a1a1a;
    transition: opacity 0.3s ease;
}

.event-list-title a:hover {
    opacity: 0.7;
}

.event-list-description,
.event-list-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.event-list-link {
    color: #cc66cc;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #cc66cc;
    align-self: flex-start;
    transition: opacity 0.3s ease;
}

.event-list-link:hover {
    opacity: 0.7;
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
    background: #1a1a1a;
    color: #fff;
    padding: 60px;
    border-radius: 8px;
    text-align: center;
}

.highlight-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.7;
    margin-bottom: 20px;
}

.highlight-box h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.highlight-box p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ===== ABOUT SECTION ===== */
.about-text {
    text-align: center;
    margin-bottom: 40px;
    background: #f8f8f8;
    padding: 50px 60px;
    border-radius: 8px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.about-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== NEWS GRID ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.news-item {
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-date {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 15px;
}

.news-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.news-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.text-link {
    color: #cc66cc;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #cc66cc;
    transition: opacity 0.3s ease;
}

.text-link:hover {
    opacity: 0.7;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a,
.pagination span {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #cc66cc;
    color: #fff;
    border-color: #cc66cc;
}

.pagination span.current {
    background: #cc66cc;
    color: #fff;
    border-color: #cc66cc;
}

/* ===== PAGES - SAUBERE STRUKTUR ===== */
.page-wrapper {
    background: #fff;
}

.page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 40px 100px;  /* Von 180px auf 120px */
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    padding: 0;
}

.page-featured-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-content-area {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

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

.page-content-area h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #1a1a1a;
}

.page-content-area h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 25px 0 12px;
    color: #1a1a1a;
}

.page-content-area h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #333;
}

.page-content-area ul,
.page-content-area ol {
    margin: 20px 0 20px 30px;
}

.page-content-area li {
    margin-bottom: 8px;
}

.page-content-area blockquote {
    margin: 30px 0;
    padding: 25px 35px;
    background: #f9f9f9;
    border-left: 4px solid #1a1a1a;
    font-size: 18px;
    font-style: italic;
    color: #555;
}

.page-content-area img {
    margin: 30px 0;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

.page-content-area a {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 500;
}

.page-content-area a:hover {
    opacity: 0.7;
}

.page-content-area .wp-block-button {
    margin: 20px 0;
}

.page-content-area .wp-block-button__link {
    background: #1a1a1a;
    color: #fff;
    padding: 15px 40px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.page-content-area .wp-block-button__link:hover {
    opacity: 0.8;
}

.page-content-area .wp-block-columns {
    margin: 30px 0;
}

.page-content-area table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.page-content-area th,
.page-content-area td {
    padding: 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.page-content-area th {
    background: #f9f9f9;
    font-weight: 600;
}

/* ===== SINGLE POST - VERBESSERT ===== */
.single-post {
    background: #fff;
}

.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 150px 40px 100px;
}

.post-header {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.post-date {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-type-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #333;
}

.post-type-badge.workshop { background: #4caf50; color: #fff; }
.post-type-badge.residency { background: #2196f3; color: #fff; }
.post-type-badge.exhibition { background: #ff9800; color: #fff; }
.post-type-badge.performance { background: #9c27b0; color: #fff; }
.post-type-badge.lecture { background: #f44336; color: #fff; }

.post-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0;
}

.post-content {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

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

.post-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: #1a1a1a;
}

.post-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 25px 0 12px;
    color: #1a1a1a;
}

.post-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #333;
}

.post-content ul,
.post-content ol {
    margin: 20px 0 20px 30px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    margin: 30px 0;
    padding: 25px 35px;
    background: #f9f9f9;
    border-left: 4px solid #1a1a1a;
    font-size: 18px;
    font-style: italic;
    color: #555;
}

.post-content img {
    margin: 30px 0;
    border-radius: 8px;
}

.post-content a {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 500;
}

.post-content a:hover {
    opacity: 0.7;
}

.post-tags {
    margin-top: 50px;
    padding: 35px 40px 0;
    border-top: 1px solid #e0e0e0;
}

.post-tags strong {
    font-weight: 600;
    color: #666;
    margin-right: 10px;
}

.post-tags a {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.post-tags a:hover {
    background: #1a1a1a;
    color: #fff;
}

.post-navigation {
    margin-top: 60px;
    padding: 35px 40px 0;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #1a1a1a;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #1a1a1a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-next {
    text-align: right;
}

/* ===== FOOTER ===== */
footer {
    background: #fff;
    color: #1a1a1a;
    padding: 60px 0 30px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    padding: 0 40px;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.footer-column h3,
.footer-column h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #1a1a1a;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
}

.footer-column p {
    opacity: 0.7;
    line-height: 1.6;
}

.copyright-bar,
.copyright {
    padding: 30px 40px;
    margin: 0 auto;
    max-width: 1240px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-bar p,
.copyright p {
    opacity: 0.5;
    font-size: 13px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    opacity: 0.5;
    font-size: 13px;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.3s ease;
        overflow-y: auto;
        align-items: flex-start;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a {
        padding: 15px 0;
        font-size: 15px;
    }
    
    .nav-links .sub-menu,
    .nav-links .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.05);
        margin-top: 10px;
        margin-bottom: 10px;
        padding: 5px 0;
        box-shadow: none;
        border-radius: 0;
    }
    
    .nav-links .menu-item-has-children:hover > .sub-menu,
    .nav-links .menu-item-has-children:hover > .dropdown-menu {
        transform: none;
    }
    
    .nav-links .sub-menu a,
    .nav-links .dropdown-menu a {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .nav-links li:last-child .sub-menu,
    .nav-links li:last-child .dropdown-menu {
        left: 0;
        right: auto;
    }
    
    .hero h1,
    .hero-content h1 {
        font-size: 42px;
    }
    
    .events-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .nav-container,
    .nav-wrapper {
        padding: 0 20px;
    }
    
    .logo-image,
    .custom-logo {
        height: 35px;
    }
    
    #main-nav.scrolled .logo-image,
    #main-nav.scrolled .custom-logo {
        height: 35px;
    }
    
    .container,
    .container-narrow {
        padding: 0 20px;
    }
    
    .hero-slideshow {
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .hero-logo-overlay {
        width: 85%;
        max-width: 700px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero h1,
    .hero-content h1 {
        font-size: 34px;
    }
    
    .hero p,
    .hero-content p {
        font-size: 16px;
    }
    
    .hero-dots {
        bottom: 60px;
        gap: 10px;
    }
    
    .hero-dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-dot.active {
        width: 30px;
    }
    
    .section-heading {
        font-size: 24px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .events-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .event-list-item {
        flex-direction: column;
        gap: 0;
    }
    
    .event-list-image {
        width: 100%;
        height: 250px;
    }
    
    .event-list-content {
        padding: 25px;
    }
    
    .event-list-title {
        font-size: 20px;
    }
    
    .highlight-box {
        padding: 40px 30px;
    }
    
    .highlight-box h2 {
        font-size: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .copyright-bar,
    .copyright {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 30px 20px;
    }
    
    .post-container {
        padding: 120px 20px 60px;
    }
    
    .post-title {
        font-size: 28px;
    }
    
    .post-content {
        font-size: 15px;
    }
    
    .post-content h2 {
        font-size: 22px;
        margin: 25px 0 12px;
    }
    
    .post-content h3 {
        font-size: 18px;
        margin: 20px 0 10px;
    }
    
    .post-content blockquote {
        padding: 20px 25px;
        font-size: 16px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px 0;
    }
    
    .post-tags {
        padding: 30px 20px 0;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .page-container {
        padding: 90px 20px 60px;  /* Von 120px auf 90px */
    }
    
    .page-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .page-content-area {
        font-size: 15px;
    }
    
    .page-content-area h2 {
        font-size: 22px;
        margin: 25px 0 12px;
    }
    
    .page-content-area h3 {
        font-size: 18px;
        margin: 20px 0 10px;
    }
    
    .page-content-area blockquote {
        padding: 20px 25px;
        font-size: 16px;
    }
    
    .about-text {
        padding: 35px 25px;
    }
}

/* ===== RESPONSIVE - EXTRA SMALL ===== */
@media (max-width: 480px) {
    .nav-container,
    .nav-wrapper {
        padding: 0 15px;
    }
    
    .logo-image,
    .custom-logo {
        height: 30px;
    }
    
    .hero h1,
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero p,
    .hero-content p {
        font-size: 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .hero-slideshow {
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    .hero-logo-overlay {
        width: 95%;
        max-width: 500px;
    }
    
    .copyright-bar,
    .copyright {
        padding: 30px 15px;
    }
    
    .about-text {
        padding: 30px 20px;
    }
}

/* ===== PAUSE SLIDESHOW ON HOVER ===== */
.hero-slideshow:hover .hero-slide {
    animation-play-state: paused;
}

/* ===== PAGE FIXES - ALTE PAGE.PHP STRUKTUR ===== */

.page-content {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 120px 40px 100px !important;  /* Von 180px auf 120px - ENGER! */
    background: #fff !important;
}

.page-content > h1 {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.page-content .post-featured-image {
    margin-bottom: 30px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.page-content .post-content {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

.page-content .post-content p {
    margin-bottom: 20px !important;
}

.page-content .post-content h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 30px 0 15px !important;
}

.page-content .post-content h3 {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 25px 0 12px !important;
}

.page-content .post-content h4 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 20px 0 10px !important;
}

.page-content .post-content blockquote {
    margin: 30px 0 !important;
    padding: 25px 35px !important;
    background: #f9f9f9 !important;
    border-left: 4px solid #1a1a1a !important;
    font-size: 18px !important;
    font-style: italic !important;
}

.page-content .post-content img {
    margin: 30px 0 !important;
    border-radius: 8px !important;
}

/* ===== GUTENBERG BLOCK-ABSTÄNDE REDUZIERT ===== */

/* Alle Gutenberg Blöcke enger */
.page-content-area > *,
.post-content > *,
.page-content .post-content > * {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

/* Erster Block kein Abstand oben */
.page-content-area > *:first-child,
.post-content > *:first-child,
.page-content .post-content > *:first-child {
    margin-top: 0 !important;
}

/* Letzter Block kein Abstand unten */
.page-content-area > *:last-child,
.post-content > *:last-child,
.page-content .post-content > *:last-child {
    margin-bottom: 0 !important;
}

/* Paragraphen enger */
.page-content-area p,
.post-content p,
.page-content .post-content p {
    margin-bottom: 15px !important;
}

/* Listen enger */
.page-content-area ul,
.page-content-area ol,
.post-content ul,
.post-content ol,
.page-content .post-content ul,
.page-content .post-content ol {
    margin: 15px 0 15px 30px !important;
}

/* Bilder enger */
.page-content-area img,
.post-content img,
.page-content .post-content img,
.page-content-area .wp-block-image,
.post-content .wp-block-image,
.page-content .post-content .wp-block-image {
    margin: 20px 0 !important;
}

/* Buttons enger */
.page-content-area .wp-block-button,
.post-content .wp-block-button,
.page-content .post-content .wp-block-button {
    margin: 15px 0 !important;
}

/* Columns enger */
.page-content-area .wp-block-columns,
.post-content .wp-block-columns,
.page-content .post-content .wp-block-columns {
    margin: 20px 0 !important;
}

/* Tabellen enger */
.page-content-area table,
.post-content table,
.page-content .post-content table {
    margin: 20px 0 !important;
}

/* Blockquotes enger */
.page-content-area blockquote,
.post-content blockquote,
.page-content .post-content blockquote {
    margin: 20px 0 !important;
}

@media (max-width: 768px) {
    .page-content {
        padding: 90px 20px 60px !important;  /* Von 120px auf 90px - ENGER! */
    }
    
    .page-content > h1 {
        font-size: 28px !important;
    }
    
    .page-content .post-content {
        font-size: 15px !important;
    }
    
    .page-content .post-content h2 {
        font-size: 22px !important;
        margin: 25px 0 12px !important;
    }
    
    .page-content .post-content h3 {
        font-size: 18px !important;
        margin: 20px 0 10px !important;
    }
    
    /* Gutenberg Mobile auch enger */
    .page-content-area > *,
    .post-content > *,
    .page-content .post-content > * {
        margin-top: 12px !important;
        margin-bottom: 12px !important;
    }
    
    .page-content-area p,
    .post-content p,
    .page-content .post-content p {
        margin-bottom: 12px !important;
    }
}

/* Scroll-Effekt deaktiviert */
#main-nav.scrolled {
    padding: 20px 0 !important;
}

#main-nav.scrolled .custom-logo,
#main-nav.scrolled .logo-image {
    height: 40px !important;
}

@media (max-width: 768px) {
    #main-nav.scrolled .logo-image,
    #main-nav.scrolled .custom-logo {
        height: 35px !important;
    }
}
/* ===== EVENT TYPE BADGES - EINHEITLICHES DESIGN ===== */

/* Alle Event-Badges: Weiß mit schwarzer Umrandung */
.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 20px !important;
    border: 1px solid #1a1a1a !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

/* Alle spezifischen Badge-Types - EINHEITLICHES DESIGN */
.event-badge.course,
.event-badge.exhibition,
.event-badge.intra-project,
.event-badge.lecture,
.event-badge.morning-practice,
.event-badge.open-stage,
.event-badge.peek-project,
.event-badge.performance,
.event-badge.publication,
.event-badge.research,
.event-badge.residency,
.event-badge.screening,
.event-badge.symposium,
.event-badge.workshop {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid #1a1a1a !important;
}

/* Post Type Badges - EINHEITLICHES DESIGN */
.post-type-badge {
    display: inline-block !important;
    padding: 6px 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid #1a1a1a !important;
    white-space: nowrap !important;
}

.post-type-badge.course,
.post-type-badge.exhibition,
.post-type-badge.intra-project,
.post-type-badge.lecture,
.post-type-badge.morning-practice,
.post-type-badge.open-stage,
.post-type-badge.peek-project,
.post-type-badge.performance,
.post-type-badge.publication,
.post-type-badge.research,
.post-type-badge.residency,
.post-type-badge.screening,
.post-type-badge.symposium,
.post-type-badge.workshop {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid #1a1a1a !important;
}

/* Hover-Effekt (optional) */
.event-badge:hover,
.post-type-badge:hover {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #1a1a1a !important;
    transition: all 0.3s ease;
}

/* ===== EVENT TYPE BADGES - TAG-BASED SYSTEM ===== */

/* Badge Container (multiple badges on homepage) */
.event-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    max-width: 80%;
    z-index: 2;
}

/* Individual Event Badge (on featured image overlay) */
.event-badge {
    padding: 6px 14px !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-radius: 20px !important;
    border: 1px solid #1a1a1a !important;
    display: inline-block !important;
    white-space: nowrap !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-badge:hover {
    background: #1a1a1a !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Post Type Badges (Single Post Page - under date) */
.post-type-badge {
    display: inline-block !important;
    padding: 6px 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid #1a1a1a !important;
    white-space: nowrap !important;
    margin-right: 8px !important;
    transition: all 0.3s ease;
}

.post-type-badge:hover {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

/* Event Card Image Wrapper (ensures badges are positioned correctly) */
.event-image-wrapper {
    position: relative;
    overflow: hidden;
}

.event-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image-wrapper img {
    transform: scale(1.05);
}

/* Archive List Badges */
.event-list-badges {
    display: inline-flex;
    gap: 6px;
    margin-left: 10px;
}

.event-list-badges .event-badge {
    position: static !important;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .event-badges {
        max-width: 70%;
        gap: 4px;
    }
    
    .event-badge {
        font-size: 10px !important;
        padding: 5px 10px !important;
    }
    
    .post-type-badge {
        font-size: 10px !important;
        padding: 5px 10px !important;
        margin-right: 6px !important;
    }
}

/* Ensure badges are visible on dark images */
.event-badge {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
/* ===== FOOTER FEINSCHLIFF (Okt 2026) ===== */
/* Kleinere Schrift */
footer {
    font-size: 14px;
}

.footer-column h3,
.footer-column h4 {
    font-size: 13px;
    margin-bottom: 14px;
}

.footer-column p,
.footer-column a {
    font-size: 14px;
    line-height: 1.6;
}

/* Links (Social Media) untereinander */
.footer-column a {
    display: block;
    margin-bottom: 4px;
}

.footer-column p a {
    display: inline;
}

.copyright-bar p,
.copyright p,
.footer-links a {
    font-size: 12px;
}

/* ===== MOBILE MENÜ – kompakt, Untermenüs sichtbar ===== */
@media (max-width: 1024px) {
    .nav-links {
        padding: 90px 25px 30px;
    }

    .nav-links a {
        padding: 10px 0;
        font-size: 15px;
    }

    /* Untermenüs immer sichtbar, eingerückt */
    .nav-links .sub-menu,
    .nav-links .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: block !important;
        min-width: 0 !important;
        margin: 0 0 8px 0 !important;
        padding: 0 0 0 15px !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .nav-links .sub-menu li,
    .nav-links .dropdown-menu li {
        border-bottom: none;
    }

    .nav-links .sub-menu a,
    .nav-links .dropdown-menu a {
        padding: 6px 0 !important;
        font-size: 14px !important;
        opacity: 0.8;
        white-space: normal;
    }

    /* Pfeil ▾ ausblenden, da Untermenüs ohnehin offen sind */
    .nav-links .menu-item-has-children > a::after {
        content: none;
    }
}