/* Flat Masonry Frontpage */

#logo {
	     
   height: clamp(32px, 2.2vw, 32px);
    margin-right: 5px;
    float: left;
    margin-left: -5px;
}

:root{
  --bg: #0b1020;
  --fg: #e8eefc;
  --muted: rgba(232,238,252,.72);
  --line: rgba(232,238,252,.14);
  --panel: rgba(255,255,255,.04);
  --panel2: rgba(255,255,255,.06);
  --accent: #2563eb; /* fallback */
}

.ss-page{
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(37,99,235,.18), transparent 55%),
    radial-gradient(900px 600px at 85% 20%, rgba(16,185,129,.12), transparent 55%),
    linear-gradient(180deg, #070a12 0%, var(--bg) 45%, #070a12 100%);
  color: var(--fg);
  padding: clamp(18px, 3vw, 40px) 0;
}

.ss-container{
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
}

.ss-head{
  

  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.ss-title{
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -0.02em;
  font-weight: 650;
}

.ss-sub{
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.45;
  font-size: 14px;
}

.ss-head-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ss-btn{
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  padding: 9px 11px;
  font-size: 13px;
  line-height: 1;
  border-radius: 6px; /* klein, flat */
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.ss-btn:hover{
  background: rgba(255,255,255,.04);
  border-color: rgba(232,238,252,.24);
}

/* --- GRID MASONRY (row-major order) --- */
.ss-grid{
   display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  grid-auto-rows: 8px;

  grid-auto-flow: row;   /* <- linksâ†’rechts */
  /* NICHT: row dense; */ /* dense kann optisch umsortieren */
}

/* Responsive columns */
@media (min-width: 720px){
  .ss-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1020px){
  .ss-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* sizer wird nicht mehr gebraucht */
.ss-grid-sizer{ display:none; }

/* Items: keine fixed widths mehr */
.ss-item{
  margin: 0;          /* Gap regelt AbstÃ¤nde */
  break-inside: avoid;
}

/* No-JS fallback: Columns */
.no-js .ss-grid{
  display: block;
  column-count: 1;
  column-gap: 14px;
}
@media (min-width: 720px){
  .no-js .ss-grid{ column-count: 2; }
}
@media (min-width: 1020px){
  .no-js .ss-grid{ column-count: 2; }
}
.no-js .ss-item{ margin-bottom: 14px; }


.ss-item{
  margin-bottom: 14px;
  break-inside: avoid;
}

/* Card (flat) */
.ss-card{
  display:block;
  text-decoration:none;
  color: inherit;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 6px; /* wenig Rundung */
  padding: 14px;
  transition: background .12s ease, border-color .12s ease;
	position: relative;
}

.ss-card:hover{
  background: rgba(255,255,255,.05);
  border-color: rgba(232,238,252,.24);
}

/* Top meta */
.ss-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ss-source{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}

.ss-accent{
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px; /* eckig-ish */
  flex: 0 0 auto;
}

.ss-logo{
  width: 18px;
  height: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity: .95;
  flex: 0 0 auto;
}
.ss-logo img{
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.ss-source-name{
  font-size: 13px;
  font-weight: 600;
  color: rgba(232,238,252,.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ss-tag{
  font-size: 12px;
  color: #FFF;
  border: 2px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px; /* pills sind ok, aber minimal */
  white-space: nowrap;
	background-color: #000;
}

/* Title + excerpt */
.ss-card-title{
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.ss-card:hover .ss-card-title{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent);
}

.ss-excerpt{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;

  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
	
	    z-index: 9;
    position: relative;
}

/* Footer */
.ss-card-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(232,238,252,.10);
  color: rgba(232,238,252,.7);
  font-size: 12px;
}

.ss-more{
  color: color-mix(in srgb, var(--accent) 75%, var(--fg));
  font-weight: 700;
}

.ss-more img {
	height: 20px;
}

.ss-empty{
  color: var(--muted);
  border: 1px dashed var(--line);
  padding: 14px;
  border-radius: 6px;
}

/* IMAGE */

.ss-card .wp-post-image {
	    position: absolute;
    right: 0;
    top: 0;
	z-index: 0;
}

.ss-card .wp-post-image {
	opacity: 0.15;
	 transition: opacity .12s ease;
}

.ss-card:hover .wp-post-image {
	opacity: 0.55;
}

.ss-card .wp-post-image {
  display:block;
  width:  auto;
  height:100%;

  /* links transparent -> rechts deckend */
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0,0,0,1) 20%,
    rgba(0,0,0,1) 100%
  );
  mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0,0,0,1) 20%,
    rgba(0,0,0,1) 100%
  );

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}





/* Smartspace Info Panel (Carinthia24-ähnlicher clean-news Look) */
.ss-info-panel{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  overflow: hidden;
}

.ss-info-panel__head{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,0));
}

.ss-info-panel__title{
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: .2px;
}

.ss-info-panel__sub{
  margin-top: 4px;
  font-size: 12px;
  opacity: .7;
}

.ss-info-panel__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

.ss-info-card{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 12px 10px;
  background: #000;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.ss-info-card__label{
  font-size: 12px;
  opacity: .75;
  line-height: 1.25;
}

.ss-info-card__value{
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .2px;
}

.ss-info-card__hint{
  margin-top: 6px;
  font-size: 12px;
  opacity: .65;
}

/* Responsive */
@media (max-width: 900px){
  .ss-info-panel__grid{ grid-template-columns: 1fr; }
  .ss-info-card__value{ font-size: 26px; }
}
