:root{
--border:#dbe4ef;
--surface:#fff;
--bg:#f4f7fb;
--text:#152033;
--muted:#607089;
--brand:#1f6ed4;
--brand-2:#1858aa;
--shadow:0 10px 26px rgba(15,31,56,.08);
--radius:20px
}

*{box-sizing:border-box}

body{
margin:0;
background:var(--bg);
color:var(--text);
font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif
}

a{text-decoration:none;color:var(--brand)}
a:hover{color:var(--brand-2)}

.admin-shell{
max-width:96vw;
margin:24px auto;
padding:24px;
background:#fff;
border:1px solid var(--border);
border-radius:var(--radius);
box-shadow:var(--shadow)
}

.admin-topbar{
display:flex;
flex-wrap:wrap;
justify-content:space-between;
align-items:center;
gap:12px;
margin-bottom:18px
}

.admin-topbar h1{
margin:0;
letter-spacing:-.03em
}

.admin-actions,.toolbar{
display:flex;
flex-wrap:wrap;
gap:10px;
align-items:center
}

.toolbar{
margin-bottom:14px
}

.btn,button{
display:inline-flex;
align-items:center;
justify-content:center;
gap:8px;
min-height:42px;
padding:0 14px;
border:1px solid var(--border);
border-radius:14px;
background:#fff;
color:var(--text);
font:inherit;
font-weight:700;
cursor:pointer
}

.btn-primary,button{
background:linear-gradient(180deg,var(--brand),var(--brand-2));
color:#fff;
border-color:transparent
}

.btn-secondary{
background:#fff
}

.small{
min-height:38px;
padding:0 12px
}

.admin-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
gap:14px
}

.admin-card{
padding:18px;
border:1px solid var(--border);
border-radius:18px;
background:#fff;
box-shadow:0 4px 16px rgba(15,31,56,.06)
}

.admin-card p{
color:var(--muted)
}

.notice{
background:#edf6ff;
border:1px solid rgba(31,110,212,.2);
padding:12px 14px;
border-radius:14px;
margin:10px 0 16px;
color:#20497e
}

.table-wrap{
overflow:auto;
border:1px solid var(--border);
border-radius:18px
}

.admin-table{
width:100%;
min-width:1500px;
border-collapse:collapse;
background:#fff
}

.admin-table th,
.admin-table td{
padding:12px;
border-bottom:1px solid #edf2f7;
vertical-align:top;
text-align:left
}

.admin-table th{
background:#f8fbff;
color:#4b5f78;
font-size:.92rem;
position:sticky;
top:0;
z-index:1
}

.admin-table tr:last-child td{
border-bottom:0
}

.admin-table td:nth-child(1){min-width:150px}
.admin-table td:nth-child(2){min-width:180px}
.admin-table td:nth-child(3){min-width:170px}
.admin-table td:nth-child(4){min-width:150px}
.admin-table td:nth-child(5){min-width:260px}
.admin-table td:nth-child(6){min-width:330px}
.admin-table td:nth-child(7){min-width:160px}

.admin-table tr.edit-row{
background:#fff8e6
}

input[type=text],
input[type=email],
input[type=password],
input[type=url],
input[type=tel],
input[type=date],
input[type=datetime-local],
select,
textarea{
width:100%;
padding:12px 14px;
border:1px solid var(--border);
border-radius:14px;
font:inherit
}

textarea{
min-height:88px;
resize:vertical
}

.actions{
white-space:nowrap
}

.admin-note{
margin:12px 0 0;
color:var(--muted)
}

/* Smartphone ohne horizontales Scrollen */
@media (max-width:640px){

body{
background:#fff
}

.admin-shell{
max-width:100%;
margin:0;
padding:14px;
border:0;
border-radius:0;
box-shadow:none
}

.admin-topbar{
align-items:flex-start
}

.admin-topbar h1{
font-size:1.45rem
}

.admin-actions{
width:100%;
gap:8px
}

.admin-actions .btn,
.admin-actions button{
flex:1;
min-height:40px;
padding:0 10px;
font-size:.9rem
}

.table-wrap{
border:none;
overflow:visible
}

.admin-table{
width:100%;
min-width:100%;
display:block
}

.admin-table thead{
display:none
}

.admin-table,
.admin-table tbody,
.admin-table tr,
.admin-table td{
display:block;
width:100%
}

.admin-table tr{
background:#fff;
border:1px solid var(--border);
border-radius:14px;
padding:12px;
margin-bottom:14px
}

.admin-table td{
border:none;
padding:6px 0;
min-width:auto !important
}

.admin-table td.actions{
display:flex;
gap:8px;
margin-top:10px
}

.admin-table td.actions .btn,
.admin-table td.actions button{
flex:1
}

input[type=text],
input[type=email],
input[type=password],
input[type=url],
input[type=tel],
input[type=date],
input[type=datetime-local],
select,
textarea{
padding:9px;
font-size:.85rem;
border-radius:10px
}

textarea{
min-height:70px
}

input[type=file]{
max-width:210px;
font-size:.78rem
}

.small{
min-height:34px;
padding:0 9px;
font-size:.82rem
}

}
.company-card{
  overflow:hidden;
}

.company-image{
  display:block;
  width:100%;
  height:130px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  margin-bottom:14px;
}
/* Größere Felder für Sehenswürdigkeiten */
textarea[name="teaser[]"],
textarea[name="description[]"]{
  min-width:360px !important;
  width:360px !important;
  min-height:150px !important;
  resize:vertical;
  line-height:1.5;
}

.admin-table td:nth-child(2),
.admin-table td:nth-child(3){
  min-width:390px !important;
}
.sights-admin-form{
  display:grid;
  gap:18px;
}

.sights-admin-card{
  border:1px solid var(--border);
  border-radius:22px;
  background:#fff;
  padding:18px;
  box-shadow:0 10px 28px rgba(15,31,56,.06);
}

.sights-admin-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.sights-admin-grid .field{
  display:grid;
  gap:7px;
}

.sights-admin-grid label{
  font-weight:800;
  font-size:.9rem;
  color:#334155;
}

.sights-admin-grid textarea{
  min-height:150px;
}

.sights-admin-grid .field-wide{
  grid-column:1 / -1;
}

.sights-admin-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:16px;
}

@media (max-width:760px){
  .sights-admin-grid{
    grid-template-columns:1fr;
  }
}
.sights-admin-grid textarea[name="teaser[]"]{
  min-height:120px !important;
}

.sights-admin-grid textarea[name="description[]"]{
  min-height:190px !important;
}

.sights-admin-grid input,
.sights-admin-grid textarea{
  font-size:.95rem;
}
.visitor-stats-card{
  grid-column:1 / -1;
}

.visitor-stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}

.visitor-stats-grid div{
  padding:16px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#f8fbff;
}

.visitor-stats-grid strong{
  display:block;
  font-size:1.8rem;
  letter-spacing:-.04em;
  color:var(--brand);
}

.visitor-stats-grid span{
  color:var(--muted);
  font-weight:700;
}

@media (max-width:640px){
  .visitor-stats-grid{
    grid-template-columns:1fr 1fr;
  }
}
.admin-dashboard{
  display:grid;
  gap:18px;
}

.dashboard-section{
  border:1px solid var(--border);
  border-radius:22px;
  padding:18px;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,31,56,.06);
}

.dashboard-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:14px;
}

.dashboard-section-head h2{
  margin:2px 0 0;
  font-size:1.35rem;
  letter-spacing:-.03em;
}

.section-kicker{
  display:inline-flex;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.dashboard-section-internal{
  background:linear-gradient(180deg,#f7fbff 0%,#ffffff 72%);
  border-color:#cfe0f5;
}

.dashboard-section-internal .section-kicker,
.admin-card-internal h3{
  color:#1858aa;
}

.dashboard-section-public{
  background:linear-gradient(180deg,#fffaf1 0%,#ffffff 72%);
  border-color:#ead7ad;
}

.dashboard-section-public .section-kicker,
.admin-card-public h3{
  color:#9a6500;
}

.admin-card-internal{
  border-color:#cfe0f5;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}

.admin-card-public{
  border-color:#ead7ad;
  background:linear-gradient(180deg,#ffffff 0%,#fffaf1 100%);
}

.admin-card-internal:hover,
.admin-card-public:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(15,31,56,.10);
}

.admin-card{
  transition:transform .18s ease, box-shadow .18s ease;
}
.premium-hero-card,
.dashboard-section{
  position:relative;
  overflow:hidden;
}

.premium-card-head{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.premium-kicker{
  display:inline-flex;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#1f6ed4;
}

.premium-card-head h3{
  margin:3px 0 0;
  letter-spacing:-.03em;
}

.premium-icon{
  width:48px;
  height:48px;
  border-radius:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 24px rgba(15,31,56,.12);
  flex:0 0 auto;
}

.premium-icon svg{
  width:25px;
  height:25px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.premium-icon-stats{
  background:#eef6ff;
  color:#1f6ed4;
}

.premium-icon-internal{
  background:#eaf3ff;
  color:#1858aa;
}

.premium-icon-public{
  background:#fff1d2;
  color:#9a6500;
}

.premium-card-bg,
.dashboard-section-pattern{
  position:absolute;
  right:-60px;
  top:-70px;
  width:220px;
  height:220px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(31,110,212,.16),rgba(31,110,212,0) 68%);
  pointer-events:none;
}

.dashboard-section-public .dashboard-section-pattern{
  background:radial-gradient(circle,rgba(216,151,27,.18),rgba(216,151,27,0) 68%);
}

.dashboard-section-head{
  position:relative;
  z-index:1;
  align-items:center;
}

.dashboard-section .admin-grid{
  position:relative;
  z-index:1;
}

.visitor-stats-grid{
  position:relative;
  z-index:1;
}

.visitor-stats-grid div{
  position:relative;
  overflow:hidden;
}

.stat-icon{
  position:absolute;
  right:16px;
  top:14px;
  font-size:34px;
  line-height:1;
  opacity:.10;
  color:var(--brand);
}

@media (max-width:640px){
  .premium-icon{
    width:42px;
    height:42px;
    border-radius:14px;
  }
}
.card-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
  box-shadow:0 10px 22px rgba(15,31,56,.10);
}

.card-icon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.admin-card-internal .card-icon{
  background:#eaf3ff;
  color:#1858aa;
}

.admin-card-public .card-icon{
  background:#fff1d2;
  color:#9a6500;
}

.admin-card:hover .card-icon{
  transform:scale(1.04);
}

.card-icon{
  transition:transform .18s ease;
}
.visitor-stats-grid div{
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:12px;
  align-items:center;
}

.visitor-stat-icon{
  grid-row:1 / span 2;
  width:42px;
  height:42px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#eaf3ff;
  color:#1f6ed4;
  box-shadow:0 10px 22px rgba(15,31,56,.10);
}

.visitor-stat-icon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.visitor-stats-grid strong,
.visitor-stats-grid span:not(.visitor-stat-icon){
  grid-column:2;
}

.visitor-stats-grid strong{
  line-height:1.05;
}

@media (max-width:640px){
  .visitor-stat-icon{
    width:38px;
    height:38px;
    border-radius:13px;
  }
}
.member-app-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:18px;
  padding:24px;
  border:1px solid #cfe0f5;
  border-radius:24px;
  background:
    radial-gradient(circle at 88% 18%, rgba(31,110,212,.18), transparent 28%),
    linear-gradient(135deg,#f7fbff 0%,#ffffff 70%);
  box-shadow:0 14px 34px rgba(15,31,56,.09);
}

.member-app-hero h1{
  margin:4px 0 8px;
  font-size:2rem;
  letter-spacing:-.05em;
}

.member-app-hero p{
  margin:0;
  color:var(--muted);
  font-weight:650;
}

.member-kicker{
  display:inline-flex;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#1858aa;
}

.member-role-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 14px;
  border-radius:999px;
  background:#eaf3ff;
  color:#1858aa;
  font-weight:900;
  box-shadow:0 10px 22px rgba(15,31,56,.10);
}

.member-dashboard-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:14px;
}

.member-card{
  position:relative;
  overflow:hidden;
  min-height:190px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border-color:#cfe0f5;
}

.member-card::after{
  content:"";
  position:absolute;
  right:-38px;
  top:-46px;
  width:120px;
  height:120px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(31,110,212,.13),rgba(31,110,212,0) 70%);
  pointer-events:none;
}

.member-card-icon{
  width:44px;
  height:44px;
  border-radius:15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom:14px;
  background:#eaf3ff;
  color:#1858aa;
  box-shadow:0 10px 22px rgba(15,31,56,.10);
}

.member-card-icon svg{
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.member-card h3,
.member-card p,
.member-card .btn{
  position:relative;
  z-index:1;
}

.member-card h3{
  color:#1858aa;
}

.member-badge{
  position:absolute;
  right:16px;
  top:16px;
  min-width:30px;
  height:30px;
  padding:0 9px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,var(--brand),var(--brand-2));
  color:#fff;
  font-weight:900;
  box-shadow:0 10px 22px rgba(31,110,212,.24);
  z-index:2;
}

.member-card-highlight{
  border-color:#9fc4f4;
  box-shadow:0 12px 30px rgba(31,110,212,.11);
}

@media (max-width:640px){
  .member-app-hero{
    display:grid;
    padding:20px;
    border-radius:22px;
  }

  .member-app-hero h1{
    font-size:1.65rem;
  }

  .member-role-badge{
    justify-self:flex-start;
  }

  .member-dashboard-grid{
    grid-template-columns:1fr;
  }

  .member-card{
    min-height:auto;
  }
}
.company-contact{
  display:grid;
  gap:5px;
  margin-top:10px;
  color:var(--muted);
  font-size:.9rem;
  line-height:1.35;
}

.company-contact span{
  display:block;
}
.directory-admin-list{
  display:grid;
  gap:14px;
}

.directory-admin-card{
  border:1px solid var(--border);
  border-radius:18px;
  background:#fff;
  box-shadow:0 6px 18px rgba(15,31,56,.06);
  overflow:hidden;
}

.directory-admin-summary{
  display:grid;
  grid-template-columns:72px 1fr auto;
  gap:16px;
  align-items:center;
  padding:16px;
}

.directory-admin-image{
  width:72px;
  height:72px;
  border-radius:16px;
  border:1px solid var(--border);
  background:#f8fbff;
  object-fit:cover;
}

.directory-admin-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-weight:800;
}

.directory-admin-title{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-bottom:8px;
}

.directory-admin-title strong{
  font-size:1.05rem;
}

.directory-admin-badge{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#edf6ff;
  color:#1858aa;
  font-size:.78rem;
  font-weight:800;
}

.directory-admin-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  color:var(--muted);
  font-size:.9rem;
}

.directory-admin-toggle{
  min-width:120px;
}

.directory-admin-details{
  border-top:1px solid #edf2f7;
  padding:16px;
  background:#fbfdff;
}

.directory-admin-fields{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.directory-admin-field{
  display:grid;
  gap:6px;
}

.directory-admin-field label{
  font-size:.82rem;
  font-weight:800;
  color:#4b5f78;
}

.directory-admin-field-wide{
  grid-column:1 / -1;
}

.directory-admin-card-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:14px;
}

.directory-admin-sticky-actions{
  position:sticky;
  bottom:0;
  z-index:5;
  margin-top:18px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(8px);
  box-shadow:0 -8px 24px rgba(15,31,56,.08);
}

@media (max-width:900px){
  .directory-admin-summary{
    grid-template-columns:56px 1fr;
  }

  .directory-admin-image{
    width:56px;
    height:56px;
  }

  .directory-admin-toggle{
    grid-column:1 / -1;
    width:100%;
  }

  .directory-admin-fields{
    grid-template-columns:1fr;
  }
}
.admin-section-title{
  margin:26px 0 12px;
  font-size:1.15rem;
  color:#0f1f38;
}

.directory-admin-card-archive{
  opacity:.72;
  background:#f8fafc;
}