:root {
    --bg: #525158;
    --text: #e8e4df;
    --text-muted: #a09a92;
    --accent: #FFCE00;
    --border: rgba(255, 255, 255, 0.1);
    --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(960px, calc(100% - 48px));
    margin: 0 auto;
}

/* ═══════════════════════════════
   NAVBAR
   ═══════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--bg);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
}

.nav-link {
    font-size: 1.55rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    color: var(--text);
    transition: color 0.4s;
    min-width: 100px;
}

.nav-link:first-child {
    text-align: left;
}

.nav-link:last-child {
    text-align: right;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

/* ═══════════════════════════════
   TICKER — kesintisiz kayan yazı
   ═══════════════════════════════ */
.ticker {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    white-space: nowrap;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 18s linear infinite;
    will-change: transform;
}

.ticker-track span {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════
   PAGE CONTENT AREA
   ═══════════════════════════════ */
.page-content {
    padding: 60px 0;
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.page-content.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════
   HERO SLIDESHOW
   ═══════════════════════════════ */
.hero-slideshow {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 7;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 48px;
    background: #1a1a18;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
}

/* ═══════════════════════════════
   HOME — Footer Text
   ═══════════════════════════════ */
.home-footer-text {
    margin-top: 48px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.home-footer-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 640px;
    margin: 0 auto 14px;
}

.home-footer-text p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════
   MENU — Links
   ═══════════════════════════════ */
.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    margin-bottom: 48px;
    width: 100%;
}

.menu-list li {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s;
}

.menu-list li:first-child {
    border-top: 1px solid var(--border);
}

.menu-list li:hover {
    background-color: #3f444b;
}

.menu-list li a {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--text);
    transition: color 0.3s;
    padding: 16px 24px;
    display: block;
    text-align: center;
}

.menu-list li a:hover {
    color: var(--accent);
}

/* ═══════════════════════════════
   SUB PAGES — Generic
   ═══════════════════════════════ */
.page-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    margin-bottom: 16px;
    color: var(--text);
}

.page-text {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
}

/* ═══════════════════════════════
   TEXTE — Literatur / Beiträge
   ═══════════════════════════════ */
.page-content[data-page="texte"] {
    text-align: left;
    align-items: flex-start;
}

.texte-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    margin-top: 24px;
}

.text-entry {
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.text-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.text-entry-title {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 400;
    color: var(--text);
    margin-bottom: 20px;
}

.text-entry-body p {
    font-family: var(--font-serif);
    font-size: 1rem;
    line-height: 2;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.text-entry-body p:last-child {
    margin-bottom: 0;
}

.text-entry-meta {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

/* ═══════════════════════════════
   FOTOS — Gallery Grid
   ═══════════════════════════════ */
.foto-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 24px;
}

.foto-item {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
}

.foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.foto-item:hover img {
    transform: scale(1.08);
    opacity: 0.85;
}

/* ═══════════════════════════════
   LIGHTBOX
   ═══════════════════════════════ */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    z-index: 1001;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 16px;
    z-index: 1001;
    transition: color 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--accent);
}

.lightbox-prev {
    left: 16px;
}

.lightbox-next {
    right: 16px;
}

/* ═══════════════════════════════
   ORGANIZATION — Über uns + Kontakt
   ═══════════════════════════════ */
.page-content[data-page="organization"] {
    text-align: left;
    align-items: flex-start;
}

.org-section {
    width: 100%;
    margin-bottom: 64px;
}

.org-section:last-child {
    margin-bottom: 0;
}

.org-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--text);
}

.org-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 16px;
}

.org-text p:last-child {
    margin-bottom: 0;
}

.org-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 36px;
}

/* ── Feature Cards ── */
.org-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.org-feature {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.3s;
}

.org-feature:hover {
    border-color: var(--accent);
}

.org-feature h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.org-feature p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ── Contact Info ── */
.org-contact-info {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.contact-block h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.contact-block a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.contact-block a:hover {
    color: var(--accent);
}

.contact-socials {
    display: flex;
    gap: 16px;
}

/* ── Contact Form ── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-btn {
    align-self: flex-start;
    padding: 14px 48px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #1a1a18;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.form-btn:hover {
    background: #e6b800;
    transform: translateY(-1px);
}

.form-btn:active {
    transform: translateY(0);
}

.form-status {
    font-size: 0.9rem;
    min-height: 1.4em;
}

.form-status.success {
    color: #6ecf6e;
}

.form-status.error {
    color: #f06060;
}

/* ═══════════════════════════════
   PROJEKTE — Karten + Detail
   ═══════════════════════════════ */
.page-content[data-page="projekte"],
.page-content[data-page^="projekt-"] {
    text-align: left;
    align-items: flex-start;
}

.projekt-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    width: 100%;
    margin-top: 24px;
}

.projekt-card {
    display: flex;
    gap: 28px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.3s, background 0.3s;
    cursor: pointer;
}

.projekt-card:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.03);
}

.projekt-thumb {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a18;
}

.projekt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projekt-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.projekt-status {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
}

.projekt-status.completed {
    background: rgba(110, 207, 110, 0.15);
    color: #6ecf6e;
}

.projekt-status.active {
    background: rgba(255, 206, 0, 0.15);
    color: var(--accent);
}

.projekt-name {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text);
}

.projekt-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.projekt-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

/* ── Projekt Detail ── */
.projekt-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 28px;
    transition: color 0.3s;
}

.projekt-back:hover {
    color: var(--accent);
}

.projekt-detail {
    width: 100%;
}

.projekt-detail-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.projekt-detail-hero {
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    background: #1a1a18;
}

.projekt-detail-hero img {
    width: 100%;
    height: auto;
}

.projekt-detail-body p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 16px;
}

.projekt-detail-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 12px;
}

.projekt-detail-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.projekt-detail-body ul li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.projekt-detail-body ul li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.projekt-quote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin-bottom: 24px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
}

.projekt-quote cite {
    display: block;
    margin-top: 8px;
    font-size: 0.9rem;
    font-style: normal;
    color: var(--text-muted);
}

/* ═══════════════════════════════
   VERANSTALTUNGEN — Event Karten + Detail
   ═══════════════════════════════ */
.page-content[data-page="veranstaltungen"],
.page-content[data-page^="event-"] {
    text-align: left;
    align-items: flex-start;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
    margin-top: 24px;
}

.event-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s;
    cursor: pointer;
}

.event-card:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.03);
}

.event-img {
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: #1a1a18;
}

.event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-img img {
    transform: scale(1.03);
}

.event-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-date {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.event-name {
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text);
}

.event-excerpt {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.event-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ── Event Detail ── */
.event-detail {
    width: 100%;
}

.event-detail-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.event-detail-hero {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    background: #1a1a18;
}

.event-detail-hero img {
    width: 100%;
    height: auto;
}

.event-detail-body p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 16px;
}

.event-detail-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 12px;
}

.event-detail-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.event-detail-body ul li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.event-detail-body ul li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ═══════════════════════════════
   VIDEOS — YouTube Embeds
   ═══════════════════════════════ */
.video-single {
    width: 100%;
    max-width: 720px;
    margin-top: 24px;
}

.video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 10px;
    overflow: hidden;
    background: #1a1a18;
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ═══════════════════════════════
   SOCIAL MEDIA PAGE
   ═══════════════════════════════ */
.social-cards {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 36px;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-muted);
    transition: color 0.3s, border-color 0.3s;
}

.social-card:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.social-card span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */
.site-footer {
    margin-top: auto;
    padding: 28px 0 36px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
    display: inline-flex;
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 900px) {
    .foto-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 16px 20px;
    }

    .nav-logo img {
        height: 36px;
    }

    .nav-link {
        font-size: 0.85rem;
        min-width: 70px;
    }

    .page-content {
        padding: 40px 0;
        min-height: 40vh;
    }

    .foto-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-slideshow {
        border-radius: 8px;
        margin-bottom: 32px;
    }

    .social-cards {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .org-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .org-contact-info {
        flex-direction: column;
        gap: 24px;
    }

    .projekt-card {
        flex-direction: column;
        gap: 16px;
    }

    .projekt-thumb {
        width: 100%;
        height: 200px;
    }
}
