:root{
  --bg1:#12072a;
  --bg2:#070b24;
  --text:#fff7ff;
  --muted: rgba(255,247,255,.78);

  /* Circus palette */
  --pink:#ff4fd8;
  --cyan:#00e5ff;
  --yellow:#ffd400;
  --orange:#ff7a00;
  --lime:#b6ff2e;
  --violet:#8b5cff;
  --red:#ff2d55;

  /* Legacy accent vars (used inline in index.php headline) */
  --accent1: var(--pink);
  --accent2: var(--cyan);
  --accent3: var(--yellow);

  --card: rgba(255,255,255,.10);
  --card2: rgba(255,255,255,.14);
  --stroke: rgba(255,255,255,.16);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);

  /* 🎪 Circus Background Image */
  background:
    linear-gradient(
      rgba(10,8,30,.75),
      rgba(10,8,30,.85)
    ),
    url("/assets/img/circus-bg.jpg") center top / cover no-repeat fixed;

  min-height:100vh;
}

@media (max-width: 900px){
  body{
    background-attachment: scroll;
    background-position: center top;
  }
}

/* Top ribbon stripes */
body::before{
  content:"";
  position:fixed;
  top:-80px;
  left:-120px;
  right:-120px;
  height:220px;
  pointer-events:none;
  transform: rotate(-2deg);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.10) 0 18px,
      rgba(255,79,216,.18) 18px 36px,
      rgba(0,229,255,.16) 36px 54px,
      rgba(255,212,0,.16) 54px 72px
    );
  mask-image: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,0));
  opacity:.55;
}

.container{max-width:1120px;margin:0 auto;padding:24px}

/* Nav */
.nav{
  position:sticky;top:0;z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(10,8,30,.62);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.nav-inner{
  display:flex;gap:14px;align-items:center;justify-content:space-between;
  padding:14px 18px;
  max-width:1120px;margin:0 auto;
}
.brand{
  display:flex;align-items:center;gap:12px;
  font-weight:1000;letter-spacing:.8px;text-transform:uppercase;
  text-decoration:none;color:var(--text);
}
.logo-dot{
  width:14px;height:14px;border-radius:999px;
  background: conic-gradient(from 180deg, var(--pink), var(--cyan), var(--yellow), var(--orange), var(--pink));
  box-shadow: 0 0 18px rgba(255,79,216,.40);
}

.nav-links{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.nav a{
  color:var(--text);
  text-decoration:none;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
  background: transparent;
  position:relative;
}
.nav a:hover{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
}

/* Mobile nav toggle */
.nav-toggle{display:none}
.nav-burger{
  display:none;
  width:42px;height:42px;border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  align-items:center;justify-content:center;
  cursor:pointer;
}
.nav-burger span{
  display:block;width:18px;height:2px;border-radius:999px;
  background: rgba(255,255,255,.92);
  margin:3px 0;
}

@media (max-width: 860px){
  .container{padding:18px}
  .nav-burger{display:flex}
  .nav-links{
    position:fixed;
    top:64px;
    left:14px;
    right:14px;
    padding:12px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.14);
    background: rgba(8,8,25,.86);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0,0,0,.35);
    display:none;
  }
  .nav-toggle:checked ~ .nav-links{display:flex;flex-direction:column;align-items:stretch}
  .nav a{padding:12px 12px}
}

/* Anchor offset for sticky nav */
section{scroll-margin-top:92px}

.hero{padding:26px 0 10px}
.hero h1{margin:0;font-size:46px;line-height:1.03;letter-spacing:-.6px}
.hero p{margin:12px 0 0;color:var(--muted);max-width:80ch;font-size:16px}

.quote{
  margin:14px 0 0;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(135deg, rgba(255,79,216,.18), rgba(0,229,255,.12), rgba(255,212,0,.10)),
    rgba(255,255,255,.04);
}
.quote-by{display:block;margin-top:8px;color:var(--muted);font-size:14px}

@media (max-width: 900px){
  .hero h1{font-size:36px}
}

.badge{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 10px;border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:var(--muted);
  font-size:13px;
}

/* Circus title underline */
.section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
}
.section-title h2{margin:0}
.section-rule{
  height:8px;
  flex:1;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(255,79,216,.85), rgba(0,229,255,.8), rgba(255,212,0,.8));
  opacity:.75;
}

.grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:18px;
  margin-top:18px;
}
@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.14);
  border-radius:22px;
  padding:18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  position:relative;
  overflow:hidden;
}

/* Card top stripe */
.card::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;height:6px;
  background: linear-gradient(90deg, var(--red), var(--pink), var(--cyan), var(--yellow), var(--orange));
  opacity:.95;
}

.news-item{
  padding:14px;
  border-radius:18px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  margin-bottom:12px;
}
.news-item h3{margin:0 0 8px;font-size:18px}
.news-meta{color:var(--muted);font-size:13px;margin-bottom:8px}

.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 900px){
  .two-col{grid-template-columns:1fr}
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 980px){
  .cards{grid-template-columns: repeat(2, 1fr)}
}
@media (max-width: 620px){
  .cards{grid-template-columns: 1fr}
}

.mini-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:14px;
}

.callout{
  margin-top:12px;
  padding:14px 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 14px, rgba(255,79,216,.10) 14px 28px, rgba(0,229,255,.08) 28px 42px, rgba(255,212,0,.08) 42px 56px),
    rgba(0,0,0,.10);
}

.mini-grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr;
  gap:14px; /* ✅ mehr Abstand zwischen Boxen */
}
@media (min-width: 860px){
  .mini-grid{
    grid-template-columns: 1fr 1fr; /* Desktop: 2 Spalten */
    gap:16px;
  }
}
.callout-title{display:block;font-weight:900;letter-spacing:.2px}
.callout-body{color:var(--muted);margin-top:6px;font-size:15px}

.section{margin-top:26px}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.section-head h2{margin:0}
.section-head p{margin:0;color:var(--muted);max-width:70ch}

.offer-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}
@media (max-width: 900px){
  .offer-grid{grid-template-columns: 1fr}
}

.offer-card{
  background: rgba(255,255,255,.08);
  border-radius:20px;
  padding:16px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  position:relative;
  overflow:hidden;
}
.offer-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:22px;
  background: linear-gradient(90deg, rgba(255,79,216,.55), rgba(0,229,255,.55), rgba(255,212,0,.55));
  opacity:.35;
  filter: blur(16px);
}
.offer-card > *{position:relative}
.offer-card h3{margin:8px 0 8px}
.offer-card p{margin:0;color:var(--muted)}
.offer-icon{
  width:42px;height:42px;
  border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.10) 0 10px, rgba(255,79,216,.20) 10px 20px, rgba(0,229,255,.18) 20px 30px, rgba(255,212,0,.18) 30px 40px);
  border:1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
  font-size:18px;
}

.contact-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
}
@media (max-width: 900px){
  .contact-grid{grid-template-columns: 1fr}
}
.contact-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}

/* Gallery placeholders */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
@media (max-width: 980px){
  .gallery-grid{grid-template-columns: repeat(3, 1fr)}
}
@media (max-width: 720px){
  .gallery-grid{grid-template-columns: repeat(2, 1fr)}
}
@media (max-width: 480px){
  .gallery-grid{grid-template-columns: 1fr}
}

.gallery-tile{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(120px 90px at 20% 20%, rgba(255,79,216,.25), transparent 60%),
    radial-gradient(120px 90px at 80% 30%, rgba(0,229,255,.22), transparent 60%),
    radial-gradient(120px 90px at 40% 80%, rgba(255,212,0,.22), transparent 60%),
    rgba(255,255,255,.05);
  height:140px;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  overflow:hidden;
}

.gallery-tile span{
  display:inline-flex;
  margin:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  font-weight:900;
  letter-spacing:.2px;
}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:16px;
  border:1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(255,79,216,.26), rgba(0,229,255,.18), rgba(255,212,0,.14));
  color:var(--text);
  text-decoration:none;
  font-weight:800;
}
.btn:hover{filter:brightness(1.06)}

input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
}
label{display:block;margin:10px 0 6px;color:var(--muted);font-size:14px}

.footer{
  margin-top:26px;
  padding:18px 0 28px;
  border-top:1px solid rgba(255,255,255,.12);
  color:var(--muted);
}
.footer-grid{
  display:flex;
  gap:14px;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
}
.footer-left{min-width:260px}
.footer-right{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.footer-copy{font-weight:900;color:var(--text);letter-spacing:.3px;cursor:pointer;user-select:none}
.footer-meta{margin-top:6px;font-size:13px;color:var(--muted)}
.footer-links{margin-top:10px;font-size:13px;color:var(--muted)}
.footer-links .dot{opacity:.6;margin:0 6px}

.admin-link{display:none}
.admin-link.is-visible{display:inline}

.footer a{color:var(--text);text-decoration:none}
.footer a:hover{text-decoration:underline}

.small{font-size:13px;color:var(--muted)}

/* Utility */
.mt-14{margin-top:14px}


/* =========================
   HERO – CENTER CARD
========================= */

.hero-wrap{
  display:flex;
  justify-content:center;
  padding:40px 16px 20px;
}

.hero-card{
  max-width:980px;
  width:100%;
  text-align:center;
  padding:32px 26px;

  background:
    linear-gradient(135deg,
      rgba(255,255,255,0.18),
      rgba(255,255,255,0.05)
    );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius:26px;
  border:1px solid rgba(255,255,255,0.22);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.08);

  /* ✅ damit die Leiste sauber drin sitzt */
  position: relative;
  overflow: hidden;
}

/* ✅ HERO Leiste oben wie bei .card */
.hero-card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:6px;
  background: linear-gradient(90deg, var(--red), var(--pink), var(--cyan), var(--yellow), var(--orange));
  opacity:.95;
}

.hero-card .badge{
  margin:0 auto 14px;
}

.hero-title{
  margin:6px 0 14px;
  font-size:clamp(34px, 6vw, 56px);
  line-height:1.05;
  font-weight:900;
}

.hero-title span{
  background:linear-gradient(90deg,var(--accent1),var(--accent2),var(--accent3));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero-quote{
  margin:18px auto 16px;
  padding:18px 22px;
  max-width:760px;

  background:rgba(255,255,255,0.12);
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.18);

  font-size:18px;
  line-height:1.5;
}

.hero-quote span{
  display:block;
  margin-top:8px;
  font-size:14px;
  opacity:.75;
}

.hero-text{
  max-width:820px;
  margin:16px auto 0;
  font-size:16.5px;
  line-height:1.6;
  color:var(--muted);
}

/* Mobile Feinschliff */
@media (max-width: 600px){
  .hero-card{
    padding:26px 18px;
  }
  .hero-quote{
    font-size:16px;
  }
}


/* =========================
   GALLERY PAGE + LIGHTBOX
========================= */

/* Gallery grid (echte Bilder statt placeholders) */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
@media (max-width: 980px){
  .gallery-grid{grid-template-columns: repeat(3, 1fr)}
}
@media (max-width: 720px){
  .gallery-grid{grid-template-columns: repeat(2, 1fr)}
}
@media (max-width: 480px){
  .gallery-grid{grid-template-columns: 1fr}
}

.gallery-item{
  position:relative;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  cursor:pointer;
  min-height:170px;
}
.gallery-item img{
  width:100%;
  height:190px;
  object-fit:cover;
  display:block;
  transform: scale(1.01);
  transition: transform .25s ease, filter .25s ease;
}
.gallery-item:hover img{
  transform: scale(1.06);
  filter: saturate(1.08);
}

.gallery-cap{
  position:absolute;
  left:10px;
  bottom:10px;
  right:10px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.gallery-cap .tag{
  display:inline-flex;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.36);
  backdrop-filter: blur(10px);
  font-weight:900;
  letter-spacing:.2px;
  font-size:13px;
}
.gallery-cap .count{
  display:inline-flex;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.26);
  color: var(--muted);
  font-size:13px;
}

/* Pagination */
.pagination{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:16px;
  flex-wrap:wrap;
}
.page-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:42px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  text-decoration:none;
  font-weight:900;
}
.page-btn:hover{filter:brightness(1.06)}
.page-btn.is-active{
  background: linear-gradient(135deg, rgba(255,79,216,.26), rgba(0,229,255,.18), rgba(255,212,0,.14));
  border-color: rgba(255,255,255,.22);
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:18px;
}
.lightbox.is-open{display:flex}

.lightbox-inner{
  width:min(1100px, 96vw);
  max-height: 86vh;
  position:relative;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  overflow:hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.lightbox-inner::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;height:6px;
  background: linear-gradient(90deg, var(--red), var(--pink), var(--cyan), var(--yellow), var(--orange));
  opacity:.95;
  z-index:2;
}
.lightbox-img{
  width:100%;
  height: calc(86vh - 6px);
  object-fit:contain;
  display:block;
  background: rgba(0,0,0,.25);
  padding:18px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next{
  position:absolute;
  top:14px;
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: var(--text);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  user-select:none;
  z-index:3;
}
.lightbox-close{right:14px}
.lightbox-prev{left:14px; top:50%; transform: translateY(-50%);}
.lightbox-next{right:14px; top:50%; transform: translateY(-50%);}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover{filter:brightness(1.08)}
@media (max-width: 600px){
  .lightbox-prev,.lightbox-next{top:auto; transform:none; bottom:14px;}
  .lightbox-prev{left:14px}
  .lightbox-next{right:14px}
}

/* =========================
   ADMIN – GALLERY UI HELPERS
========================= */

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

.admin-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 10px;
}
.admin-table th{
  text-align:left;
  font-size:13px;
  color: var(--muted);
  font-weight:900;
  padding:0 10px 6px;
}
.admin-table td{
  padding:12px 10px;
  background: rgba(255,255,255,.06);
  border-top:1px solid rgba(255,255,255,.12);
  border-bottom:1px solid rgba(255,255,255,.12);
}
.admin-table tr td:first-child{
  border-left:1px solid rgba(255,255,255,.12);
  border-top-left-radius:16px;
  border-bottom-left-radius:16px;
}
.admin-table tr td:last-child{
  border-right:1px solid rgba(255,255,255,.12);
  border-top-right-radius:16px;
  border-bottom-right-radius:16px;
}
.thumb{
  width:84px;height:56px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  object-fit:cover;
  display:block;
}
.btn-danger{
  background: linear-gradient(135deg, rgba(255,45,85,.28), rgba(255,79,216,.18));
}
.btn-danger:hover{filter:brightness(1.08)}


/* =========================
   ADMIN GALLERY LIST
========================= */
.admin-gallery-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:14px;
}
.admin-gallery-item{
  display:flex;
  gap:14px;
  align-items:center;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.admin-gallery-item img{
  width:260px;            /* ✅ 200–300px wie gewünscht */
  max-width:100%;
  height:160px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  flex:0 0 auto;
}
.admin-gallery-meta{flex:1; min-width:180px}
.admin-gallery-title{font-weight:900; margin-bottom:6px}
.admin-gallery-actions{display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end}

@media (max-width: 820px){
  .admin-gallery-item{flex-direction:column; align-items:stretch}
  .admin-gallery-item img{width:100%; height:200px}
  .admin-gallery-actions{justify-content:flex-start}
}
