:root{
  --bg:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
  --accent:#111827;
  --card:#ffffff;
}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--text);background:var(--bg);line-height:1.4}
/* Page shell like home (usable on non-home pages) */
.page-bg{
  min-height:100vh;
  padding:34px 24px;
  background: radial-gradient(1200px 600px at 50% -10%, #ffffff 0%, #eef3fb 35%, #dde7f6 100%);
}

.page-shell{
  max-width:1320px;
  margin:0 auto;
}

.page-shell-wide{
  max-width:1480px;
  margin:0 auto;
}

.page-panel{
  background:#fff;
  border:1px solid rgba(15,23,42,0.08);
  border-radius:18px;
  box-shadow: 0 18px 45px rgba(15,23,42,0.08);
  padding:18px 24px 16px;
}
a{
  color:inherit;
  text-decoration:none;
  transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover{
  text-decoration:underline;
  opacity:0.85;
}
.container{max-width:980px;margin:0 auto;padding:24px}
.container-wide{max-width:1100px;margin:0 auto;padding:18px}
.header-wrap{
  background: transparent;
  border-bottom: none;
  padding-top: 0;
  padding-bottom: 0;
}
.nav{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--border)}
.nav .left{display:flex;gap:14px;align-items:center}
.brand{font-weight:700;letter-spacing:0.2px}
.navlinks{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border:1px solid var(--border);border-radius:10px;background:#fff;cursor:pointer;font-weight:600}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.ghost{border-color:transparent}

.oauth-box{
  display:flex;
  flex-direction:column;
  gap:9px;
  margin:12px 0 14px;
}

.oauth-btn{
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  color:var(--text);
  font-size:14px;
  font-weight:650;
  cursor:pointer;
  text-decoration:none;
  box-shadow:0 1px 2px rgba(15,23,42,0.04);
}

.oauth-btn:hover{
  text-decoration:none;
  opacity:1;
  background:#f9fafb;
}

.oauth-btn-disabled{
  color:#6b7280;
  cursor:not-allowed;
  background:#fff;
}

.oauth-btn-disabled:hover{
  background:#fff;
}

.oauth-btn-disabled .oauth-logo img{
  opacity:1;
}

.oauth-logo{
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 30px;
  border-radius:999px;
  background:#fff;
  line-height:1;
}

.oauth-logo img{
  width:23px;
  height:23px;
  display:block;
  object-fit:contain;
}

.oauth-logo img[src$="apple.svg"]{
  width:33px;
  height:33px;
}

.oauth-logo img[src$="facebook.svg"]{
  width:24px;
  height:24px;
}

.oauth-note{
  margin-top:2px;
  color:var(--muted);
  font-size:12px;
}

.oauth-separator{
  display:flex;
  align-items:center;
  gap:10px;
  margin:14px 0 14px;
  color:var(--muted);
  font-size:12px;
}

.oauth-separator::before,
.oauth-separator::after{
  content:"";
  height:1px;
  flex:1;
  background:var(--border);
}

.oauth-separator span{
  white-space:nowrap;
}

.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border:1px solid var(--border);border-radius:999px;color:var(--muted);font-size:12px}
/* Shared header styles (copied from home.css) */
.home-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(0,0,0,0.06);
}

.home-tabs{
  flex:1;
  display:flex;
  justify-content:center;
  gap:12px;
  margin:0;
}

.home-tab{
  text-decoration:none;
  color:inherit;
  padding:10px 14px;
  border-radius:999px;
}

.home-tab.active{
  background:rgba(0,0,0,.06);
}

.top-actions{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
}

.brand-mark{
  width:22px;
  height:22px;
  border-radius:8px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 6px 18px rgba(37,99,235,0.18);
  border: 1px solid rgba(15,23,42,0.08);
  display:inline-block;
}

@media (max-width: 720px){
  .home-topbar{
    flex-wrap:wrap;
    align-items:flex-start;
    gap:12px;
  }

  .home-tabs{
    order:3;
    flex:0 0 100%;
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:8px;
  }

  .top-actions{
    margin-left:auto;
    justify-content:flex-end;
    gap:8px;
  }

  .home-tab{
    padding:9px 12px;
  }
}

.grid{display:grid;grid-template-columns:1fr;gap:14px}
@media (min-width: 860px){.grid{grid-template-columns:1fr 1fr}}
.card{border:1px solid var(--border);border-radius:14px;background:var(--card);padding:16px}
.h1{font-size:34px;line-height:1.1;margin:0 0 10px}
.h2{font-size:18px;margin:0 0 10px}
.p{color:var(--muted);margin:0 0 10px}
.row{display:flex;gap:12px;flex-wrap:wrap}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
label{font-weight:600;font-size:13px}
input,select,textarea{border:1px solid var(--border);border-radius:10px;padding:10px 12px;font-size:14px;outline:none}
textarea{min-height:120px;resize:vertical}
.small{font-size:12px;color:var(--muted)}
.footer{margin-top:26px;padding-top:16px;border-top:1px solid var(--border);color:var(--muted);font-size:12px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.flash{border:1px solid var(--border);border-radius:12px;padding:10px 12px;margin:12px 0}
.flash.ok{border-color:#bbf7d0;background:#f0fdf4}
.flash.err{border-color:#fecaca;background:#fef2f2}
.thumbgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
@media (min-width: 860px){.thumbgrid{grid-template-columns:repeat(5,1fr)}}
.thumb{border:1px solid var(--border);border-radius:12px;overflow:hidden;position:relative}
.thumb img{width:100%;height:110px;object-fit:cover;display:block}
.thumb .x{position:absolute;top:6px;right:6px;background:rgba(17,24,39,0.85);color:#fff;border:none;border-radius:999px;width:28px;height:28px;cursor:pointer}

.lightbox-thumb{
  width:100%;
  display:block;
  padding:0;
  margin:0;
  border:0;
  background:transparent;
  cursor:pointer;
}

.search-lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(15,23,42,0.82);
}

.search-lightbox.is-open{
  display:flex;
}

.search-lightbox-inner{
  position:relative;
  width:min(94vw, 900px);
  max-height:86vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.search-lightbox-inner img{
  width:auto;
  max-width:min(92vw, 820px);
  max-height:78vh;
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 60px rgba(0,0,0,0.35);
  object-fit:contain;
}

.search-lightbox-close{
  position:absolute;
  top:-24px;
  right:-24px;
  z-index:5;
  width:54px;
  height:54px;
  border:0;
  border-radius:999px;
  background:#fff;
  color:#0f172a;
  font-size:40px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,0.28);
}

.search-lightbox-nav{
  position:absolute;
  top:50%;
  z-index:5;
  width:58px;
  height:70px;
  transform:translateY(-50%);
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,0.94);
  color:#0f172a;
  font-size:56px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(0,0,0,0.25);
}

.search-lightbox-prev{
  left:8px;
}

.search-lightbox-next{
  right:8px;
}

.search-lightbox-counter{
  position:absolute;
  left:50%;
  bottom:-38px;
  transform:translateX(-50%);
  padding:6px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.94);
  color:#0f172a;
  font-size:14px;
  font-weight:700;
}

body.lightbox-open{
  overflow:hidden;
}

@media (max-width: 640px){
  .search-lightbox{
    padding:12px;
  }

  .search-lightbox-inner{
    width:100%;
    max-height:82vh;
  }

  .search-lightbox-inner img{
    max-width:92vw;
    max-height:72vh;
    border-radius:12px;
  }

  .search-lightbox-close{
    top:8px;
    right:8px;
    width:54px;
    height:54px;
    font-size:40px;
  }

  .search-lightbox-nav{
    width:52px;
    height:64px;
    font-size:48px;
  }

  .search-lightbox-prev{
    left:4px;
  }

  .search-lightbox-next{
    right:4px;
  }

  .search-lightbox-counter{
    bottom:10px;
  }
}

.account-menu{
display:flex;
gap:20px;
margin:10px 0 25px 0;
font-size:14px;
border-bottom:1px solid rgba(0,0,0,0.08);
padding-bottom:10px;
}

.account-menu a{
text-decoration:none;
color:#2b2b2b;
padding:6px 12px;
border-radius:6px;
transition:background 0.15s;
}

.account-menu a:hover{
background:#f3f5f7;
}

.profile-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
  margin-top:10px;
}

.profile-grid label{
  font-size:13px;
  color:#444;
}

.profile-grid input{
  width:100%;
}

.profile-grid div{
display:flex;
flex-direction:column;
gap:4px;
}
.profile-grid label{
font-weight:500;
}
.profile-grid input{
padding:10px 12px;
}
.table-scroll{
  overflow-x:auto;
}
.operator-table{
  border-collapse:collapse;
}
.operator-table-head-row{
  border-bottom:1px solid var(--border);
  text-align:left;
}
.operator-table-th{
  padding:8px 6px;
  font-size:15px;
}
.operator-table-td{
  padding:8px 6px;
  font-size:15px;
  vertical-align:top;
}
.operator-table-row{
  border-bottom:1px solid var(--border);
  vertical-align:top;
}
@media (max-width: 760px){
  .page-bg{
    padding:14px 10px;
  }

  .page-shell{
    max-width:100%;
  }

  .page-panel{
    border-radius:16px;
    padding:14px 14px 12px;
  }
}

.search-list-item{
  display:flex;
  gap:14px;
  padding:14px 0;
  border-top:1px solid var(--border);
}

.search-list-image{
  width:120px;
  height:82px;
  flex:0 0 120px;
  border-radius:16px;
  overflow:hidden;
  background:#f3f7fd;
  border:1px solid var(--border);
  display:block;
}

.search-list-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.search-list-content{
  min-width:0;
  flex:1;
}

.search-list-title{
  display:block;
  color:var(--text);
  text-decoration:none;
  font-weight:800;
  line-height:1.35;
}

.search-list-title:hover{
  text-decoration:underline;
}

.search-list-category{
  margin-top:6px;
}

@media (max-width:700px){
  .search-list-item{
    align-items:flex-start;
  }

  .search-list-image{
    width:92px;
    height:70px;
    flex-basis:92px;
  }
}

.account-search-item{
  display:flex;
  gap:14px;
  padding:14px 0;
  border-top:1px solid var(--border);
}

.account-search-image{
  width:110px;
  height:76px;
  flex:0 0 110px;
  border-radius:16px;
  overflow:hidden;
  background:#f3f7fd;
  border:1px solid var(--border);
  display:block;
}

.account-search-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.account-search-content{
  min-width:0;
  flex:1;
}

@media (max-width:700px){
  .account-search-item{
    align-items:flex-start;
  }

  .account-search-image{
    width:86px;
    height:66px;
    flex-basis:86px;
  }
}

.detail-placeholder{
  width:320px;
  max-width:100%;
  border-radius:18px;
  overflow:hidden;
}

.detail-placeholder img{
  width:100%;
  height:auto;
  display:block;
}

.operator-search-thumb{
  width:72px;
  height:50px;
  border-radius:12px;
  overflow:hidden;
  background:#f3f7fd;
  border:1px solid var(--border);
}

.operator-search-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.operator-detail-placeholder{
  width:220px;
  max-width:100%;
  border-radius:16px;
  overflow:hidden;
  background:#f3f7fd;
  border:1px solid var(--border);
}

.operator-detail-placeholder img{
  width:100%;
  height:auto;
  display:block;
}

/* Bearbeiten-Seite: Bildverwaltung mit Startbild-Button */
.edit-thumb{
  height:auto;
  min-height:120px;
  overflow:visible;
  padding:8px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
}

.edit-thumb img{
  width:86px;
  height:86px;
  object-fit:cover;
  border-radius:10px;
  display:block;
}

.edit-thumb form{
  margin:0;
}

.edit-thumb .btn,
.edit-thumb .btn-secondary{
  white-space:normal;
  text-align:center;
  line-height:1.2;
}