/* Mobile CSS - Komplett neu geschrieben für screens <= 768px */

/* === CSS VARIABLEN === */
:root {
    /* Colors */
    --color-primary: #ff6600;
    --color-text: #1a1a1a;
    --color-text-light: #333;
    --color-text-muted: #666;
    --color-text-gray: #999;
    --color-bg-white: #ffffff;
    --color-bg-header: #f5f0e8;
    --color-bg-menu: #ebe3d3;
    --color-bg-hero: #dde9d5;
    --color-bg-blog: #dde9d5;
    --color-bg-podcast: #f0dddd;
    --color-bg-tv: #d9ebe5;
    --color-bg-podcast-compact: #ede5d9;
    --color-bg-bluesky: #d9e4f0;
    --color-bg-bluesky-own: #c4d6e7;
    --color-bg-termin: #fef9e6;
    --color-bg-gray: #f5f5f5;

    /* Font Sizes */
    --font-xs: 10px;
    --font-sm: 11px;
    --font-base: 12px;
    --font-md: 13px;
    --font-lg: 14px;
    --font-xl: 15px;
    --font-2xl: 18px;
    --font-3xl: 20px;
    --font-4xl: 22px;
    --font-5xl: 28px;
    --font-6xl: 48px;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 10px;
    --space-lg: 12px;
    --space-xl: 15px;
    --space-2xl: 18px;
    --space-3xl: 20px;
    --space-4xl: 30px;
    --space-5xl: 40px;

    /* Border Radius */
    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-lg: 8px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 3px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.2);
    --shadow-video: 0 2px 8px rgba(0, 0, 0, 0.2);

    /* Typography */
    --font-family-serif: 'Iowan Old Style', 'Apple Garamond', Baskerville, 'Times New Roman', 'Droid Serif', Times, 'Source Serif Pro', serif;
    --font-family-sans: 'Ubuntu', sans-serif;
    --font-family-mono: monospace;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --letter-spacing-wide: 0.08em;
    --letter-spacing-wider: 0.1em;

    /* Aspect Ratios */
    --aspect-hero: 4 / 3;
    --aspect-video: 3 / 4;
    --aspect-image-break: 3 / 5;
    --aspect-youtube: 16 / 9;
    --aspect-book: 2 / 3;
}

/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Debug Timestamp */
.debug-timestamp {
    position: fixed;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: #0f0;
    padding: 5px var(--space-md);
    font-family: var(--font-family-mono);
    font-size: var(--font-base);
    z-index: 9999;
    border-radius: var(--radius-md);
}

body {
    font-family: var(--font-family-serif);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg-white);
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* === LAYOUT === */
.content-wrapper {
    width: 100%;
    background: var(--color-bg-white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* === HEADER === */
header {
    padding: var(--space-3xl);
    padding-bottom: var(--space-md);
    margin-bottom: 0;
    position: relative;
    background: var(--color-bg-header);
}

.header-title {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.header-title-inner {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

.header-profile-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.header-text-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

h1 {
    font-size: var(--font-5xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: #000;
}

h1 a {
    color: inherit;
}

.social-links {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    display: block;
    width: 20px;
    height: 20px;
}

.social-links svg {
    width: 100%;
    height: 100%;
    fill: #666;
}

.hamburger-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
}

.hamburger-menu[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === MOBILE MENU === */
.mobile-menu-content {
    margin-top: 0;
    margin-bottom: 20px;
}

.mobile-menu-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 20px;
    background: #ebe3d3;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-menu-nav::-webkit-scrollbar {
    display: none;
}

.mobile-menu-nav a {
    text-align: center;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    color: #000;
}

.mobile-menu-contact {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 999;
    padding: 80px 30px 30px 30px;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-content.active .mobile-menu-contact {
    display: flex;
}

.mobile-menu-contact a {
    font-size: 18px;
    color: #000;
    text-decoration: none;
}

.mobile-menu-contact span {
    color: #666;
    font-size: 18px;
}

.header-contact,
.header-line-container {
    display: none;
}

/* === UTILITY CLASSES === */
/* Gemeinsame Meta-Styles (orange, uppercase) */
.card-meta,
.hero-content .meta,
.card.blog .card-meta,
.card.blog-grid h3,
.card.podcast.podcast-livesalon .card-meta,
.card.podcast.podcast-compact .card-meta-compact,
.card.tv-podcast .card-meta,
.card.bluesky .card-meta,
.card.termin .card-meta {
    font-size: var(--font-base);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    font-weight: var(--font-weight-bold);
}

/* Gemeinsame Title-Styles (18-20px, bold) */
.card-title,
.hero-content h2,
.card.blog .card-title,
.card.blog-grid .blog-title,
.card.podcast .card-title,
.card.podcast.podcast-livesalon .card-title,
.card.podcast.podcast-compact .card-title-compact,
.card.tv-podcast .card-title,
.termin-title {
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    color: #000;
}

/* Gemeinsame Excerpt/Description-Styles (15px) */
.card-excerpt,
.hero-content .excerpt,
.card.blog .card-excerpt,
.card.blog-grid .blog-excerpt,
.card.podcast.podcast-livesalon .podcast-excerpt,
.card.tv-podcast .card-excerpt {
    font-size: var(--font-xl);
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* Gemeinsame Date/Meta-Styles (13px, gray) */
.card-podcast-meta,
.card.podcast .card-podcast-meta,
.card.podcast.podcast-livesalon .card-podcast-meta,
.card.podcast.podcast-compact .card-podcast-meta-compact,
.card.tv-podcast .card-podcast-meta,
.termin-date-time {
    font-size: var(--font-md);
    color: var(--color-text-gray);
}

/* === LOADING === */
.loading {
    text-align: center;
    padding: var(--space-5xl) var(--space-3xl);
    color: var(--color-text-muted);
}

/* === PODCAST INFO SECTION === */
#podcast-info-section {
    margin-bottom: 30px;
}

.podcast-info-wrapper {
    background: #dde9d5;
    padding: 30px 20px;
    margin: 0 0 30px 0;
}

.podcast-info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.podcast-info-separator {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    padding: 20px 0;
}

.podcast-info-card {
    background: transparent;
    overflow: hidden;
}

.podcast-info-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.podcast-info-content {
    margin-bottom: 20px;
}

.podcast-info-content img.podcast-info-image {
    width: 100%;
    max-width: 120px;
    height: auto;
    float: left;
    margin: 0 15px 10px 0;
    border-radius: 4px;
}

.podcast-info-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.podcast-info-content a {
    color: #1a1a1a;
    text-decoration: underline;
}

.podcast-info-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.podcast-info-button {
    display: inline-block;
    padding: 12px 20px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    text-align: center;
    transition: background 0.2s;
}

.podcast-info-button:hover {
    background: #f0f0f0;
}

/* === CONTENT LISTE - GANZ EINFACH === */
.content-grid {
    width: 100%;
    padding: 0;
}

.grid-row {
    width: 100%;
}

/* Jedes Element in der Liste */
#hero-section {
    width: 100%;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

.card {
    width: 100%;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

/* === HERO (Aufmacher) === */
.hero {
    width: 100%;
    background: var(--color-bg-hero);
    position: relative;
    padding-bottom: var(--space-3xl);
}

.hero-image {
    width: 100%;
    max-width: 100%;
    aspect-ratio: var(--aspect-hero);
    object-fit: cover;
}

.hero-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    margin: -40px var(--space-3xl) 0 var(--space-3xl);
    padding: var(--space-3xl);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.hero-content .meta {
    margin-bottom: var(--space-md);
}

.hero-content h2 {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-lg);
}

.hero-content .excerpt {
    margin-bottom: var(--space-lg);
}

.hero-content .read-link {
    font-size: var(--font-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.hero a:active .read-link {
    transform: translateX(3px);
}

/* === BLOG CARD === */
.card.blog {
    background: var(--color-bg-blog);
    width: 100%;
    position: relative;
    padding-bottom: var(--space-3xl);
}

.card.blog .card-image {
    width: 100%;
    max-width: 100%;
    aspect-ratio: var(--aspect-hero);
    object-fit: cover;
}

.card.blog .card-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    margin: -40px var(--space-3xl) 0 var(--space-3xl);
    padding: var(--space-3xl);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.card.blog .card-meta {
    margin-bottom: var(--space-md);
}

.card.blog .card-title {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-lg);
}

.card.blog .card-excerpt {
    margin-bottom: var(--space-lg);
}

.card.blog .read-link {
    font-size: var(--font-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.card.blog a:active .read-link {
    transform: translateX(3px);
}

/* Blog Grid Variante */
.card.blog-grid {
    background: var(--color-bg-blog);
    width: 100%;
    position: relative;
    padding-bottom: var(--space-3xl);
}

.card.blog-grid .blog-image-container {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card.blog-grid .blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card.blog-grid .blog-info {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    margin: -40px 20px 0 20px;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card.blog-grid h3 {
    font-size: 12px;
    color: #ff6600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 10px;
}

.card.blog-grid .blog-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #000;
}

.card.blog-grid .blog-excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 12px;
}

.card.blog-grid .read-link {
    font-size: 14px;
    font-weight: 700;
    color: #ff6600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.card.blog-grid a:active .read-link {
    transform: translateX(3px);
}

/* === PODCAST CARD === */
.card.podcast {
    width: 100%;
}

/* === LIVESALON - Featured Large Cards === */
.card.podcast.podcast-livesalon {
    background: #f0dddd;
    position: relative;
    overflow: hidden;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.card.podcast.podcast-livesalon .livesalon-cover {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 9 / 6;
    object-fit: cover;
}

.card.podcast.podcast-livesalon .livesalon-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    margin: -40px 20px 0 20px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.card.podcast.podcast-livesalon .card-meta {
    font-size: 12px;
    color: #ff6600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 10px;
}

.card.podcast.podcast-livesalon .card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #000;
}

.card.podcast.podcast-livesalon .podcast-excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 10px;
}

.card.podcast.podcast-livesalon .card-podcast-meta {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

/* === COMPACT PODCASTS - Horizontal Layout === */
.card.podcast.podcast-compact {
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
}

.card.podcast.podcast-compact a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card.podcast.podcast-compact .podcast-compact-horizontal {
    background: #ede5d9;
    padding: 18px;
    display: flex;
    gap: 18px;
    align-items: center;
}

.card.podcast.podcast-compact .podcast-cover-compact {
    width: 95px;
    height: 95px;
    flex-shrink: 0;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.card.podcast.podcast-compact .podcast-icon-compact {
    width: 95px;
    height: 95px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.card.podcast.podcast-compact .podcast-text-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.card.podcast.podcast-compact .card-meta-compact {
    font-size: 11px;
    color: #ff6600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.card.podcast.podcast-compact .card-title-compact {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.card.podcast.podcast-compact .card-podcast-meta-compact {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

/* Clear floats after grid rows */
.grid-row {
    padding: 0;
}

.grid-row::after {
    content: "";
    display: table;
    clear: both;
}

/* 2-Column Grid for Bilder/Videos Filter */
.grid-row.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.grid-row.media-grid .card.image,
.grid-row.media-grid .card.video {
    margin: 0;
    width: 100%;
}

.grid-row.media-grid .card.image .image-photo {
    aspect-ratio: 3 / 4;
    width: 100%;
    height: auto;
}

.grid-row.media-grid .card.video .video-container {
    aspect-ratio: 3 / 4;
}

/* Old Modern Layout (deprecated) */
.card.podcast .card-meta {
    font-size: 12px;
    color: #ff6600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 8px;
}

.card.podcast .card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #000;
}

.card.podcast .card-podcast-meta {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    font-weight: 500;
}

/* === TV PODCAST CARD === */
.card.tv-podcast {
    background: #d9ebe5;
    width: 100%;
}

.card.tv-podcast .tv-podcast-wrapper {
    padding: 20px;
}

.card.tv-podcast .youtube-thumbnail-link {
    display: block;
    text-decoration: none;
}

.card.tv-podcast .youtube-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 4px;
    cursor: pointer;
}

.card.tv-podcast .youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card.tv-podcast .youtube-container .podcast-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card.tv-podcast .youtube-container .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background-color: rgba(255, 0, 0, 0.8);
    border-radius: 12px;
    transition: background-color 0.2s;
}

.card.tv-podcast .youtube-container:hover .play-button {
    background-color: rgba(255, 0, 0, 1);
}

.card.tv-podcast .youtube-container .play-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.card.tv-podcast .podcast-content {
    padding: 0;
}

.card.tv-podcast .card-meta {
    font-size: 12px;
    color: #ff6600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 6px;
}

.card.tv-podcast .card-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #000;
}

.card.tv-podcast .card-excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 10px;
}

.card.tv-podcast .card-podcast-meta {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}

/* === BLUESKY CARD === */
.card.bluesky {
    background: #d9e4f0;
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
}

.card.bluesky.own-post {
    background: #c4d6e7;
}

.card.bluesky .bluesky-content {
    padding: 20px;
}

.card.bluesky .bluesky-image {
    width: 75px;
    height: 75px;
    object-fit: cover;
    float: right;
    margin-left: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.card.bluesky .card-meta {
    font-size: 12px;
    color: #ff6600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 12px;
}

.card.bluesky .bluesky-author {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 8px;
}

.card.bluesky .reshare-icon {
    color: #666;
    margin-right: 5px;
}

.card.bluesky .author-name {
    font-weight: 600;
    margin-right: 5px;
}

.card.bluesky .bluesky-link {
    font-size: 13px;
    color: #666;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-top: 8px;
}

.card.bluesky .bluesky-link a {
    color: #000;
}

.card.bluesky .link-domain {
    color: #999;
    font-size: 12px;
}

/* === BLUESKY GRID === */
.bluesky-grid {
    width: 100%;
}

/* === BOOK CARDS === */
.books-row-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 40px 0;
    background: #dde9d5;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
}

.books-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
    margin: 0 0 30px 0;
    padding: 0 20px;
    text-align: left;
}

.books-row-wrapper .grid-row {
    padding: 0 20px;
}

.card.book {
    background: transparent;
    width: 100%;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.card.book:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.card.book .book-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: auto;
}

.card.book .book-cover {
    width: 33.33%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
}

.card.book .book-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #000;
}

.card.book .book-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.card.book .book-description {
    font-size: 15px;
    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 15px;
}

/* === TERMIN CARDS === */
.grid-row.termine-gallery {
    display: flex;
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.grid-row.termine-gallery::-webkit-scrollbar {
    display: none;
}

.grid-row.termine-gallery .spacer {
    flex: 0 0 20px;
    min-width: 20px;
    background: transparent;
}

.card.termin {
    background: #fef9e6;
    width: calc(100% - 40px);
    margin-bottom: 20px;
    padding: 0;
    margin-left: 20px;
    margin-right: 20px;
}

.grid-row.termine-gallery .card.termin {
    margin: 0 20px 0 0;
    padding: 0;
    flex: 0 0 75%;
    min-width: 75%;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 20px;
}

/* Termine Label Card (vertical text) */
.termine-label {
    background: transparent;
    flex-shrink: 0;
    margin: 0 15px 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.termine-label-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: 'Ubuntu', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #d4c070;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.card.termin.past {
    opacity: 0.5;
    background: #f5f5f5;
}

.termin-content {
    padding: 20px;
}

.card.termin .card-meta {
    font-size: 12px;
    color: #ff6600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 12px;
}

.termin-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #000;
    margin: 0 0 12px 0;
}

.termin-date-time {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 8px;
}

.termin-date-time strong {
    font-weight: 600;
    color: #000;
}

.termin-location {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-top: 8px;
}

.termin-link-box {
    font-size: 13px;
    color: #666;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-top: 8px;
}

.termin-link-box a {
    color: #000;
    text-decoration: none;
}

.termin-link-box .link-domain {
    color: #999;
    font-size: 12px;
}

/* === IMAGE CARDS === */
.card.image {
    background: #fff;
    padding: 0;
    margin-bottom: 0;
}

.card.image a {
    position: relative;
    display: block;
    width: 100%;
}

.card.image .image-photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 3 / 4;
}

.card.image .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
}

.card.image .image-date {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
    padding: 4px 6px;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
    border-radius: 3px;
    pointer-events: auto;
}

/* === VIDEO CARDS === */
.card.video {
    background: #fff;
    padding: 0;
    margin-bottom: 0;
}

.card.video .video-container {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #000;
}

.card.video .video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card.video .video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    pointer-events: none;
}

.card.video .video-mute-toggle {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    pointer-events: auto;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card.video .video-mute-toggle.show {
    display: flex;
}

.card.video .video-mute-toggle:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.5);
}

.card.video .video-mute-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
}

.card.video .video-fullscreen-toggle {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    pointer-events: auto;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
}

.card.video .video-fullscreen-toggle.show {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

.card.video .video-fullscreen-toggle:active {
    transform: scale(0.95);
    background: rgba(0, 0, 0, 0.5);
}

.card.video .video-fullscreen-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
}

.card.video .video-play-toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    cursor: pointer;
    pointer-events: auto;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
}

.card.video .video-play-toggle.show {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.card.video .video-play-toggle:active {
    transform: translate(-50%, -50%) scale(0.92);
    background: rgba(0, 0, 0, 0.7);
}

.card.video .video-play-toggle svg {
    display: block;
    width: 32px;
    height: 32px;
}

.card.video .video-timer {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: #fff;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 3px;
    pointer-events: none;
    display: none;
    opacity: 0;
}

.card.video .video-timer.show {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

.card.video .video-date {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 3px;
    pointer-events: none;
}

/* 3-Image Gallery Row - Horizontal Scroll */
.grid-row.image-gallery {
    display: flex;
    margin-bottom: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.grid-row.image-gallery::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Spacer elements for left and right padding */
.grid-row.image-gallery .spacer {
    flex: 0 0 20px;
    min-width: 20px;
    background: transparent;
}

.grid-row.image-gallery .card.image,
.grid-row.image-gallery .card.video {
    margin: 0 20px 0 0;
    padding: 0;
    flex: 0 0 65%;
    min-width: 65%;
    scroll-snap-align: start;
}

.grid-row.image-gallery .card.image .image-photo {
    aspect-ratio: 3 / 4;
}

.grid-row.image-gallery .card.video .video-container {
    aspect-ratio: 3 / 4;
}

/* Stacked images (2 or 3) - hide on mobile */
.card.image.stacked {
    display: none;
}

/* === IMAGE BREAK === */
.image-break {
    width: 100%;
    aspect-ratio: 3 / 5;
    background-image: url('../Stefan_16zu10_3000pxl.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 20px;
}

.image-break-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 13px;
    line-height: 1.6;
}

.image-break-caption a {
    color: white;
    text-decoration: underline;
}

/* === SECOND CONTAINER === */
#second-container {
    padding: 0;
}

/* === UTILITY === */
.hidden {
    display: none !important;
}
