/* ==========================================================
   MOHAWK - Stammesseite
   VINTAGE Wild-West Look · alte Notizen auf Holz & Pergament
   (bewusst un-modern: Holztype, Sepia, Doppelrahmen, kein Blur)
   ========================================================== */

:root {
    --wood:       #241910;   /* dunkles Holz / Hintergrund */
    --wood-2:     #2f2114;
    --wood-dark:  #190f08;
    --leather:    #6b4423;
    --leather-2:  #855425;
    --paper:      #e9dab4;   /* Pergament */
    --paper-2:    #ded0a6;
    --paper-edge: #c9b582;
    --ink:        #3a2b18;   /* Sepia-Tinte (Text auf Pergament) */
    --ink-soft:   #6a543a;
    --cream:      #ecdfc2;   /* Text auf dunklem Holz */
    --cream-soft: #c2ad84;
    --gold:       #b08d2e;   /* gedämpftes Altgold */
    --gold-deep:  #8a6e22;
    --barn:       #9c3b22;   /* Barn-Red / verblasstes Rot */
    --barn-soft:  #c2603f;
    --line:       #57411f;
    --shadow:     0 10px 26px rgba(0,0,0,.5);

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14' viewBox='0 0 48 14'%3E%3Cg fill='none' stroke='%23b08d2e' stroke-width='1.4'%3E%3Cpath d='M0 7 L6 1 L12 7 L6 13 Z'/%3E%3Cpath d='M12 7 L18 1 L24 7 L18 13 Z'/%3E%3Cpath d='M24 7 L30 1 L36 7 L30 13 Z'/%3E%3Cpath d='M36 7 L42 1 L48 7 L42 13 Z'/%3E%3C/g%3E%3Cg fill='%23b08d2e'%3E%3Ccircle cx='6' cy='7' r='1.1'/%3E%3Ccircle cx='18' cy='7' r='1.1'/%3E%3Ccircle cx='30' cy='7' r='1.1'/%3E%3Ccircle cx='42' cy='7' r='1.1'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
    background:
        linear-gradient(rgba(20,12,6,.5), rgba(20,12,6,.5)),
        repeating-linear-gradient(90deg, #241810 0 3px, #271b11 3px 6px),
        linear-gradient(var(--wood-2), var(--wood));
    background-attachment: fixed;
    color: var(--cream);
    font-family: 'EB Garamond', 'Georgia', 'Times New Roman', serif;
    font-size: 19px;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--barn-soft); }

h1, h2, h3, h4 { font-family: 'Rye', 'Georgia', serif; color: var(--gold); margin-top: 0; line-height: 1.25; font-weight: 400; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; width: 100%; }
.muted { color: var(--cream-soft); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 14px; z-index: 200; }
.skip-link:focus { left: 0; }

.tribal-band { height: 14px; background-image: var(--band); background-repeat: repeat-x; opacity: .9; }

/* ===========================================================
   HEADER  — Holzbalken mit eingebranntem Schild
   =========================================================== */
.site-header {
    position: sticky; top: 0; z-index: 60;
    background:
        linear-gradient(rgba(25,15,8,.4), rgba(25,15,8,.4)),
        repeating-linear-gradient(90deg, #2c1d11 0 4px, #311f12 4px 8px);
    border-bottom: 3px solid var(--leather);
    box-shadow: 0 4px 0 #1a1109, 0 10px 22px rgba(0,0,0,.5);
}
.site-header.scrolled { box-shadow: 0 4px 0 #1a1109, 0 12px 26px rgba(0,0,0,.65); }
.header-inner { max-width: 1080px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--gold); }
.brand-emblem { display: flex; color: var(--gold); filter: drop-shadow(0 1px 0 #000); }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-text { font-family: 'Rye', serif; font-size: 1.7rem; letter-spacing: 2px; color: var(--gold); text-shadow: 1px 1px 0 #3a2510; }
.brand-sub { font-family: 'Special Elite', 'Courier New', monospace; font-size: .68rem; letter-spacing: 1px; color: var(--cream-soft); margin-top: 4px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    padding: 8px 13px; color: var(--cream); font-family: 'Special Elite', 'Courier New', monospace;
    font-size: .82rem; letter-spacing: .5px; border: 1px solid transparent;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a.active { color: var(--gold); border-bottom: 2px solid var(--gold); }
.main-nav .nav-cta { border: 1px solid var(--gold); color: var(--gold); background: rgba(176,141,46,.1); }
.main-nav .nav-cta:hover { background: var(--gold); color: var(--wood-dark); }
.main-nav .nav-ghost { color: var(--barn-soft); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--gold); transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===========================================================
   CONTENT / SECTIONS
   =========================================================== */
.content { flex: 1; width: 100%; }
.section { max-width: 1080px; margin: 0 auto; padding: 52px 22px; }
.section-tight { padding-top: 26px; }

.page-head { max-width: 1080px; margin: 0 auto; padding: 50px 22px 6px; text-align: center; }
.page-head .eyebrow, .hero .eyebrow {
    display: inline-block; font-family: 'Special Elite', monospace; letter-spacing: 4px;
    font-size: .72rem; color: var(--barn-soft); text-transform: uppercase; margin-bottom: 12px;
}
.page-head h1 { font-family: 'Rye', serif; font-size: clamp(2rem, 4.5vw, 3.1rem); color: var(--gold); text-shadow: 2px 2px 0 #2a1a0c; }
.page-head .lead { color: var(--cream-soft); font-style: italic; font-size: 1.12rem; max-width: 640px; margin: 10px auto 0; }
.divider-mark { width: 150px; height: 14px; background-image: var(--band); background-repeat: repeat-x; background-position: center; opacity: .85; margin: 18px auto 0; }

.section-title {
    font-family: 'Rye', serif; font-size: 1.5rem; color: var(--gold);
    display: flex; align-items: center; gap: 14px; margin: 0 0 24px; text-shadow: 1px 1px 0 #2a1a0c;
}
.section-title::before { content: '✶'; color: var(--barn); font-size: 1rem; }
.section-title::after { content: ''; flex: 1; height: 2px; background: var(--band); background-repeat: repeat-x; opacity: .5; }

/* ===========================================================
   HERO  — großes Holzschild / Steckbrief
   =========================================================== */
.hero {
    position: relative; text-align: center; padding: clamp(64px,10vw,108px) 22px clamp(54px,8vw,92px);
    background:
        linear-gradient(rgba(24,15,8,.74), rgba(20,12,6,.9)),
        repeating-linear-gradient(90deg, #34230f 0 7px, #2c1d0d 7px 14px);
    border-bottom: 4px double var(--leather);
}
.hero::after {
    content: ''; position: absolute; inset: 18px; border: 2px double var(--gold); opacity: .35; pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.hero h1 {
    font-family: 'Rye', serif; font-size: clamp(2.6rem, 7vw, 4.8rem); color: var(--gold);
    text-shadow: 3px 3px 0 #1c1107, 0 0 1px #000; margin: 0; letter-spacing: 1px;
}
.hero p { color: var(--cream); font-size: clamp(1.05rem,2.3vw,1.35rem); font-style: italic; margin: 14px auto 0; max-width: 600px; }
.hero .divider-mark { margin: 24px auto 28px; width: 220px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===========================================================
   BUTTONS — gestanzte Holz-/Leder-Schilder
   =========================================================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(180deg, var(--leather-2), #4a2f17);
    color: var(--cream); border: 2px solid var(--gold); border-radius: 3px;
    padding: 11px 24px; font-family: 'Special Elite', monospace; font-size: .85rem;
    letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.3), 0 3px 0 #1c1107; transition: transform .1s, background .15s, color .15s;
}
.btn:hover { background: var(--gold); color: var(--wood-dark); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 0 0 1px rgba(0,0,0,.3), 0 1px 0 #1c1107; }
.btn-turq { background: linear-gradient(180deg, var(--barn-soft), #7c2e1a); border-color: var(--barn-soft); color: #f6e7df; }
.btn-turq:hover { background: var(--barn); color: #fff; }
.btn-ghost { background: transparent; box-shadow: 0 3px 0 #1c1107; }
.btn-ghost:hover { background: rgba(176,141,46,.15); color: var(--gold); }
.btn-sm { padding: 6px 14px; font-size: .72rem; }
.btn-danger { background: linear-gradient(180deg, var(--barn), #6f2415); border-color: var(--barn); color: #f6ddd4; }
.btn-danger:hover { background: var(--barn-soft); color: #fff; }

/* ===========================================================
   PANELS / CARDS — Pergament auf Holz, angepinnt
   =========================================================== */
.panel, .card {
    position: relative;
    background-color: var(--paper);
    background-image: var(--grain), linear-gradient(160deg, var(--paper) 0%, var(--paper-2) 100%);
    background-blend-mode: multiply, normal;
    border: 1px solid var(--paper-edge);
    border-radius: 2px;
    color: var(--ink);
    padding: 22px 24px;
    box-shadow: var(--shadow), inset 0 0 30px rgba(120,90,40,.12);
}
.panel::before, .card::before {
    content: ''; position: absolute; inset: 5px; border: 1px solid rgba(90,65,31,.4); border-radius: 1px; pointer-events: none;
}
.panel h1, .panel h2, .panel h3, .panel h4,
.card h1, .card h2, .card h3, .card h4 { color: var(--barn); text-shadow: none; }
.panel a, .card a { color: var(--barn); }
.panel .section-title, .card .section-title { color: var(--ink); }
.panel .section-title::after, .card .section-title::after { opacity: .35; }
.card { transition: transform .12s, box-shadow .15s; }
a.card { color: var(--ink); display: block; }
a.card:hover, .card.hoverable:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.55); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 2fr 1fr; align-items: start; }
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* News / Schwarzes Brett — angepinnte Zettel */
.news-feed { display: grid; gap: 22px; }
.news-card { border-top: 3px double var(--barn); padding-top: 26px; }
.news-card::after {
    content: '✜'; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
    color: var(--barn); font-size: 1.2rem;
}
.news-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.news-card .meta { color: var(--ink-soft); font-size: .82rem; font-family: 'Special Elite', monospace; display: flex; gap: 10px; align-items: center; }
.news-card .meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--barn); display: inline-block; }
.news-body { margin: 12px 0 0; white-space: pre-line; }

/* Sidebar */
.aside-event { padding: 14px 0; border-bottom: 1px dashed var(--paper-edge); display: flex; gap: 12px; }
.aside-event:last-child { border-bottom: none; }
.aside-badge { flex: 0 0 48px; height: 54px; text-align: center; background: var(--leather); border: 1px solid var(--gold-deep); border-radius: 2px; display: flex; flex-direction: column; justify-content: center; }
.aside-badge .d { font-family: 'Rye', serif; font-size: 1.3rem; color: var(--cream); line-height: 1; }
.aside-badge .m { font-family: 'Special Elite', monospace; font-size: .6rem; color: var(--cream-soft); text-transform: uppercase; }
.aside-event .info strong { display: block; color: var(--ink); }
.aside-event .info .meta { color: var(--ink-soft); font-size: .82rem; }

/* ===========================================================
   MITGLIEDER
   =========================================================== */
.member-card { text-align: center; padding-top: 26px; }
.member-photo-wrap { width: 128px; height: 128px; margin: 0 auto 16px; }
.member-photo {
    width: 128px; height: 128px; object-fit: cover; border-radius: 50%;
    border: 4px solid var(--leather); box-shadow: 0 0 0 3px var(--paper-edge); background: var(--wood);
}
.member-photo.placeholder { display: flex; align-items: center; justify-content: center; font-family: 'Rye', serif; font-size: 2.5rem; color: var(--leather-2); background: radial-gradient(circle, #d8c79e, #c7b487); }
.member-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.rank-badge { display: inline-block; background: var(--barn); color: #f6e7df; border: 1px solid #6f2415; border-radius: 2px; padding: 3px 14px; font-family: 'Special Elite', monospace; font-size: .68rem; letter-spacing: 1px; text-transform: uppercase; }
.member-role { color: var(--ink-soft); font-style: italic; margin: 8px 0 4px; }

/* ===========================================================
   TERMINE
   =========================================================== */
.timeline { display: grid; gap: 16px; }
.event-row { display: flex; gap: 20px; align-items: stretch; }
.event-date { flex: 0 0 86px; text-align: center; padding: 10px 6px; background: var(--leather); border: 1px solid var(--gold-deep); border-radius: 2px; display: flex; flex-direction: column; justify-content: center; }
.event-date .day { font-family: 'Rye', serif; font-size: 1.9rem; color: var(--cream); line-height: 1; }
.event-date .mon { font-family: 'Special Elite', monospace; font-size: .66rem; letter-spacing: 1px; color: var(--cream-soft); text-transform: uppercase; margin-top: 4px; }
.event-body { flex: 1; }
.event-body h3 { font-size: 1.2rem; margin-bottom: 4px; }
.event-body .meta { color: var(--barn); font-family: 'Special Elite', monospace; font-size: .8rem; margin-bottom: 6px; }
.event-row.past { opacity: .6; }

/* ===========================================================
   GALERIE
   =========================================================== */
.gallery-grid { columns: 3 250px; column-gap: 16px; }
.gallery-item {
    break-inside: avoid; margin: 0 0 16px; overflow: hidden; cursor: zoom-in; position: relative;
    border: 6px solid var(--paper); border-radius: 2px; box-shadow: var(--shadow);
    outline: 1px solid var(--paper-edge);
}
.gallery-item img { width: 100%; display: block; filter: sepia(.18) saturate(.92); transition: filter .3s; }
.gallery-item:hover img { filter: sepia(0) saturate(1); }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px; background: linear-gradient(transparent, rgba(20,12,6,.9)); color: var(--cream); font-family: 'Special Elite', monospace; font-size: .78rem; }

.lightbox { position: fixed; inset: 0; z-index: 120; display: none; background: rgba(15,9,4,.94); align-items: center; justify-content: center; padding: 30px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border: 8px solid var(--paper); border-radius: 2px; box-shadow: var(--shadow); }
.lightbox .lb-cap { position: absolute; bottom: 20px; color: var(--gold); font-style: italic; }
.lightbox .lb-close { position: absolute; top: 16px; right: 24px; font-size: 2.4rem; color: var(--gold); line-height: 1; }

/* ===========================================================
   REGELN
   =========================================================== */
.about-panel { text-align: center; }
.about-panel p { white-space: pre-line; font-size: 1.12rem; max-width: 720px; margin: 0 auto; color: var(--ink); }
.rules-list { list-style: none; padding: 0; margin: 0; counter-reset: r; display: grid; gap: 12px; }
.rules-list li {
    counter-increment: r; position: relative; padding: 16px 18px 16px 64px; color: var(--ink);
    background-color: var(--paper); background-image: var(--grain); background-blend-mode: multiply;
    border: 1px solid var(--paper-edge); border-radius: 2px; box-shadow: var(--shadow);
}
.rules-list li::before {
    content: counter(r); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%; background: var(--barn); color: #f6e7df;
    font-family: 'Rye', serif; display: flex; align-items: center; justify-content: center; font-size: .95rem;
    border: 2px solid #6f2415;
}

/* ===========================================================
   FORMULARE
   =========================================================== */
label { display: block; margin: 14px 0 5px; color: var(--ink); font-family: 'Special Elite', monospace; font-size: .78rem; letter-spacing: .5px; }
.panel label, .card label { color: var(--ink); }
input[type=text], input[type=password], input[type=date], input[type=time],
input[type=file], input[type=email], textarea, select {
    width: 100%; padding: 11px 13px; background: #f3e8cc; border: 1px solid var(--paper-edge);
    border-radius: 2px; color: var(--ink); font-family: inherit; font-size: 1rem;
}
input::placeholder, textarea::placeholder { color: #9a865f; }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--barn); box-shadow: 0 0 0 2px rgba(156,59,34,.25); }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row > div { flex: 1; min-width: 160px; }
.form-actions { margin-top: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
small { color: var(--ink-soft) !important; }

/* ===========================================================
   ADMIN
   =========================================================== */
.admin-grid { display: grid; gap: 24px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
.admin-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.admin-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--paper-edge); border-radius: 2px; background: #f1e6c9; color: var(--ink); }
.admin-list .item-main { flex: 1; min-width: 0; }
.admin-list .item-main strong { color: var(--ink); }
.admin-list .item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.inline-form { display: inline; }
.stat-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 30px; }
.stat-card { text-align: center; padding: 22px; }
.stat-card .num { font-family: 'Rye', serif; font-size: 2.5rem; color: var(--barn); line-height: 1; }
.stat-card .lbl { color: var(--ink-soft); font-family: 'Special Elite', monospace; font-size: .76rem; letter-spacing: 1px; margin-top: 6px; text-transform: uppercase; }

/* ===========================================================
   FLASH
   =========================================================== */
.flashes { padding-top: 22px; }
.flash { padding: 13px 18px; border-radius: 2px; margin-bottom: 10px; border: 1px solid; font-family: 'Special Elite', monospace; font-size: .9rem; }
.flash-success { background: #e3ddb6; border-color: var(--gold-deep); color: #5a4a14; }
.flash-error { background: #ecd2c6; border-color: var(--barn); color: #7c2e1a; }

/* Login */
.login-box { max-width: 400px; margin: 0 auto; }
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 62vh; padding: 40px 22px; }
.login-box .emblem { text-align: center; color: var(--barn); margin-bottom: 6px; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { margin-top: 44px; background: var(--wood-dark); border-top: 3px solid var(--leather); }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 38px 22px 30px; display: grid; gap: 30px; grid-template-columns: 2fr 1fr 1fr; }
.footer-col h4 { font-family: 'Special Elite', monospace; font-size: .85rem; color: var(--gold); margin-bottom: 12px; letter-spacing: 1px; text-transform: uppercase; }
.footer-col a { display: block; color: var(--cream-soft); padding: 3px 0; font-size: .95rem; }
.footer-col a:hover { color: var(--gold); }
.footer-brand .brand-text { font-family: 'Rye', serif; font-size: 1.7rem; color: var(--gold); }
.footer-brand p { color: var(--cream-soft); font-style: italic; max-width: 320px; margin: 10px 0 0; }
.footer-col p { margin: 4px 0; color: var(--cream-soft); }

/* statisch, kein modernes Einblenden */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: 62px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
        background: #20140b; border-bottom: 3px solid var(--leather); padding: 8px 16px 16px;
        transform: translateY(-130%); transition: transform .25s ease; box-shadow: var(--shadow);
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav a { padding: 13px 10px; border-bottom: 1px solid #3a2916; }
    .main-nav a.active { border-bottom: 1px solid var(--gold); }
    .admin-grid { grid-template-columns: 1fr; }
    .section { padding: 38px 18px; }
    .gallery-grid { columns: 2 150px; }
    body { font-size: 18px; }
}
@media (max-width: 460px) {
    .gallery-grid { columns: 1; }
    .event-row { flex-direction: column; }
    .footer-inner { grid-template-columns: 1fr; }
}
