/* ===================================================
   PFARRKIRCHE ST. NIKOLAUS – STYLES.CSS
   Palette: parchment / stone / gold
   Font: EB Garamond throughout
   =================================================== */

/* ── CUSTOM PROPERTIES ──────────────────────────── */
:root {
    --parchment:   #f5ede0;
    --parchment-dk:#ede0cc;
    --stone:       #5a4e3c;
    --stone-lt:    #8a7b68;
    --dark:        #1e1810;
    --gold:        #9a7830;
    --gold-lt:     #c4a258;
    --gold-pale:   #f0e6cd;
    --line:        rgba(90, 78, 60, 0.15);
    --line-gold:   rgba(154, 120, 48, 0.35);
    --header-h:    80px;
    --radius:      3px;
    --shadow-sm:   0 2px 12px rgba(30,24,16,0.08);
    --shadow-md:   0 6px 28px rgba(30,24,16,0.12);
    --transition:  0.3s ease;
}

/* ── RESET & BASE ───────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    font-size: 16px;
}

body {
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    background: var(--parchment);
    color: var(--dark);
    line-height: 1.75;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--dark); }
ul  { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── FADE-IN ANIMATION ──────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* ── SMALL CAPS ─────────────────────────────────── */
.small-caps {
    font-variant: small-caps;
    letter-spacing: 0.06em;
}

/* ================================================
   HEADER
   ================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    background: var(--parchment);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--transition), background var(--transition);
}
.header.scrolled {
    box-shadow: 0 2px 20px rgba(30,24,16,0.12);
    background: rgba(245,237,224,0.97);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: var(--header-h);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    text-align: left;
    flex-shrink: 0;
}
.brand-name {
    font-family: 'EB Garamond', serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.03em;
    line-height: 1.2;
}
.brand-sub {
    font-size: 0.8rem;
    color: var(--stone-lt);
    font-variant: small-caps;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 1px;
}

/* ── NAV ─────────────────────────────────────────── */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    font-family: 'EB Garamond', serif;
    font-size: 1.0rem;
    color: var(--stone);
    padding: 6px 18px;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* ── MOBILE HAMBURGER ──────────────────────────── */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--stone);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   HERO
   ================================================ */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-h) + 80px) 2rem 100px;
    background: #2a1f14;
    position: relative;
    overflow: hidden;
}

/* Background image layer */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        url('Pic/kirche-hero.jpg') center 35% / cover no-repeat,
        linear-gradient(155deg, #c48a40 0%, #7a4e1e 30%, #b07030 60%, #5a3a18 100%);
    filter: brightness(0.38) saturate(0.7);
}

/* Gradient overlay for readability */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(30,24,16,0.15) 0%,
        rgba(30,24,16,0.05) 40%,
        rgba(30,24,16,0.65) 100%
    );
    pointer-events: none;
}

.hero-ornament {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}
.rose-window {
    width: 200px;
    height: 200px;
    opacity: 0.85;
    animation: roseSpin 120s linear infinite;
}

@keyframes roseSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-bells {
    font-size: 1.8rem;
    color: var(--gold);
    letter-spacing: 0.5em;
    margin-bottom: 1rem;
}

.hero-headline {
    font-family: 'EB Garamond', serif;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 500;
    color: var(--parchment);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}
.hero-headline em {
    font-style: italic;
    color: var(--gold-lt);
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(245,237,224,0.82);
    margin-bottom: 2rem;
    font-style: italic;
}

/* Button overrides for dark hero */
.hero .btn-outline {
    color: var(--parchment-dk);
    border-color: rgba(245,237,224,0.45);
    background: rgba(30,24,16,0.25);
}
.hero .btn-outline:hover {
    border-color: var(--gold-lt);
    color: var(--gold-lt);
}

.hero-divider {
    width: 180px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    margin: 0 auto 2rem;
}

.hero-ctas {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── BUTTONS ──────────────────────────────────── */
.btn-parchment {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1px solid var(--gold);
    color: var(--dark);
    background: var(--gold-pale);
    font-family: 'EB Garamond', serif;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
}
.btn-parchment:hover {
    background: var(--gold);
    color: var(--parchment);
}

.btn-outline {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1px solid var(--stone-lt);
    color: var(--stone);
    background: transparent;
    font-family: 'EB Garamond', serif;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-text-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--gold);
    font-style: italic;
}
.btn-text-link:hover { text-decoration: underline; }

/* ================================================
   PARALLAX SECTIONS
   ================================================ */
.parallax-kirche {
    position: relative;
    height: 360px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-kirche__bg {
    position: absolute;
    inset: -20% 0;
    z-index: 0;
    background:
        url('Pic/kirche-aussen.jpg') center / cover no-repeat,
        linear-gradient(170deg, #b87c38 0%, #6a3e18 35%, #a06428 65%, #3e2410 100%);
    filter: brightness(0.4) saturate(0.65);
    will-change: transform;
}

.parallax-kirche--innen .parallax-kirche__bg {
    background:
        url('Pic/kirche-innen.jpg') center / cover no-repeat,
        radial-gradient(ellipse at 50% 25%, #9a7050 0%, #5a3820 45%, #2e1c0e 100%);
}

.parallax-kirche__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(30,24,16,0.5) 0%,
        rgba(30,24,16,0.35) 50%,
        rgba(30,24,16,0.55) 100%
    );
    pointer-events: none;
}

.parallax-kirche__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--parchment);
    padding: 0 2rem;
    max-width: 800px;
}

.parallax-quote {
    font-family: 'EB Garamond', serif;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    font-style: italic;
    font-weight: 400;
    color: var(--parchment);
    line-height: 1.55;
    margin: 0 auto 0.8rem;
}

.parallax-cite {
    display: block;
    font-size: 1.05rem;
    color: var(--gold-lt);
    letter-spacing: 0.08em;
    font-style: normal;
}

.parallax-ornament {
    color: var(--gold);
    font-size: 1.4rem;
    letter-spacing: 0.6em;
    margin-bottom: 1.2rem;
    opacity: 0.8;
}

.parallax-stats {
    display: flex;
    justify-content: center;
    gap: 4.5rem;
    flex-wrap: wrap;
}

.parallax-stat__value {
    font-family: 'EB Garamond', serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--gold-lt);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.parallax-stat__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(245,237,224,0.72);
}

/* ================================================
   SECTIONS — GENERAL
   ================================================ */
.section {
    padding: 90px 0;
}
.section-alt {
    background: var(--parchment-dk);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.section-title {
    font-family: 'EB Garamond', serif;
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 500;
    color: var(--dark);
    white-space: nowrap;
    text-align: center;
}

.ornament-line {
    flex: 1;
    height: 1px;
    max-width: 200px;
    background: linear-gradient(to right, transparent, var(--gold-lt));
}
.ornament-line:last-child {
    background: linear-gradient(to left, transparent, var(--gold-lt));
}

.section-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
    font-size: 1.15rem;
    color: var(--stone);
    font-style: italic;
}

.subsection-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}
.subsection-title.centered { text-align: center; }

/* ================================================
   GOTTESDIENSTE — TABLE
   ================================================ */
.mass-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line-gold);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.mass-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.05rem;
    background: #fff9f2;
}
.mass-table thead {
    background: var(--stone);
    color: var(--gold-pale);
}
.mass-table thead th {
    padding: 1rem 1.4rem;
    text-align: left;
    font-variant: small-caps;
    font-size: 1rem;
    letter-spacing: 0.08em;
    font-weight: 500;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.mass-table thead th:last-child { border-right: none; }

.mass-table tbody tr {
    border-bottom: 1px solid var(--line);
    transition: background var(--transition);
}
.mass-table tbody tr:last-child { border-bottom: none; }
.mass-table tbody tr:hover { background: var(--gold-pale); }

.mass-table tbody td {
    padding: 0.85rem 1.4rem;
    vertical-align: middle;
    border-right: 1px solid var(--line);
}
.mass-table tbody td:last-child { border-right: none; }

.highlight-row td {
    background: rgba(154,120,48,0.06);
}
.highlight-row:hover td {
    background: var(--gold-pale) !important;
}

.day-col   { font-weight: 600; color: var(--stone); min-width: 100px; }
.time-col  { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 500; min-width: 110px; }

.mass-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--gold-pale);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
}
.cross-small {
    font-size: 1.3rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}
.mass-note p { font-style: italic; color: var(--stone); font-size: 1rem; }

/* ================================================
   GEMEINDE & GESCHICHTE
   ================================================ */
.history-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3.5rem;
    align-items: start;
    margin-bottom: 4rem;
}

.history-text p {
    color: var(--stone);
    font-size: 1.1rem;
    margin-bottom: 1.1rem;
}

.history-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fact-card {
    background: #fff9f2;
    border: 1px solid var(--line-gold);
    border-radius: 4px;
    padding: 1.1rem 1.4rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.fact-icon {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 0.3rem;
}
.fact-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-lt);
    font-variant: small-caps;
}
.fact-value {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* Timeline */
.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    margin-top: 2.5rem;
}
.tl-item {
    border-left: 3px solid var(--gold);
    padding-left: 1.2rem;
}
.tl-year {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.4rem;
}
.tl-text {
    font-size: 0.97rem;
    color: var(--stone);
    line-height: 1.55;
}

/* ================================================
   KIRCHENMUSIK
   ================================================ */
.music-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.music-card {
    background: #fff9f2;
    border: 1px solid var(--line-gold);
    border-top: 3px solid var(--gold);
    border-radius: 4px;
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}
.music-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.music-card-icon {
    font-size: 2.4rem;
    color: var(--gold);
    margin-bottom: 0.8rem;
}
.music-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.9rem;
}
.music-card p {
    font-size: 1.0rem;
    color: var(--stone);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}
.music-card-detail {
    font-size: 0.9rem !important;
    background: var(--gold-pale);
    border-radius: 3px;
    padding: 0.5rem 0.8rem;
    color: var(--stone) !important;
}

/* ================================================
   RÄUME & VERANSTALTUNGEN
   ================================================ */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.room-card {
    background: var(--parchment);
    border: 1px solid var(--line-gold);
    border-radius: 4px;
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-sm);
}

.room-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.7rem;
}
.room-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.6rem;
}
.room-details {
    list-style: none;
}
.room-details li {
    font-size: 0.97rem;
    color: var(--stone);
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--line);
}
.room-details li:last-child { border-bottom: none; }

.room-booking {
    text-align: center;
    background: var(--gold-pale);
    border: 1px solid var(--line-gold);
    border-radius: 4px;
    padding: 2rem;
}
.room-booking p {
    font-size: 1.1rem;
    color: var(--stone);
    font-style: italic;
    margin-bottom: 1.2rem;
}

/* ================================================
   KONTAKT
   ================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.contact-block-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line-gold);
    font-variant: small-caps;
    letter-spacing: 0.06em;
}

.contact-lines { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-line {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}
.contact-icon {
    font-size: 1.2rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-line div {
    font-size: 0.97rem;
    color: var(--stone);
    line-height: 1.6;
}

/* Hours table in contact */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--line); }
.hours-table tr:last-child { border-bottom: none; }
.hours-day  { padding: 0.55rem 0; font-weight: 500; color: var(--stone); font-size: 0.97rem; min-width: 130px; }
.hours-time { padding: 0.55rem 0; color: var(--dark); font-size: 0.97rem; text-align: right; }
.closed-row .hours-time { color: var(--stone-lt); font-style: italic; }

/* Team list in contact */
.team-list { display: flex; flex-direction: column; gap: 1rem; }
.team-person {
    display: flex;
    gap: 0.9rem;
    align-items: center;
}
.team-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--stone);
    color: var(--parchment);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}
.team-person strong { font-size: 0.97rem; color: var(--dark); display: block; }
.team-role { font-size: 0.85rem; color: var(--stone-lt); }

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--dark);
    color: var(--parchment-dk);
    padding: 70px 0 0;
    position: relative;
    text-align: left;
}

.footer-cross {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: var(--gold);
    line-height: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-section h4 {
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    font-variant: small-caps;
    letter-spacing: 0.1em;
    color: var(--gold-lt);
    margin-bottom: 1.1rem;
}
.footer-section p {
    font-size: 0.93rem;
    color: rgba(245,237,224,0.65);
    line-height: 1.7;
}
.footer-section ul li { margin-bottom: 0.55rem; }
.footer-section ul li a {
    font-size: 0.93rem;
    color: rgba(245,237,224,0.65);
    transition: color var(--transition);
}
.footer-section ul li a:hover { color: var(--gold-lt); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    font-size: 0.85rem;
    color: rgba(245,237,224,0.4);
}
.footer-bottom a { color: rgba(245,237,224,0.5); }
.footer-bottom a:hover { color: var(--gold-lt); }
.footer-links { display: flex; gap: 1.5rem; }

/* ================================================
   DISCLAIMER BANNER
   ================================================ */
.escape-disclaimer {
    background: #1e1810;
    border-top: 2px solid var(--gold);
    padding: 0.9rem 1.5rem;
    font-size: 0.8rem;
    color: rgba(245,237,224,0.6);
    font-family: 'EB Garamond', serif;
}
.escape-disclaimer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.disclaimer-cross {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--gold);
}
.escape-disclaimer a { color: var(--gold-lt); }
.escape-disclaimer a:hover { color: var(--parchment); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .history-grid      { grid-template-columns: 1fr; }
    .history-sidebar   { flex-direction: row; flex-wrap: wrap; }
    .fact-card         { flex: 1 1 140px; }
    .timeline-grid     { grid-template-columns: repeat(2, 1fr); }
    .footer-grid       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
    .music-cards    { grid-template-columns: 1fr; }
    .rooms-grid     { grid-template-columns: 1fr; }
    .contact-grid   { grid-template-columns: 1fr; }
    .timeline-grid  { grid-template-columns: 1fr; }

    .header.scrolled .nav-menu.open { top: var(--header-h); }
}

@media (max-width: 700px) {
    .header-inner { position: relative; flex-wrap: wrap; }
    .parallax-kirche { height: 280px; }
    .parallax-stats  { gap: 2.5rem; }
    .brand-name   { font-size: 1.15rem; }

    .menu-toggle { display: flex; }

    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--parchment);
        border-top: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        padding: 1rem 0;
        z-index: 800;
    }
    .nav-menu.open { display: flex; }
    .nav-link {
        padding: 0.8rem 2rem;
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
        width: 100%;
    }
    .nav-link.active,
    .nav-link:hover {
        border-left-color: var(--gold);
        border-bottom-color: transparent;
    }

    .mass-table thead th,
    .mass-table tbody td { padding: 0.7rem 0.9rem; font-size: 0.9rem; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
