@font-face{
  font-family:'Forum';
  src:url('fonts/Forum-Regular.woff2') format('woff2');
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Montserrat';
  src:url('fonts/montserrat-400.woff2') format('woff2');
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Montserrat';
  src:url('fonts/montserrat-500.woff2') format('woff2');
  font-weight:500;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Montserrat';
  src:url('fonts/montserrat-600.woff2') format('woff2');
  font-weight:600;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Montserrat';
  src:url('fonts/montserrat-700.woff2') format('woff2');
  font-weight:700;font-style:normal;font-display:swap;
}

:root{
  --green-900:#123a20;
  --green-700:#2f6b3a;
  --gold-600:#c98f24;
  --gold-500:#e8ac3c;
  --gold-300:#f3d791;
  --cream-50:#faf7ee;
  --cream-100:#f3ecd8;
  --terracotta-500:#c8501f;
  --ink:#20281f;
  --ink-soft:#5a6355;
}
*{box-sizing:border-box;}
html,body{height:100%;}
body{margin:0;color:var(--ink);font-family:"Montserrat", system-ui, sans-serif;background:var(--cream-50);}
h1,h2,h3{font-family:"Forum", Georgia, serif;margin:0;font-weight:400;color:var(--green-900);}
a{color:var(--green-700);text-decoration:none;}
a:hover{color:var(--green-900);}
button{font-family:inherit;cursor:pointer;border:none;}

@keyframes fadeUp{
  from{opacity:0;transform:translateY(14px);}
  to{opacity:1;transform:translateY(0);}
}
.fade-in{animation:fadeUp .7s cubic-bezier(.2,.7,.3,1) both;}

/* ---------- Login-Gate ---------- */
.gate-page{
  min-height:100%;display:flex;align-items:center;justify-content:center;padding:48px 20px;
  background:radial-gradient(1100px 620px at 50% -12%, #1c4d29 0%, var(--green-900) 55%, #0d2a17 100%);
}
.gate{
  width:100%;max-width:420px;background:var(--cream-50);border-radius:26px;
  padding:44px 38px 38px;box-shadow:0 40px 80px -30px rgba(0,0,0,.55);
  text-align:center;position:relative;overflow:hidden;
}
.gate::before{
  content:"";position:absolute;top:0;left:0;right:0;height:6px;
  background:linear-gradient(90deg, var(--gold-600), var(--gold-500), var(--gold-300));
}
.gate img.logo{width:112px;height:auto;margin:4px auto 16px;display:block;}
.kicker{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-600);font-weight:600;margin-bottom:6px;}
.gate h1{font-size:28px;margin-bottom:6px;}
.gate .sub{font-size:14px;color:var(--ink-soft);margin-bottom:26px;}
.intro{font-size:14.5px;line-height:1.65;color:var(--ink-soft);text-align:left;background:var(--cream-100);border-radius:16px;padding:16px 18px;margin-bottom:24px;}
.alert{font-size:13.5px;background:#fbe4d9;color:#7a2d0c;border-radius:12px;padding:12px 16px;margin-bottom:18px;text-align:left;}
.field{text-align:left;margin-bottom:16px;}
.field label{display:block;font-size:12.5px;font-weight:600;color:var(--green-900);margin-bottom:7px;}
.field input{
  width:100%;padding:13px 16px;border-radius:14px;border:1.5px solid var(--cream-100);
  background:#fff;font-size:15px;font-family:inherit;color:var(--ink);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.field input:focus{outline:none;border-color:var(--gold-500);box-shadow:0 0 0 4px rgba(232,172,60,.18);}
.consent{display:flex;align-items:flex-start;gap:10px;text-align:left;margin-bottom:20px;}
.consent input{width:18px;height:18px;flex:none;margin-top:2px;border-radius:5px;accent-color:var(--gold-600);}
.consent span{font-size:12.5px;line-height:1.55;color:var(--ink-soft);}
.btn-cta{
  width:100%;background:var(--gold-500);color:var(--green-900);padding:15px 20px;border-radius:999px;
  font-size:15px;font-weight:700;box-shadow:0 14px 26px -12px rgba(18,58,32,.45);
  transition:transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, filter .25s ease;
}
.btn-cta:hover{transform:translateY(-3px);box-shadow:0 18px 32px -12px rgba(18,58,32,.5);filter:brightness(1.05);}
.fine{margin-top:22px;font-size:12.5px;color:var(--ink-soft);line-height:1.6;}
.fine a{font-weight:600;}

/* ---------- Mitgliederbereich ---------- */
.wrap{max-width:1080px;margin:0 auto;padding:0 28px 60px;}
.site-header{display:flex;align-items:center;justify-content:space-between;padding:22px 0;}
.brand{display:flex;align-items:center;gap:16px;}
.brand img{width:68px;height:auto;display:block;}
.brand-text .kicker{margin-bottom:2px;}
.brand-text h1{font-size:20px;}
.header-actions{display:flex;align-items:center;gap:10px;}
.btn-secondary{
  background:var(--cream-100);color:var(--green-900);padding:10px 20px;border-radius:999px;font-size:13.5px;font-weight:600;
  transition:transform .2s ease, background .2s ease;display:inline-flex;align-items:center;gap:7px;
}
.btn-secondary:hover{transform:translateY(-2px);background:#fff;color:var(--green-900);}
.btn-logout{
  background:var(--green-900);color:var(--cream-50);padding:10px 20px;border-radius:999px;font-size:13.5px;font-weight:600;
  transition:transform .2s ease, background .2s ease;
}
.btn-logout:hover{transform:translateY(-2px);background:var(--green-700);color:#fff;}

.hero{
  position:relative;overflow:hidden;border-radius:28px;padding:48px 44px 36px;color:var(--cream-50);
  background:linear-gradient(160deg, var(--green-900) 0%, #1c4d29 62%, var(--green-700) 100%);
  box-shadow:0 30px 60px -30px rgba(18,58,32,.55);margin-bottom:8px;
}
.hero-eyebrow{
  display:inline-flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.14em;text-transform:uppercase;
  font-weight:600;color:var(--gold-300);border:1px solid rgba(243,215,145,.35);padding:6px 14px;border-radius:999px;margin-bottom:20px;
}
.hero-eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--gold-500);}
.hero h2{color:#fff;font-size:36px;line-height:1.15;max-width:640px;}
.hero .date{color:var(--gold-300);}
.hero p{margin:16px 0 26px;font-size:16px;line-height:1.6;color:rgba(250,247,238,.85);max-width:520px;}
.hero-meta{font-size:14px;color:rgba(250,247,238,.7);}
.hero-meta strong{color:var(--gold-300);font-weight:600;}

.section{padding:56px 0 8px;}
.section-head{display:flex;flex-direction:column;gap:8px;margin-bottom:30px;max-width:620px;}
.section-head .kicker{font-weight:700;}
.section-head h3{font-size:28px;position:relative;display:inline-block;padding-bottom:12px;}
.section-head h3::after{content:"";position:absolute;left:0;bottom:0;width:52px;height:3px;border-radius:3px;background:var(--gold-500);}
.section-head p{margin:0;color:var(--ink-soft);font-size:15.5px;line-height:1.6;}

.section-head-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;}
.view-toggle{display:inline-flex;background:var(--cream-100);border-radius:999px;padding:4px;gap:2px;flex:none;}
.view-btn{
  width:36px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:999px;
  background:transparent;color:var(--ink-soft);transition:background .2s ease, color .2s ease;
}
.view-btn:hover{color:var(--green-900);}
.view-btn[aria-pressed="true"]{background:#fff;color:var(--green-900);box-shadow:0 2px 6px -2px rgba(18,58,32,.2);}

.grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));gap:18px;}
.tile{
  background:#fff;border-radius:20px;padding:22px 20px;display:flex;flex-direction:column;gap:12px;
  box-shadow:0 2px 6px -2px rgba(18,58,32,.12), 0 14px 28px -18px rgba(18,58,32,.22);
  transition:transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s cubic-bezier(.2,.7,.3,1), outline-color .15s ease;
  outline:2px dashed transparent;outline-offset:3px;
}
.tile:hover{transform:translateY(-6px);box-shadow:0 4px 10px -2px rgba(18,58,32,.16), 0 24px 38px -18px rgba(18,58,32,.3);}
.tile.drag-over{outline-color:var(--gold-500);background:var(--gold-100, #faeecb);}
.tile.uploading{opacity:.6;pointer-events:none;}
.avatar{
  width:96px;height:96px;border-radius:24px;display:flex;align-items:center;justify-content:center;
  color:#fff;font-family:"Forum", serif;font-size:32px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
  overflow:hidden;flex:none;
}
.avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.tile .name{font-size:16px;font-weight:600;color:var(--green-900);}
.tile .ort{font-size:13.5px;color:var(--ink-soft);}
.status{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--ink-soft);}
.status .dot{width:7px;height:7px;border-radius:50%;}

/* Listenansicht */
.grid.view-list{display:flex;flex-direction:column;gap:10px;}
.grid.view-list .tile{
  flex-direction:row;align-items:center;padding:12px 18px;border-radius:14px;gap:14px;
}
.grid.view-list .tile-info{flex:1;display:flex;align-items:baseline;gap:10px;}
.grid.view-list .tile .ort{font-size:12.5px;}
.grid.view-list .avatar{width:38px;height:38px;font-size:13px;border-radius:11px;}
.grid.view-list .status{flex:none;}

.memorial-panel{background:var(--cream-100);border-radius:24px;padding:12px 6px;}
.memorial-row{
  display:flex;align-items:center;gap:16px;padding:16px 22px;border-bottom:1px solid var(--gold-300);
  position:relative;outline:2px dashed transparent;outline-offset:3px;border-radius:14px;transition:outline-color .15s ease;
}
.memorial-row:last-child{border-bottom:none;}
.memorial-row.drag-over{outline-color:var(--gold-500);}
.memorial-row.uploading{opacity:.6;pointer-events:none;}
.memorial-row .leaf{width:20px;height:20px;flex:none;color:var(--gold-600);}
.memorial-row .name{font-family:"Forum", serif;font-size:17px;color:var(--green-900);}
.memorial-row .ort{font-size:13px;color:var(--ink-soft);margin-left:auto;}
.m-avatar{
  width:44px;height:44px;border-radius:12px;flex:none;display:flex;align-items:center;justify-content:center;
  background:var(--cream-50);color:var(--gold-600);overflow:hidden;
}
.m-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.m-avatar .leaf{width:20px;height:20px;}

/* ---------- Standort-Navigation ---------- */
.site-nav{
  display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px;padding:6px;
  background:var(--cream-100);border-radius:999px;
}
.site-nav-link{
  padding:10px 18px;border-radius:999px;font-size:13.5px;font-weight:600;color:var(--ink-soft);
  transition:background .2s ease, color .2s ease;
  text-transform:uppercase;letter-spacing:.03em;
}
.site-nav-link:hover{color:var(--green-900);background:rgba(255,255,255,.6);}
.site-nav-link.active{background:var(--green-900);color:#fff;}

/* ---------- Startseite: Zähler ---------- */
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(170px, 1fr));gap:18px;}
.stat-tile{
  background:#fff;border-radius:22px;padding:30px 24px;text-align:center;
  box-shadow:0 2px 6px -2px rgba(18,58,32,.12), 0 14px 28px -18px rgba(18,58,32,.22);
}
.stat-tile .num{font-family:"Forum", serif;font-size:42px;color:var(--green-900);line-height:1.1;}
.stat-tile .label{margin-top:8px;font-size:13px;color:var(--ink-soft);letter-spacing:.03em;}

.empty-note{font-size:14px;color:var(--ink-soft);padding:20px 4px;}

/* ---------- Startseite: Plakat-Bereich ---------- */
.poster-frame{display:flex;justify-content:center;}
.poster-frame img{
  max-width:480px;width:100%;height:auto;border-radius:20px;
  box-shadow:0 2px 6px -2px rgba(18,58,32,.14), 0 24px 48px -24px rgba(18,58,32,.32);
}

footer{margin-top:72px;padding:28px 0 40px;border-top:1px solid var(--gold-300);font-size:13px;color:var(--ink-soft);}
.site-footer-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px 18px;}
.footer-credit{text-align:right;}
.footer-credit a{color:var(--green-900);font-weight:600;text-decoration:none;}
.footer-credit a:hover{text-decoration:underline;}
@media (max-width:600px){
  .site-footer-inner{flex-direction:column;align-items:flex-start;gap:4px;}
  .footer-credit{text-align:left;}
}

/* ---------- Frohnleiten-Seite ---------- */
.town-hero{
  position:relative;overflow:hidden;border-radius:0;padding:88px 44px 76px;color:var(--cream-50);
  background:linear-gradient(155deg, var(--green-900) 0%, #1c4d29 58%, var(--terracotta-500) 145%);
  box-shadow:0 30px 60px -30px rgba(18,58,32,.55);margin-bottom:8px;
  min-height:360px;display:flex;flex-direction:column;justify-content:center;
}
.town-hero h2{color:#fff;font-size:38px;line-height:1.1;max-width:640px;}
.town-hero p{margin:16px 0 0;font-size:16px;line-height:1.65;color:rgba(250,247,238,.88);max-width:560px;}
.town-hero.has-cover{background-size:cover;background-position:center;min-height:440px;}
/* Ohne farbigen Verlaufs-Layer über dem Titelbild: Lesbarkeit über Textschatten statt Farb-Overlay */
.town-hero.has-cover .hero-eyebrow{text-shadow:0 2px 10px rgba(0,0,0,.55);border-color:rgba(255,255,255,.45);}
.town-hero.has-cover h2,
.town-hero.has-cover p,
.town-hero.has-cover .hero-meta{text-shadow:0 2px 16px rgba(0,0,0,.65), 0 1px 4px rgba(0,0,0,.55);}
.town-hero.has-cover .hero-meta strong{text-shadow:0 2px 16px rgba(0,0,0,.65), 0 1px 4px rgba(0,0,0,.55);}

.facts-row{
  display:grid;grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));gap:14px;
  margin-top:30px;
}
.fact-tile{
  background:rgba(255,255,255,.08);border:1px solid rgba(243,215,145,.25);border-radius:16px;
  padding:14px 16px;backdrop-filter:blur(2px);
}
.fact-tile .num{font-family:"Forum", serif;font-size:24px;color:var(--gold-300);line-height:1.2;}
.fact-tile .label{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:rgba(250,247,238,.75);margin-top:3px;}

.timeline{position:relative;padding-left:8px;}
.timeline::before{content:"";position:absolute;left:64px;top:6px;bottom:6px;width:2px;background:var(--gold-300);}
.tl-item{position:relative;display:flex;gap:24px;padding:0 0 26px;}
.tl-item:last-child{padding-bottom:0;}
.tl-year{
  flex:none;width:64px;text-align:right;padding-right:24px;position:relative;
  font-family:"Forum", serif;font-size:17px;color:var(--terracotta-500);line-height:1.5;
}
.tl-year::after{
  content:"";position:absolute;right:-5px;top:6px;width:11px;height:11px;border-radius:50%;
  background:var(--gold-500);box-shadow:0 0 0 4px var(--cream-50);
}
.tl-text{padding-top:1px;font-size:14.5px;line-height:1.6;color:var(--ink-soft);}
.tl-text strong{color:var(--green-900);font-weight:600;}

.sights-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));gap:18px;}
.sight-card{
  background:#fff;border-radius:20px;padding:24px 22px;
  box-shadow:0 2px 6px -2px rgba(18,58,32,.12), 0 14px 28px -18px rgba(18,58,32,.22);
  transition:transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s cubic-bezier(.2,.7,.3,1);
}
.sight-card:hover{transform:translateY(-6px);box-shadow:0 4px 10px -2px rgba(18,58,32,.16), 0 24px 38px -18px rgba(18,58,32,.3);}
.sight-card .icon{
  width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  background:var(--cream-100);color:var(--green-900);margin-bottom:14px;
}
.sight-card h4{font-family:"Forum", serif;font-weight:400;font-size:19px;color:var(--green-900);margin-bottom:8px;}
.sight-card p{margin:0;font-size:13.5px;line-height:1.6;color:var(--ink-soft);}
.sight-card .cover-thumb{
  width:calc(100% + 44px);margin:-24px -22px 16px;display:block;height:150px;object-fit:cover;
  border-radius:20px 20px 0 0;
}

/* Titelbild: volle Breite des Inhaltsbereichs (max-width der .wrap), nicht bildschirmfüllend */
.cover-image{
  width:100%;height:auto;display:block;border-radius:24px;
  box-shadow:0 20px 46px -24px rgba(18,58,32,.4);
}

.gallery-drop{
  border:2px dashed var(--gold-300);border-radius:20px;padding:26px;text-align:center;cursor:pointer;
  color:var(--ink-soft);font-size:14px;margin-bottom:22px;background:var(--cream-100);
  transition:background .2s ease, border-color .2s ease, transform .15s ease;
}
.gallery-drop.drag-over{background:#faeecb;border-color:var(--gold-600);transform:scale(1.005);}
.gallery-drop.uploading{cursor:progress;}
.gallery-drop .icon{color:var(--gold-600);margin-bottom:8px;}
.gallery-drop strong{color:var(--green-900);}

/* Masonry-Layout per CSS-Spalten: Fotos behalten ihr natürliches Seitenverhältnis */
.gallery-grid{
  column-count:1;column-gap:14px;
}
@media (min-width:520px){ .gallery-grid{column-count:2;} }
@media (min-width:820px){ .gallery-grid{column-count:3;} }
@media (min-width:1180px){ .gallery-grid{column-count:4;} }

.gallery-item{
  position:relative;border-radius:18px;overflow:hidden;
  display:inline-block;width:100%;margin:0 0 14px;break-inside:avoid;
  box-shadow:0 2px 6px -2px rgba(18,58,32,.12), 0 14px 28px -18px rgba(18,58,32,.22);
  transition:transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s cubic-bezier(.2,.7,.3,1);
}
.gallery-item:hover{transform:translateY(-5px);box-shadow:0 4px 10px -2px rgba(18,58,32,.16), 0 24px 38px -18px rgba(18,58,32,.3);}
.gallery-item img{width:100%;height:auto;display:block;cursor:zoom-in;}

/* ---------- Lightbox ---------- */
.lightbox{
  position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;
  background:rgba(13,20,15,.92);padding:40px;
}
.lightbox.open{display:flex;}
.lb-img{
  max-width:min(92vw, 1100px);max-height:86vh;border-radius:12px;
  box-shadow:0 30px 70px -20px rgba(0,0,0,.6);display:block;
}
.lb-close{
  position:absolute;top:20px;right:24px;width:42px;height:42px;border-radius:50%;
  background:rgba(255,255,255,.12);color:#fff;display:flex;align-items:center;justify-content:center;
  transition:background .2s ease, transform .2s ease;
}
.lb-close:hover{background:rgba(255,255,255,.22);transform:rotate(90deg);}
.lb-nav{
  position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;
  background:rgba(255,255,255,.1);color:#fff;align-items:center;justify-content:center;
  transition:background .2s ease;
}
.lb-nav:hover{background:rgba(255,255,255,.2);}
.lb-prev{left:16px;}
.lb-next{right:16px;}
@media (max-width:640px){
  .lightbox{padding:16px;}
  .lb-nav{width:40px;height:40px;}
  .lb-prev{left:4px;}
  .lb-next{right:4px;}
  .lb-close{top:10px;right:10px;}
}
.gallery-item .del{
  position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:50%;
  background:rgba(18,20,15,.55);color:#fff;display:flex;align-items:center;justify-content:center;
  opacity:0;transition:opacity .2s ease, background .2s ease;
}
.gallery-item:hover .del{opacity:1;}
.gallery-item .del:hover{background:var(--terracotta-500);}
.gallery-item.uploading{opacity:.5;}

@media (max-width:640px){
  .hero{padding:36px 24px 28px;}
  .hero h2{font-size:28px;}
  .town-hero{padding:56px 24px 46px;min-height:280px;}
  .town-hero.has-cover{min-height:340px;}
  .town-hero h2{font-size:29px;}
  .section{padding:40px 0 8px;}
  .timeline::before{left:52px;}
  .tl-year{width:52px;padding-right:18px;font-size:15px;}
  .header-actions{flex-wrap:wrap;justify-content:flex-end;}
  .btn-secondary span{display:none;}
  .site-nav{border-radius:20px;}
  .site-nav-link{padding:9px 14px;font-size:12.5px;}
  .stat-tile .num{font-size:34px;}
}

/* ---------- Admin-Bereich ---------- */
.admin-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:34px;}
.admin-tab{
  padding:9px 18px;border-radius:999px;font-size:13.5px;font-weight:600;color:var(--ink-soft);
  background:var(--cream-100);transition:background .2s ease, color .2s ease;
  text-transform:uppercase;letter-spacing:.03em;
}
.admin-tab:hover{color:var(--green-900);background:#fff;}
.admin-tab.active{background:var(--green-900);color:#fff;}

.admin-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(230px, 1fr));gap:18px;margin-bottom:8px;}
.admin-card{
  background:#fff;border-radius:20px;padding:24px 22px;display:flex;flex-direction:column;gap:6px;
  box-shadow:0 2px 6px -2px rgba(18,58,32,.12), 0 14px 28px -18px rgba(18,58,32,.22);
  transition:transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s cubic-bezier(.2,.7,.3,1);
}
.admin-card:hover{transform:translateY(-6px);box-shadow:0 4px 10px -2px rgba(18,58,32,.16), 0 24px 38px -18px rgba(18,58,32,.3);}
.admin-card .icon{
  width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  background:var(--cream-100);color:var(--green-900);margin-bottom:10px;
}
.admin-card .num{font-family:"Forum", serif;font-size:26px;color:var(--green-900);}
.admin-card h4{font-family:"Forum", serif;font-weight:400;font-size:18px;color:var(--green-900);}
.admin-card p{margin:0;font-size:13px;color:var(--ink-soft);line-height:1.5;}

.admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px;}
.btn-add{
  background:var(--green-900);color:#fff;padding:11px 20px;border-radius:999px;font-size:13.5px;font-weight:600;
  display:inline-flex;align-items:center;gap:7px;transition:transform .2s ease, background .2s ease;
}
.btn-add:hover{transform:translateY(-2px);background:var(--green-700);color:#fff;}

.table-wrap{background:#fff;border-radius:20px;overflow-x:auto;-webkit-overflow-scrolling:touch;box-shadow:0 2px 6px -2px rgba(18,58,32,.12), 0 14px 28px -18px rgba(18,58,32,.22);}
table.data-table{width:100%;border-collapse:collapse;font-size:14px;}
table.data-table th{
  text-align:left;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft);
  font-weight:600;padding:14px 18px;border-bottom:1px solid var(--cream-100);background:var(--cream-50);
}
table.data-table td{padding:13px 18px;border-bottom:1px solid var(--cream-100);color:var(--ink);vertical-align:middle;}
table.data-table tr:last-child td{border-bottom:none;}
table.data-table tr:hover td{background:var(--cream-50);}
table.data-table .row-actions{display:flex;gap:8px;justify-content:flex-end;}
.icon-link{
  width:32px;height:32px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;
  background:var(--cream-100);color:var(--ink-soft);transition:background .2s ease, color .2s ease;
}
.icon-link:hover{background:var(--green-900);color:#fff;}
.icon-link.danger:hover{background:var(--terracotta-500);}

.badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:4px 11px;border-radius:999px;}
.badge-green{background:#e2efe1;color:var(--green-700);}
.badge-gold{background:var(--cream-100);color:var(--gold-600);}
.badge-terracotta{background:#fbe4d9;color:var(--terracotta-500);}

.admin-form{background:#fff;border-radius:22px;padding:30px 32px;box-shadow:0 2px 6px -2px rgba(18,58,32,.12), 0 14px 28px -18px rgba(18,58,32,.22);max-width:760px;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.form-row.single{grid-template-columns:1fr;}
.form-row .field{margin-bottom:18px;}
.admin-form textarea{
  width:100%;padding:13px 16px;border-radius:14px;border:1.5px solid var(--cream-100);
  background:#fff;font-size:14.5px;font-family:inherit;color:var(--ink);resize:vertical;min-height:120px;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.admin-form textarea:focus{outline:none;border-color:var(--gold-500);box-shadow:0 0 0 4px rgba(232,172,60,.18);}
.admin-form select{
  width:100%;padding:13px 16px;border-radius:14px;border:1.5px solid var(--cream-100);
  background:#fff;font-size:15px;font-family:inherit;color:var(--ink);
}
.form-actions{display:flex;align-items:center;gap:12px;margin-top:8px;flex-wrap:wrap;}
.btn-cta.small{width:auto;padding:12px 26px;}
.btn-ghost{
  background:transparent;color:var(--ink-soft);padding:12px 22px;border-radius:999px;font-size:14px;font-weight:600;
  border:1.5px solid var(--cream-100);transition:border-color .2s ease, color .2s ease;
}
.btn-ghost:hover{border-color:var(--gold-500);color:var(--green-900);}
.btn-danger-outline{
  background:transparent;color:var(--terracotta-500);padding:12px 22px;border-radius:999px;font-size:14px;font-weight:600;
  border:1.5px solid #f0c3ac;transition:background .2s ease;margin-left:auto;
}
.btn-danger-outline:hover{background:#fbe4d9;}
.form-hint{font-size:12.5px;color:var(--ink-soft);margin-top:-12px;margin-bottom:18px;}
.form-msg{font-size:13.5px;border-radius:12px;padding:12px 16px;margin-bottom:20px;}
.form-msg.ok{background:#e2efe1;color:var(--green-700);}
.form-msg.err{background:#fbe4d9;color:#7a2d0c;}

@media (max-width:640px){
  .form-row{grid-template-columns:1fr;}
  .admin-form{padding:24px 20px;}
  table.data-table{font-size:13px;}
  table.data-table th, table.data-table td{padding:10px 12px;}
}

/* ---------- Schwarzes Brett ---------- */
.board-list{display:flex;flex-direction:column;gap:16px;}
.board-card{
  background:#fff;border-radius:20px;padding:20px 22px;display:flex;gap:16px;
  box-shadow:0 2px 6px -2px rgba(18,58,32,.12), 0 14px 28px -18px rgba(18,58,32,.22);
}
.board-avatar{
  width:48px;height:48px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;
  color:#fff;font-family:"Forum", serif;font-size:17px;overflow:hidden;
}
.board-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
.board-card-body{flex:1;min-width:0;position:relative;}
.board-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:6px;}
.board-card-name{font-family:"Forum", serif;font-size:17px;color:var(--green-900);}
.board-card-date{font-size:12px;color:var(--ink-soft);}
.board-card-text{font-size:14.5px;line-height:1.65;color:var(--ink);white-space:pre-line;word-break:break-word;}
.board-card-photo{max-width:100%;width:auto;max-height:360px;border-radius:14px;display:block;margin-top:12px;}
.board-delete-form{position:absolute;top:-4px;right:-4px;}

@media (max-width:600px){
  .board-card{padding:16px;gap:12px;}
  .board-delete-form{position:static;margin-top:10px;}
}

/* ---------- Hamburgermenü (mobile Navigation) ---------- */
.nav-toggle{
  display:none;flex:none;width:42px;height:42px;border-radius:14px;
  background:var(--cream-100);align-items:center;justify-content:center;
  flex-direction:column;gap:5px;transition:background .2s ease;
}
.nav-toggle:hover{background:var(--gold-300);}
.nav-toggle span{display:block;width:19px;height:2px;background:var(--green-900);border-radius:2px;transition:transform .25s cubic-bezier(.2,.7,.3,1), opacity .2s ease;}
.nav-toggle.active span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle.active span:nth-child(2){opacity:0;}
.nav-toggle.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

@media (max-width:700px){
  .nav-toggle{display:flex;}
  .site-nav{
    display:none;flex-direction:column;flex-wrap:nowrap;gap:3px;width:100%;
    margin:0 0 18px;padding:10px;background:#fff;border-radius:18px;
    box-shadow:0 18px 40px -18px rgba(18,58,32,.35);
  }
  .site-nav.open{display:flex;animation:navDrop .22s cubic-bezier(.2,.7,.3,1) both;}
  .site-nav-link{padding:13px 16px;font-size:14px;text-align:left;border-radius:12px;}
}
@keyframes navDrop{from{opacity:0;transform:translateY(-10px);}to{opacity:1;transform:translateY(0);}}
