/* ================================================
   CELLA BENEDICTINA - CSS Stylesheet
   Klassisch-römischer Stil mit modernem Touch
   ================================================ */

/* -------------------- CSS Variables -------------------- */
:root {
    /* Farben */
    --color-primary: #8B0000;
    --color-primary-dark: #5C0000;
    --color-primary-light: #A52A2A;
    --color-gold: #C9A227;
    --color-gold-light: #D4AF37;
    --color-cream: #FAF8F5;
    --color-parchment: #F5F0E6;
    --color-dark:  #1A1A1A;
    --color-text: #2D2D2D;
    --color-text-light: #666666;
    --color-border: #E0D8CC;
    --color-white: #FFFFFF;
    
    /* Typografie */
    --font-heading: 'Cinzel', 'Times New Roman', serif;
    --font-body: 'Cormorant Garamond', 'Georgia', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md:  2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Container */
    --container-width: 1200px;
    --container-padding: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg:  0 8px 24px rgba(0,0,0,0.15);
}

/* -------------------- Reset & Base -------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color:  var(--color-text);
    background-color: var(--color-cream);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-dark);
    letter-spacing: 0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color:  var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li { margin-bottom: 0.5rem; }

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

/* -------------------- Accessibility -------------------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px 16px;
    z-index: 10000;
    transition: top var(--transition-fast);
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    width: 1px;
    height: 1px;
}

.skip-link:focus {
    top: 0;
    clip: auto;
    overflow: visible;
    width: auto;
    height: auto;
}

/* -------------------- Utilities -------------------- */
.container {
    max-width: var(--container-width);
    margin:  0 auto;
    padding:  0 var(--container-padding);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-alt {
    background-color: var(--color-parchment);
}

.section-dark {
    background-color: var(--color-dark);
    color: var(--color-cream);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color:  var(--color-cream);
}

.lead {
    font-size: 1.375rem;
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* -------------------- Section Header -------------------- */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header.left {
    text-align: left;
}

.section-cross {
    display:  block;
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: var(--spacing-sm);
}

.divider {
    width: 80px;
    height: 2px;
    background:  linear-gradient(90deg, transparent, var(--color-gold), transparent);
    margin: var(--spacing-sm) auto;
}

.section-header.left .divider {
    margin-left: 0;
}

.section-subtitle {
    font-style: italic;
    color: var(--color-text-light);
    margin-top: var(--spacing-sm);
}

.section-footer {
    text-align: center;
    margin-top:  var(--spacing-lg);
}

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color:  var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-small {
    padding:  0.5rem 1rem;
    font-size:  0.8rem;
}

/* -------------------- Header & Navigation -------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    background-color: #FFFFFF;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal), top var(--transition-normal);
    overflow: visible;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
    z-index: 1002;
    transition: width 0.1s linear;
    pointer-events: none;
}

.nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 80px;
    padding-left: 160px;
    position: relative;
}

.logo {
    text-decoration: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1001;
    width: 155px;
    height: 170px;
    background: #FFFFFF;
    border-radius: 0 0 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.05);
}

.logo-img {
    height: 190px;
    width: auto;
    display: block;
    object-fit: contain;
}


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

.nav-menu a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content:  '';
    position:  absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height:  2px;
    background-color: var(--color-gold);
    transition: width var(--transition-normal);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--color-primary);
}

.nav-toggle {
    display:  none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-dark);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* -------------------- Live Prayer Bar -------------------- */
.prayer-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--color-dark);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.prayer-bar.visible {
    transform: translateY(0);
    pointer-events: auto;
}

.prayer-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
}

.prayer-bar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
    animation: rhythmPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.prayer-bar-text {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.3px;
}

/* Push header down when prayer bar is visible */
.prayer-bar.visible ~ .header {
    top: 28px;
}

.prayer-bar.visible ~ .header .nav-menu {
    top: 98px;
}

.prayer-bar.visible ~ main .hero,
.prayer-bar.visible ~ main .page-header {
    margin-top: 28px;
}

/* Prevent body scrolling when mobile nav is open */
body.nav-open {
    overflow: hidden;
}

/* -------------------- Hero Section with Background Image -------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:  
        linear-gradient(rgba(26, 26, 26, 0.6), rgba(26, 26, 26, 0.7)),
        url('../images/hero-kloster.jpg') center center / cover no-repeat;
    overflow: hidden;
}

.hero.no-image {
    background:  linear-gradient(135deg, var(--color-dark) 0%, #2D1B1B 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=". 9em" font-size="90" opacity="0.03">✠</text></svg>');
    background-size: 200px;
    opacity: 0.3;
    pointer-events: none;
}

.hero-overlay {
    position:  absolute;
    top: 0;
    left: 0;
    right:  0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--color-cream);
    padding: 2rem;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 4rem;
    color: var(--color-cream);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-tagline {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* -------------------- Page Headers with Background Images -------------------- */
.page-header {
    position: relative;
    padding: 10rem 0 5rem;
    text-align: center;
    background: 
        linear-gradient(rgba(26, 26, 26, 0.65), rgba(26, 26, 26, 0.75)),
        url('../images/header.jpg') center center / cover no-repeat;
}

.page-header-horarium {
    background:  
        linear-gradient(rgba(26, 26, 26, 0.6), rgba(26, 26, 26, 0.7)),
        url('../images/header.jpg') center center / cover no-repeat;
}

.page-header-magazine {
    background:  
        linear-gradient(rgba(26, 26, 26, 0.6), rgba(26, 26, 26, 0.7)),
        url('../images/header.jpg') center center / cover no-repeat;
}

.page-header-overlay {
    position:  absolute;
    top: 0;
    left: 0;
    right:  0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.page-header-content {
    position:  relative;
    z-index: 1;
    color: var(--color-cream);
}

.page-header h1 {
    color: var(--color-cream);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 1.25rem;
    font-style: italic;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* -------------------- Welcome Section -------------------- */
.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* -------------------- Mass Schedule -------------------- */
.mass-schedule {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.mass-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-align: center;
}

.mass-card h3 {
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom:  1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mass-times {
    display:  flex;
    flex-direction: column;
    gap: 1rem;
}

.mass-item {
    display:  flex;
    justify-content: space-between;
    align-items: center;
    padding:  0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mass-item .time {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-cream);
}

.mass-item .type {
    font-style: italic;
    opacity: 0.8;
}

.mass-item.highlight {
    background-color: rgba(201, 162, 39, 0.1);
    margin:  0 -1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

.mass-item.highlight .time {
    color:  var(--color-gold);
}

/* -------------------- Magazine Cover with Real Images -------------------- */
.magazine-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.magazine-cover-wrapper {
    position:  relative;
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.magazine-cover-wrapper.large {
    max-width: 300px;
}

.magazine-cover-wrapper.small {
    aspect-ratio: 2/3;
    max-width: 200px;
}

.magazine-cover-wrapper.mini {
    aspect-ratio: 2/3;
    max-width: 150px;
    margin-bottom: 1rem;
}

.magazine-cover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-normal);
}

.magazine-cover-image.error {
    opacity:  0;
}

.magazine-cover-fallback {
    position: absolute;
    top: 0;
    left:  0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    color: var(--color-cream);
    z-index: 0;
}

.magazine-cover-fallback::before {
    content: '';
    position: absolute;
    top: 10px;
    left:  10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.magazine-cover-fallback .magazine-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.magazine-cover-fallback .magazine-subtitle {
    font-size:  0.85rem;
    font-style: italic;
    opacity: 0.8;
    display: block;
    margin-bottom: 1rem;
}

.magazine-cover-fallback .magazine-issue {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    color: var(--color-gold);
}

.magazine-cover-fallback .magazine-theme {
    font-style: italic;
    margin-top: 1rem;
    display: block;
    font-size: 0.9rem;
}

.magazine-cover-fallback.large .magazine-title {
    font-size: 2rem;
}

.magazine-cover-fallback.small .magazine-title {
    font-size: 1.25rem;
}

.magazine-cover-fallback.small .magazine-subtitle {
    display: none;
}

.magazine-cover-fallback.mini .magazine-title {
    font-size: 1rem;
}

.magazine-cover-fallback.mini .magazine-subtitle,
.magazine-cover-fallback.mini .magazine-theme {
    display:  none;
}

.magazine-cover-fallback.mini .magazine-issue {
    font-size: 0.7rem;
}

.magazine-info h2 {
    margin-bottom: 0.5rem;
}

.magazine-features {
    margin:  1.5rem 0;
    list-style: none;
    margin-left: 0;
}

.magazine-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.magazine-features li::before {
    content: '✠';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-size: 0.8rem;
}

/* -------------------- News Grid -------------------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    display: flex;
    overflow: hidden;
    transition: box-shadow var(--transition-normal);
}

.news-card:hover {
    box-shadow:  var(--shadow-md);
}

.news-card.featured {
    grid-column: 1 / -1;
}

.news-date {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1.5rem 1.25rem;
    text-align: center;
    min-width: 80px;
}

.news-date .day {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size:  0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.news-content {
    padding: 1.5rem;
    flex:  1;
}

.news-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom:  0.75rem;
}

.news-content p {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.read-more {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

.read-more:hover {
    color:  var(--color-primary-dark);
}

/* -------------------- Events List -------------------- */
.events-list {
    max-width: 900px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.event-date {
    text-align: center;
    min-width: 80px;
}

.event-date .day {
    display: block;
    font-family:  var(--font-heading);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--color-primary);
}

.event-date .month {
    display: block;
    font-size:  0.9rem;
    text-transform:  uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
}

.event-date .year {
    display: block;
    font-size:  0.8rem;
    color: var(--color-text-light);
}

.event-details h4 {
    margin-bottom: 0.5rem;
}

.event-time {
    font-weight: 600;
    color: var(--color-primary);
}

/* -------------------- Horarium -------------------- */
.horarium-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.horarium-note {
    background-color: var(--color-parchment);
    border-left: 4px solid var(--color-gold);
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.horarium-grid {
    display:  grid;
    grid-template-columns:  repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.horarium-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.horarium-card-header {
    background:  linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-cream);
    padding: 1.5rem;
    text-align: center;
}

.horarium-card-header h3 {
    color: var(--color-cream);
    margin-bottom: 0.25rem;
}

.horarium-subtitle {
    font-style: italic;
    opacity: 0.8;
}

.horarium-table {
    padding: 1rem 1.5rem;
}

.horarium-row {
    display:  flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.horarium-row:last-child {
    border-bottom: none;
}

.horarium-row.highlight {
    background-color: rgba(139, 0, 0, 0.05);
    margin:  0 -1rem;
    padding: 0.75rem 1rem;
}

.horarium-time {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
    min-width: 70px;
}

.horarium-office {
    font-style: italic;
}

.horarium-footer {
    background-color: var(--color-parchment);
    padding: 1rem 1.5rem;
    text-align: center;
}

.silence-note {
    margin:  0;
    color: var(--color-text-light);
}

/* -------------------- Office Explanation -------------------- */
.office-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.hours-list {
    list-style: none;
    margin-left: 0;
}

.hours-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.hours-list strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.hours-list span {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* -------------------- Silence Section -------------------- */
.silence-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.silence-content h3 {
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

/* -------------------- Visit Info -------------------- */
.visit-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.visit-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin:  2rem 0;
    text-align: left;
}

.visit-note {
    background-color: var(--color-white);
    padding: 1.5rem;
    border:  1px solid var(--color-border);
}

.visit-note h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.visit-note ul {
    margin-bottom: 0;
}

/* -------------------- Quote Section -------------------- */
.quote-section {
    text-align: center;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

.large-quote {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border: none;
}

.large-quote p {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-style: italic;
    color: var(--color-gold);
    margin-bottom:  1.5rem;
    line-height: 1.4;
}

.large-quote cite {
    font-size: 1.1rem;
    font-style: normal;
    opacity: 0.8;
}

.large-quote .source {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* -------------------- Work Grid -------------------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.work-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 2rem;
    text-align: center;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.work-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.work-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.work-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.work-card p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* -------------------- Schedule Timeline -------------------- */
.schedule-timeline {
    max-width: 700px;
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    border-left: 2px solid var(--color-border);
    margin-left: 40px;
    padding-left: 2rem;
    position: relative;
}

.schedule-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 1.25rem;
    width: 10px;
    height: 10px;
    background-color: var(--color-gold);
    border-radius: 50%;
}

.schedule-item.highlight {
    background-color: rgba(139, 0, 0, 0.05);
    margin-right: -1rem;
    padding-right: 1rem;
    border-radius: 0 4px 4px 0;
}

.schedule-item.highlight::before {
    background-color: var(--color-primary);
}

.schedule-time {
    font-family: var(--font-heading);
    font-size:  1.25rem;
    color:  var(--color-primary);
    min-width: 60px;
}

.schedule-content h4 {
    margin-bottom: 0.25rem;
}

.schedule-content p {
    color:  var(--color-text-light);
    margin-bottom:  0;
    font-size: 0.95rem;
}

/* -------------------- Issues Grid -------------------- */
.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.issue-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.issue-info h4 {
    margin-bottom: 0.25rem;
}

.issue-theme {
    color: var(--color-gold);
    font-style: italic;
    margin-bottom: 0.5rem ! important;
}

/* -------------------- Issue Feature -------------------- */
.issue-feature {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.issue-details h3 {
    margin-bottom: 0.5rem;
}

.issue-date {
    color:  var(--color-text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.issue-contents {
    margin:  1.5rem 0;
}

.issue-actions {
    display:  flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* -------------------- Rubric Grid -------------------- */
.rubric-grid {
    display:  grid;
    grid-template-columns:  repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.rubric-item {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.02);
}

.rubric-item h4 {
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.rubric-item p {
    margin-bottom: 0;
    opacity: 0.8;
}

/* -------------------- Subscription -------------------- */
.subscription-options {
    display:  grid;
    grid-template-columns:  repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.subscription-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.subscription-card.featured {
    border-color: var(--color-gold);
    box-shadow: var(--shadow-md);
}

.card-badge {
    position:  absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color:  var(--color-gold);
    color: var(--color-dark);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
}

.subscription-card h3 {
    margin-bottom: 1rem;
}

.price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem ! important;
}

.price-info {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem ! important;
}

.subscription-card ul {
    list-style: none;
    margin:  1.5rem 0;
    margin-left: 0;
    text-align: left;
}

.subscription-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.subscription-card li::before {
    content: '✓';
    position:  absolute;
    left: 0;
    color: var(--color-gold);
}

/* -------------------- News Full Page -------------------- */
.news-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.news-article {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 2rem;
    margin-bottom: 2rem;
}

.news-article-header {
    display:  flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.news-date-full {
    color:  var(--color-text-light);
}

.news-article h2 {
    margin-bottom: 1rem;
}

/* -------------------- Sidebar -------------------- */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-events {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-event {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.event-date-small {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-primary);
    min-width: 50px;
}

.event-title-small {
    font-size: 0.9rem;
}

.category-list {
    list-style: none;
    margin-left: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    font-size: 0.95rem;
}

/* -------------------- Contact Cards -------------------- */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-white);
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(139, 0, 0, 0.12);
}

.contact-card-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1;
}

.contact-card-body {
    flex: 1;
    min-width: 0;
}

.contact-card h3 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.contact-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    color: var(--color-text-light);
}

.contact-card-arrow {
    font-size: 1rem;
    color: var(--color-gold);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.contact-card:hover .contact-card-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* -------------------- Contact Layout (Form + Map) -------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-form-box {
    background: var(--color-white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-form-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.contact-form-sub {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

/* Modern floating labels */
.form-group.modern {
    position: relative;
}

.form-group.modern label {
    position: absolute;
    top: 0.85rem;
    left: 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-light);
    pointer-events: none;
    transition: top 0.2s ease, left 0.2s ease, font-size 0.2s ease, color 0.2s ease, letter-spacing 0.2s ease;
    letter-spacing: 0;
    margin-bottom: 0;
}

.form-group.modern input:focus ~ label,
.form-group.modern input:not(:placeholder-shown) ~ label,
.form-group.modern textarea:focus ~ label,
.form-group.modern textarea:not(:placeholder-shown) ~ label {
    top: -0.6rem;
    left: 0.75rem;
    font-size: 0.72rem;
    color: var(--color-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--color-white);
    padding: 0 0.25rem;
}

.form-group.modern input,
.form-group.modern textarea {
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group.modern input:focus,
.form-group.modern textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.06);
}

.form-group.modern input::placeholder,
.form-group.modern textarea::placeholder {
    color: transparent;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-cream);
    color: var(--color-text);
    border-radius: 2px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.08);
}

.form-group.checkbox {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-top: 0.25rem;
}

.form-group.checkbox label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.btn-send {
    width: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    padding: 1rem;
    font-size: 1rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.2s ease;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.2);
    background: #5C0000;
}

.contact-form .btn {
    width: 100%;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error,
.form-group.modern input.error,
.form-group.modern textarea.error {
    border-color: #ff4444;
    background-color: rgba(255, 68, 68, 0.08);
}

/* -------------------- Contact Map -------------------- */
.contact-map-box {
    display: flex;
    flex-direction: column;
}

.contact-map-wrap {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.contact-map-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
}



/* -------------------- Guest Section -------------------- */
.guest-content {
    max-width: 900px;
    margin: 0 auto;
}

.guest-info {
    display:  grid;
    grid-template-columns:  repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin:  2rem 0;
}

.guest-item {
    background-color: var(--color-parchment);
    padding: 1.5rem;
}

.guest-item h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.guest-item p {
    margin-bottom: 0;
}

/* -------------------- Donation -------------------- */
.donation-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.donation-content h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.bank-details {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    margin:  2rem 0;
    border:  1px solid rgba(255, 255, 255, 0.1);
}

.bank-details p {
    margin-bottom: 0.5rem;
}

.donation-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* -------------------- Spenden Inline -------------------- */
.section-spenden {
    background-color: var(--color-parchment);
}

.spenden-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 950px;
    margin: 0 auto;
}

.spenden-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.spenden-card h3 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.spenden-sub {
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.spenden-ausland {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

.spenden-dank {
    margin-top: 2rem;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-gold);
}

.qr-container {
    display: inline-block;
    padding: 0.75rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
}

.qr-container img {
    display: block;
}

.bank-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.bank-table th,
.bank-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
}

.bank-table th {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: var(--color-text-light);
    white-space: nowrap;
    width: 35%;
}

.bank-table td {
    font-weight: 500;
    white-space: nowrap;
}

.bank-table td code {
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 0.9rem;
    background: var(--color-parchment);
    padding: 0.15rem 0.4rem;
    letter-spacing: 0.05em;
}

.bank-table tr:last-child th,
.bank-table tr:last-child td {
    border-bottom: none;
}

.spenden-card .btn {
    margin-top: 1.5rem;
}

.spenden-card-gofundme .gfm-embed {
    margin-top: 0.5rem;
}

.spenden-card-gofundme .gfm-embed iframe {
    max-width: 100%;
}

.copy-btn {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.15rem 0.4rem;
    margin-left: 0.35rem;
    vertical-align: middle;
    transition: all var(--transition-fast);
    position: relative;
    flex-shrink: 0;
}

.copy-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.copy-btn.copied {
    color: #2e7d32;
    border-color: #2e7d32;
}

@media (max-width: 768px) {
    .spenden-grid {
        grid-template-columns: 1fr;
    }

    .spenden-card {
        padding: 1.5rem;
    }

    .bank-table td {
        white-space: normal;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 0.25rem;
    }

    .bank-table td code {
        font-size: 0.8rem;
        letter-spacing: 0.02em;
        white-space: nowrap;
    }

    .bank-table th {
        font-size: 0.8rem;
        width: 30%;
    }

    .qr-container img {
        width: 180px;
        height: 180px;
    }

    .spenden-card .btn {
        display: block;
        text-align: center;
    }
}

/* -------------------- Footer -------------------- */
.footer {
    background-color: var(--color-dark);
    color: var(--color-cream);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

.footer-section h4 {
    color: var(--color-gold);
    font-size: 0.95rem;
    margin-bottom:  1.25rem;
    letter-spacing: 0.05em;
}

.footer-section p,
.footer-section address {
    font-style: normal;
    opacity:  0.85;
    line-height: 1.8;
    font-size: 0.85rem;
}

.footer-section a {
    color:  var(--color-cream);
    opacity: 0.85;
}

.footer-section a:hover {
    color: var(--color-gold);
    opacity: 1;
}

.footer-section ul {
    list-style: none;
    margin-left: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top:  2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* -------------------- Content Images -------------------- */
.content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.content-image.wide {
    max-width: 800px;
    margin: 2rem auto;
}

.content-image.square {
    width: 100%;
}

/* -------------------- About Two-Column Layout -------------------- */
.about-content.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-content.two-col.reverse {
    direction: rtl;
}

.about-content.two-col.reverse > * {
    direction: ltr;
}

.about-text .lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.about-text {
    position: sticky;
    top: 6rem;
}


/* -------------------- Modern Day Timeline -------------------- */
.tl-section {
    padding: 0;
    position: relative;
}

/* Continuous vertical line spanning the entire section */
.tl-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--color-gold) 3%,
        var(--color-primary) 30%,
        var(--color-primary) 70%,
        var(--color-gold) 97%,
        transparent 100%
    );
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

/* Hide line behind phase dividers */
.tl-phase {
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.tl-phase-night {
    background: linear-gradient(135deg, #0D1B2A 0%, #1B2838 100%);
}

.tl-phase-morning {
    background: linear-gradient(135deg, #2C1810 0%, #4A2C1A 50%, #6B3A1F 100%);
}

.tl-phase-midday {
    background: linear-gradient(135deg, #F5F0E6 0%, #FAF8F5 100%);
}

.tl-phase-evening {
    background: linear-gradient(135deg, #1A1025 0%, #2D1B3D 100%);
}

.tl-phase-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.tl-phase-night .tl-phase-label,
.tl-phase-evening .tl-phase-label {
    color: var(--color-gold);
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.25);
}

.tl-phase-morning .tl-phase-label {
    color: var(--color-gold-light);
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.25);
}

.tl-phase-midday .tl-phase-label {
    color: var(--color-primary);
    background: rgba(139, 0, 0, 0.05);
    border: 1px solid rgba(139, 0, 0, 0.15);
}

.tl-phase-icon {
    font-size: 1.1rem;
}

/* Timeline Track */
.tl-track {
    position: relative;
    padding: 3rem 0;
    z-index: 3;
}

/* Cards */
.tl-card {
    position: relative;
    width: 50%;
    padding: 0 0 3rem;
}

/* Animation: applied by JS for graceful degradation */
.tl-card.tl-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.tl-card.tl-visible {
    opacity: 1;
    transform: translateY(0);
}

.tl-card-left {
    padding-right: 3.5rem;
    text-align: right;
}

.tl-card-right {
    margin-left: 50%;
    padding-left: 3.5rem;
    text-align: left;
}

/* Dot on the line */
.tl-card-dot {
    position: absolute;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    z-index: 10;
    border: 4px solid var(--color-white);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tl-card:hover .tl-card-dot {
    transform: scale(1.5);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.2);
}

.tl-card-left .tl-card-dot {
    right: -8px;
}

.tl-card-right .tl-card-dot {
    left: -8px;
}

.tl-card-dot.prayer { background-color: var(--color-primary); }
.tl-card-dot.reading { background-color: var(--color-gold); }
.tl-card-dot.work { background-color: #5B7553; }
.tl-card-dot.community { background-color: #4A6FA5; }

/* Card Inner */
.tl-card-inner {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 2;
    text-align: left;
}

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

.tl-card-final {
    border-bottom: 3px solid var(--color-primary);
}

/* Arrow pointer toward line */
.tl-card-left .tl-card-inner::after {
    content: '';
    position: absolute;
    top: 12px;
    right: -8px;
    width: 14px;
    height: 14px;
    background: var(--color-white);
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transform: rotate(-45deg);
}

.tl-card-right .tl-card-inner::after {
    content: '';
    position: absolute;
    top: 12px;
    left: -8px;
    width: 14px;
    height: 14px;
    background: var(--color-white);
    border-left: 1px solid rgba(0, 0, 0, 0.04);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    transform: rotate(-45deg);
}

/* Card Head */
.tl-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tl-card-time {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 0.5px;
    line-height: 1;
}

.tl-card-time small {
    font-size: 0.6em;
    font-weight: 400;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tags */
.tl-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    white-space: nowrap;
}

.tl-tag.prayer {
    background: rgba(139, 0, 0, 0.08);
    color: var(--color-primary);
}

.tl-tag.reading {
    background: rgba(201, 162, 39, 0.12);
    color: #8B7A1A;
}

.tl-tag.work {
    background: rgba(91, 117, 83, 0.12);
    color: #5B7553;
}

.tl-tag.community {
    background: rgba(74, 111, 165, 0.12);
    color: #4A6FA5;
}

.tl-card-inner h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.tl-card-inner p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.tl-card-inner p:last-child {
    margin-bottom: 0;
}

/* Highlight Box */
.tl-card-highlight {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.04), rgba(201, 162, 39, 0.06));
    border-left: 3px solid var(--color-gold);
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    color: var(--color-text);
}

.tl-card-highlight strong {
    color: var(--color-primary);
}

/* Duration meta */
.tl-card-meta {
    margin-top: 0.75rem;
    display: flex;
    gap: 1rem;
}

.tl-duration {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* End Marker */
.tl-end {
    text-align: center;
    padding: 2.5rem 0 4rem;
    background: var(--color-cream);
    position: relative;
    z-index: 2;
}

.tl-end-icon {
    display: block;
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.tl-end-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-light);
}

/* -------------------- Rhythm Day Bar (Homepage) -------------------- */
.rhythm-subtitle {
    text-align: center;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

/* Live Indicator */
.rhythm-live {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 5rem;
    padding: 0.6rem 1.5rem;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.rhythm-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gold);
    animation: rhythmPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes rhythmPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(201, 162, 39, 0); }
}

.rhythm-live-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-gold);
    white-space: nowrap;
}

/* Bar Wrapper */
.rhythm-bar-wrap {
    max-width: 900px;
    margin: 0 auto 5rem;
    padding: 0 1rem;
}

/* The Bar */
.rhythm-bar {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4rem 0 1.5rem;
}

.rhythm-bar-fill {
    position: absolute;
    inset: 0;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        #1a1a3e 0%,
        #2d1b4e 10%,
        #8B0000 25%,
        var(--color-gold) 45%,
        var(--color-gold-light) 55%,
        #8B0000 75%,
        #2d1b4e 90%,
        #1a1a3e 100%
    );
    opacity: 0.8;
}

/* Markers */
.rhythm-marker {
    position: absolute;
    left: var(--pos);
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: default;
}

.rhythm-marker-dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-gold);
    border: 2px solid var(--color-dark);
    box-shadow: 0 0 8px rgba(201, 162, 39, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rhythm-marker:hover .rhythm-marker-dot {
    transform: scale(1.4);
    box-shadow: 0 0 16px rgba(201, 162, 39, 0.6);
}

.rhythm-marker-dot.prayer {
    background: var(--color-gold);
}

/* Label above/below markers */
.rhythm-marker-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s ease;
    pointer-events: none;
}

.rhythm-marker-label strong {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.rhythm-marker:hover .rhythm-marker-label {
    color: var(--color-gold);
}

.rhythm-marker:hover .rhythm-marker-label strong {
    color: var(--color-gold);
}

/* Alternating label position: odd above, even below */
.rhythm-marker:nth-child(odd) .rhythm-marker-label {
    bottom: calc(100% + 8px);
}

.rhythm-marker:nth-child(even) .rhythm-marker-label {
    top: calc(100% + 8px);
}

/* Now indicator */
.rhythm-now {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    cursor: pointer;
}

.rhythm-now-line {
    display: block;
    width: 3px;
    height: 30px;
    background: #FF2D2D;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 45, 45, 0.6);
    animation: nowPulse 1.5s ease-in-out infinite;
    transition: height 0.3s ease, box-shadow 0.3s ease;
}

.rhythm-now:hover .rhythm-now-line {
    height: 44px;
    box-shadow: 0 0 18px rgba(255, 45, 45, 0.8);
}

.rhythm-now-label {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: #FF2D2D;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    white-space: nowrap;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.rhythm-now-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #FF2D2D;
}

.rhythm-now:hover .rhythm-now-label {
    opacity: 1;
}

@keyframes nowPulse {
    0%, 100% { opacity: 0.7; box-shadow: 0 0 8px rgba(255, 45, 45, 0.5); }
    50% { opacity: 1; box-shadow: 0 0 16px rgba(255, 45, 45, 0.8); }
}

/* Time axis */
.rhythm-bar-axis {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    padding: 0 0.2rem;
    margin-top: 0.5rem;
}

/* -------------------- Shop Grid -------------------- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.shop-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.shop-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shop-item h4 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* -------------------- Page Header Variants -------------------- */
.page-header-tagesablauf {
    background:
        linear-gradient(rgba(26, 26, 26, 0.6), rgba(26, 26, 26, 0.7)),
        url('../images/header.jpg') center center / cover no-repeat;
}

.page-header-unterstuetzen {
    background:
        linear-gradient(rgba(26, 26, 26, 0.6), rgba(26, 26, 26, 0.7)),
        url('../images/header.jpg') center center / cover no-repeat;
}

/* -------------------- Animations -------------------- */
.animate-ready {
    opacity: 0;
    transform:  translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity:  1;
    transform: translateY(0);
}

.form-success {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform:  translateY(0);
    }
}

/* -------------------- Responsive Design -------------------- */
@media (max-width: 992px) {
    .magazine-content,
    .issue-feature,
    .office-content {
        grid-template-columns: 1fr;
    }
    
    .magazine-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .issue-cover-large {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .magazine-cover-wrapper.large {
        margin:  0 auto;
    }
    
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-map-wrap {
        min-height: 350px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        position:  static;
    }

    .about-content.two-col {
        grid-template-columns: 1fr;
    }

    .about-content.two-col.reverse {
        direction: ltr;
    }

    .about-text {
        position: static;
    }

    .about-image {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Timeline: switch to single column */
    .tl-section::after {
        left: calc(var(--container-padding) + 20px);
        transform: none;
    }

    .tl-card {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }

    .tl-card-left {
        padding-right: 0;
        text-align: left;
    }

    .tl-card-right {
        margin-left: 0;
        padding-left: 50px;
    }

    .tl-card-left .tl-card-dot,
    .tl-card-right .tl-card-dot {
        left: 12px;
        right: auto;
    }

    .tl-card-left .tl-card-inner::after,
    .tl-card-right .tl-card-inner::after {
        right: auto;
        left: -8px;
        border-right: none;
        border-bottom: none;
        border-left: 1px solid rgba(0, 0, 0, 0.04);
        border-top: 1px solid rgba(0, 0, 0, 0.04);
    }
    
    h1 { font-size: 2.5rem; }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
        margin-top: -2rem;
    }

    .contact-form-box {
        padding: 2rem 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color:  var(--color-white);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        opacity: 0;
        transition: transform var(--transition-normal), opacity var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-toggle {
        display:  flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    h2 { font-size: 1.75rem; }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .mass-schedule {
        grid-template-columns:  1fr;
    }
    
    .news-card {
        flex-direction: column;
    }
    
    .news-date {
        padding: 1rem;
        display: flex;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .event-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .event-date {
        display: flex;
        gap: 0.5rem;
        align-items: baseline;
    }
    
    .event-date .day {
        font-size: 1.5rem;
    }
    
    .schedule-item {
        margin-left: 20px;
        padding-left: 1.5rem;
    }
    
    .horarium-grid {
        grid-template-columns: 1fr;
    }
    
    .large-quote p {
        font-size: 1.75rem;
    }
    
    .issue-actions {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Rhythm bar: show only times, hide names */
    .rhythm-marker-label {
        display: flex;
        font-size: 0;
    }

    .rhythm-marker-label strong {
        font-size: 0.55rem;
    }

    .rhythm-bar {
        margin: 2rem 0 1.5rem;
    }

    .rhythm-live {
        padding: 0.5rem 1rem;
        margin-bottom: 2.5rem;
        max-width: 100%;
    }

    .rhythm-live-text {
        font-size: 0.8rem;
        white-space: normal;
    }

    .rhythm-bar-wrap {
        margin-bottom: 3rem;
    }

    /* Mobile nav link touch targets */
    .nav-menu a {
        padding: 0.75rem 1.5rem;
        display: block;
        width: 100%;
    }

    .tl-card-inner {
        padding: 1.25rem 1.5rem;
    }

    .tl-card-time {
        font-size: 1.25rem;
    }

    .tl-phase-label {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
    }

    .header {
        height: 60px;
    }

    .nav {
        height: 60px;
        padding-left: 120px;
    }

    .logo {
        width: 100px;
        height: 120px;
    }

    .logo-img {
        height: 90px;
    }

    .nav-menu {
        top: 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .page-header {
        padding: 6rem 0 2.5rem;
    }

    .large-quote p {
        font-size: 1.5rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .subscription-options {
        grid-template-columns: 1fr;
    }
    
    .magazine-cover-wrapper.small {
        max-width: 150px;
    }
    
    .issues-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .spenden-card {
        padding: 1.25rem;
    }

    .spenden-card h3 {
        font-size: 1.15rem;
    }

    .bank-table th,
    .bank-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.9rem;
    }

    .bank-table td code {
        font-size: 0.75rem;
        padding: 0.1rem 0.25rem;
    }

    .copy-btn {
        font-size: 0.75rem;
        padding: 0.1rem 0.3rem;
    }

    .qr-container img {
        width: 160px;
        height: 160px;
    }
}

/* -------------------- Print Styles -------------------- */
@media print {
    .header,
    .footer,
    .nav-toggle,
    .btn,
    .skip-link {
        display: none ! important;
    }
    
    .hero,
    .page-header {
        min-height: auto;
        padding: 2rem 0;
        background: none ! important;
        color: var(--color-dark);
    }
    
    .hero h1,
    .page-header h1,
    .hero-tagline,
    .page-header p {
        color: var(--color-dark);
        text-shadow: none;
    }
    
    .section {
        padding:  1rem 0;
    }
    
    .section-dark {
        background:  none;
        color:  var(--color-dark);
    }
    
    .section-dark h2,
    .section-dark h3,
    .section-dark h4,
    .section-dark p {
        color: var(--color-dark);
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        color:  var(--color-dark);
        text-decoration: underline;
    }
}

/* -------------------- Reduced Motion -------------------- */
@media (prefers-reduced-motion: reduce) {
    .animate-ready {
        opacity:  1;
        transform:  none;
        transition: none;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms ! important;
        animation-iteration-count:  1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}