/* =========================
   Velmoor – Gesuche Grid
   ========================= */

.gesuche-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 10px;
}

/* Karte */
.gesuch-card{
  position: relative;
  background:
    radial-gradient(at 50% 12%, rgba(210,179,107,0.12), rgba(0,0,0,0.55) 60%),
    linear-gradient(180deg, rgba(18,16,14,0.95), rgba(10,9,8,0.95));
  border: 1px solid rgba(210,179,107,0.22);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.55),
    0 18px 40px rgba(0,0,0,0.45);
  overflow: hidden;
}

/* Header */
.gesuch-head{
  padding: 12px 14px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: var(--font-base2, inherit);
  font-size: 13px;
  color: #d5aa43;
  background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.25));
  border-bottom: 1px solid rgba(210,179,107,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Body */
.gesuch-body{
  padding: 14px;
  font-size: 14px;
  color: rgba(245,238,228,0.9);
}

/* Titel */
.gesuch-body h4{
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.25;
}

/* Links */
.gesuch-body a{
  color: rgba(245,238,228,0.92);
  text-decoration: none;
}
.gesuch-body a:hover{
  color: #d5aa43;
}

/* Prefixe */
.gesuch-body .prefix,
.gesuch-body .threadprefix{
  display: inline-block;
  margin: 8px 0 0;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid rgba(210,179,107,0.22);
  background: rgba(0,0,0,0.35);
}

/* Autor */
.gesuch-body i{
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(210,179,107,0.12);
  font-style: normal;
  font-size: 12.5px;
  color: rgba(245,238,228,0.6);
}
.gesuch-body i a{
  color: #d5aa43;
  font-weight: 700;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1100px){
  .gesuche-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px){
  .gesuche-grid{
    grid-template-columns: 1fr;
  }
}

/* Kategorie-Icon als Bildersatz */
.vm-cat-icon{
  width: 260px;
  height: 122px;
  border: 1px solid var(--line2);
  display: grid;
  place-items: center;
  background:
    radial-gradient(at 50% 50%, rgba(210,179,107,0.22), rgba(0,0,0,0.55));
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  position: relative;
}
.vm-cat-icon::before{
  content: var(--cat-icon, "category");
  font-family: "Material Symbols Outlined";
  font-size: 88px;
  font-variation-settings: 'wght' 300;
  color: rgba(210,179,107,0.25);
  line-height: 1;
}
#forum_15{ --cat-icon: "history_edu"; }  /* Chronik */
#forum_8{ --cat-icon: "person_search"; }/* Gesuche */

/**/
.float_left{
	float:left;
}
/* =========================
   Velmoor Forum Card Layout
   ========================= */

.vm-forumcard{
  font-family: inherit;
  color: var(--text);
  border: 1px solid var(--line2);
  background:
    radial-gradient(at 55% 45%, rgba(210,179,107,0.10), rgba(0,0,0,0.35)),
    var(--bg);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  overflow: hidden;
}

/* ========== TOP BAR (3 boxes) ========== */
.vm-forumcard-top{
  display: grid;
  grid-template-columns: 44px 1fr 210px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line2);
  background:
    linear-gradient(90deg, rgba(0,0,0,0.40), rgba(0,0,0,0.10));
}

.vm-top-icon{
  height: 28px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.40);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}

.vm-top-icon .vm-i{
  font-size: 14px;
  color: var(--accent);
  opacity: 0.95;
}

.vm-top-title{
  display: block;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}

.vm-top-title:hover{
  filter: brightness(1.08);
}

.vm-top-stats{
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.35);
  text-align: right;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  align-items: baseline;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}

.vm-top-stats b{
  color: var(--text);
  font-weight: 700;
}

.vm-dot{ opacity: 0.55; }

/* ========== MAIN (flex) ========== */
.vm-forumcard-main{
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(0,0,0,0.18);
}

.vm-main-thumb{
  width: 260px;
  height: 122px;
  border: 1px solid var(--line2);
  background: center / cover no-repeat;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

/* center */
.vm-main-mid{
  position: relative;
  flex: 1;
  min-width: 240px;
  border: 1px solid var(--line2);
  background: rgba(0,0,0,0.30);
  padding: 10px 38px 10px 12px; /* Platz rechts für hint icon */
  overflow: hidden;
}

.vm-mid-text{
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
  max-height: 4.2em;
  overflow: hidden;
}

.vm-mid-hint{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.45);
  display: grid;
  place-items: center;
  cursor: default;
  opacity: 0.85;
}

.vm-hint-icon{
  font-size: 12px;
  color: var(--accent);
}

/* overlay quicklinks */
.vm-mid-overlay{
  position: absolute;
  inset: 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgb(0 0 0 / 91%), rgb(14 13 10));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

.vm-main-mid:hover .vm-mid-overlay{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.vm-quicklinks-title{
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.vm-ql-ic{
  color: var(--accent);
  font-size: 14px;
  opacity: 0.95;
}

.vm-quicklinks{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;  
	font-size: 0px;
}

.vm-quicklinks a{
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.40);
}

.vm-quicklinks a:hover{
  border-color: var(--line);
  filter: brightness(1.08);
}

.vm-quicklinks-hint{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(245, 238, 228, 0.55);
}

/* right lastpost */
.vm-main-last{
  width: 320px;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line2);
  background: rgba(0,0,0,0.30);
  padding: 10px;
}

.vm-last-thumb{
  width: 74px;
  height: 74px;
  background: center / cover no-repeat;
}
.vm-last-thumb img{
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(213, 170, 67, 0.55);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45);
}
.vm-last-meta{
  min-width: 0;
}

.vm-last-forum{
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vm-last-byline{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.vm-last-user{
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.vm-last-user:hover{
  text-decoration: underline;
}

.vm-last-time{
  opacity: 0.75;
}

.vm-last-link{
  display: inline-block;
  font-size: 12.5px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
}

.vm-last-link:hover{
  text-decoration: underline;
}

/* ========== Responsive ========== */
@media (max-width: 860px){
  .vm-forumcard-top{
    grid-template-columns: 44px 1fr;
    grid-auto-rows: auto;
  }
  .vm-top-stats{
    grid-column: 1 / -1;
    text-align: left;
    justify-content: flex-start;
  }
  .vm-forumcard-main{
    flex-direction: column;
  }
  .vm-main-thumb{
    width: 100%;
    height: 160px;
  }
  .vm-main-last{
    width: 100%;
  }
}

/* Gesamtblock */
.vm-forum{
  margin: 0px;
  padding: 0px;
  position: relative;
  overflow: hidden;
}

.vm-forum-core{
  position: relative;
  z-index: 2;
  align-items: center;
  gap: 14px;
  max-width: 1100px;   
  margin: 0 auto;   
  padding: 4px 0 10px;
}

.vm-forum{
  position: relative;
  --forum-icon: "map";
}

/* Icon als Wasserzeichen */
.vm-forum-icon{
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  font-size: 92px;
  line-height: 1;
  font-variation-settings: 'wght' 300;
  color: rgba(210,179,107,0.18);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.vm-forum-icon::before{
  content: var(--forum-icon);
}

#forum_1{ --forum-icon: "map"; }          /* Stadtkarte */
#forum_9{ --forum-icon: "history_edu"; } /* Chronik */
#forum_14{ --forum-icon: "person_search"; } /* Gesuche */

/* Titel + Beschreibung */
.vm-forum-text{
  flex: 1;
  min-width: 0;
}

/* Titel */
.vm-forum-title{
    position: relative;
    text-align: center;
    padding: 18px 20px 14px;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: clamp(28px, 1.4vw, 38px);
    font-family: var(--font-base2);
    color: #d5aa43;
    font-weight: 300;
}

/* kurze Linien links/rechts */
.vm-forum-title::before,
.vm-forum-title::after{
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    width: 14%;
    background: rgba(210, 179, 107, 0.55);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35),
                0 6px 14px rgba(0, 0, 0, 0.25);
    opacity: 0.9;
}

/* links */
.vm-forum-title::before{
    left: 20px; /* orientiert sich an deinem padding */
}

/* rechts */
.vm-forum-title::after{
    right: 20px; /* orientiert sich an deinem padding */
}

/* Beschreibung:  */
.vm-forum-desc{  
	max-width: 1100px;
    text-align: justify;
    line-height: 1.6;
    padding: 12px 16px;
    background: radial-gradient(at 50% 30%, rgba(210, 179, 107, .10), rgba(0, 0, 0, 0)), linear-gradient(to bottom, rgba(18, 16, 14, .98), rgba(14, 13, 12, .98));
    border: 1px solid #3a372f;
    border-left-color: rgba(210, 179, 107, .22);
    border-right-color: rgba(210, 179, 107, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 -1px 0 rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .65);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .6);
	margin: 12px auto 0;
}

/* Subforen: Chips, mittig, bricht in Reihen */
.vm-subforums{
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 1100px;     /* ebenfalls begrenzen */
  margin: 12px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(210,179,107,0.12);
}

/* Chips */
.vm-subforums a{
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(180,150,90,0.18);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px!important;
  color: rgba(220,215,200,0.88);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 -1px 0 rgba(0,0,0,0.45);
}

.vm-subforums a:hover{
  color: #d2b36b;
  background: rgba(0,0,0,0.28);
  box-shadow:
    inset 0 0 0 1px rgba(210,179,107,0.18),
    0 10px 20px rgba(0,0,0,0.18);
}

/* mobile fallback */
@media (max-width: 820px){
  .vm-forum-core{ max-width: 100%; margin: 0; }
  .vm-subforums{ max-width: 100%; margin: 12px 0 0; }
}
