:root{
  --bg: #f6f9fc;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #5b667a;

  /* aus dem Logo */
  --primary: #0060A0;
  --primary-2: #0f76be;

  --ring: rgba(0,96,160,.25);
  --shadow: 0 10px 30px rgba(11,18,32,.08);
  --radius: 18px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1000px 500px at 20% -10%, rgba(0,96,160,.18), transparent 60%),
              radial-gradient(900px 450px at 110% 10%, rgba(15,118,190,.16), transparent 55%),
              var(--bg);
  color: var(--text);
}

.container{
  width: min(980px, calc(100% - 28px));
  margin: 18px auto 40px;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.80);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(11,18,32,.06);
}

.brand{ display:flex; align-items:center; gap: 12px; }
.logo{
  width: 52px;
  height: auto;              /* ⬅️ wichtig: proportional */
  max-height: 52px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,96,160,.18);
  background: #fff;
  padding: 6px;
}

/* Mobile */
@media (max-width: 640px){
  .logo{
    width: 36px;             /* kleiner */
    max-height: 36px;
    padding: 4px;
    border-radius: 10px;
  }
}

.brand-title{ font-weight: 800; letter-spacing: .2px; }
.brand-sub{ color: var(--muted); font-size: 13px; margin-top: 2px; }

.admin-link{
  text-decoration:none;
  color: var(--primary);
  font-weight: 700;
}

.card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(11,18,32,.06);
}

.controls{ padding: 14px; margin-bottom: 14px; }
.controls-row{ display:flex; flex-direction:column; gap: 12px; }

.chips{
  display:flex;
  gap: 8px;
  overflow:auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar{ display:none; }

.chip{
  border: 1px solid rgba(11,18,32,.10);
  background: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: transform .08s ease, border-color .15s ease, color .15s ease, background .15s ease;
}
.chip:active{ transform: scale(.98); }
.chip.is-active{
  border-color: var(--ring);
  background: rgba(0,96,160,.10);
  color: var(--primary);
}

.filters{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 640px){
  .filters{ grid-template-columns: 1fr; }
}

.field{ display:flex; flex-direction:column; gap:6px; }
.field > span{ font-size: 12px; color: var(--muted); font-weight: 700; }
input, select, textarea{
  width:100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,18,32,.12);
  outline: none;
  font: inherit;
  background: #fff;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(0,96,160,.45);
  box-shadow: 0 0 0 4px var(--ring);
}

.hint{ margin-top: 10px; color: var(--muted); font-size: 13px; }

.feed{
  display:grid;
  gap: 12px;
}

.post-card{
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  position: relative;
  overflow:hidden;
}
.post-card::before{
  content:"";
  position:absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,96,160,.08), transparent 45%);
  pointer-events:none;
}

.meta{ display:flex; align-items:center; gap: 10px; flex-wrap: wrap; }
.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,96,160,.10);
  color: var(--primary);
  border: 1px solid rgba(0,96,160,.18);
  font-size: 12px;
  font-weight: 800;
}
.badge.ok{ background: rgba(20,160,90,.10); border-color: rgba(20,160,90,.18); color: #147a4e; }
.badge.muted{ background: rgba(11,18,32,.06); border-color: rgba(11,18,32,.08); color: var(--muted); }

.date{ color: var(--muted); font-size: 12px; font-weight: 700; }
.pin{ color: var(--primary-2); font-weight: 900; }

.title{
  font-size: 18px;
  font-weight: 900;
  margin: 0;
}
.excerpt{
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.link{
  text-decoration:none;
  color: var(--primary);
  font-weight: 900;
}
.readmark{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  background: rgba(11,18,32,.06);
  border: 1px solid rgba(11,18,32,.08);
  padding: 6px 10px;
  border-radius: 999px;
}

.center{ display:flex; justify-content:center; margin: 18px 0; }

.btn{
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  color: #fff;
  font-weight: 900;
  padding: 11px 14px;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(0,96,160,.22);
}
.btn:active{ transform: translateY(1px); }
.btn.ghost{
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(0,96,160,.20);
  box-shadow: none;
}
.btn.danger{
  background: #f23d3d;
  box-shadow: 0 10px 22px rgba(242,61,61,.18);
}
.nowrap{ white-space: nowrap; }
.inline{ display:inline; }

.post{ padding: 16px; }
.post h1{ margin: 6px 0 10px; font-size: 28px; }
.lead{ color: var(--muted); font-weight: 700; line-height: 1.55; }
.content{ line-height: 1.65; }
.content a{ color: var(--primary); font-weight: 900; }
.post-actions{ margin-top: 14px; display:flex; justify-content:flex-end; }

.auth{ padding: 18px; margin-top: 40px; max-width: 520px; margin-inline:auto; }
.alert{
  background: rgba(242,61,61,.10);
  border: 1px solid rgba(242,61,61,.22);
  color: #a41818;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 800;
  margin: 10px 0;
}

.table{ width:100%; border-collapse: collapse; }
.table th, .table td{
  text-align:left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(11,18,32,.08);
  vertical-align: top;
}
.row{ display:flex; gap: 10px; margin: 12px 0; align-items:center; justify-content:flex-start; }
.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 760px){ .grid2{ grid-template-columns: 1fr; } }

.checkbox{ flex-direction: row; align-items:center; gap: 10px; margin-top: 24px; }
.checkbox input{ width: 18px; height: 18px; }
