/*
Theme Name: theme-pg-v1
Theme URI: https://www.patricija-gilyte.net
Author: Custom
Description: Minimalist GDPR-compliant WordPress theme for artist portfolio
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-pg-v1
Tags: custom-theme, responsive, minimal, gallery, artist
*/

/* == GRUNDLEGENDE TYPOGRAFIE (100% Cookie-frei) == */
body {
    background-color: #f5f5f5;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Site-wide consistent link styling */
a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: #333;
    text-decoration: none;
}

.artwork-description a,
.details-value a,
.news-excerpt a,
.unified-text a {
    color: #666;
    border-bottom: 1px solid transparent;
}

.artwork-description a:hover,
.details-value a:hover,
.news-excerpt a:hover,
.unified-text a:hover {
    color: #333;
    border-bottom-color: #333;
}

/* Einheitliche Basis-Typografie für alle Fließtexte */
.unified-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    text-align: justify;
    margin-bottom: 1.2rem;
}

.unified-text p {
    margin-bottom: 1.2rem;
}

.unified-text p:last-child {
    margin-bottom: 0;
}

/* == General Layout == */
.container {
    background-color: transparent;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 1.8rem;
    text-align: left;
}

/* == Screen Reader Text Utility == */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    left: -9999px;
    position: absolute;
    z-index: 999999999;
}

.skip-link:focus {
    clip: auto;
    height: auto;
    left: 6px;
    top: 7px;
    width: auto;
    z-index: 999999;
}

/* == Header == */
.header {
    background-color: #f5f5f5;
    padding: 1.5rem 0;
    /* Removed box-shadow for clean separator line approach */
}

/* Header Separator - Content-width line */
.header-separator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    border-top: 1px solid #e0e0e0;
    height: 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* == Logo Styles == */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-image {
    height: 106px;
    width: auto;
    max-width: 478px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 300;
    color: #333;
    letter-spacing: 0.5px;
}

/* == Navigation == */
.nav-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
}

/* Modern Burger Menu Button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    margin-left: auto;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.nav-toggle:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animated hamburger to X */
.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation Menu */
.nav {
    position: relative;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.nav ul li {
    position: relative;
}

.nav ul a {
    color: #666;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
    position: relative;
}

/* Override all WordPress current-page classes */
.nav ul a,
.nav ul a.current-page,
.nav ul a.current-page-ancestor,
.nav ul a.current-menu-item,
.nav ul a.current-menu-ancestor,
.nav ul a.current-menu-parent {
    color: #666;
}

.nav ul a:hover,
.nav ul a:focus,
.nav ul a.current-page:hover,
.nav ul a.current-page-ancestor:hover,
.nav ul a.current-menu-item:hover,
.nav ul a.current-menu-ancestor:hover,
.nav ul a.current-menu-parent:hover {
    color: #333;
    outline: none;
}

/* Dropdown indicator styling */
.dropdown-icon {
    font-size: 0.8rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.menu-item-has-children a[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menus (Desktop) */
.nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 99;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    list-style: none;
    margin: 0;
    gap: 0;
}

.nav .menu-item-has-children:hover .sub-menu,
.nav .menu-item-has-children:focus-within .sub-menu {
    display: block;
}

.nav .sub-menu li {
    width: 100%;
}

.nav .sub-menu li a {
    padding: 0.6rem 1.2rem;
    color: #666;
    white-space: nowrap;
    font-size: 0.9rem;
    display: block;
}

.nav .sub-menu li a:hover,
.nav .sub-menu li a:focus {
    background-color: #f8f8f8;
    color: #333;
}

/* Focus styles for better accessibility */
.using-keyboard .nav a:focus {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* == Footer == */
.footer {
    background-color: #f5f5f5;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: none;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.3;
}

.footer p {
    color: #333;        /* Copyright in normaler Textfarbe */
    margin-bottom: 0.5rem;  /* Kleinerer Abstand */
}

.footer div {
    color: #999;        /* Link-Container in ursprünglicher Farbe */
    margin-top: 0.5rem;
}

.footer a {
    color: #666;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer a:hover,
.footer a:focus {
    color: #333;
}

/* == News/Blog Styles == */


.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* News Grid Layout */
.news-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* News Layout */
.news-item {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    border-radius: 0;
    align-items: start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0; /* Subtile Trennung */
}

.news-item:last-child {
    border-bottom: none;
}

/*
.news-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
} */

/* News Image Container */
.news-image {
    position: relative;
    overflow: hidden;
    background-color: #fff;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.news-image img {
    width: 100%;
    height: auto; /* Wichtig: auto statt 100% */
    max-height: 400px; /* Erhöht von 250px, da keine Crops mehr */
    object-fit: contain;
    transition: transform 0.3s ease;
}

/*
.news-item:hover .news-image img {
    transform: scale(1.05);
} */

.news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 1rem;
    background-color: #f8f8f8;
}

/* News Content */
.news-content {
    padding: 1rem 1.5rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: auto;
}

.news-header {
    margin-bottom: 0.8rem;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover,
.news-title a:focus {
    color: #666;
}

.news-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 1rem;
}

.news-date {
    font-weight: 500;
}

.news-categories a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-categories a:hover {
    color: #333;
}

/* News Excerpt - EINHEITLICHE TYPOGRAFIE */
.news-excerpt {
    font-size: 1rem;
    line-height: 1;
    color: #444;
    margin-bottom: 1.5rem;
    flex-grow: 0;
}

.news-item .news-content .news-excerpt p {
    margin-bottom: 1rem !important;
    display: block !important;
}

.news-item .news-content .news-excerpt p:last-child {
    margin-bottom: 0 !important;
}

.news-excerpt a {
    color: #666;
    text-decoration: underline;
}

.news-excerpt a:hover {
    color: #333;
}

.news-footer {
    margin-top: auto;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.news-read-more:hover,
.news-read-more:focus {
    color: #666;
    border-bottom-color: #666;
}

/* Aufklappbarer Content in News - Minimalistisch */
.news-excerpt details {
    margin: 1rem 0;
}

.news-excerpt details summary {
    font-weight: 400;
    color: #666;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-left: 1.2rem;
    transition: color 0.3s ease;
    margin-bottom: 0;
}

/* Custom Arrow statt default Browser-Marker */
.news-excerpt details summary::-webkit-details-marker {
    display: none;
}

.news-excerpt details summary::before {
    content: '▶';
    position: absolute;
    left: 0;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: #666;
}

.news-excerpt details[open] summary::before {
    transform: rotate(90deg);
}

.news-excerpt details summary:hover,
.news-excerpt details summary:focus {
    color: #333;
    outline: none;
}

/* Content inside details - leicht eingerückt */
.news-excerpt details > *:not(summary) {
    margin-left: 1.2rem;
    margin-top: 1rem;
}

.news-excerpt details p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.news-excerpt details p:last-child {
    margin-bottom: 0;
}

/* News Pagination */
.navigation.pagination {
    margin: 3rem 0;
    text-align: center;
}

.page-numbers {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.page-numbers a,
.page-numbers span {
    padding: 0.7rem 1rem;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.page-numbers a:hover,
.page-numbers a:focus {
    background-color: #f8f8f8;
    border-color: #999;
    color: #333;
}

.page-numbers .current {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

.page-numbers .dots {
    border: none;
    background-color: none;
    color: #999;
}

.news-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.rss-feed,
.news-archive {
    background-color: #fff;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    transition: border-color 0.3s ease;
}

.rss-feed:hover,
.news-archive:hover {
    border-color: #999;
}

.rss-feed h3,
.news-archive h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 1rem;
}

.rss-feed p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}



.rss-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.rss-link:hover {
    color: #666;
}

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

.news-archive li {
    margin-bottom: 0.5rem;
}

.news-archive a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.news-archive a:hover {
    color: #333;
}

/* Empty State */
.news-empty {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.news-empty h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 1rem;
}

.news-empty p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-empty .button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.news-empty .button:hover {
    background-color: #555;
}

/* == Gallery Styles == */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.8rem;
}

.artwork-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.artwork-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Basis-Styling für alle Geräte */
.artwork-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 1rem;
    text-align: left;
    min-height: 30%;
}

.overlay-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.overlay-meta {
    font-size: 0.85rem;
    opacity: 0.95;
    line-height: 1.2;
}

.overlay-meta-item {
    margin-bottom: 0.3rem;
}

/* == Elegante Gallery (Single Artwork) == */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem;
    margin-bottom: 2rem;
}

/* Bei genügend Platz: maximal 3 Spalten (nur Single Artwork) */
@media (min-width: 800px) {
    .single-artwork .image-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.artwork-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.artwork-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.artwork-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.artwork-image:hover::after {
    background-color: rgba(0, 0, 0, 0.1);
}

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

.artwork-image:hover img {
    transform: scale(1.02);
}

/* == SINGLE ARTWORK PAGE - EINHEITLICHE TYPOGRAFIE == */

/* Artwork Header */
.artwork-header {
    margin-bottom: 3rem;
}

.artwork-title {
    font-size: 1.8rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.artwork-meta-header {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    grid-auto-rows: min-content; /* Zeilen nur so hoch wie nötig */
}

/* HAUPTTEXT - Einheitliche Typografie */
.artwork-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    text-align: left;
}

.artwork-description p {
    margin-bottom: 1.2rem;
}

.artwork-description p:last-child {
    margin-bottom: 0;
}

/* ARTWORK DETAILS - Sidebar */
.artwork-details {
    background-color: #fff;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    align-self: start; /* Box endet nach Inhalt */
    height: fit-content; /* Nur so hoch wie Inhalt */
}

.details-table .details-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    padding: 0.8rem 0;
    align-items: flex-start;
}

.details-table .details-row:first-child {
    padding-top: 0;
    margin-top: 0.6rem;
}

.details-table .details-row:last-child {
    border-bottom: none; /* Letzter Eintrag ohne Trennlinie */
}

.details-label {
    font-weight: 500;
    color: #333;
    min-width: 120px;
    flex-shrink: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Video Content Styling */
.video-content {
    margin-bottom: 2rem;
}

.video-content iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 4px;
    max-width: 100%;
}

.video-content video {
    width: 100%;
    height: auto;
    border-radius: 4px;
    max-width: 100%;
}

/* Responsive video containers */
.video-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-content .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Vimeo Consent Placeholder - Same positioning as iframe */
.video-content .vimeo-consent-placeholder {
    margin-bottom: 0;
}

/* Override default placeholder styles when inside video-content */
.video-content .vimeo-consent-placeholder {
    border-radius: 4px;
}

/* == VIDEO CONSENT (Two-Click-Lösung) == */

/* Video Consent Wrapper */
.video-consent-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 2rem;
}

/* Vorschaubild */
.video-consent-wrapper .video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder wenn kein Thumbnail */
.video-consent-wrapper .video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    color: #666;
    font-size: 1.2rem;
}

/* Consent Overlay */
.consent-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    transition: background 0.3s ease;
    padding: 2rem;
    text-align: center;
}

.video-consent-wrapper:hover .consent-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* Play Button */
.video-play-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.video-play-button:hover {
    transform: scale(1.1);
    opacity: 1;
}

.video-play-button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 4px;
    border-radius: 50%;
}

.video-play-button svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Consent Text */
.consent-text {
    max-width: 500px;
}

.consent-text p {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.consent-text strong {
    font-weight: 600;
}

.consent-text a {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
    transition: text-decoration-color 0.3s ease;
}

.consent-text a:hover,
.consent-text a:focus {
    text-decoration-color: #fff;
}

/* Video iframe Container (nach Consent) */
.video-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.video-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Geladenes Video: Consent ausblenden */
.video-consent-wrapper.video-loaded .consent-overlay {
    display: none;
}

.video-consent-wrapper.video-loaded .video-thumbnail {
    display: none;
}

.video-consent-wrapper.video-loaded .video-placeholder {
    display: none;
}

.video-consent-wrapper.video-loaded .video-iframe-container {
    display: block !important;
}

/* Loading State */
.video-consent-wrapper.loading .video-play-button {
    opacity: 0.5;
    pointer-events: none;
}

.video-consent-wrapper.loading .video-play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Responsive Video Consent */
@media (max-width: 768px) {
    .video-play-button svg {
        width: 60px;
        height: 60px;
    }
    
    .consent-text p {
        font-size: 0.85rem;
    }
    
    .video-consent-wrapper {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .video-play-button {
        margin-bottom: 1rem;
    }
    
    .video-play-button svg {
        width: 50px;
        height: 50px;
    }
    
    .consent-overlay {
        padding: 1rem;
    }
    
    .consent-text p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .video-play-button,
    .consent-overlay {
        transition: none;
    }
    
    .video-play-button:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .consent-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .consent-text p,
    .consent-text a {
        color: #fff;
        text-shadow: none;
    }
    
    .video-play-button:focus {
        outline-color: #fff;
    }
}

/* EINZEILIGE ACF FELDER - kompakt */
.details-value {
    color: #666;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* MEHRZEILIGE ACF FELDER - wie Haupttext */
.details-value.multiline {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    text-align: left;
}

.details-value.multiline p {
    margin-bottom: 0.6rem;
}

.details-value.multiline p:first-child {
    margin-top: 0;
}

.details-value.multiline p:last-child {
    margin-bottom: 0;
}

/* Exhibition History */
.exhibition-history h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.exhibition-item {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 0.8rem;
}

/* Artwork Navigation */
.artwork-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-previous,
.nav-next {
    display: block;
}

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

.artwork-navigation a {
    display: block;
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
}

.artwork-navigation a:hover {
    color: #333;
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-subtitle {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    color: #999;
}

.nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
}

.back-button {
    background-color: #333;
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 3rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid #333; /* Border hinzugefügt */
}

.back-button:hover {
    background-color: #f5f5f5; /* Heller Hintergrund */
    color: #333; /* Dunkle Schrift */
    border-color: #333; /* Border bleibt dunkel */
}

/* == Filters == */
.filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background-color: #f8f8f8;
    border-color: #999;
    color: #333;
}

.filter-btn.active {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

/* == MINIMALISTISCHE LIGHTBOX == */

.pg-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pg-lightbox-open {
    display: block;
    opacity: 1;
}

.pg-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.pg-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.pg-lightbox-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pg-lightbox-image {
    max-width: 100%;
    max-height: 90vh; /* Maximal 90% der Viewport-Höhe */
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.pg-lightbox-caption {
    margin-top: 1rem;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    line-height: 1.4;
    max-width: 600px;
    display: none;
}

.pg-lightbox-counter {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: #fff;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: none;
}

/* Minimalistische Navigation Buttons */
.pg-lightbox-close,
.pg-lightbox-prev,
.pg-lightbox-next {
    position: absolute;
    background-color: rgba(51, 51, 51, 0.9);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 300;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
    font-family: inherit;
}

.pg-lightbox-close:hover,
.pg-lightbox-prev:hover,
.pg-lightbox-next:hover {
    background-color: rgba(51, 51, 51, 1);
    transform: scale(1.05);
}

.pg-lightbox-close {
    top: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
}

.pg-lightbox-prev,
.pg-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 4px;
}

.pg-lightbox-prev {
    left: 2rem;
}

.pg-lightbox-next {
    right: 2rem;
}

/* Loading state */
.pg-lightbox-image[src=""] {
    opacity: 0;
}

/* Focus styles for accessibility */
.pg-lightbox-close:focus,
.pg-lightbox-prev:focus,
.pg-lightbox-next:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* == Responsive Styles == */

/* Responsive Logo */
/* @media (max-width: 1024px) {
    .logo-image {
        height: 60px;
        max-width: 270px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
} */

/* Logo Responsive - gestuft */
@media (max-width: 1100px) and (min-width: 800px) {
    .logo-image {
        height: 90px;
        max-width: 400px;
    }
}

@media (max-width: 799px) and (min-width: 481px) {
    .logo-image {
        height: 70px;
        max-width: 315px;
    }

    /* Seitenüberschriften verkleinern */
    .page-title,
    .artwork-title {
        font-size: 1.6rem;
    }

}

@media (max-width: 480px) {
    .logo-image {
        height: 60px;
        max-width: 270px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }

    /* Seitenüberschriften verkleinern */
    .page-title,
    .artwork-title {
        font-size: 1.4rem;
    }

}


/* =============================================
   RESPONSIVE BREAKPOINTS - KONSOLIDIERT
   ============================================= */

/* Tablet Landscape: 800-1100px - Menü bleibt normal */
@media (min-width: 800px) and (max-width: 1100px) {
    /* Archive: 2 Spalten */
    .post-type-archive-artwork .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* News: bleibt nebeneinander */
    .news-item {
        grid-template-columns: 2fr 3fr;
    }
    
    /* Navigation: kompakter */
    .nav ul {
        gap: 1.5rem;
    }
    
    .nav ul a {
        font-size: 0.95rem;
    }
}

/* Tablet Portrait: 481-799px - Burger aktiv */
@media (min-width: 481px) and (max-width: 799px) {
    /* Archive: 2 Spalten */
    .post-type-archive-artwork .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    /* Single Artwork: Galerie 2 Spalten, Grid stapelt */
    .single-artwork .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .single-artwork .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* News: stapelt */
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        grid-template-columns: 1fr;
    }
}

/* Mobile: ≤480px - weitere Anpassungen */
@media (max-width: 480px) {
    /* Archive: 1 Spalte */
    .post-type-archive-artwork .gallery {
        grid-template-columns: 1fr;
    }
    
    /* Single Artwork: Galerie 1 Spalte, Grid bleibt gestapelt */
    .single-artwork .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .single-artwork .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* News: bleibt 1-spaltig */
    .news-item {
        grid-template-columns: 1fr;
    }
}


/* Mobile Navigation */
@media (max-width: 799px) {
    .nav-toggle {
        display: flex;
    }

    .nav-wrapper {
        position: relative;
    }

    .nav ul {
        display: none;
        flex-direction: column;
        background-color: #fff;
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        min-width: 250px;
        padding: 0.5rem 0;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        gap: 0;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav ul.open {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav ul li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f8f8f8;
        width: 100%;
        position: relative;
    }

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

    .nav ul a {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        color: #666;
        font-weight: 400;
        transition: background-color 0.2s ease;
        display: block;
        width: 100%;
        box-sizing: border-box;
        position: relative;
    }

    .nav ul li a,
    .nav ul li a.current-page,
    .nav ul li a.current-page-ancestor,
    .nav ul li a.current-menu-item,
    .nav ul li a.current-menu-ancestor,
    .nav ul li a.current-menu-parent {
        color: #666;
        background-color: transparent;
    }

    .nav ul a:hover,
    .nav ul a:focus,
    .nav ul a.current-page:hover,
    .nav ul a.current-page-ancestor:hover,
    .nav ul a.current-menu-item:hover,
    .nav ul a.current-menu-ancestor:hover,
    .nav ul a.current-menu-parent:hover {
        background-color: #f8f8f8;
        color: #333;
    }

    /* Mobile Submenu Handling */
    .nav .sub-menu {
        position: static !important;
        display: none !important;
        background-color: #f8f8f8 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: auto !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex-direction: column !important;
        list-style: none !important;
        width: 100% !important;
        left: auto !important;
        top: auto !important;
    }

    .nav .menu-item-has-children.mobile-expanded .sub-menu {
        display: flex !important;
    }

    .nav .sub-menu li {
        border-bottom: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }

    .nav .menu-item-has-children .sub-menu li a {
        padding: 0.6rem 2rem;
        font-size: 0.9rem;
        color: #666;
        font-weight: 300;
        display: block;
        width: 100%;
        box-sizing: border-box;
        background-color: transparent;
        border-left: 3px solid #333;
        position: relative;
    }

    .nav .menu-item-has-children .sub-menu li a,
    .nav .menu-item-has-children .sub-menu li a.current-page,
    .nav .menu-item-has-children .sub-menu li a.current-menu-item,
    .nav .menu-item-has-children .sub-menu li a.current-page-ancestor,
    .nav .menu-item-has-children .sub-menu li a.current-menu-ancestor {
        color: #666;
        background-color: transparent;
    }

    .nav .menu-item-has-children .sub-menu li a:hover,
    .nav .menu-item-has-children .sub-menu li a:focus,
    .nav .menu-item-has-children .sub-menu li a.current-page:hover,
    .nav .menu-item-has-children .sub-menu li a.current-menu-item:hover {
        background-color: #eee;
        color: #333;
    }

    .nav .menu-item-has-children > a .dropdown-icon {
        float: right;
        margin-top: 0.1rem;
        transition: transform 0.3s ease;
    }

    .nav .menu-item-has-children.mobile-expanded > a .dropdown-icon,
    .nav .menu-item-has-children > a[aria-expanded="true"] .dropdown-icon {
        transform: rotate(180deg);
    }

    .nav .menu-item-has-children {
        position: relative;
    }

    .nav ul li {
        overflow: visible;
    }

    .nav .sub-menu li {
        background-color: transparent !important;
    }

    .nav .sub-menu {
        box-shadow: none !important;
        border: none !important;
    }

    .nav .menu-item-has-children:hover .sub-menu {
        display: none !important;
    }

    .nav .menu-item-has-children.mobile-expanded:hover .sub-menu {
        display: flex !important;
    }

    .nav .sub-menu li a {
        background-color: #fff !important;
        color: #666 !important;
        padding: 0.6rem 2rem !important;
        font-size: 0.9rem !important;
        border-left: 3px solid #333 !important;
    }
    
    .nav .sub-menu li a:hover,
    .nav .sub-menu li a:focus {
        background-color: #f8f8f8 !important;
        color: #333 !important;
    }


    /* Lightbox Mobile */
    .pg-lightbox-content {
        padding: 1rem;
    }
    
    .pg-lightbox-image-container {
        max-width: 98%;
        max-height: 90%;
    }
    
    .pg-lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
    
    .pg-lightbox-counter {
        top: 1rem;
        left: 1rem;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .pg-lightbox-prev,
    .pg-lightbox-next {
        width: 36px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .pg-lightbox-prev {
        left: 1rem;
    }
    
    .pg-lightbox-next {
        right: 1rem;
    }
    
    .pg-lightbox-caption {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    /* Single Artwork Mobile */
    .artwork-navigation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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


@media (max-width: 799px) {
    .header-content {
        padding: 0 1rem;
    }

    /* Header Separator responsive */
    .header-separator {
        padding: 0 1rem;
    }

    .container,
    .news-container {
        padding: 1.5rem 1rem;
    }

    .filters {
        gap: 0.3rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .news-content {
        padding: 1.5rem;
    }
    
    .news-title {
        font-size: 1.3rem;
    }

    .news-sidebar {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
        padding-top: 3rem;
    }

    .rss-feed,
    .news-archive {
        padding: 1.5rem;
    }

    /* Single Artwork Tablet */
    .artwork-title {
        font-size: 1.8rem;
    }

    .content-grid {
        gap: 2rem;
    }

    .artwork-details {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .pg-lightbox-prev,
    .pg-lightbox-next {
        width: 32px;
        height: 44px;
        font-size: 1.2rem;
    }
    
    .pg-lightbox-image-container {
        max-height: 80%;
    }

    /* Single Artwork Small Mobile */
    .container {
        padding: 1.5rem 1rem;
    }

    .artwork-details {
        padding: 1rem;
    }

    .back-button {
        /* width: 100%; */
        text-align: center;
        margin-top: 2rem;
    }
}

/* Animation for mobile menu */
@media (max-width: 1024px) {
    .nav ul {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hamburger-line {
        background-color: #000;
    }
    
    .nav ul a {
        color: #000;
    }
    
    .nav ul a:hover,
    .nav ul a:focus {
        background-color: #000;
        color: #fff;
    }

    .news-item {
        border-color: #000;
    }

    .news-title a:hover {
        color: #000;
    }

    .filter-btn {
        border-color: #000;
        color: #000;
    }

    .filter-btn:hover {
        background-color: #000;
        color: #fff;
    }

    .pg-lightbox-overlay {
        background-color: #000;
    }
    
    .pg-lightbox-close,
    .pg-lightbox-prev,
    .pg-lightbox-next {
        background-color: #000;
        border-color: #fff;
        color: #fff;
    }

    .artwork-description,
    .details-value.multiline {
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hamburger-line,
    .nav ul,
    .artwork-card,
    .news-image img,
    .news-item,
    .news-read-more,
    .back-button,
    .pg-lightbox,
    .pg-lightbox-image,
    .pg-lightbox-close,
    .pg-lightbox-prev,
    .pg-lightbox-next,
    .artwork-image img,
    .artwork-image::after {
        transition: none;
    }

    .artwork-overlay,
    .news-item:hover .news-image img {
        transform: none;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .nav,
    .filters,
    .back-button,
    .pg-lightbox {
        display: none;
    }

    .container,
    .news-container {
        max-width: none;
        padding: 0;
        margin: 0;
        background-color: #fff;
        border: none;
        box-shadow: none;
    }

    .news-item {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }

    .news-title {
        color: #000;
    }

    .news-excerpt {
        color: #333;
    }

    .artwork-description,
    .details-value.multiline {
        color: #000;
        text-align: left;
    }
}

/* Focus management for better accessibility */
.nav a:focus-visible,
.news-read-more:focus-visible,
.back-button:focus-visible,
.filter-btn:focus-visible,
.page-numbers a:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
    border-radius: 2px;
}

/* WordPress specific overrides */
.wp-block-image {
    margin: 2rem 0;
}

.wp-block-quote {
    border-left: 4px solid #333;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.wp-block-pullquote {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
}

.wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

/* Comments (if enabled) */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e0e0e0;
}

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

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.comment-author {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.comment-content {
    line-height: 1.6;
}

/* Form styles */
.comment-form,
.search-form,
.contact-form {
    max-width: 600px;
}

.comment-form label,
.search-form label,
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.comment-form input,
.comment-form textarea,
.search-form input,
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus,
.search-form input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.2);
}

.comment-form button,
.search-form button,
.contact-form button {
    background-color: #333;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.comment-form button:hover,
.search-form button:hover,
.contact-form button:hover {
    background-color: #555;
}

/* Error and success messages */
.error-message,
.success-message {
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* == WORDPRESS GUTENBERG TABLE STYLES FOR CV == */

.wp-block-table table {
    width: 100%;
    max-width: 1000px;
    margin: 0 0 3rem 0;
    border-collapse: collapse;
    background-color: transparent;
    border: none;
    font-family: inherit;
    table-layout: auto !important; /* Override has-fixed-layout */
}

.wp-block-table {
    margin: 0 0 3rem 0;
    overflow-x: visible;
}

/* Remove all borders except bottom */
.wp-block-table table,
.wp-block-table thead,
.wp-block-table tbody,
.wp-block-table tr,
.wp-block-table td,
.wp-block-table th {
    border: none;
}

/* Table cells */
.wp-block-table td {
    padding: 0.8rem 0;
    vertical-align: top;
    color: inherit;
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
    border-bottom: 1px solid #e0e0e0;
}

/* First column (years) */
.wp-block-table td:first-child {
    width: auto;
    min-width: 100px;
    padding-right: 1.5rem;
    font-weight: 500;
    color: inherit;
    white-space: nowrap;
    text-align: left;
}

/* Second column (content) */
.wp-block-table td:last-child {
    width: 100%;
}

/* Links in table content */
.wp-block-table td a {
    color: #666;
    border-bottom: 1px solid transparent;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-block-table td a:hover,
.wp-block-table td a:focus {
    color: #333;
    border-bottom-color: #333;
}

/* == RESPONSIVE == */
@media (max-width: 768px) {
    .wp-block-table td:first-child {
        font-size: 0.9rem;
        white-space: normal;
        min-width: 80px;
    }
    
    .wp-block-table td {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .wp-block-table td:first-child {
        font-size: 0.85rem;
    }
    
    .wp-block-table td {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {
    /* Bestehende Regeln bleiben... */
    
    /* KONSISTENTE SCHRIFTGRÖSSEN FÜR ALLE SEITEN */
    body,
    .container p,
    .unified-text,
    .wp-block-table td {
        font-size: 1rem !important;
    }
    
    /* Nur erste Spalte in Tabellen etwas kleiner */
    .wp-block-table td:first-child {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* Bestehende Regeln bleiben... */
    
    /* NUR bei sehr kleinen Screens reduzieren */
    body,
    .container p,
    .unified-text,
    .wp-block-table td {
        font-size: 0.9rem !important;
    }
    
    .wp-block-table td:first-child {
        font-size: 0.85rem;
    }
}

/* Kleinerer Abstand auf Publications-Seite */
.page-publications .back-button {
    margin-top: 1rem;
}

/* == VIMEO CONSENT PLACEHOLDER (GDPR) == */

.vimeo-consent-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

.vimeo-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vimeo-play-button {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.vimeo-consent-placeholder:hover .vimeo-play-button,
.vimeo-consent-placeholder:focus .vimeo-play-button {
    transform: scale(1.1);
}

.vimeo-consent-notice {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    color: #fff;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.4;
    z-index: 1;
}

.vimeo-consent-notice p {
    margin: 0 0 0.5rem 0;
}

.vimeo-consent-notice p:last-child {
    margin: 0;
}

.vimeo-privacy-link {
    font-size: 0.8rem;
    opacity: 0.9;
}

.vimeo-privacy-link a {
    color: #fff;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.vimeo-privacy-link a:hover,
.vimeo-privacy-link a:focus {
    opacity: 0.8;
}

/* Focus state for accessibility */
.vimeo-consent-placeholder:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vimeo-play-button svg {
        width: 60px;
        height: 60px;
    }
    
    .vimeo-consent-notice {
        font-size: 0.8rem;
        padding: 2rem 1rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .vimeo-play-button svg {
        width: 50px;
        height: 50px;
    }
    
    .vimeo-consent-notice {
        font-size: 0.75rem;
    }
}