:root{
  --bg:#000000;              /* Schwarz */
  --card:#0f0f0f;            /* leicht heller als Hintergrund */
  --text:#B08A57;            /* Haupttextfarbe Gold/Bronze */
  --muted:#8F6C3E;           /* gedämpfte Variante */
  --accent:#DA3C37;          /* neue Akzentfarbe */
  --line:rgba(167,128,74,.25); /* goldene Linien */
  --shadow: 0 14px 40px rgba(0,0,0,.6);
  --radius: 16px;
}

*{ box-sizing:border-box; }

img{
  max-width:100%;
  height:auto; /* verhindert Verzerrungen */
}

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

/* Header */
.topbar{
  padding:28px 18px 10px;
  max-width:1100px;
  margin:0 auto;
  text-align:center;
}
.topbar h1{ margin:0 0 6px; font-size:1.6rem;  }
.topbar p{ margin:0; color:var(--text); }

.logo{
  display:block;
  width:min(320px, 90%);
  margin:18px auto 0;
}

/* Haupt-Container */
.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:18px;
}

/* Grid */
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:16px;
}

/* Card */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}

/* Karten-Bild (Hauptbild in der Übersicht) */
.card{
  background:#111;
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.card:hover{
  border-color: var(--accent);
}
/* .card img{
  aspect-ratio: 3 / 4;  /* Hochformat */
}*/


/* Textblock */
.meta{
  padding:12px 14px 14px;
}
.name{
  margin:0 0 6px;
  font-size:1.05rem;
  color:var(--accent);
}
.ref{
  margin:0;
  color:var(--accent);
  font-size:.95rem;
}

/* Modal / Lightbox */
.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:50;
}
.modal.open{ display:block; }

.backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.68);
}

.dialog{
  position:relative;
  margin: min(6vh, 60px) auto;
  width: min(1000px, calc(100vw - 28px));
  background: linear-gradient(180deg, rgba(167,153,74,.08), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

.iconbtn{
  appearance:none;
  border:none;
  cursor:pointer;
  border-radius:50%;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  font-size:20px;
  font-weight:bold;

  background: rgba(0,0,0,0.85);
  color: var(--text);
  border: 1px solid var(--accent);
  box-shadow: 0 0 12px rgba(218,60,55,.4);
}

.iconbtn:hover{
  background: var(--text);
  color: black;
}

.close{
  position:absolute;
  top:14px;
  right:14px;
  z-index:3;
}

.dialogBody{
  display:grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: 420px;
}
@media (max-width: 860px){
  .dialogBody{ grid-template-columns: 1fr; }
}

.viewer{
  position:relative;
  padding:18px;
  display:grid;
  place-items:center;
  background: rgba(0,0,0,.18);
}

.mainImage{
  width:90%;
  max-width:600px;
  max-height:60vh;
  object-fit:contain;
  border-radius: 16px;
  background:#0e1118;
  border:1px solid rgba(255,255,255,.10);
}

.nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  border:none;
  background: rgba(0,0,0,.45);
  color:var(--text);
  width:44px;
  height:44px;
  border-radius: 999px;
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size: 28px;
  line-height: 1;
  user-select:none;
}
.prev{ left:18px; }
.next{ right:18px; }

.nav:disabled{
  opacity:.35;
  cursor:not-allowed;
}

.info{
  padding:18px 18px 20px;
}

.tel{
  margin:0 0 14px;
  color: var(--accent);
}
.tel a{
  color:var(--accent);
  text-decoration:none;
  font-weight:600;
}
.tel a:hover{
  color:var(--accent);
  border-bottom-color: rgba(255,255,255,.75);
}

.thumbs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.thumb{
  width:60px;
  height:60px;
  border-radius: 14px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background:#0e1118;
  cursor:pointer;
  padding:0;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.thumb.active{
  outline: 2px solid rgba(255,255,255,.75);
  outline-offset: 2px;
}
#modalTitle{
  color: var(--accent);
}
@media (max-width: 600px){

  .grid{
    grid-template-columns: repeat(2, 1fr);
    gap:12px;
  }

  .meta{
    padding:8px 10px 10px;
  }

  .name{
    font-size:0.95rem;
  }

}

/* Prevent body scroll when modal open */
body.noscroll{
  overflow:hidden;
}
