/* Samenplein — schone basisstylesheet */
:root {
  --blue-950:#082c52; --blue-800:#15558b; --blue-650:#2474b5; --blue-100:#eaf4fc;
  --orange:#ef7d32; --orange-dark:#ce5e18; --white:#fff; --bg:#f3f7fb;
  --text:#172638; --muted:#65758a; --border:#dce6f0; --danger:#b42335; --success:#18794e;
  --shadow-sm:0 5px 18px rgba(18,55,88,.07); --shadow:0 14px 36px rgba(18,55,88,.1);
  --radius-sm:10px; --radius:16px; --radius-lg:24px; --content:1180px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{min-height:100vh;margin:0;background:var(--bg);color:var(--text);font:16px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
img{display:block;max-width:100%} a{color:var(--blue-650)} button,input,textarea,select{font:inherit} button,a{transition:background-color .18s,color .18s,border-color .18s,transform .18s,box-shadow .18s}
h1,h2,h3,h4,p{margin-top:0} h1,h2,h3,h4{color:var(--blue-950);line-height:1.2} h1{font-size:clamp(2rem,5vw,3.25rem)} h2{font-size:clamp(1.35rem,3vw,1.85rem)}
.hidden,[hidden]{display:none}.muted,.fid-muted,.ft-muted,.fm-muted,.admin-muted{color:var(--muted)}.full{width:100%}.small{font-size:.875rem}.danger,.red{color:var(--danger)}

/* Header en navigatie */
header,.site-header{background:var(--white);border-bottom:1px solid var(--border)}
.header-inner{width:min(var(--content),calc(100% - 32px));min-height:74px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}
.logo-wrap,.top-actions,.user-mini{display:flex;align-items:center;gap:12px}.logo{width:48px;height:48px;border-radius:14px;overflow:hidden;background:var(--blue-100)}.logo img{width:100%;height:100%;object-fit:cover}.site-title{font-size:1.35rem;font-weight:850;color:var(--blue-950)}
.top-icon,.menu-btn{min-height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:999px;padding:8px 13px;background:#fff;color:var(--blue-950);text-decoration:none;font-weight:750}.menu-btn{cursor:pointer}.top-icon:hover,.menu-btn:hover{border-color:#a9c9e4;background:var(--blue-100)}
.main-nav{display:flex;justify-content:center;gap:6px;padding:9px 16px;background:var(--blue-950)}.main-nav a{padding:9px 14px;border-radius:999px;color:#eaf4fc;text-decoration:none;font-weight:700}.main-nav a:hover,.main-nav a.active{background:rgba(255,255,255,.15);color:#fff}.main-nav .logout-link{color:#ffd1bd}

/* Algemene lay-out en componenten */
.page,.page-wrap,.dashboard-shell,.samen-page,.forums-page,.sp-page,.fid-page,.ft-page,.fm-page{width:min(var(--content),calc(100% - 32px));margin:32px auto 64px}
.page{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.85fr);gap:22px;align-items:start}.page .login-card{grid-row:span 2}
.card,.sp-card,.fid-card,.ft-card,.fm-card,.info-block,.notification-card,.post-card,.reply-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:clamp(18px,3vw,26px)}
.card h2,.card h3,.sp-card h2,.fid-card h2,.ft-card h2,.fm-card h2{margin-bottom:14px}
.announcement{padding:12px 14px;border-left:4px solid var(--orange);background:#fff7f1;border-radius:8px;margin:10px 0}
.section-head,.fid-section-head,.ft-section-head,.fm-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.section-head h2,.fid-section-head h2,.ft-section-head h2,.fm-section-head h2{margin:0}
.cards-grid,.community-grid,.forums-grid,.sp-grid,.fm-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}
.status-message,.sp-message,.fid-message,.ft-message,.fm-message,.reply-msg{padding:11px 13px;border-radius:10px;background:var(--blue-100);color:var(--blue-800)}.status-error,.error{background:#fff0f1;color:var(--danger)}.warning{background:#fff5e9;color:#934613}

/* Formulieren en knoppen */
form{display:grid;gap:16px}.form-group,.sp-form label,.fid-form label,.ft-form label,.fm-form label{display:grid;gap:7px;font-weight:700;color:var(--blue-950)}
input,textarea,select{width:100%;border:1px solid #cbd9e6;border-radius:var(--radius-sm);padding:11px 13px;background:#fff;color:var(--text);outline:none}textarea{min-height:110px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:var(--blue-650);box-shadow:0 0 0 3px rgba(36,116,181,.14)}
.btn,.sp-btn,.forums-btn,.fid-btn,.ft-btn,.fm-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border:1px solid var(--blue-650);border-radius:999px;padding:9px 16px;background:var(--blue-650);color:#fff;text-decoration:none;font-weight:800;cursor:pointer}.btn:hover,.sp-btn:hover,.forums-btn:hover,.fid-btn:hover,.ft-btn:hover,.fm-btn:hover{background:var(--blue-800);border-color:var(--blue-800);transform:translateY(-1px)}
.btn-secondary,.secondary{background:var(--blue-100);border-color:#c6dff1;color:var(--blue-800)}.btn-outline{background:#fff;color:var(--blue-650)}.btn-small{min-height:36px;padding:7px 12px;font-size:.9rem}.danger.fid-btn,.danger.ft-btn,.danger.fm-btn{background:var(--danger);border-color:var(--danger);color:#fff}
.login-card .btn,.register-page .btn{width:100%}.login-links,.request-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:18px}

/* Dashboard */
.dashboard-shell{display:grid;grid-template-columns:minmax(240px,.75fr) repeat(2,minmax(0,1fr));gap:20px;align-items:start}.dashboard-profile{text-align:center}.avatar-circle,.settings-avatar{width:112px;height:112px;margin:0 auto 14px;border:5px solid #fff;border-radius:50%;overflow:hidden;box-shadow:0 5px 18px rgba(8,44,82,.18);background:var(--blue-100)}.avatar-circle img,.settings-avatar img{width:100%;height:100%;object-fit:cover}.profile-mini{padding:12px;background:var(--bg);border-radius:12px;text-align:left}.profile-mini p{margin:6px 0}.manage-grid{display:grid;gap:12px}.manage-box,.request-box{display:grid;gap:3px;padding:15px;border:1px solid var(--border);border-radius:12px;background:#f9fcff;color:var(--text);text-decoration:none}.manage-box:hover,.request-box:hover{border-color:#a9c9e4;background:var(--blue-100)}
.samen-hero,.forums-hero,.sp-hero,.fm-hero{padding:clamp(24px,5vw,48px);border-radius:var(--radius-lg);background:linear-gradient(135deg,var(--blue-950),var(--blue-650));color:#fff;box-shadow:var(--shadow)}.samen-hero h1,.forums-hero h1,.sp-hero h1,.fm-hero h1,.samen-hero p,.forums-hero p,.sp-hero p,.fm-hero p{color:#fff}.samen-hero p,.forums-hero p,.sp-hero p,.fm-hero p{margin-bottom:0;opacity:.85}
.samen-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0 28px}.samen-stats article,.stat-card,.fm-stat-card{padding:18px;border:1px solid var(--border);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow-sm)}.samen-stats strong,.stat-card strong,.fm-stat-card strong{display:block;color:var(--blue-950);font-size:1.7rem}.samen-section{margin-top:30px}
.samen-card,.community-card,.sp-forum-card{overflow:hidden;background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm)}.samen-card-img,.community-banner,.sp-forum-banner{width:100%;height:150px;background:var(--blue-100);object-fit:cover;background-size:cover;background-position:center}.samen-card-body,.community-card-body,.sp-forum-content{padding:17px}.activity-list{display:grid;gap:10px}.activity-item{padding:14px 16px;background:#fff;border:1px solid var(--border);border-radius:12px}

/* Communities */
.community-hero{width:min(var(--content),calc(100% - 32px));margin:28px auto 0}.community-banner-wrap{position:relative;min-height:350px;overflow:hidden;border-radius:var(--radius-lg);background:var(--blue-100);box-shadow:var(--shadow)}.community-banner-wrap>img{width:100%;height:350px;object-fit:cover}.community-hero-overlay{position:absolute;inset:0;display:flex;align-items:flex-end;gap:22px;padding:clamp(20px,4vw,36px);background:linear-gradient(0deg,rgba(4,25,45,.88),rgba(4,25,45,.04) 75%);color:#fff}.community-avatar{flex:0 0 112px;width:112px;height:112px;border:5px solid #fff;border-radius:22px;overflow:hidden;background:#fff}.community-avatar img,.community-photo{width:100%;height:100%;object-fit:cover}.community-hero-content h1,.community-hero-content p{color:#fff}.community-description{max-width:720px}.community-meta,.community-actions{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center}.community-actions{margin-top:16px}
.community-manage-page .logo-wrap>img{width:48px;height:48px;flex:0 0 48px;border-radius:14px;object-fit:cover}
.community-manage-page .modern-community-hero{position:relative;width:min(var(--content),calc(100% - 32px));height:350px;margin:28px auto 0;overflow:hidden;border-radius:var(--radius-lg);box-shadow:var(--shadow)}
.community-manage-page .modern-community-hero .community-banner-wrap{width:100%;height:100%;min-height:0;border-radius:0;box-shadow:none}
.community-manage-page .modern-community-hero>.community-hero-overlay{inset:0;z-index:1;border-radius:var(--radius-lg)}
.community-tabs{width:min(var(--content),calc(100% - 32px));margin:18px auto;display:flex;gap:8px;overflow-x:auto}.community-tab,.fm-tab{border:1px solid var(--border);border-radius:999px;padding:9px 16px;background:#fff;color:var(--blue-800);font-weight:800;cursor:pointer;white-space:nowrap}.community-tab.active,.fm-tab.active{background:var(--blue-950);border-color:var(--blue-950);color:#fff}.community-content,.community-layout{width:min(var(--content),calc(100% - 32px));margin:0 auto 64px;display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px;align-items:start}.community-sidebar,.community-side{display:grid;gap:16px;position:sticky;top:18px}.community-main,.community-feed{min-width:0}.community-tab-content{display:none}.community-tab-content.active{display:block}.community-info-list p{padding-bottom:12px;border-bottom:1px solid var(--border)}
.post-box{margin-bottom:18px}.post-header,.member-row,.member-card,.post-card .post-header{display:flex;align-items:flex-start;gap:12px}.post-avatar,.user-mini-avatar,.fm-avatar,.ft-avatar{flex:0 0 auto;width:44px;height:44px;border-radius:50%;object-fit:cover;background:var(--blue-100)}.post-content,.ft-post-body{overflow-wrap:anywhere}.post-attachment{max-height:440px;margin-top:12px;border-radius:12px;object-fit:cover}.reply-list,.community-members-list{display:grid;gap:10px}.reply-card,.member-card{padding:13px}.reply-actions,.post-header,.member-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}

/* Forumoverzichten */
.forums-filter{display:grid;grid-template-columns:minmax(0,1fr) 220px auto;gap:10px;margin:18px 0}.forums-loading,.forums-empty,.sp-empty-banner,.fid-empty,.ft-empty,.fm-empty{padding:30px;text-align:center;color:var(--muted);background:#fff;border:1px dashed #bcd0e1;border-radius:var(--radius)}
.sp-forum-top,.fid-forum-info,.fid-topic,.ft-post,.fm-member-row,.fm-topic-row{display:flex;align-items:flex-start;gap:14px}.sp-forum-photo,.fid-forum-photo,.fid-topic-avatar,.ft-topic-author img{flex:0 0 auto;width:64px;height:64px;border-radius:16px;object-fit:cover;background:var(--blue-100)}.sp-forum-stats,.fid-members-summary{display:flex;gap:20px;padding-top:13px;border-top:1px solid var(--border)}.sp-forum-stats strong,.fid-members-summary strong{display:block;color:var(--blue-950)}.sp-forum-category,.fid-badge,.ft-badge,.fm-pill,.fm-category{display:inline-flex;border-radius:999px;padding:5px 9px;background:var(--blue-100);color:var(--blue-800);font-size:.82rem;font-weight:800}

/* Forum detail, topics en beheer */
.fid-header-card,.ft-topic-card{overflow:hidden;background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow)}.fid-forum-banner{height:190px;background:var(--blue-100) center/cover}.fid-forum-info,.ft-topic-content{padding:22px}.fid-layout,.ft-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;margin-top:22px;align-items:start}.fid-sidebar,.ft-sidebar{display:grid;gap:18px;position:sticky;top:18px}.fid-topics-list,.ft-posts-list,.fm-list{display:grid;gap:12px}.fid-topic,.ft-post,.fm-member-row,.fm-topic-row{padding:15px;border:1px solid var(--border);border-radius:12px;background:#fbfdff}.fid-topic-body,.fm-topic-main{min-width:0;flex:1}.fid-topic-title-row,.ft-title-line,.fm-topic-title-line,.ft-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px}.fid-topic-meta,.ft-meta,.fm-row-meta{display:flex;flex-wrap:wrap;gap:8px 15px;color:var(--muted);font-size:.9rem}.fid-action-list,.ft-action-list{display:grid;gap:9px}.fid-members-preview,.fid-member-avatars{display:flex;flex-wrap:wrap;gap:7px}.fid-member-avatars img{width:36px;height:36px;border-radius:50%;object-fit:cover}
.ft-post-author{flex:0 0 145px}.ft-post-body{flex:1;min-width:0}.ft-post-actions,.fm-row-actions,.fm-hero-actions{display:flex;flex-wrap:wrap;gap:8px}.fm-tabs{display:flex;gap:8px;margin:18px 0;overflow-x:auto}.fm-panel{display:none}.fm-panel.active{display:block}.fm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.fm-preview{overflow:hidden;border:1px solid var(--border);border-radius:var(--radius)}.fm-preview-banner{height:150px;background:var(--blue-100) center/cover}.fm-preview-body{display:flex;align-items:center;gap:14px;padding:18px}.fm-preview-photo{width:76px;height:76px;border-radius:18px;object-fit:cover}

/* Losse pagina's */
.register-page{width:min(620px,calc(100% - 32px));margin:32px auto 64px}.check-row{display:flex;align-items:flex-start;gap:10px}.check-row input{width:auto;margin-top:5px}.settings-avatar{position:relative}.notification-card{margin-bottom:12px}.info-card p:last-child,.notification-card p:last-child{margin-bottom:0}
footer,.site-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 20px;padding:24px 16px;border-top:1px solid var(--border);background:#fff}footer a,.site-footer a{color:var(--blue-800);text-decoration:none;font-weight:650}footer a:hover,.site-footer a:hover{text-decoration:underline}

/* Responsief */
@media(max-width:900px){
  .page,.dashboard-shell,.community-content,.community-layout,.fid-layout,.ft-layout{grid-template-columns:1fr}.page .login-card{grid-row:auto}.dashboard-shell{grid-template-columns:1fr 1fr}.dashboard-profile{grid-column:1/-1}.community-sidebar,.community-side,.fid-sidebar,.ft-sidebar{position:static}.community-sidebar,.community-side{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.forums-filter{grid-template-columns:1fr 1fr}.forums-filter input{grid-column:1/-1}.ft-post{display:block}.ft-post-author{margin-bottom:12px}
}
@media(max-width:680px){
  .header-inner{min-height:64px}.logo{width:42px;height:42px}.site-title{font-size:1.15rem}.main-nav{display:none;position:absolute;z-index:30;left:12px;right:12px;flex-direction:column;border-radius:0 0 14px 14px;box-shadow:var(--shadow)}.main-nav.open,.main-nav.active{display:flex}.page,.page-wrap,.dashboard-shell,.samen-page,.forums-page,.sp-page,.fid-page,.ft-page,.fm-page,.community-hero,.community-tabs,.community-content,.community-layout{width:min(100% - 20px,var(--content));margin-top:18px}.dashboard-shell{grid-template-columns:1fr}.dashboard-profile{grid-column:auto}.samen-stats{grid-template-columns:1fr}.community-banner-wrap,.community-banner-wrap>img{min-height:390px;height:390px}.community-hero-overlay{align-items:flex-start;justify-content:flex-end;flex-direction:column}.community-avatar{width:82px;height:82px;flex-basis:82px}.community-hero-content h1{font-size:1.8rem}.forums-filter,.fm-form-grid{grid-template-columns:1fr}.forums-filter input{grid-column:auto}.cards-grid,.community-grid,.forums-grid,.sp-grid,.fm-stats-grid{grid-template-columns:1fr}.fid-forum-info,.sp-forum-top,.fm-preview-body{align-items:flex-start}.section-head,.fid-section-head,.ft-section-head,.fm-section-head{align-items:flex-start;flex-direction:column}.community-manage-page .modern-community-hero{width:calc(100% - 20px);height:390px;margin-top:18px}
}
@media(max-width:420px){.header-inner{width:calc(100% - 20px)}.logo-wrap{gap:8px}.top-actions{gap:6px}.top-icon,.menu-btn{padding:7px 10px}.community-actions .btn{width:100%}.fid-topic,.ft-post,.fm-member-row,.fm-topic-row{padding:12px}.fid-topic-avatar{width:46px;height:46px}}


.logo{
  width:58px;
  height:58px;
  border-radius:14px;
  overflow:hidden;
  background:var(--blue-soft);
  flex-shrink:0;
}

.logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.menu-btn{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-width:52px;
  height:42px;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
  color:var(--blue);
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  line-height:1;
}

/* NAV */

.main-nav{
  display:none !important;
  flex-direction:column;
  align-items:center;
  gap:6px;
  padding:14px;
  background:#fff;
  border-bottom:1px solid var(--border);
}

.main-nav.nav-open{
  display:flex !important;
}

.main-nav a{
  color:var(--blue);
  text-decoration:none;
  font-size:20px;
  font-weight:800;
  padding:10px 14px;
  border-radius:8px;
  width:min(100%, 420px);
  text-align:center;
}

.main-nav a:hover{
  background:var(--blue-soft);
}
.menu-btn{
  color:var(--blue-950);
}

.main-nav a{
  color:var(--blue-950);
}

.main-nav a:hover{
  background:var(--blue-100);
}

.sp-forum-photo,
.fid-forum-photo,
.fid-topic-avatar,
.ft-topic-author img{
  flex:0 0 auto;
  width:64px;
  height:64px;
  border-radius:16px;
  object-fit:cover;
  background:var(--blue-100);
}

.user-mini{
  display:flex;
  align-items:center;
  gap:12px;
}

.user-mini-avatar{
  flex:0 0 auto;
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
  background:var(--blue-100);
}

/* =========================================
   ForumID - mobiel
========================================= */

@media (max-width:680px){

  .fid-page{
    width:calc(100% - 20px);
    margin:18px auto 40px;
  }

  /* Bovenste forumkaart */
  .fid-forum-info{
    flex-direction:column;
    gap:14px;
    padding:18px;
  }

  /* Kleine forumfoto */
  .fid-forum-photo{
    width:54px;
    height:54px;
    min-width:54px;
    max-width:54px;
    flex:0 0 54px;
    border-radius:50%;
    object-fit:cover;
  }

  .fid-forum-text{
    width:100%;
    min-width:0;
  }

  .fid-forum-text h1{
    font-size:1.8rem;
    margin-bottom:10px;
    overflow-wrap:anywhere;
  }

  .fid-forum-text > p{
    font-size:1rem;
    line-height:1.55;
  }

  /* Beheerder */
  .fid-owner{
    display:flex;
    align-items:center;
    gap:10px;
    margin:16px 0;
  }

  .fid-owner .user-mini-avatar{
    width:44px;
    height:44px;
    min-width:44px;
    max-width:44px;
    flex:0 0 44px;
    border-radius:50%;
    object-fit:cover;
  }

  .fid-owner span{
    min-width:0;
    overflow-wrap:anywhere;
  }

  /* Forumregels */
  .fid-rules{
    width:100%;
    margin-top:16px;
  }

  .fid-rules p{
    line-height:1.55;
    overflow-wrap:anywhere;
  }

  /* Onderwerpen + zijblokken */
  .fid-layout{
    grid-template-columns:1fr;
    gap:16px;
  }

  .fid-card{
    padding:18px;
  }

  .fid-section-head{
    gap:10px;
  }

  .fid-section-head .fid-btn{
    width:100%;
  }

  /* Onderwerpen */
  .fid-topic{
    gap:10px;
  }

  .fid-topic-avatar{
    width:44px;
    height:44px;
    flex:0 0 44px;
    border-radius:50%;
  }

  .fid-topic-title-row{
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .fid-topic-title-row h3{
    width:100%;
  }

  /* Knoppen mooi breed op mobiel */
  .fid-action-list .fid-btn{
    width:100%;
  }
}

/* =========================================
   CommunityID - mobiel
========================================= */

@media (max-width:680px){

  .community-hero{
    width:calc(100% - 20px);
    margin:18px auto 0;
  }

  .community-banner-wrap,
  .community-banner-wrap > img{
    height:400px;
    min-height:400px;
  }

  .community-hero-overlay{
    padding:20px;
    gap:14px;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-end;
  }

  /* Community foto kleiner en rond */
  .community-avatar{
    width:64px;
    height:64px;
    min-width:64px;
    flex:0 0 64px;
    border:4px solid #fff;
    border-radius:50%;
  }

  .community-avatar img{
    width:100%;
    height:100%;
    border-radius:50%;
    object-fit:cover;
  }

  .community-hero-content{
    width:100%;
  }

  .community-hero-content h1{
    font-size:1.7rem;
    line-height:1.2;
    margin-bottom:12px;
  }

  .community-description{
    font-size:1rem;
    line-height:1.5;
    margin-bottom:14px;
  }

  .community-meta{
    gap:8px 14px;
  }

  /* Beheren / Delen */
  .community-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
    margin-top:14px;
  }

  .community-actions .btn{
    width:100%;
    min-height:44px;
  }

  /* Tabs */
  .community-tabs{
    gap:8px;
    margin-top:16px;
  }

  .community-tab{
    padding:9px 16px;
    font-size:.95rem;
  }

  /* Inhoud */
  .community-content,
  .community-layout{
    grid-template-columns:1fr;
    gap:16px;
  }
}

/* Lege meldingsbalk niet tonen */
.status-message:empty{
  display:none;
}

