:root{
  --bg: #0b1220;
  --nav-bg: #ffffff;
  --text: #0e1525;
  --muted: rgba(15, 23, 42, .65);
  --card: #ffffff;
  --line: rgba(15, 23, 42, .10);
  --yellow: #f4b400;
  --yellow-2: #f7c21a;
  --shadow: 0 18px 50px rgba(2, 6, 23, .10);
  --shadow-soft: 0 12px 30px rgba(2, 6, 23, .08);
  --radius: 18px;
  --radius-lg: 24px;
}

html, body {
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}
body { background: #fff; }

/* NAV */
.top-nav{
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
.brand{
  font-weight: 900; letter-spacing: -0.02em; text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.brand .taxi{ color: var(--yellow); }
.brand .at{ color: #111827; }

.nav-link{
  color: rgba(17, 24, 39, .65) !important;
  font-weight: 600;
  padding: .85rem 1rem !important;
}
.nav-link:hover{ color: rgba(17, 24, 39, .95) !important; }

.btn-register{
  background: #0f172a;
  color: #fff;
  border: 0;
  font-weight: 800;
  padding: .75rem 1.1rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(2,6,23,.12);
}
.btn-register:hover{ filter: brightness(1.05); color:#fff; }

.btn-login{
  color: rgba(17, 24, 39, .70);
  font-weight: 700;
  text-decoration: none;
  margin-right: .75rem;
}
.btn-login:hover{ color: rgba(17,24,39,.95); }

/* ✅ Fix: Toggler sichtbar */
.navbar-light .navbar-toggler { border: 1px solid rgba(0,0,0,.12); border-radius: 12px; }
.navbar-light .navbar-toggler-icon { opacity: .9; }

/* ✅ Fix: Mobile Auth Buttons unter Menü schön */
@media (max-width: 991px){
  .nav-auth{
    padding: 14px 0 6px;
    width: 100%;
    justify-content: flex-start;
  }
  .btn-register{ width: 100%; }
  .btn-login{ margin-right: 0; padding: .5rem .25rem; }
}

/* HERO */
.hero{
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  background: #0b1220;
  overflow: hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: url("../images/hero.jpg"); /* ✅ richtiger Pfad aus CSS-Datei */
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(.95) contrast(1.02);
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg,
    rgba(2,6,23,.55) 0%,
    rgba(2,6,23,.70) 65%,
    rgba(2,6,23,.85) 100%);
}

/* ✅ Fix: Overlay frisst keine Klicks */
.hero::before,
.hero::after{
  pointer-events: none;
}

.hero-content{
  position: relative;
  z-index: 5; /* ✅ über Overlay */
  padding: 90px 0 75px;
  color: #fff;
  text-align: center;
  width: 100%;
}
.hero h1{
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(34px, 4vw, 64px);
  margin: 0;
}
.hero .yellow{ color: var(--yellow); }
.hero p{
  margin-top: 14px;
  font-size: 16px;
  color: rgba(255,255,255,.82);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Search */
.hero-search-wrap{
  margin-top: 26px;
  display: flex;
  justify-content: center;
}
.hero-search{
  width: min(820px, 92vw);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 25px 60px rgba(0,0,0,.22);
}
.search-pill{
  background: rgba(255,255,255,.95);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-icon{
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(15,23,42,.06);
  display: grid; place-items: center;
  color: rgba(15,23,42,.75);
  flex: 0 0 auto;
}
.search-input{
  border: 0;
  outline: none;
  width: 100%;
  font-weight: 600;
  color: rgba(15,23,42,.85);
  background: transparent;
  padding: 10px 4px;
}
.search-btn{
  border: 0;
  background: var(--yellow);
  color: #111827;
  font-weight: 900;
  padding: 12px 18px;
  border-radius: 12px;
  min-width: 140px;
  box-shadow: 0 10px 25px rgba(244,180,0,.25);
}
.search-btn:hover{ filter: brightness(1.03); }

.hero-bullets{
  margin-top: 14px;
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  color: rgba(255,255,255,.75);
  font-weight: 700;
  font-size: 14px;
}
.hero-bullets .dot{
  color: var(--yellow);
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

/* Sections */
.section{ padding: 90px 0; }
.section-title{
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 10px;
}
.section-sub{
  color: rgba(15,23,42,.60);
  max-width: 760px;
  margin: 0 auto;
  font-weight: 500;
}

/* Feature cards */
.feature-card{
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(2,6,23,.06);
  padding: 34px 28px;
  height: 100%;
  text-align: center;
}
.feature-icon{
  width: 64px; height: 64px;
  border-radius: 18px;
  background: rgba(15,23,42,.04);
  display: grid; place-items: center;
  margin: 0 auto 16px;
  color: rgba(15,23,42,.85);
  font-size: 22px;
}
.feature-card h3{
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  font-size: 20px;
}
.feature-card p{
  margin: 0;
  color: rgba(15,23,42,.60);
  line-height: 1.65;
  font-weight: 500;
}

/* Cities */
.cities{
  background: rgba(15,23,42,.02);
  padding: 80px 0 95px;
}
.cities-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.cities-head h2{
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
}
.cities-head p{
  margin: 10px 0 0;
  color: rgba(15,23,42,.60);
  font-weight: 500;
}
.cities-link{
  color: rgba(15,23,42,.75);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.cities-link:hover{ color: rgba(15,23,42,.95); }

.city-card{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(2,6,23,.06);
  aspect-ratio: 16 / 9;
  background: #0b1220;
}
.city-card img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  filter: saturate(.95) contrast(1.02);
  transform: scale(1.02);
}
.city-card::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(2,6,23,.10) 0%, rgba(2,6,23,.78) 100%);
}
.city-meta{
  position:absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
}
.city-meta .name{
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.city-meta .count{
  color: rgba(255,255,255,.78);
  font-weight: 700;
  font-size: 14px;
}
.city-card a{ position:absolute; inset:0; z-index:3; }

/* Dark area */
.dark-area{
  background: radial-gradient(1100px 450px at 50% 0%, rgba(244,180,0,.08) 0%, rgba(11,18,32,0) 60%),
              radial-gradient(900px 500px at 50% 120%, rgba(96,165,250,.10) 0%, rgba(11,18,32,0) 60%),
              #0b1220;
  padding: 90px 0 60px;
  color: #fff;
}
.glass-panel{
  max-width: 980px;
  margin: 0 auto;
  border-radius: 28px;
  padding: 44px 28px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  text-align: center;
}
.glass-panel h2{
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  font-size: 34px;
}
.glass-panel p{
  margin: 0 auto 22px;
  max-width: 720px;
  color: rgba(255,255,255,.78);
  font-weight: 500;
  line-height: 1.65;
}
.mini-actions{
  display:flex;
  gap: 14px;
  justify-content:center;
  flex-wrap: wrap;
  margin: 18px 0 22px;
}
.mini-action{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 14px 18px;
  min-width: 260px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  text-align:left;
}
.mini-action .i{
  width: 38px; height: 38px;
  border-radius: 12px;
  display:grid; place-items:center;
  background: rgba(244,180,0,.12);
  color: var(--yellow);
  font-size: 18px;
  flex: 0 0 auto;
}
.mini-action .t{ font-weight: 900; line-height: 1.1; }
.mini-action .s{
  font-size: 13px;
  color: rgba(255,255,255,.70);
  font-weight: 600;
}
.cta-big{
  background: var(--yellow);
  border: 0;
  color: #0b1220;
  font-weight: 900;
  padding: 16px 26px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(244,180,0,.20);
  min-width: 320px;
}
.cta-note{
  margin-top: 10px;
  color: rgba(255,255,255,.55);
  font-weight: 600;
  font-size: 13px;
}
/* Autocomplete */
.ac-wrap{ position: relative; width: 100%; }
.ac-list{
  position:absolute;
  left: 56px; right: 160px; /* passt zur Search Pill (Icon + Button) */
  top: calc(100% + 8px);
  background:#fff;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 18px 45px rgba(2,6,23,.10);
  overflow:hidden;
  z-index: 20;
}
@media (max-width: 600px){
  .ac-list{ left: 56px; right: 12px; } /* Button umbrechen kann, daher right kleiner */
}
.ac-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding: 12px 14px;
  cursor:pointer;
  font-weight: 800;
  color: rgba(15,23,42,.85);
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.ac-item:last-child{ border-bottom:0; }
.ac-item:hover, .ac-item.active{ background: rgba(244,180,0,.10); }
.ac-ico{
  width: 34px; height: 34px;
  border-radius: 12px;
  background: rgba(15,23,42,.06);
  display:grid; place-items:center;
  color: rgba(15,23,42,.70);
  flex: 0 0 auto;
}
.ac-sub{
  font-weight: 700;
  color: rgba(15,23,42,.55);
  font-size: 12px;
  margin-left:auto;
}
/* Footer darf NICHT über Content liegen */
footer, .footer, .site-footer {
  position: static !important;
}
    .dash-wrap{ padding: 50px 0 80px; background: rgba(15,23,42,.02); }
    .dash-head{
      max-width: 1100px; margin: 0 auto 18px;
      display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap;
    }
    .dash-head h1{
      margin:0; font-weight:900; letter-spacing:-0.02em;
      font-size: clamp(24px, 2.8vw, 40px);
    }
    .dash-sub{ margin:8px 0 0; color: rgba(15,23,42,.65); font-weight:600; line-height:1.7; max-width: 760px; }

    .pill{
      display:inline-flex; align-items:center; gap:10px;
      padding: 9px 12px; border-radius: 999px;
      font-weight: 900; font-size: 12px;
      border: 1px solid rgba(15,23,42,.10);
      background:#fff;
    }
    .pill.ok{ background: rgba(16,185,129,.10); color:#065f46; border-color: rgba(16,185,129,.25); }
    .pill.warn{ background: rgba(245,158,11,.10); color:#92400e; border-color: rgba(245,158,11,.25); }
    .pill.bad{ background: rgba(239,68,68,.10); color:#991b1b; border-color: rgba(239,68,68,.25); }

    .dash-grid{ max-width: 1100px; margin: 0 auto; }

    .cardx{
      background:#fff; border-radius: 24px;
      border: 1px solid rgba(2,6,23,.06);
      box-shadow: 0 18px 45px rgba(2,6,23,.08);
      padding: 22px;
      height: auto;
    }
    .cardx.premium{
      border-color: rgba(244,180,0,.35);
      background: linear-gradient(180deg, rgba(244,180,0,.12), #fff 60%);
    }
    .cardx h3{ margin:0 0 12px; font-weight:900; letter-spacing:-0.02em; font-size: 18px; }
    .muted{ color: rgba(15,23,42,.65); font-weight:600; }

    .kpi{ display:flex; gap: 14px; flex-wrap:wrap; }
    .kpi .box{
      flex: 1 1 220px;
      border-radius: 18px;
      border: 1px solid rgba(15,23,42,.10);
      background: rgba(15,23,42,.02);
      padding: 14px 14px;
    }
    .kpi .label{ font-weight:800; color: rgba(15,23,42,.65); font-size: 12px; }
    .kpi .value{ font-weight:900; font-size: 18px; margin-top: 4px; }

    .progress-wrap{
      border-radius: 18px;
      border: 1px solid rgba(15,23,42,.10);
      background: rgba(15,23,42,.02);
      padding: 14px;
    }
    .bar{
      height: 12px;
      border-radius: 999px;
      background: rgba(15,23,42,.10);
      overflow:hidden;
      margin-top: 10px;
    }
    .bar > div{
      height: 100%;
      width: <?= (int)$percent ?>%;
      background: var(--yellow);
      border-radius: 999px;
    }

    .actions{ display:grid; gap: 10px; }

    .btn-primary-custom{
      display:inline-flex; align-items:center; justify-content:center; gap:10px;
      width: 100%;
      background: var(--yellow);
      border: 0;
      color: #0b1220;
      font-weight: 900;
      border-radius: 14px;
      padding: 12px 14px;
      text-decoration:none;
      box-shadow: 0 18px 40px rgba(244,180,0,.18);
    }
    .btn-primary-custom:hover{ color:#0b1220; filter:brightness(1.03); }

    .btn-darkish{
      display:inline-flex; align-items:center; justify-content:center; gap:10px;
      width: 100%;
      background:#0f172a;
      border: 0;
      color: #fff;
      font-weight: 900;
      border-radius: 14px;
      padding: 12px 14px;
      text-decoration:none;
      box-shadow: 0 14px 35px rgba(2,6,23,.14);
    }
    .btn-darkish:hover{ color:#fff; filter:brightness(1.05); }

    .list-row{
      display:flex; justify-content:space-between; gap:12px;
      padding: 10px 0;
      border-bottom: 1px solid rgba(15,23,42,.10);
      font-weight: 700;
    }
    .list-row:last-child{ border-bottom:0; }
    .list-row .k{ color: rgba(15,23,42,.65); font-weight:800; }
    .list-row .v{ color: rgba(15,23,42,.90); text-align:right; }

    .media-grid img{
      width:100%;
      aspect-ratio: 1/1;
      object-fit: cover;
      border-radius: 18px;
      border: 1px solid rgba(15,23,42,.10);
      background:#fff;
    }

    @media (max-width: 991px){
      .dash-wrap{ padding: 38px 0 70px; }
    }
   .edit-wrap{ padding: 50px 0 80px; background: rgba(15,23,42,.02); }
    .edit-head{ max-width: 980px; margin: 0 auto 18px; }
    .edit-head h1{
      margin:0; font-weight:900; letter-spacing:-0.02em;
      font-size: clamp(24px, 2.8vw, 40px);
    }
    .edit-sub{ margin:8px 0 0; color: rgba(15,23,42,.65); font-weight:600; line-height:1.7; }

    .cardx{
      max-width: 980px;
      margin: 0 auto;
      background:#fff; border-radius: 24px;
      border: 1px solid rgba(2,6,23,.06);
      box-shadow: 0 18px 45px rgba(2,6,23,.08);
      padding: 22px;
    }

    .form-label{ font-weight: 800; color: rgba(15,23,42,.85); }
    .form-control, .form-select{
      border-radius: 14px;
      padding: .85rem .95rem;
      border: 1px solid rgba(15,23,42,.12);
    }
    .hint{ color: rgba(15,23,42,.60); font-weight:600; font-size: 13px; }

    .btn-primary-custom{
      display:inline-flex; align-items:center; justify-content:center; gap:10px;
      background: var(--yellow);
      border: 0;
      color: #0b1220;
      font-weight: 900;
      border-radius: 14px;
      padding: 12px 16px;
      text-decoration:none;
      box-shadow: 0 18px 40px rgba(244,180,0,.18);
    }
    .btn-primary-custom:hover{ color:#0b1220; filter:brightness(1.03); }

    .btn-darkish{
      display:inline-flex; align-items:center; justify-content:center; gap:10px;
      background:#0f172a;
      border: 0;
      color: #fff;
      font-weight: 900;
      border-radius: 14px;
      padding: 12px 16px;
      text-decoration:none;
      box-shadow: 0 14px 35px rgba(2,6,23,.14);
    }
    .btn-darkish:hover{ color:#fff; filter:brightness(1.05); }

    .pill{
      display:inline-flex; align-items:center; gap:10px;
      padding: 9px 12px; border-radius: 999px;
      font-weight: 900; font-size: 12px;
      border: 1px solid rgba(15,23,42,.10);
      background:#fff;
    }
    .pill.ok{ background: rgba(16,185,129,.10); color:#065f46; border-color: rgba(16,185,129,.25); }
    .pill.warn{ background: rgba(245,158,11,.10); color:#92400e; border-color: rgba(245,158,11,.25); }
    .pill.bad{ background: rgba(239,68,68,.10); color:#991b1b; border-color: rgba(239,68,68,.25); }

    /* Header Layout Fix */
.top-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  flex-wrap:nowrap;        /* Desktop: NICHT umbrechen */
  margin-bottom:12px;
}

.left-head{
  flex:1 1 auto;
  min-width:320px;
}

.right-actions{
  flex:0 0 auto;
  margin-left:auto;       /* zwingt nach rechts */
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}

.right-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}

.back-btn{
  width:auto;
  white-space:nowrap;
  padding:10px 14px;
  border-radius:14px;
}

/* Mobile */
@media (max-width: 768px){
  .top-row{
    flex-wrap:wrap;
  }
  .right-actions{
    align-items:flex-start;
    margin-left:0;
  }
}
    /* Editor */
    .editor-wrap{
      border: 1px solid rgba(15,23,42,.12);
      border-radius: 16px;
      overflow: hidden;
      background:#fff;
    }
    .editor-toolbar{
      display:flex; gap: 8px; flex-wrap:wrap;
      padding: 10px;
      background: rgba(15,23,42,.02);
      border-bottom: 1px solid rgba(15,23,42,.10);
    }
    .toolbtn{
      border: 1px solid rgba(15,23,42,.10);
      background:#fff;
      border-radius: 12px;
      padding: 8px 10px;
      font-weight: 900;
      color: rgba(15,23,42,.80);
      cursor:pointer;
      user-select:none;
    }
    .toolbtn:hover{ filter: brightness(1.02); }
    .editor{
      min-height: 150px;
      padding: 14px 14px;
      outline:none;
      font-weight: 600;
      color: rgba(15,23,42,.85);
    }

    /* Einsatzgebiete Tags */
    .tagbox{
      border: 1px solid rgba(15,23,42,.12);
      border-radius: 16px;
      padding: 10px 12px;
      background:#fff;
    }
    .tags{
      display:flex; flex-wrap:wrap; gap:8px;
      margin-top: 10px;
    }
    .tag{
      display:inline-flex; align-items:center; gap:8px;
      padding: 8px 10px;
      border-radius: 999px;
      background: rgba(244,180,0,.12);
      border: 1px solid rgba(244,180,0,.25);
      color: rgba(15,23,42,.85);
      font-weight: 900;
      font-size: 12px;
    }
    .tag .x{
      width: 20px; height: 20px;
      border-radius: 999px;
      display:grid; place-items:center;
      background: rgba(15,23,42,.10);
      cursor:pointer;
      font-weight: 900;
      line-height: 1;
    }
	.tags{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.tag{ display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:999px;
      background: rgba(244,180,0,.12); border:1px solid rgba(244,180,0,.25); font-weight:900; font-size:12px; }
.tag .x{ width:20px;height:20px;border-radius:999px;display:grid;place-items:center;background:rgba(15,23,42,.10);
         cursor:pointer; font-weight:900; line-height:1; }
.btn-successish{
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 14px 35px rgba(34,197,94,.35);
}

.btn-successish:hover{
  filter: brightness(1.05);
}
