:root{
  --red:#d41111;
  --red2:#b10f0f;
  --bg:#ffffff;
  --soft:#f6f6f7;
  --text:#111;
  --muted:#666;
  --card:#fff;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 18px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #fff 0%, #fff 30%, var(--soft) 100%);
  color:var(--text);
}

.top{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  padding:18px 14px 10px;
  max-width:1100px;
  margin:0 auto;
}
.top__left{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
  border: 1px solid rgba(0,0,0,.05);
}
.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  background: rgba(212,17,17,.08);
  color: var(--red2);
  border:1px solid rgba(212,17,17,.18);
  padding:6px 10px;
  border-radius: 999px;
  font-weight:800;
  font-size:13px;
}
h1{ margin:10px 0 6px; font-size:22px; line-height:1.1; }
p{ margin:0; color:var(--muted); font-size:14px; line-height:1.4; }
.actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; align-items:center; }

.btn{
  appearance:none;
  border:0;
  background: linear-gradient(180deg, var(--red) 0%, var(--red2) 100%);
  color:#fff;
  padding:10px 12px;
  border-radius: 14px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  box-shadow: 0 8px 20px rgba(212,17,17,.25);
}
.btn--ghost{
  background:#fff;
  color:var(--red2);
  border:1px solid rgba(212,17,17,.25);
  box-shadow:none;
}
.btn:active{ transform: translateY(1px); }

.radius{
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid rgba(212,17,17,.25);
  background:#fff;
  color:var(--red2);
  font-weight:800;
}

.top__right{ display:flex; }
.radar-card{
  width:100%;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.05);
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:10px;
}
.radar-text{ color:var(--muted); font-size:13px; }

.main{
  max-width:1100px;
  margin:0 auto;
  padding: 10px 14px 22px;
  display:grid;
  gap:12px;
}

.card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.05);
  overflow:hidden;
}

#map{ height: 320px; }
@media (max-width: 860px){
  .top{ grid-template-columns: 1fr; }
  #map{ height: 260px; }
}

.list-card{ padding: 14px; }
.list-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
h2{ margin:0; font-size:18px; }
.muted{ color:var(--muted); font-size:13px; }

.list{ display:grid; gap:10px; }
.item{
  display:grid;
  grid-template-columns: 56px 1fr;
  gap:10px;
  padding:10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
}
.item__img{
  width:56px; height:56px; border-radius: 14px;
  object-fit: cover;
  background: rgba(212,17,17,.08);
}
.item__img--ph{
  display:flex; align-items:center; justify-content:center;
  font-weight:900; color:var(--red2);
}
.item__title{ font-weight:900; margin-bottom:3px; }
.item__meta{ color:var(--muted); font-size:13px; line-height:1.3; }
.item__info{ margin-top:6px; font-size:13px; color:#333; }

.empty{
  padding:14px;
  color:var(--muted);
  text-align:center;
}

.pay-card{ padding:14px; }
.pay-card h3{ margin:0 0 6px; }

/* Logo oben als volle Leiste */
.top__left{
  padding: 0;              /* wichtig: damit die Logo-Bar wirklich oben anliegt */
  overflow: hidden;        /* damit abgerundete Ecken sauber bleiben */
}

/* Inhalt bekommt wieder normalen Abstand */
.top-content{
  padding: 16px;
}

/* ========================= */
/* LOGO HEADER */
/* ========================= */

/* ========================= */
/* LOGO HEADER */
/* ========================= */

.top__left{
  padding: 0;
  overflow: hidden;
}

/* Logo-Leiste */
.logo-bar{
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(180deg, rgba(212,17,17,.08) 0%, rgba(212,17,17,.03) 100%);
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: flex-start; /* PC links */
}

/* Logo selbst */
.logo-full{
  height: 80px;   /* PC Größe */
  width: auto;
  display: block;
  max-width: 100%;
}

/* Inhalt unterhalb */
.top-content{
  padding: 18px;
}

/* ========================= */
/* MOBILE VERSION */
/* ========================= */

@media (max-width: 860px){

  .logo-bar{
    justify-content: center;  /* Logo mittig */
    padding: 20px 10px;
  }

  .logo-full{
    height: 70px;        /* deutlich größer */
    width: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .top-content{
    padding: 16px;
  }
}





/* =========================================
   DETAILS BUTTON IN LISTE (rechts)
========================================= */

.item{
  position: relative;
}

.item__actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.item__btn{
  margin-left: auto;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(212,17,17,.25);
  background: #fff;
  color: var(--red2);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.item__btn:active{
  transform: translateY(1px);
}

/* Desktop: Textbutton */
@media (min-width: 861px){
  .item{
    grid-template-columns: 56px 1fr auto; /* rechts Platz für Button */
    align-items: start;
  }
}

/* Mobile: Button als Icon/kleiner, aber rechts */
@media (max-width: 860px){
  .item{
    grid-template-columns: 56px 1fr auto;
    align-items: start;
  }
  .item__btn{
    padding: 9px 10px;
    font-size: 13px;
  }
}

/* =========================================
   MODAL (Popup)
========================================= */

.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.modal.is-open{
  display: block;
}

.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.modal__panel{
  position: relative;
  width: min(720px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: auto;
  margin: 12px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  border: 1px solid rgba(0,0,0,.08);
}

@media (max-width: 860px){
  .modal__panel{
    width: calc(100% - 18px);
    margin: 9px auto;
    border-radius: 18px;
  }
}

.modal__head{
  padding: 14px 14px 10px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.modal__title{
  font-size: 18px;
  font-weight: 1000;
  color: #111;
}

.modal__sub{
  margin-top: 4px;
  font-size: 13px;
}

.modal__close{
  appearance: none;
  border: 0;
  background: rgba(0,0,0,.06);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
}

.modal__body{
  padding: 14px;
  display: grid;
  gap: 12px;
}

.modal__imgwrap{
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
}

.modal__img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.modal__row{
  background: rgba(0,0,0,.02);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 10px 12px;
}

.modal__label{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 4px;
}

.modal__value{
  font-size: 14px;
  color: #111;
  line-height: 1.35;
  white-space: pre-wrap;
}

.modal__foot{
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(0,0,0,.06);
  display:flex;
  justify-content:flex-end;
}
